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