Showing
1 changed file
with
6 additions
and
1 deletions
| @@ -110,6 +110,9 @@ Page({ | @@ -110,6 +110,9 @@ Page({ | ||
| 110 | if (!this.data.rname) { | 110 | if (!this.data.rname) { |
| 111 | return util.toast('请输入您的姓名', 'none') | 111 | return util.toast('请输入您的姓名', 'none') |
| 112 | } | 112 | } |
| 113 | + wx.showLoading({ | ||
| 114 | + title: '提交中,请稍后!', | ||
| 115 | + }) | ||
| 113 | let obj = { | 116 | let obj = { |
| 114 | sellername, | 117 | sellername, |
| 115 | phone, | 118 | phone, |
| @@ -129,8 +132,10 @@ Page({ | @@ -129,8 +132,10 @@ Page({ | ||
| 129 | openid: getApp().openid, | 132 | openid: getApp().openid, |
| 130 | }).then(res => { | 133 | }).then(res => { |
| 131 | if (res.ret != 200) { | 134 | if (res.ret != 200) { |
| 135 | + wx.hideLoading() | ||
| 132 | return util.toast(res.msg, 'none') | 136 | return util.toast(res.msg, 'none') |
| 133 | } | 137 | } |
| 138 | + wx.hideLoading() | ||
| 134 | if(this.data.phone!='18601216909') { | 139 | if(this.data.phone!='18601216909') { |
| 135 | this.sendIntentionFun() | 140 | this.sendIntentionFun() |
| 136 | }else{ | 141 | }else{ |
| @@ -139,7 +144,7 @@ Page({ | @@ -139,7 +144,7 @@ Page({ | ||
| 139 | }) | 144 | }) |
| 140 | } | 145 | } |
| 141 | }) | 146 | }) |
| 142 | - },3000), | 147 | + },10000), |
| 143 | // 发送意向店铺通知短信 | 148 | // 发送意向店铺通知短信 |
| 144 | sendIntentionFun(){ | 149 | sendIntentionFun(){ |
| 145 | App.SaiYouYun.SendIntention({ | 150 | App.SaiYouYun.SendIntention({ |
-
Please register or login to post a comment