修改
This commit is contained in:
parent
edf0aee606
commit
1882b9e51c
@ -89,6 +89,7 @@
|
|||||||
return {
|
return {
|
||||||
patientName: '',
|
patientName: '',
|
||||||
userinfo: null,
|
userinfo: null,
|
||||||
|
infotitle: null,
|
||||||
region: '',
|
region: '',
|
||||||
checkSign: null,
|
checkSign: null,
|
||||||
address: '',
|
address: '',
|
||||||
@ -113,13 +114,12 @@
|
|||||||
uni.setStorageSync("region", 3)
|
uni.setStorageSync("region", 3)
|
||||||
}
|
}
|
||||||
this.region = uni.getStorageSync('region')
|
this.region = uni.getStorageSync('region')
|
||||||
if (this.userinfo && this.region != "3") {
|
if (this.userinfo && this.region != 3) {
|
||||||
this.patientName = this.userinfo.patientName
|
this.patientName = this.userinfo.patientName
|
||||||
checkSignApply(this.userinfo.cardNo).then(res => {
|
checkSignApply(this.userinfo.cardNo).then(res => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.checkSign = res.data.code
|
this.checkSign = res.data.code
|
||||||
this.info = res.data.info
|
this.infotitle = res.data.info
|
||||||
|
|
||||||
}
|
}
|
||||||
// if (res.data.code == 0) {
|
// if (res.data.code == 0) {
|
||||||
// this.checkSign = true
|
// this.checkSign = true
|
||||||
@ -129,11 +129,9 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.patientName = ''
|
this.patientName = ''
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
city() {
|
city() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/location/location'
|
url: '/pages/location/location'
|
||||||
@ -145,7 +143,6 @@
|
|||||||
url: "/pages/login/login"
|
url: "/pages/login/login"
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
gologin() {
|
gologin() {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请先登录',
|
||||||
@ -160,34 +157,28 @@
|
|||||||
title: '当前绑定地市不支持',
|
title: '当前绑定地市不支持',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '3000',
|
duration: '3000',
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
// 家医签约
|
// 家医签约
|
||||||
goonline() {
|
goonline() {
|
||||||
if (!this.userinfo) {
|
if (!this.userinfo) {
|
||||||
this.gologin();
|
this.gologin();
|
||||||
} else {
|
} else {
|
||||||
if (this.region == "3") {
|
if (this.region == 3) {
|
||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesB/mysigning/mysigning"
|
url: "/pagesB/mysigning/mysigning"
|
||||||
@ -195,12 +186,8 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.family()
|
this.family()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 积分兑换
|
// 积分兑换
|
||||||
@ -208,48 +195,35 @@
|
|||||||
if (!this.userinfo) {
|
if (!this.userinfo) {
|
||||||
this.gologin();
|
this.gologin();
|
||||||
} else {
|
} else {
|
||||||
if (this.region == "3") {
|
if (this.region == 3) {
|
||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.family()
|
this.family()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 健康档案
|
// 健康档案
|
||||||
@ -260,9 +234,6 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/Healthrecords/Healthrecords"
|
url: "/pagesC/Healthrecords/Healthrecords"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 筛查记录
|
// 筛查记录
|
||||||
@ -306,44 +277,31 @@
|
|||||||
if (!this.userinfo) {
|
if (!this.userinfo) {
|
||||||
this.gologin();
|
this.gologin();
|
||||||
} else {
|
} else {
|
||||||
// if (this.region == "3") {
|
// if (this.region == 3) {
|
||||||
// this.family()
|
// this.family()
|
||||||
// } else {
|
// } else {
|
||||||
// if (this.cityCode == "1" || this.cityCode == "2") {
|
// if (this.cityCode == 1 || this.cityCode == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// } else {
|
// } else {
|
||||||
// this.family()
|
// this.family()
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 服务记录
|
// 服务记录
|
||||||
@ -351,40 +309,30 @@
|
|||||||
if (!this.userinfo) {
|
if (!this.userinfo) {
|
||||||
this.gologin();
|
this.gologin();
|
||||||
} else {
|
} else {
|
||||||
if (this.region == "3") {
|
if (this.region == 3) {
|
||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/servicerecord/servicerecord"
|
url: "/pagesC/servicerecord/servicerecord"
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.family()
|
this.family()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 我的预约
|
// 我的预约
|
||||||
@ -392,39 +340,30 @@
|
|||||||
if (!this.userinfo) {
|
if (!this.userinfo) {
|
||||||
this.gologin();
|
this.gologin();
|
||||||
} else {
|
} else {
|
||||||
if (this.region == "3") {
|
if (this.region == 3) {
|
||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.infotitle,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/Myappointment/Myappointment"
|
url: "/pagesC/Myappointment/Myappointment"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.family()
|
this.family()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='gointegral'>
|
<view class="item" @tap='gointegral'>
|
||||||
<view class="number" v-if="appPersonallist.integral==null">
|
<view class="number" v-if="!appPersonallist.integral">
|
||||||
0
|
0
|
||||||
</view>
|
</view>
|
||||||
<view class="number" v-else>
|
<view class="number" v-else>
|
||||||
@ -54,7 +54,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='gocoupon'>
|
<view class="item" @tap='gocoupon'>
|
||||||
<view class="number"
|
<view class="number"
|
||||||
v-if="appPersonallist.patientCouponCount==0 ||appPersonallist.patientCouponCount==undefined">
|
v-if="appPersonallist.patientCouponCount==0 ||!appPersonallist.patientCouponCount">
|
||||||
0
|
0
|
||||||
</view>
|
</view>
|
||||||
<view class="number" v-else>
|
<view class="number" v-else>
|
||||||
@ -238,14 +238,12 @@
|
|||||||
showhome: false, //切换
|
showhome: false, //切换
|
||||||
familyList: null, //切换列表
|
familyList: null, //切换列表
|
||||||
userinfo: {}, //用户信息
|
userinfo: {}, //用户信息
|
||||||
cityCode: '',
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
||||||
this.userinfo = uni.getStorageSync('userinfo')
|
this.userinfo = uni.getStorageSync('userinfo')
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.cityCode = uni.getStorageSync('region');
|
|
||||||
this.myInfo()
|
this.myInfo()
|
||||||
this.getpersnoal()
|
this.getpersnoal()
|
||||||
},
|
},
|
||||||
@ -462,18 +460,22 @@
|
|||||||
},
|
},
|
||||||
//行为积分
|
//行为积分
|
||||||
goBehaviorpoints() {
|
goBehaviorpoints() {
|
||||||
uni.navigateTo({
|
if (uni.getStorageSync('region') == 3) {
|
||||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
this.$refs.uToast.show({
|
||||||
})
|
title: '当前地区不支持,请选择其它地区',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 切换家庭成员
|
// 切换家庭成员
|
||||||
homeshow() {
|
homeshow() {
|
||||||
|
|
||||||
this.showhome = true
|
this.showhome = true
|
||||||
this.getpersnoal()
|
this.getpersnoal()
|
||||||
// this.myInfo()
|
// this.myInfo()
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//管理家庭成员
|
//管理家庭成员
|
||||||
gomanagefamily() {
|
gomanagefamily() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user