Commit 98df62177dee751bbc19d3341d54c1a478be8296

Authored by 后端研发-倪永富
1 parent 377362b1

会员不相应的等级会员,权益会员帮拆之后,进入助力首页要提示,并立即参与按钮点击也要提示

pages/user/assistance/assistance.js
... ... @@ -78,7 +78,8 @@ Page({
78 78 storeId: store_id
79 79 }
80 80 })
81   - }
  81 + }else
  82 + getApp().my_warnning("暂无此活动或您不符合商家设置的会员参与对象,无法参与!", 0, th);
82 83 return ut.null_promise();
83 84 }).then(res => {
84 85 if ( res && res.data &&res.data.code == 0)
... ... @@ -150,6 +151,11 @@ Page({
150 151 go_task: function() {
151 152 var th = this;
152 153 var help_id = th.data.help_id;
  154 + if (!help_id){
  155 + getApp().my_warnning("暂无此活动或您不符合商家设置的会员参与对象,无法参与!", 0, th);
  156 + return false;
  157 + }
  158 +
153 159 getApp().goto("/pages/user/assistance/task_assistance?help_id=" + help_id);
154 160 },
155 161 switch_head: function(e) {
... ...
pages/user/assistance/friend_assistance.js
... ... @@ -43,10 +43,10 @@ Page({
43 43  
44 44 },
45 45  
46   - // 跳转到助力成功页
  46 + // 跳转到助力首页,我也要参加
47 47 participate_activity: function() {
48 48 wx.navigateTo({
49   - url: '/pages/user/assistance/assistance_success?helpid='+this.data.helpId,
  49 + url: '/pages/user/assistance/assistance',
50 50 })
51 51 },
52 52  
... ...