From 45b4ddb0aa29761d5a13ee2152b48b47cf24de6b Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Fri, 17 Nov 2023 11:48:31 +0800 Subject: [PATCH] 如果有分享的bug优化 --- pages/user/plus/plus.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/user/plus/plus.js b/pages/user/plus/plus.js index f597286..b9a202e 100644 --- a/pages/user/plus/plus.js +++ b/pages/user/plus/plus.js @@ -442,12 +442,6 @@ Page({ return false; } - //有显示弹出框,才要求要显示用户协议 - if(!this.data.check_py_val && (th.data.isyaoqingma || th.data.is_salesman) ){ - ut.m_toast('请先同意PLUS会员用户协议') - return false; - } - var item = th.data.is_plusCard[th.data.by_index]; var req = {}; req.cardId = item.CardId; @@ -457,6 +451,13 @@ Page({ if (th.data.def_recommon) req.recommon = th.data.def_recommon if (th.data.def_serviceman) req.serviceman = th.data.def_serviceman } else { + + //有显示弹出框,才要求要显示用户协议 + if(!this.data.check_py_val && (th.data.isyaoqingma || th.data.is_salesman) ){ + ut.m_toast('请先同意PLUS会员用户协议') + return false; + } + //---后台要求要输入邀请码--- if (th.data.isyaoqingma) { if (!th.data.inp_recommon && th.data.is_must_staff_yqma) { -- libgit2 0.21.4