校验
This commit is contained in:
parent
945a37ccd6
commit
83ecf6988b
@ -17,6 +17,7 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/myinformation/myinformation",
|
"path": "pages/myinformation/myinformation",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@ -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)
|
||||||
},
|
},
|
||||||
//问诊平台
|
//问诊平台
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user