This commit is contained in:
shidongli 2023-11-15 10:47:50 +08:00
parent 54af0a0bd0
commit 0154813391
2 changed files with 100 additions and 80 deletions

View File

@ -43,6 +43,7 @@
<script>
import {
mapState,
mapActions
} from "vuex";
import {
@ -72,12 +73,9 @@
this.getHeathHousing();
},
methods: {
//
...mapActions(["openPopup"]),
goAppointmentscreening() {
this.openPopup();
setTimeout(e => {
//
if (!this.userInfo) {
uni.showModal({
title: "提示",
@ -94,7 +92,8 @@
}
},
})
} else {
}
else {
getScreening(this.patientId).then(res => {
if (res.code == 200) {
let userinfo = JSON.stringify(this.userInfo)
@ -110,7 +109,12 @@
}
})
}
}, 0)
// uni.navigateTo({
// url: '/pagesB/screenorder/screenorder'
// })
// uni.navigateTo({
// url: '/pagesB/orderlist/orderlist'
// })
},
//item
gohealthitem(item) {
@ -128,6 +132,7 @@
url: '/pages/login/login'
})
}
},
//
getHeathHousing() {
@ -141,6 +146,8 @@
})
},
//
//
...mapActions(["openPopup"]),
gomaterialbenefits() {
//
// this.$store.dispatch("openPopup");
@ -181,6 +188,7 @@
url: '/pages/login/login'
})
}
}, 0)
},
//
@ -199,11 +207,10 @@
url: '/pages/login/login'
})
}
},
//
result() {
this.openPopup();
setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
@ -218,10 +225,13 @@
url: '/pages/login/login'
})
}
}, 50)
},
//
goshopping() {
// this.openPopup();
setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
@ -237,27 +247,34 @@
url: '/pages/login/login'
})
}
}, 0)
},
//
goconsultationplatform() {
this.openPopup();
setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
const value3 = uni.getStorageSync('region');
if (value && value2 &&value3!=3) {
uni.navigateTo({
url: '/pagesB/consultationplatform/consultationplatform',
})
} else {
} else if(!value && !value2) {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}else if(value3==3){
this.$refs.uToast.show({
title: '请重新选择区域',
type: 'error',
duration: '1000',
})
}
}, 0)
},
},
//1.

View File

@ -71,20 +71,17 @@
};
},
onLoad() {
this.region = uni.getStorageSync('region')
this.baseurl = baseurl
this.info()
this.selectDepartmentinfo();
},
methods: {
info() {
this.region = uni.getStorageSync('region')
if (this.region == 3) {
this.$refs.uToast.show({
title: '当前地区不支持,请重新选择区域',
type: 'error',
duration: '2000',
})
}
},
//
selectHospitalPersonInfo() {
@ -120,9 +117,15 @@
},
//
goimagetextConsultation() {
if(this.region != 3){
uni.navigateTo({
url: '/pagesB/imagetextConsultation/imagetextConsultation'
})
}else{
this.info()
}
},
//
// godoctordetails() {