登录添加 toast ,因为有时比较慢

wechat_user_type
Ge Hao 8 years ago
parent cdd5b12443
commit 105cdbf325
  1. 11
      pages/mine/mine.js

@ -100,6 +100,11 @@ Page({
bindLoginMobilecode: function(e) {
if (!this.bindCheckMobile(this.data.mobile)) { return }
wx.showToast({
title: '登录中...',
icon: 'loading',
duration: 5000
})
var data = {mobile: this.data.mobile, mobile_code: e.detail.value.code, name: this.data.userInfo.nickName}
profile.postCustomerInfo(data, this.infoCallback)
},
@ -107,6 +112,11 @@ Page({
bindLoginPassword: function(e) {
var mobile = e.detail.value.mobile
if (!this.bindCheckMobile(mobile)) { return }
wx.showToast({
title: '登录中...',
icon: 'loading',
duration: 5000
})
var data = {mobile: mobile, password: e.detail.value.password}
profile.postCustomerInfo(data, this.infoCallback)
},
@ -154,6 +164,7 @@ Page({
key:"zichan_slides",
data:data
})
wx.hideToast()
})
}
})

Loading…
Cancel
Save