Commit 892de59cc607cdf9ce419871dd73cd483cf786b1
1 parent
912dffb0
订单提交的优化
Showing
1 changed file
with
4 additions
and
1 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -2030,7 +2030,7 @@ Page({ |
2030 | 2030 | },// 设置请求的 header |
2031 | 2031 | success: function (res) { |
2032 | 2032 | |
2033 | - th.data.is_summit_ing=0; //是否提交中 | |
2033 | + | |
2034 | 2034 | wx.hideLoading(); |
2035 | 2035 | if (res.statusCode == 200) { |
2036 | 2036 | var data=res.data; |
... | ... | @@ -2113,6 +2113,7 @@ Page({ |
2113 | 2113 | return; |
2114 | 2114 | }else if(res.confirm){ |
2115 | 2115 | th.data.is_continue=1; |
2116 | + th.data.is_summit_ing=0; //是否提交中 | |
2116 | 2117 | th.submitForm(sub_value); |
2117 | 2118 | } |
2118 | 2119 | } |
... | ... | @@ -2123,8 +2124,10 @@ Page({ |
2123 | 2124 | msg=msg.slice(0, 13) + "\r\n"+ msg.slice(13); |
2124 | 2125 | } |
2125 | 2126 | getApp().confirmBox(msg); |
2127 | + th.data.is_summit_ing=0; //是否提交中 | |
2126 | 2128 | } |
2127 | 2129 | }else{ |
2130 | + th.data.is_summit_ing=0; //是否提交中 | |
2128 | 2131 | console.log("index.js wx.request CheckCallUser statusCode" + res.statusCode); |
2129 | 2132 | } |
2130 | 2133 | }, | ... | ... |