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