首页修改

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