开关
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,80 +582,85 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
btnindex(num) {
|
btnindex(num) {
|
||||||
this.onControltap()
|
uni.getNetworkType({
|
||||||
if (this.wangluo = true) { //判断是否有网络在进行点击
|
success: (res) => {
|
||||||
if (num == 2) {
|
if (res.networkType === 'none') {
|
||||||
uni.navigateTo({
|
uni.showToast({
|
||||||
url: '/page_fenbao/statulist/question/index'
|
title: '当前无网络连接',
|
||||||
})
|
icon: 'none',
|
||||||
} else if (num == 3) {
|
duration:2000
|
||||||
uni.navigateTo({
|
});
|
||||||
url: '/page_fenbao/statulist/about/index?tit=' + '关于我们'
|
} else {
|
||||||
})
|
this.onControltap()
|
||||||
} else if (num == 1) {
|
if (num == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_fenbao/statulist/myorder/index'
|
url: '/page_fenbao/statulist/question/index'
|
||||||
})
|
})
|
||||||
} else if (num == 4) {
|
} else if (num == 3) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_fenbao/statulist/merchant/index'
|
url: '/page_fenbao/statulist/about/index?tit=' + '关于我们'
|
||||||
})
|
})
|
||||||
} else if (num == 5) {
|
} else if (num == 1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_fenbao/statulist/nearby/index'
|
url: '/page_fenbao/statulist/myorder/index'
|
||||||
})
|
})
|
||||||
} else if (num == 6) {
|
} else if (num == 4) {
|
||||||
if(this.dlflag == true){
|
uni.navigateTo({
|
||||||
if((this.type == 2 || this.type == 3) && this.isStaff == true){
|
url: '/page_fenbao/statulist/merchant/index'
|
||||||
this.xuanzeflag = true
|
})
|
||||||
}else if((this.type == 2 || this.type == 3) && this.isStaff != true){
|
} else if (num == 5) {
|
||||||
if(this.phonenumber == ''){
|
uni.navigateTo({
|
||||||
this.huoqutelflag = true
|
url: '/page_fenbao/statulist/nearby/index'
|
||||||
this.xuanzeflag = false
|
})
|
||||||
}else{
|
} else if (num == 6) {
|
||||||
this.xuanzeflag = false
|
if(this.dlflag == true){
|
||||||
uni.switchTab({
|
if((this.type == 2 || this.type == 3) && this.isStaff == true){
|
||||||
url: '/pages/tj'
|
this.xuanzeflag = true
|
||||||
})
|
}else if((this.type == 2 || this.type == 3) && this.isStaff != true){
|
||||||
}
|
if(this.phonenumber == ''){
|
||||||
}else if(this.isStaff == true){
|
this.huoqutelflag = true
|
||||||
if(this.phonenumber == ''){
|
this.xuanzeflag = false
|
||||||
this.huoqutelflag = true
|
}else{
|
||||||
this.xuanzeflag = false
|
this.xuanzeflag = false
|
||||||
}else{
|
uni.switchTab({
|
||||||
this.xuanzeflag = false
|
url: '/pages/tj'
|
||||||
uni.navigateTo({
|
})
|
||||||
url: '/page_fenbao/hehuoren/shouye'
|
}
|
||||||
})
|
}else if(this.isStaff == true){
|
||||||
}
|
if(this.phonenumber == ''){
|
||||||
}else{
|
this.huoqutelflag = true
|
||||||
uni.showToast({
|
this.xuanzeflag = false
|
||||||
title: '您当前没有权限进入',
|
}else{
|
||||||
icon: 'none',
|
this.xuanzeflag = false
|
||||||
duration: 1000
|
uni.navigateTo({
|
||||||
})
|
url: '/page_fenbao/hehuoren/shouye'
|
||||||
}
|
})
|
||||||
}else{
|
}
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: '您当前没有权限进入',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
} else if (num == 7) {
|
} else if (num == 7) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_fenbao/statulist/fault/yichang/index'
|
url: '/page_fenbao/statulist/fault/yichang/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
uni.showModal({
|
},
|
||||||
title: '提示',
|
fail: (err) => {
|
||||||
content: '请打开网络再进行操作',
|
uni.showToast({
|
||||||
success: function(res) {
|
title: '获取网络状态失败',
|
||||||
if (res.confirm) {
|
icon: 'none'
|
||||||
|
});
|
||||||
} else if (res.cancel) {
|
console.error(err);
|
||||||
|
}
|
||||||
}
|
})
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 商户获取手机号
|
// 商户获取手机号
|
||||||
getPhoneNumber(e){
|
getPhoneNumber(e){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user