开关
This commit is contained in:
parent
388f65c846
commit
02a51f218c
|
@ -184,6 +184,9 @@
|
||||||
|
|
||||||
// 账号密码登录
|
// 账号密码登录
|
||||||
btndl() {
|
btndl() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '登录中...'
|
||||||
|
})
|
||||||
let data = {
|
let data = {
|
||||||
username: this.zh,
|
username: this.zh,
|
||||||
password: this.mm
|
password: this.mm
|
||||||
|
@ -193,6 +196,7 @@
|
||||||
wx.setStorageSync('token', res.token);
|
wx.setStorageSync('token', res.token);
|
||||||
this.ceshi()
|
this.ceshi()
|
||||||
} else {
|
} else {
|
||||||
|
uni.hideLoading()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
|
@ -582,8 +582,16 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
btnindex(num) {
|
btnindex(num) {
|
||||||
|
uni.getNetworkType({
|
||||||
|
success: (res) => {
|
||||||
|
if (res.networkType === 'none') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '当前无网络连接',
|
||||||
|
icon: 'none',
|
||||||
|
duration:2000
|
||||||
|
});
|
||||||
|
} else {
|
||||||
this.onControltap()
|
this.onControltap()
|
||||||
if (this.wangluo = true) { //判断是否有网络在进行点击
|
|
||||||
if (num == 2) {
|
if (num == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_fenbao/statulist/question/index'
|
url: '/page_fenbao/statulist/question/index'
|
||||||
|
@ -643,19 +651,16 @@
|
||||||
url: '/page_fenbao/statulist/fault/yichang/index'
|
url: '/page_fenbao/statulist/fault/yichang/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
uni.showModal({
|
|
||||||
title: '提示',
|
|
||||||
content: '请打开网络再进行操作',
|
|
||||||
success: function(res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
|
|
||||||
} else if (res.cancel) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '获取网络状态失败',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
console.error(err);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 商户获取手机号
|
// 商户获取手机号
|
||||||
getPhoneNumber(e){
|
getPhoneNumber(e){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user