This commit is contained in:
3321822538@qq.com 2025-06-06 11:32:35 +08:00
parent 388f65c846
commit 02a51f218c
2 changed files with 84 additions and 75 deletions

View File

@ -184,6 +184,9 @@
//
btndl() {
uni.showLoading({
title: '登录中...'
})
let data = {
username: this.zh,
password: this.mm
@ -193,6 +196,7 @@
wx.setStorageSync('token', res.token);
this.ceshi()
} else {
uni.hideLoading()
uni.showToast({
title: res.msg,
icon: 'none',

View File

@ -582,8 +582,16 @@
},
btnindex(num) {
uni.getNetworkType({
success: (res) => {
if (res.networkType === 'none') {
uni.showToast({
title: '当前无网络连接',
icon: 'none',
duration:2000
});
} else {
this.onControltap()
if (this.wangluo = true) { //
if (num == 2) {
uni.navigateTo({
url: '/page_fenbao/statulist/question/index'
@ -643,19 +651,16 @@
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){