diff --git a/pages/distribution/distribution.js b/pages/distribution/distribution.js index d39f078..d2c6aeb 100644 --- a/pages/distribution/distribution.js +++ b/pages/distribution/distribution.js @@ -50,7 +50,7 @@ Page({ app.request.get(url + '/' + this.data.userInfo.store_id + '/' + this.data.userInfo.user_id, { success: function(res) { console.log('success~~`', self.data.userInfo); - if(res.data.code == 0){ + if(res.data.code == 0) { self.setData({ data: res.data.data, @@ -68,9 +68,16 @@ Page({ isShowLoading: true, }).then(function(res) { console.log('!!!===>', res); - self.setData({ - fenxiao: res.data.data, - }); + if(res.data.code == 0) { + self.setData({ + fenxiao: res.data.data, + }); + } else { + self.setData({ + msg: res.data.msg, + }); + } + }); // }; diff --git a/pages/distribution/distribution.wxml b/pages/distribution/distribution.wxml index 14ee80e..a499e70 100644 --- a/pages/distribution/distribution.wxml +++ b/pages/distribution/distribution.wxml @@ -72,44 +72,51 @@ - 分销规则说明 - - - - - - - 仅限PLUS卡({{item.conditonRemark}})的会员, 立即升级 + + 提示 + {{msg}} + + + 分销规则说明 + + + + + + 仅限PLUS卡({{item.conditonRemark}})的会员, 立即升级 + + - - - - - - - - 验证 + + + + + + 验证 + + - - - + + + + {{item.conditonRemark}} + + + + + - - {{item.conditonRemark}} + + 成功成为分销商,分享商品给好友即可获得相应收益 - - - - - - - 成功成为分销商,分享商品给好友即可获得相应收益 + + 去购买 - - - 去购买 + + +