mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化代码
This commit is contained in:
parent
bb0febe1c4
commit
0dfc214c73
@ -72,12 +72,11 @@ export function sendSmsCode(_link, _that) {
|
||||
uni.hideLoading();
|
||||
let _json = res.data;
|
||||
if (_json.code == 0) {
|
||||
wx.showToast({
|
||||
uni.showToast({
|
||||
title:_json.data,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
duration: 5000
|
||||
});
|
||||
wx.hideLoading();
|
||||
timer(_that);
|
||||
resolve();
|
||||
return;
|
||||
@ -85,7 +84,7 @@ export function sendSmsCode(_link, _that) {
|
||||
wx.showToast({
|
||||
title: _json.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
duration: 5000
|
||||
});
|
||||
reject();
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user