diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 132c967..6a39177 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -114,7 +114,7 @@ this.userinfo = uni.getStorageSync('userinfo') this.address = uni.getStorageSync('location') this.openid = uni.getStorageSync('openid'); - this.region = uni.getStorageSync('region') + this.region = Number(uni.getStorageSync('region')) if (this.userinfo && this.region != 3) { checkSignApply(this.userinfo.cardNo).then(res => { if (res.data) { @@ -189,13 +189,13 @@ this.$refs.uToast.show({ title: '未签约,请先签约', type: 'error', - duration:'1500', + duration: '1500', url: "/pagesC/Onlinesigning/Onlinesigning" }) } else if (this.checkSign == "01") { this.$refs.uToast.show({ title: this.infotitle, - duration:'1500', + duration: '1500', type: 'error', }) } else { @@ -223,14 +223,14 @@ this.$refs.uToast.show({ title: this.infotitle, type: 'error', - duration:'1500', + duration: '1500', url: "/pagesC/Onlinesigning/Onlinesigning" }) } else if (this.checkSign == "01") { this.$refs.uToast.show({ title: this.infotitle, type: 'error', - duration:'1500', + duration: '1500', }) } else { uni.navigateTo({ @@ -308,13 +308,13 @@ this.$refs.uToast.show({ title: '未签约,请先签约', type: 'error', - duration:'1500', + duration: '1500', url: "/pagesC/Onlinesigning/Onlinesigning" }) } else if (this.checkSign == "01") { this.$refs.uToast.show({ title: this.infotitle, - duration:'1500', + duration: '1500', type: 'error', }) } else { @@ -341,7 +341,7 @@ if (this.checkSign == "0") { this.$refs.uToast.show({ title: '未签约,请先签约', - duration:'1500', + duration: '1500', type: 'error', url: "/pagesC/Onlinesigning/Onlinesigning" @@ -350,7 +350,7 @@ this.$refs.uToast.show({ title: this.infotitle, type: 'error', - duration:'1500', + duration: '1500', }) } else { uni.navigateTo({ @@ -376,14 +376,14 @@ this.$refs.uToast.show({ title: '未签约,请先签约', type: 'error', - duration:'1500', + duration: '1500', url: "/pagesC/Onlinesigning/Onlinesigning" }) } else if (this.checkSign == "01") { this.$refs.uToast.show({ title: this.infotitle, type: 'error', - duration:'1500', + duration: '1500', }) } else { uni.navigateTo({ @@ -402,4 +402,4 @@ + \ No newline at end of file diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 8db9679..c28016a 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -236,7 +236,7 @@ onShow() { // this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png' this.appPersonallist = uni.getStorageSync('userinfo') - this.region = uni.getStorageSync('region') + this.region = Number(uni.getStorageSync('region')) this.baseurl = baseurl this.myInfo() this.getpersnoal() diff --git a/pagesB/consultationplatform/consultationplatform.vue b/pagesB/consultationplatform/consultationplatform.vue index bd82293..6302fc6 100644 --- a/pagesB/consultationplatform/consultationplatform.vue +++ b/pagesB/consultationplatform/consultationplatform.vue @@ -71,7 +71,7 @@ }; }, onLoad() { - this.region = uni.getStorageSync('region') + this.region = Number(uni.getStorageSync('region')) this.baseurl = baseurl this.selectDepartmentinfo(); }, diff --git a/pagesC/testreport/testreport.vue b/pagesC/testreport/testreport.vue index 6c768a0..46df589 100644 --- a/pagesC/testreport/testreport.vue +++ b/pagesC/testreport/testreport.vue @@ -36,7 +36,7 @@ }, onLoad() { this.baseurl = baseurl - this.region = uni.getStorageSync('region') + this.region = Number(uni.getStorageSync('region')) if (this.region == 1) { dzrecord(uni.getStorageSync('userinfo').cardNo).then(res => { res.data.forEach(e => {