Commit 31b86af8b7cf0cb5e4249c763062f2890791e8a6

Authored by yvan.ni
1 parent 96417246

小程序等级卡自定义的优化

Showing 1 changed file with 3 additions and 1 deletions
pages/user/index/index.js
@@ -26,7 +26,7 @@ Page({ @@ -26,7 +26,7 @@ Page({
26 txmon: 0, 26 txmon: 0,
27 byquan: 0, 27 byquan: 0,
28 yuer: 0, 28 yuer: 0,
29 - is_no_plus: 1, 29 + is_no_plus: 0, //是否开通等级卡,或者体验等级卡
30 currentPage: 1, 30 currentPage: 1,
31 recommend_list: [], 31 recommend_list: [],
32 tc_hide: true, 32 tc_hide: true,
@@ -176,6 +176,8 @@ Page({ @@ -176,6 +176,8 @@ Page({
176 if (item.end_time < now) { 176 if (item.end_time < now) {
177 th.setData({ is_no_plus: 0 }) 177 th.setData({ is_no_plus: 0 })
178 } 178 }
  179 + }else if(item.is_sy == 1){
  180 + th.setData({ is_no_plus: 1 })
179 } 181 }
180 } 182 }
181 } 183 }