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