diff --git a/app.js b/app.js index 1128b85..a188f0a 100644 --- a/app.js +++ b/app.js @@ -94,10 +94,17 @@ App({ if (user && user.user_id){ //--生成会员 -- app.promiseGet("/api/weshop/users/get/" + user.store_id + "/" + user.user_id,{}).then(res=>{ - if(res.data.code==0){ + if(res.data.code==0){ user=res.data.data; - app.globalData.userInfo=user; - app.globalData.user_id= user.user_id; + //-- 小程序会员被解绑了,就要清空会员 -- + if(user['is_weappuser']==0){ + user=null; + app.globalData.userInfo=null; + app.globalData.user_id= 0; + }else{ + app.globalData.userInfo=user; + app.globalData.user_id= user.user_id; + } wx.setStorageSync("userinfo",user); } }) diff --git a/packageA/pages/distribution/goods/goods.json b/packageA/pages/distribution/goods/goods.json index 152aabb..be24e2b 100644 --- a/packageA/pages/distribution/goods/goods.json +++ b/packageA/pages/distribution/goods/goods.json @@ -2,6 +2,6 @@ "usingComponents": { "nodata": "/components/nodata/nodata" }, - "navigationBarTitleText": "上下架商品", + "navigationBarTitleText": "", "enablePullDownRefresh": false } \ No newline at end of file diff --git a/pages/distribution/distribution.js b/pages/distribution/distribution.js index 02e0000..d8e6acc 100644 --- a/pages/distribution/distribution.js +++ b/pages/distribution/distribution.js @@ -256,6 +256,8 @@ Page({ let index = e.target.dataset.index; let mobile = 0; var th=this; + var inv=e.currentTarget.dataset.inv; + if(!this.data.inputValue) this.data.inputValue=inv; if(this.data.inputValue) { mobile = this.data.inputValue; if(!pass) { diff --git a/pages/distribution/distribution.wxml b/pages/distribution/distribution.wxml index bd5ff76..b7ea408 100644 --- a/pages/distribution/distribution.wxml +++ b/pages/distribution/distribution.wxml @@ -75,10 +75,12 @@ - 提示 - - - {{err_word}} + + 提示 + + + {{err_word}} + @@ -105,7 +107,7 @@ {{item.inviter}} - 验证 + 验证