From 5491901383da06cb48e32366811eb00358af738a Mon Sep 17 00:00:00 2001 From: abson Date: Wed, 9 Mar 2022 09:42:55 +0800 Subject: [PATCH] cart2 提交的 --- pages/cart/cart2/cart2.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index db07c54..e388ee1 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -2350,11 +2350,8 @@ Page({ //--------------------提交订单----------------------- async submit_func() { - if (this.data.is_summit_ing == 1) return false; //--提交中退出-- - this.data.is_summit_ing = 1; var th = this, pdata = new Array(); var ff = true; - //------------立即购买------------- if (th.data.is_b_now == 1 && th.data.bn_goods.prom_type != 5) { if (th.data.bn_exp_type == 0 && th.data.user_addr == null) { @@ -4372,15 +4369,22 @@ Page({ }, //订阅消息提醒 sendsm: function (func) { + let th =this; var template_id = this.data.template_id; // //授权订阅 wx.requestSubscribeMessage({ tmplIds: [template_id], success(res) { func(); + th.setData({ + submit:0, + }) }, fail(res) { func(); + th.setData({ + submit:0, + }) } }) -- libgit2 0.21.4