首页修改

This commit is contained in:
shidongli 2023-11-01 14:30:45 +08:00
parent 21e7835c7a
commit ca0e8152f8
2 changed files with 20 additions and 27 deletions

View File

@ -4,7 +4,8 @@ import baseurl from './baseurl.js'
var request = function(config) {
return new Promise((resolve, rejected) => {
if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url !=
"/nurseApplet/chatRecord/sendMessage") {
"/nurseApplet/chatRecord/sendMessage" && config.url !=
`/applet/sign/apply/checkSignApply/` + uni.getStorageSync('userinfo').cardNo) {
uni.showLoading({
title: ''
});
@ -27,4 +28,4 @@ var request = function(config) {
})
}
export default request
export default request

View File

@ -115,16 +115,8 @@
uni.setStorageSync("region", 3)
}
this.region = uni.getStorageSync('region')
// if (this.region) {
// if (this.region == "1" || this.region == "2") {
// } else {
// this.family()
// }
// }
if (this.userinfo) {
if (this.userinfo && this.region!="3") {
this.patientName = this.userinfo.patientName
checkSignApply(this.userinfo.cardNo).then(res => {
if (res.data.code != 0) {
@ -163,7 +155,7 @@
//
family() {
this.$refs.uToast.show({
title: '请切换城市,再操作家医相关功能',
title: '当前绑定地市不支持',
type: 'error',
duration: '3000',
@ -177,7 +169,7 @@
} else {
if (this.region == "3") {
this.family()
} else{
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
this.$refs.uToast.show({
@ -193,9 +185,9 @@
}
} else {
this.family()
}
}
@ -208,7 +200,7 @@
} else {
if (this.region == "3") {
this.family()
} else{
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
this.$refs.uToast.show({
@ -222,15 +214,15 @@
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
}
} else {
this.family()
}
}
}
},
@ -327,18 +319,18 @@
} else {
if (this.region == "3") {
this.family()
} else{
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
uni.navigateTo({
url: "/pagesC/servicerecord/servicerecord"
})
} else {
this.family()
}
}
}
},
@ -349,7 +341,7 @@
} else {
if (this.region == "3") {
this.family()
} else{
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
this.$refs.uToast.show({
@ -363,11 +355,11 @@
url: "/pagesC/Myappointment/Myappointment"
})
}
} else {
this.family()
}
}