首页判断
This commit is contained in:
parent
4ba7fd8919
commit
c1c9243f30
@ -59,6 +59,12 @@
|
||||
服务记录
|
||||
</view>
|
||||
</view>
|
||||
<view class="home">
|
||||
<!-- <image src="/static/pageC/health.png" mode=""></image>
|
||||
<view class="name">
|
||||
健康档案
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="contentbottom">
|
||||
<view class="health">
|
||||
@ -104,7 +110,7 @@
|
||||
this.openid = uni.getStorageSync('openid');
|
||||
if (uni.getStorageSync('userinfo')) {
|
||||
this.userinfo = uni.getStorageSync('userinfo')
|
||||
this.cityCode = Number(this.userinfo.cityCode);
|
||||
// this.cityCode = this.userinfo.cityCode;
|
||||
}
|
||||
if (this.address == '德州市') {
|
||||
uni.setStorageSync("region", 1)
|
||||
@ -167,7 +173,7 @@
|
||||
if (this.region == 3) {
|
||||
this.family()
|
||||
} else {
|
||||
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||
if (this.region == 1 || this.region == 2) {
|
||||
if (this.checkSign == "0") {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -198,7 +204,7 @@
|
||||
if (this.region == 3) {
|
||||
this.family()
|
||||
} else {
|
||||
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||
if (this.region == 1 || this.region == 2) {
|
||||
if (this.checkSign == "0") {
|
||||
this.$refs.uToast.show({
|
||||
title: this.infotitle,
|
||||
@ -210,7 +216,8 @@
|
||||
title: this.infotitle,
|
||||
type: 'error',
|
||||
})
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
||||
})
|
||||
@ -272,10 +279,10 @@
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
// if (this.region == 3) {
|
||||
// this.family()
|
||||
// } else {
|
||||
// if (this.cityCode == 1 || this.cityCode == 2) {
|
||||
if (this.region == 3) {
|
||||
this.family()
|
||||
} else {
|
||||
if (this.region == 1 || this.region == 2) {
|
||||
if (this.checkSign == "0") {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -292,11 +299,10 @@
|
||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||
})
|
||||
}
|
||||
// } else {
|
||||
// this.family()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
this.family()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// 服务记录
|
||||
@ -307,7 +313,7 @@
|
||||
if (this.region == 3) {
|
||||
this.family()
|
||||
} else {
|
||||
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||
if (this.region == 1 || this.region == 2) {
|
||||
if (this.checkSign == "0") {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -338,7 +344,7 @@
|
||||
if (this.region == 3) {
|
||||
this.family()
|
||||
} else {
|
||||
if (this.cityCode == 1 || this.cityCode == 2) {
|
||||
if (this.region == 1 || this.region == 2) {
|
||||
if (this.checkSign == "0") {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -368,3 +374,4 @@
|
||||
<style lang="scss">
|
||||
@import "./homepage.scss";
|
||||
</style>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user