This commit is contained in:
闫晓茹 2023-11-09 15:55:25 +08:00
parent 945a37ccd6
commit 83ecf6988b
4 changed files with 203 additions and 48 deletions

View File

@ -17,6 +17,7 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/myinformation/myinformation", "path": "pages/myinformation/myinformation",
"style": { "style": {

View File

@ -37,6 +37,7 @@
<image :src="item.leadThumbnailUrl" mode=""></image> <image :src="item.leadThumbnailUrl" mode=""></image>
</view> </view>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -74,6 +75,7 @@
methods: { methods: {
goAppointmentscreening() { goAppointmentscreening() {
// //
if (!this.userInfo) { if (!this.userInfo) {
uni.showModal({ uni.showModal({
title: "提示", title: "提示",
@ -90,7 +92,8 @@
} }
}, },
}) })
} 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)
@ -115,9 +118,21 @@
}, },
//item //item
gohealthitem(item) { gohealthitem(item) {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesB/Healthitem/Healthitem?item=${encodeURIComponent(JSON.stringify(item))}` url: `/pagesB/Healthitem/Healthitem?item=${encodeURIComponent(JSON.stringify(item))}`
}) })
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, },
// //
getHeathHousing() { getHeathHousing() {
@ -138,31 +153,79 @@
// this.$store.dispatch("openPopup"); // this.$store.dispatch("openPopup");
// this.openPopup(); // this.openPopup();
setTimeout(e => { setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/materialbenefits/materialbenefits' url: '/pagesB/materialbenefits/materialbenefits'
}) })
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0) }, 0)
}, },
// //
gosite() { gosite() {
// this.openPopup(); // this.openPopup();
setTimeout(e => { setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/site/site' url: '/pagesB/site/site'
}) })
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0) }, 0)
}, },
// //
gohealth() { gohealth() {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/Healthknowledge/Healthknowledge' url: '/pagesB/Healthknowledge/Healthknowledge'
}) })
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, },
// //
result() { result() {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/SelectItem/SelectItem' url: '/pagesB/SelectItem/SelectItem'
}) })
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, },
@ -170,9 +233,21 @@
goshopping() { goshopping() {
// this.openPopup(); // this.openPopup();
setTimeout(e => { setTimeout(e => {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/shopping/shopping' url: '/pagesB/shopping/shopping'
}) })
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0) }, 0)
}, },
// //

View File

@ -59,6 +59,7 @@
data() { data() {
return { return {
baseurl: '', baseurl: '',
region: '',
tabcurrent: 0, tabcurrent: 0,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@ -70,9 +71,28 @@
}, },
onLoad() { onLoad() {
this.baseurl = baseurl this.baseurl = baseurl
this.info()
this.selectDepartmentinfo(); this.selectDepartmentinfo();
}, },
methods: { methods: {
info() {
this.region = uni.getStorageSync('region')
console.log(this.region, '859')
if (this.region == 3) {
this.$refs.uToast.show({
title: '当前地区不支持,请重新选择区域',
type: 'error',
duration: '2000',
// url:'/pages/homepage/homepage'
})
uni.navigateTo({
'/pages/homepage/homepage'
})
// uni.navigateBack({
// delta: 1
// })
}
},
// //
selectHospitalPersonInfo() { selectHospitalPersonInfo() {
var status = '1' var status = '1'

View File

@ -216,6 +216,63 @@
}, },
info() { info() {
this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION' this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION'
if (!this.formdata.address) {
this.$refs.uToast.show({
title: '请选择地址',
type: 'error',
duration: '1500',
// url:'/pages/homepage/homepage'
})
} else if (!this.formdata.patientName) {
this.$refs.uToast.show({
title: '请选择姓名',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.cardNo) {
this.$refs.uToast.show({
title: '请选择身份证号',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.phone) {
this.$refs.uToast.show({
title: '请选择手机号',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.doctorName) {
this.$refs.uToast.show({
title: '请选择医生',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.problemDescription) {
this.$refs.uToast.show({
title: '请输入问题简述',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.situationDescription) {
this.$refs.uToast.show({
title: '请输入患者个体说明',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.medicalRecord) {
this.$refs.uToast.show({
title: '请输入既往疾病史',
type: 'error',
duration: '1500',
})
} else {
consultationInfo(this.formdata).then(res => { consultationInfo(this.formdata).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$refs.uToast.show({ this.$refs.uToast.show({
@ -232,6 +289,8 @@
}) })
} }
}) })
}
}, },
// //
showPicker() { showPicker() {