From 710141739bb6ff6967bb498d556c5f422cbcd274 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Sun, 30 Dec 2018 21:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=A7=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=AD=9B=E9=80=89bug=E5=92=8C=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E8=8E=B7=E5=8F=96=E4=BF=A1=E6=81=AF=E6=B3=84?= =?UTF-8?q?=E9=9C=B2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/crmebN/pages/address/address.js | 2 +- view/crmebN/pages/load/load.js | 1 + view/crmebN/pages/productSort/productSort.js | 8 ++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/view/crmebN/pages/address/address.js b/view/crmebN/pages/address/address.js index 170b30f0..f0411eb5 100644 --- a/view/crmebN/pages/address/address.js +++ b/view/crmebN/pages/address/address.js @@ -33,7 +33,7 @@ Page({ addressP.city = res.cityName; addressP.district = res.countyName; 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', data: { address: addressP, diff --git a/view/crmebN/pages/load/load.js b/view/crmebN/pages/load/load.js index 56ee331b..a13d7f0d 100755 --- a/view/crmebN/pages/load/load.js +++ b/view/crmebN/pages/load/load.js @@ -41,6 +41,7 @@ Page({ }, success: function (res) { app.globalData.uid = res.data.data.uid; + app.globalData.openid = res.data.data.routine_openid; if (app.globalData.openPages != '' && app.globalData.openPages != undefined) {//跳转到指定页面 wx.navigateTo({ url: app.globalData.openPages diff --git a/view/crmebN/pages/productSort/productSort.js b/view/crmebN/pages/productSort/productSort.js index d67f5ba2..5af7bde6 100644 --- a/view/crmebN/pages/productSort/productSort.js +++ b/view/crmebN/pages/productSort/productSort.js @@ -238,7 +238,8 @@ Page({ var n=t+1; if (n%2>0) priceOrder ='asc'; else priceOrder='desc'; - var sid = that.data.sid; + var sid = that.data.sid; + that.setData({ ficti: ''}) that.setData({ price: priceOrder, t: n, }) that.getProductList(); }, @@ -254,7 +255,8 @@ Page({ var n = t + 1; if (n%2>0) salesOrder = 'asc'; else salesOrder='desc'; - that.setData({ ficti: salesOrder, t: n, }) + that.setData({ price: '' }) + that.setData({ ficti: salesOrder, t: n, }) that.getProductList(); }, navactive2: function (e) { @@ -268,6 +270,8 @@ Page({ if (act == 3) news = 1; else news = ''; if (that.data.news) news = ''; + that.setData({ price: ''}) + that.setData({ ficti: ''}) that.setData({ news: news}) that.getProductList(); },