Commit ffe816a6298ea791a6acbfc159e8974be387634e
1 parent
467308cd
服务卡商品详情修改
Showing
1 changed file
with
20 additions
and
18 deletions
packageA/pages/goodsInfo/goodsInfo.js
@@ -887,27 +887,29 @@ Page({ | @@ -887,27 +887,29 @@ Page({ | ||
887 | // if(!this.data.openSpecModal_ind) { | 887 | // if(!this.data.openSpecModal_ind) { |
888 | if(this.data.prom_type == 1) { | 888 | if(this.data.prom_type == 1) { |
889 | this.data.sele_g.viplimited = this.data.sele_g.buy_limit; | 889 | this.data.sele_g.viplimited = this.data.sele_g.buy_limit; |
890 | - }; | ||
891 | - | ||
892 | - if(this.data.sele_g.viplimited > 0 && !this.data.is_normal && this.data.prom_type == 1) { | ||
893 | - var t = th.data.goodsInputNum; | ||
894 | - th.data.sele_g.viplimited = th.data.sele_g.buy_limit; | ||
895 | - if (th.data.sele_g.viplimited > 0) { | ||
896 | - var gd_buy_num = th.data.sele_g.buy_num; | ||
897 | - | ||
898 | - if (t + gd_buy_num > th.data.sele_g.viplimited) { | ||
899 | - wx.showModal({ | ||
900 | - title: '超出活动限购数量', | ||
901 | - }); | ||
902 | - | ||
903 | - let num = th.data.sele_g.viplimited - gd_buy_num; | ||
904 | - if (num <= 0) num = 1; | ||
905 | - th.setData({goodsInputNum: num}); | ||
906 | - return false; | ||
907 | - } | 890 | + |
891 | + if(this.data.sele_g.viplimited > 0 && !this.data.is_normal) { | ||
892 | + var t = th.data.goodsInputNum; | ||
893 | + th.data.sele_g.viplimited = th.data.sele_g.buy_limit; | ||
894 | + if (th.data.sele_g.viplimited > 0) { | ||
895 | + var gd_buy_num = th.data.sele_g.buy_num; | ||
896 | + | ||
897 | + if (t + gd_buy_num > th.data.sele_g.viplimited) { | ||
898 | + wx.showModal({ | ||
899 | + title: '超出活动限购数量', | ||
900 | + }); | ||
901 | + | ||
902 | + let num = th.data.sele_g.viplimited - gd_buy_num; | ||
903 | + if (num <= 0) num = 1; | ||
904 | + th.setData({goodsInputNum: num}); | ||
905 | + return false; | ||
906 | + } | ||
907 | + }; | ||
908 | }; | 908 | }; |
909 | }; | 909 | }; |
910 | 910 | ||
911 | + | ||
912 | + | ||
911 | // }; | 913 | // }; |
912 | 914 | ||
913 | 915 |