mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-11 00:55:33 +00:00
修复产品列表筛选bug和收货地址获取信息泄露bug
This commit is contained in:
parent
bdc219ec1c
commit
710141739b
@ -33,7 +33,7 @@ Page({
|
|||||||
addressP.city = res.cityName;
|
addressP.city = res.cityName;
|
||||||
addressP.district = res.countyName;
|
addressP.district = res.countyName;
|
||||||
wx.request({
|
wx.request({
|
||||||
url: app.globalData.url + '/routine/auth_api/edit_user_address?uid=' + app.globalData.uid,
|
url: app.globalData.url + '/routine/auth_api/edit_user_address?uid=' + app.globalData.uid + '&openid=' + app.globalData.openid,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
address: addressP,
|
address: addressP,
|
||||||
|
|||||||
@ -41,6 +41,7 @@ Page({
|
|||||||
},
|
},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
app.globalData.uid = res.data.data.uid;
|
app.globalData.uid = res.data.data.uid;
|
||||||
|
app.globalData.openid = res.data.data.routine_openid;
|
||||||
if (app.globalData.openPages != '' && app.globalData.openPages != undefined) {//跳转到指定页面
|
if (app.globalData.openPages != '' && app.globalData.openPages != undefined) {//跳转到指定页面
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: app.globalData.openPages
|
url: app.globalData.openPages
|
||||||
|
|||||||
@ -239,6 +239,7 @@ Page({
|
|||||||
if (n%2>0) priceOrder ='asc';
|
if (n%2>0) priceOrder ='asc';
|
||||||
else priceOrder='desc';
|
else priceOrder='desc';
|
||||||
var sid = that.data.sid;
|
var sid = that.data.sid;
|
||||||
|
that.setData({ ficti: ''})
|
||||||
that.setData({ price: priceOrder, t: n, })
|
that.setData({ price: priceOrder, t: n, })
|
||||||
that.getProductList();
|
that.getProductList();
|
||||||
},
|
},
|
||||||
@ -254,7 +255,8 @@ Page({
|
|||||||
var n = t + 1;
|
var n = t + 1;
|
||||||
if (n%2>0) salesOrder = 'asc';
|
if (n%2>0) salesOrder = 'asc';
|
||||||
else salesOrder='desc';
|
else salesOrder='desc';
|
||||||
that.setData({ ficti: salesOrder, t: n, })
|
that.setData({ price: '' })
|
||||||
|
that.setData({ ficti: salesOrder, t: n, })
|
||||||
that.getProductList();
|
that.getProductList();
|
||||||
},
|
},
|
||||||
navactive2: function (e) {
|
navactive2: function (e) {
|
||||||
@ -268,6 +270,8 @@ Page({
|
|||||||
if (act == 3) news = 1;
|
if (act == 3) news = 1;
|
||||||
else news = '';
|
else news = '';
|
||||||
if (that.data.news) news = '';
|
if (that.data.news) news = '';
|
||||||
|
that.setData({ price: ''})
|
||||||
|
that.setData({ ficti: ''})
|
||||||
that.setData({ news: news})
|
that.setData({ news: news})
|
||||||
that.getProductList();
|
that.getProductList();
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user