Commit 5491901383da06cb48e32366811eb00358af738a

Authored by abson
1 parent a9c74c81

cart2 提交的

Showing 1 changed file with 7 additions and 3 deletions
pages/cart/cart2/cart2.js
... ... @@ -2350,11 +2350,8 @@ Page({
2350 2350  
2351 2351 //--------------------提交订单-----------------------
2352 2352 async submit_func() {
2353   - if (this.data.is_summit_ing == 1) return false; //--提交中退出--
2354   - this.data.is_summit_ing = 1;
2355 2353 var th = this, pdata = new Array();
2356 2354 var ff = true;
2357   -
2358 2355 //------------立即购买-------------
2359 2356 if (th.data.is_b_now == 1 && th.data.bn_goods.prom_type != 5) {
2360 2357 if (th.data.bn_exp_type == 0 && th.data.user_addr == null) {
... ... @@ -4372,15 +4369,22 @@ Page({
4372 4369 },
4373 4370 //订阅消息提醒
4374 4371 sendsm: function (func) {
  4372 + let th =this;
4375 4373 var template_id = this.data.template_id;
4376 4374 // //授权订阅
4377 4375 wx.requestSubscribeMessage({
4378 4376 tmplIds: [template_id],
4379 4377 success(res) {
4380 4378 func();
  4379 + th.setData({
  4380 + submit:0,
  4381 + })
4381 4382 },
4382 4383 fail(res) {
4383 4384 func();
  4385 + th.setData({
  4386 + submit:0,
  4387 + })
4384 4388 }
4385 4389 })
4386 4390  
... ...