From 31b86af8b7cf0cb5e4249c763062f2890791e8a6 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Mon, 25 Dec 2023 10:11:11 +0800 Subject: [PATCH] 小程序等级卡自定义的优化 --- pages/user/index/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/user/index/index.js b/pages/user/index/index.js index f529162..c2388ad 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -26,7 +26,7 @@ Page({ txmon: 0, byquan: 0, yuer: 0, - is_no_plus: 1, + is_no_plus: 0, //是否开通等级卡,或者体验等级卡 currentPage: 1, recommend_list: [], tc_hide: true, @@ -176,6 +176,8 @@ Page({ if (item.end_time < now) { th.setData({ is_no_plus: 0 }) } + }else if(item.is_sy == 1){ + th.setData({ is_no_plus: 1 }) } } } -- libgit2 0.21.4