diff --git a/pages/user/plus/plus.js b/pages/user/plus/plus.js index 2618634..fcf49d3 100644 --- a/pages/user/plus/plus.js +++ b/pages/user/plus/plus.js @@ -30,8 +30,10 @@ Page({ open_yq: 0, //显示打开邀请码的弹窗 by_index: null, //购买卡的下班 - isyaoqingma: 0, //是否邀请码 - is_salesman: 0, //是否营业员 + isyaoqingma: 0, //是否显示邀请码 + is_salesman: 0, //是否显示营业员 + is_must_staff_yqma: 0, //是否必填 + inp_recommon: null, //输入的邀请码 inp_serviceman: null, //输入的营业员 is_fengxiang: 0, //是不是分享过来的 @@ -112,6 +114,7 @@ Page({ is_card_rule: is_cardrule, isyaoqingma: parseInt(swi_arr.isyaoqingma), is_salesman: parseInt(swi_arr.is_staffno), + is_must_staff_yqma: parseInt(swi_arr.is_must_staff_yqma), plus_bg_color: swi_arr.plus_bg_color, }); } @@ -449,7 +452,7 @@ Page({ } else { //---后台要求要输入邀请码--- if (th.data.isyaoqingma) { - if (!th.data.inp_recommon) { + if (!th.data.inp_recommon && th.data.is_must_staff_yqma) { getApp().my_warnning("请输入邀请码", 0, th); return false; } @@ -463,7 +466,7 @@ Page({ } //--后台要求要输入营业员-- if (th.data.is_salesman) { - if (!th.data.inp_serviceman) { + if (!th.data.inp_serviceman && th.data.is_must_staff_yqma) { getApp().my_warnning("请输入营业员", 0, th); th.setData({ focus:true