This commit is contained in:
shidongli 2023-11-15 14:14:12 +08:00
parent fad1cfccf3
commit 024044cc11

View File

@ -43,7 +43,6 @@
<script>
import {
mapState,
mapActions
} from "vuex";
import {
@ -73,48 +72,45 @@
this.getHeathHousing();
},
methods: {
//
...mapActions(["openPopup"]),
goAppointmentscreening() {
//
if (!this.userInfo) {
uni.showModal({
title: "提示",
content: "您还未注册,是否去注册?",
confirmText: '是',
cancelText: '否',
success(res) {
if (res.confirm) {
uni.redirectTo({
url: "/pages/register/register"
})
} else {
wx.exitMiniProgram()
this.openPopup();
setTimeout(e => {
//
if (!this.userInfo) {
uni.showModal({
title: "提示",
content: "您还未注册,是否去注册?",
confirmText: '是',
cancelText: '否',
success(res) {
if (res.confirm) {
uni.redirectTo({
url: "/pages/register/register"
})
} else {
wx.exitMiniProgram()
}
},
})
} else {
getScreening(this.patientId).then(res => {
if (res.code == 200) {
let userinfo = JSON.stringify(this.userInfo)
if (!res.data || res.data == null) {
uni.navigateTo({
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
})
} else {
uni.navigateTo({
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
})
}
}
},
})
}
else {
getScreening(this.patientId).then(res => {
if (res.code == 200) {
let userinfo = JSON.stringify(this.userInfo)
if (!res.data || res.data == null) {
uni.navigateTo({
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
})
} else {
uni.navigateTo({
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
})
}
}
})
}
// uni.navigateTo({
// url: '/pagesB/screenorder/screenorder'
// })
// uni.navigateTo({
// url: '/pagesB/orderlist/orderlist'
// })
})
}
}, 0)
},
//item
gohealthitem(item) {
@ -132,7 +128,6 @@
url: '/pages/login/login'
})
}
},
//
getHeathHousing() {
@ -146,8 +141,6 @@
})
},
//
//
...mapActions(["openPopup"]),
gomaterialbenefits() {
//
// this.$store.dispatch("openPopup");
@ -188,7 +181,6 @@
url: '/pages/login/login'
})
}
}, 0)
},
//
@ -207,31 +199,29 @@
url: '/pages/login/login'
})
}
},
//
result() {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({
url: '/pagesB/SelectItem/SelectItem'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
this.openPopup();
setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({
url: '/pagesB/SelectItem/SelectItem'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 50)
},
//
goshopping() {
// this.openPopup();
setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
@ -247,34 +237,27 @@
url: '/pages/login/login'
})
}
}, 0)
},
//
goconsultationplatform() {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
const value3 = uni.getStorageSync('region');
if (value && value2 &&value3!=3) {
uni.navigateTo({
url: '/pagesB/consultationplatform/consultationplatform',
})
} 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',
})
}
this.openPopup();
setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({
url: '/pagesB/consultationplatform/consultationplatform',
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0)
},
},
//1.
@ -300,4 +283,4 @@
<style lang="scss">
@import "./medicalservice.scss";
</style>
</style>