From e8f32051879d7a1743767d2e180bca1160ac26f3 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Mon, 21 Mar 2022 09:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=9F=8E=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E9=80=89=E6=8B=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/auth/auth-userInfo-mobileInfo.vue | 5 +- jsFile/tools.js | 5 +- pages/login/login.vue | 1 + pages/tabbar/cate/cate.vue | 4 +- pages/tabbar/my/staffDuan.vue | 2 +- pages/tabbar/pagehome/pagehome.vue | 16 ++- pages/tabbar/shop/shop.vue | 45 +++--- pagesA/activityTask/activityTask.vue | 2 +- pagesA/coupon/coupon.vue | 2 +- pagesA/integralManage/integralManage.vue | 2 +- .../makeAnPppointment/makeAnPppointment.vue | 2 +- pagesA/member/member.vue | 2 +- pagesA/my-diary-edit/my-diary-edit.vue | 2 +- pagesA/my-diary/my-diary.vue | 2 +- pagesA/myAddress/myAddress.vue | 2 +- pagesA/myOrder/myOrder.vue | 2 +- pagesA/peacockCoin/peacockCoin.vue | 2 +- pagesA/pointsMall/pointsMall.vue | 2 +- pagesA/ppointmentEv/ppointmentEv.vue | 2 +- pagesA/shopCart/shopCart.vue | 2 +- pagesA/signIn/signIn.vue | 2 +- pagesA/suggestions/suggestions.vue | 2 +- pagesB/aboutUs/aboutUs.vue | 2 +- pagesB/articleDetail/articleDetail.vue | 2 +- pagesB/customer/customer.vue | 2 +- pagesB/customerCheck/customerCheck.vue | 2 +- pagesB/customerList/customerList.vue | 2 +- pagesB/doctorDetail/doctorDetail.vue | 4 +- pagesB/messagecenter/messagecenter.vue | 2 +- pagesB/myCollection/myCollection.vue | 2 +- pagesB/mysharer/mysharer.vue | 2 +- pagesB/orderDetail/orderDetail.vue | 2 +- pagesB/personalPoster/personalPoster.vue | 2 +- pagesB/problemDetail/problemDetail.vue | 5 +- pagesB/problemList/problemList.vue | 2 +- pagesB/searchPage/searchPage.vue | 132 ++++++++++-------- pagesB/sharingCenter/sharingCenter.vue | 2 +- pagesB/shopDetail/shopDetail.vue | 2 +- .../.sourcemap/mp-weixin/common/main.js.map | 2 +- .../.sourcemap/mp-weixin/common/vendor.js.map | 2 +- .../mp-weixin/components/backTop.js.map | 2 +- .../components/cate-items/cate-pu.js.map | 2 +- .../mp-weixin/components/foot-tab.js.map | 2 +- .../mp-weixin/components/list-pu.js.map | 2 +- .../mp-weixin/components/nothing-page.js.map | 2 +- .../components/public-customer.js.map | 2 +- .../simple-address/simple-address.js.map | 2 +- .../mp-weixin/components/status-nav.js.map | 2 +- .../mp-weixin/components/swiper-pu.js.map | 2 +- .../mp-weixin/pages/login/login.js.map | 2 +- .../mp-weixin/pages/tabbar/cate/cate.js.map | 2 +- .../pages/tabbar/pageHome/pageHome.js.map | 2 +- .../mp-weixin/pages/tabbar/shop/shop.js.map | 2 +- .../makeAnPppointment.js.map | 2 +- .../pagesA/nodifyData/nodifyData.js.map | 2 +- .../pagesA/ppointmentEv/ppointmentEv.js.map | 2 +- .../pagesA/suggestions/suggestions.js.map | 2 +- .../mp-weixin/pagesB/aboutUs/aboutUs.js.map | 2 +- .../pagesB/articleDetail/articleDetail.js.map | 2 +- .../mp-weixin/pagesB/customer/customer.js.map | 2 +- .../pagesB/customerList/customerList.js.map | 2 +- .../pagesB/doctorDetail/doctorDetail.js.map | 2 +- .../pagesB/messagecenter/messagecenter.js.map | 2 +- .../pagesB/myCollection/myCollection.js.map | 2 +- .../mp-weixin/pagesB/mysharer/mysharer.js.map | 2 +- .../personalPoster/personalPoster.js.map | 2 +- .../pagesB/problemDetail/problemDetail.js.map | 2 +- .../pagesB/searchPage/searchPage.js.map | 2 +- .../pagesB/sharingCenter/sharingCenter.js.map | 2 +- .../mp-weixin/pagesB/video/playVideo.js.map | 2 +- 70 files changed, 185 insertions(+), 154 deletions(-) diff --git a/components/auth/auth-userInfo-mobileInfo.vue b/components/auth/auth-userInfo-mobileInfo.vue index 5c96071..b80bb3b 100644 --- a/components/auth/auth-userInfo-mobileInfo.vue +++ b/components/auth/auth-userInfo-mobileInfo.vue @@ -84,14 +84,14 @@ this.showAuth = true; } let pagesArr = getCurrentPages(); - console.log(pagesArr.length,'获取页面栈大小'); + // console.log(pagesArr.length,'获取页面栈大小'); if(pagesArr.length==1) { uni.setStorageSync('outside',6); } }, methods:{ loginEv(data){ - uni.login({ + uni.login({ provider: 'weixin', success: (res)=> { if (res.code) { @@ -161,6 +161,7 @@ uni.setStorageSync('token',res.data.token); // 缓存token uni.setStorageSync('expire',res.data.expire); // 缓存失效时间(时间戳格式) uni.setStorageSync('invite_code',res.data.invite_code); // 缓存用户邀请码 + uni.setStorageSync('is_active',res.data.is_active); uni.setStorageSync('phone_active',res.data.phone_active); // 是否第一次授权 this.isAnimation++; if(res.data.phone_active==1){ diff --git a/jsFile/tools.js b/jsFile/tools.js index 5ba4877..2c36063 100644 --- a/jsFile/tools.js +++ b/jsFile/tools.js @@ -245,7 +245,7 @@ const tools = { // 判断是否授权,没授权,前往登录页面授权 judgeAuth(){ let auth = true; - if(uni.getStorageSync('phone_active')==0) { + if(uni.getStorageSync('phone_active')==0 || uni.getStorageSync('is_active')==0) { uni.navigateTo({url:'/pages/login/login'}); auth = false } else { @@ -347,7 +347,7 @@ const tools = { var date = new Date(); var timestamp = date.getTime();//精确到毫秒 // 如果过期时间 减 10分钟 小于当前时间,刷新token - if((uni.getStorageSync('expire')*1000 - 600000) < timestamp) { + if((uni.getStorageSync('expire')*1000 - 600000) < timestamp && uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0) { // 调用登录事件 this.loginEv(); } @@ -368,6 +368,7 @@ const tools = { uni.setStorageSync('token',res.data.data.token); // 缓存token uni.setStorageSync('expire',res.data.data.expire); // 缓存失效时间(时间戳格式) uni.setStorageSync('phone_active',res.data.data.phone_active); // 是否绑定手机号 + uni.setStorageSync('is_active',res.data.data.is_active)//是否第一次授权 } } }) diff --git a/pages/login/login.vue b/pages/login/login.vue index 23bd429..128445e 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -167,6 +167,7 @@ uni.setStorageSync('token',res.data.token)//缓存token uni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式) uni.setStorageSync('phone_active',res.data.phone_active)//是否第一次授权 + uni.setStorageSync('is_active',res.data.is_active)//是否第一次授权 uni.setStorageSync('invite_code',res.data.invite_code) uni.hideToast() // if(res.data.phone_active!=1){ diff --git a/pages/tabbar/cate/cate.vue b/pages/tabbar/cate/cate.vue index de8087d..bacad93 100644 --- a/pages/tabbar/cate/cate.vue +++ b/pages/tabbar/cate/cate.vue @@ -212,14 +212,14 @@ this.$toolAll.tools.plantPoint(7); this.checkSwi() - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkBZ()//调用病种列表事件 } }, onShow() { this.$toolAll.tools.isLogin(); this.isAutoPlay = true; - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ if(this.category_id!='') this.checkCate(this.category_id)//调用左侧列表点击事件 this.$requst.post('index/mini-program-setting').then(res=>{ // log('数据:',res); diff --git a/pages/tabbar/my/staffDuan.vue b/pages/tabbar/my/staffDuan.vue index bcb3f07..1ed4e55 100644 --- a/pages/tabbar/my/staffDuan.vue +++ b/pages/tabbar/my/staffDuan.vue @@ -238,7 +238,7 @@ uni.removeStorageSync('uinfo')//清空用户缓存信息 this.$toolAll.tools.isLogin(); uni.removeStorageSync('shareAll')//清空分享中心里的统计信息 - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkInfo(); this.$requst.post('index/mini-program-setting').then(res=>{ // log('数据:',res); diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue index 7de7e80..8e2c0b4 100644 --- a/pages/tabbar/pagehome/pagehome.vue +++ b/pages/tabbar/pagehome/pagehome.vue @@ -198,11 +198,12 @@ this.$requst.post('user/login',params).then(res => { uni.setStorageSync('phone_active',res.data.phone_active); uni.setStorageSync('invite_code',res.data.invite_code); + uni.setStorageSync('is_active',res.data.is_active)//是否第一次授权 uni.setStorageSync('token',res.data.token); },error => {}) }, }); - } else if(uni.getStorageSync('token')=='' || uni.getStorageSync('phone_active')==0){ + } else if(uni.getStorageSync('token')=='' || uni.getStorageSync('phone_active')==0 && uni.getStorageSync('is_active')!=0){ this.loginEv(options); } const query = wx.createSelectorQuery() @@ -236,6 +237,7 @@ this.$requst.post('user/login',params).then(res => { uni.setStorageSync('phone_active',res.data.phone_active); uni.setStorageSync('invite_code',res.data.invite_code); + uni.setStorageSync('is_active',res.data.is_active)//是否第一次授权 uni.setStorageSync('token',res.data.token); },error => {}) }, @@ -523,8 +525,16 @@ searchEv(){//搜索事件 // log(this.searchVal); if(this.$toolAll.tools.judgeAuth()){ - uni.navigateTo({ - url:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal + this.$requst.post('archives/keyword-check',{keyword:this.searchVal}).then(res=>{ + if(res.data.has) { + uni.navigateTo({ + url:`/${res.data.target}` + }) + } else { + uni.navigateTo({ + url:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal + }) + } }) } }, diff --git a/pages/tabbar/shop/shop.vue b/pages/tabbar/shop/shop.vue index db63f0a..2028dba 100644 --- a/pages/tabbar/shop/shop.vue +++ b/pages/tabbar/shop/shop.vue @@ -25,7 +25,7 @@ {{doctorVal}}× {{activityVal}}× - + {{cateTitle}} @@ -34,9 +34,9 @@ 医生选择 - - - + + + 姓名:{{item.doctor_extra.name}} @@ -46,12 +46,12 @@ - 重置 + 重置 筛选 - + @@ -244,7 +244,7 @@ // 调用查询轮播事件 this.checkSwi(); - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkSX(); this.$requst.post('index/mini-program-setting').then(res=>{ // log('数据:',res); @@ -317,20 +317,25 @@ this.showDoctor = false; }, chooseEv(){//查询医生列表 - console.log(this.dataList.length); - if(this.dataList.length){ + this.$requst.post('user/doctor-list',{page:1,size:1000}).then(res=>{ + if(res.code==0){ + this.doctor_name = ''; + if(res.data.list.length!=0){ + this.showDoctor = true; + this.doctorList = res.data.list; + } else this.$toolAll.tools.showToast('暂无医生可选'); + } else this.$toolAll.tools.showToast(res.msg); + }) + }, + // 医生选择失去焦点 + doctorBlur(){ + setTimeout(()=>{ this.showDoctor = false; - } else { - this.$requst.post('user/doctor-list',{page:1,size:1000}).then(res=>{ - if(res.code==0){ - this.doctor_name = ''; - if(res.data.list.length!=0){ - this.showDoctor = true; - this.doctorList = res.data.list; - } else this.$toolAll.tools.showToast('暂无医生可选'); - } else this.$toolAll.tools.showToast(res.msg); - }) - } + },500) + }, + closePop(){ + this.isXiao = false; + this.showDoctor = false; }, cartNumEv(){//购物车数量 this.$requst.post('order/shopping-cart-count',{type:'spu'}).then(res=>{ diff --git a/pagesA/activityTask/activityTask.vue b/pagesA/activityTask/activityTask.vue index 1536274..61e2b41 100644 --- a/pagesA/activityTask/activityTask.vue +++ b/pagesA/activityTask/activityTask.vue @@ -89,7 +89,7 @@ }, onShow() { this.$toolAll.tools.isLogin(); - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkList(); } }, diff --git a/pagesA/coupon/coupon.vue b/pagesA/coupon/coupon.vue index f570540..b6a1d45 100644 --- a/pagesA/coupon/coupon.vue +++ b/pagesA/coupon/coupon.vue @@ -88,7 +88,7 @@ // console.log('状态栏+标题栏:',rect); this.chuTop = rect.height; }).exec() - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkAllList(0); } }, diff --git a/pagesA/integralManage/integralManage.vue b/pagesA/integralManage/integralManage.vue index 2642a65..323003f 100644 --- a/pagesA/integralManage/integralManage.vue +++ b/pagesA/integralManage/integralManage.vue @@ -90,7 +90,7 @@ this.$toolAll.tools.isLogin(); }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkInfo(); this.checkList(); } diff --git a/pagesA/makeAnPppointment/makeAnPppointment.vue b/pagesA/makeAnPppointment/makeAnPppointment.vue index 28dcfe0..9a56ed4 100644 --- a/pagesA/makeAnPppointment/makeAnPppointment.vue +++ b/pagesA/makeAnPppointment/makeAnPppointment.vue @@ -77,7 +77,7 @@ }, onShow() { this.$toolAll.tools.isLogin() - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.$toolAll.tools.showToast('加载中...','loading') this.checkPoint()//调用自主预约列表事件 } diff --git a/pagesA/member/member.vue b/pagesA/member/member.vue index 72a5153..83ed582 100644 --- a/pagesA/member/member.vue +++ b/pagesA/member/member.vue @@ -74,7 +74,7 @@ this.$toolAll.tools.isLogin(); }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkList(); this.checkInfo(); } diff --git a/pagesA/my-diary-edit/my-diary-edit.vue b/pagesA/my-diary-edit/my-diary-edit.vue index d49d5e3..8e9518f 100644 --- a/pagesA/my-diary-edit/my-diary-edit.vue +++ b/pagesA/my-diary-edit/my-diary-edit.vue @@ -110,7 +110,7 @@ this.$toolAll.tools.isLogin(); }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ // 查询要编辑日记的信息 if(options.id!=undefined){ this.checkDiaryInfo(options.id); diff --git a/pagesA/my-diary/my-diary.vue b/pagesA/my-diary/my-diary.vue index b586e22..4f1e5a3 100644 --- a/pagesA/my-diary/my-diary.vue +++ b/pagesA/my-diary/my-diary.vue @@ -59,7 +59,7 @@ }, onShow() { this.$toolAll.tools.isLogin() - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkDiaryEv(); } }, diff --git a/pagesA/myAddress/myAddress.vue b/pagesA/myAddress/myAddress.vue index 0a6ae66..cbcc7fa 100644 --- a/pagesA/myAddress/myAddress.vue +++ b/pagesA/myAddress/myAddress.vue @@ -122,7 +122,7 @@ }, onLoad(options) { this.isWhere = options.isWhere; - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkList(); } }, diff --git a/pagesA/myOrder/myOrder.vue b/pagesA/myOrder/myOrder.vue index 939fe0a..c9d3168 100644 --- a/pagesA/myOrder/myOrder.vue +++ b/pagesA/myOrder/myOrder.vue @@ -174,7 +174,7 @@ // 禁用小程序分享 this.$toolAll.tools.disableShareEv(); this.$toolAll.tools.isLogin(); - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkZT(this.activeIndex); this.checkList(this.activeIndex); } diff --git a/pagesA/peacockCoin/peacockCoin.vue b/pagesA/peacockCoin/peacockCoin.vue index 2d3fa5e..67da76d 100644 --- a/pagesA/peacockCoin/peacockCoin.vue +++ b/pagesA/peacockCoin/peacockCoin.vue @@ -103,7 +103,7 @@ this.$toolAll.tools.isLogin(); }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkInfo(); this.checkList(this.ntype); } diff --git a/pagesA/pointsMall/pointsMall.vue b/pagesA/pointsMall/pointsMall.vue index 740791f..8c5771a 100644 --- a/pagesA/pointsMall/pointsMall.vue +++ b/pagesA/pointsMall/pointsMall.vue @@ -84,7 +84,7 @@ // 调用tools.js中的种植埋点事件 this.$toolAll.tools.plantPoint(12); - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkList(); } }, diff --git a/pagesA/ppointmentEv/ppointmentEv.vue b/pagesA/ppointmentEv/ppointmentEv.vue index 1613867..d9f8e7a 100644 --- a/pagesA/ppointmentEv/ppointmentEv.vue +++ b/pagesA/ppointmentEv/ppointmentEv.vue @@ -117,7 +117,7 @@ onLoad() { this.category = this.xialone[0] this.categoryT = this.xialTwo[0] - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkZParmas(); this.lphone = uni.getStorageSync('phone'); } diff --git a/pagesA/shopCart/shopCart.vue b/pagesA/shopCart/shopCart.vue index 605c2ce..abe051e 100644 --- a/pagesA/shopCart/shopCart.vue +++ b/pagesA/shopCart/shopCart.vue @@ -88,7 +88,7 @@ }, onLoad(options) { options.isScore=='score' ? this.isScore = 'score' : '' - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkList(); } }, diff --git a/pagesA/signIn/signIn.vue b/pagesA/signIn/signIn.vue index 038a96d..6ba88be 100644 --- a/pagesA/signIn/signIn.vue +++ b/pagesA/signIn/signIn.vue @@ -80,7 +80,7 @@ this.$toolAll.tools.isLogin(); }, onLoad() { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkTime(); this.checkList(); } diff --git a/pagesA/suggestions/suggestions.vue b/pagesA/suggestions/suggestions.vue index 85fedad..be3fcc8 100644 --- a/pagesA/suggestions/suggestions.vue +++ b/pagesA/suggestions/suggestions.vue @@ -96,7 +96,7 @@ this.$toolAll.tools.isLogin() }, onLoad() { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkCate(); this.tphone = uni.getStorageSync('phone'); this.$requst.post('index/mini-program-setting').then(res=>{ diff --git a/pagesB/aboutUs/aboutUs.vue b/pagesB/aboutUs/aboutUs.vue index 765de3b..9c63045 100644 --- a/pagesB/aboutUs/aboutUs.vue +++ b/pagesB/aboutUs/aboutUs.vue @@ -102,7 +102,7 @@ }, onLoad(options) { this.checkSwi() - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkAbout(this.category_id) } }, diff --git a/pagesB/articleDetail/articleDetail.vue b/pagesB/articleDetail/articleDetail.vue index 4392637..39fea41 100644 --- a/pagesB/articleDetail/articleDetail.vue +++ b/pagesB/articleDetail/articleDetail.vue @@ -106,7 +106,7 @@ onLoad(options) { this.detailId = options.id this.category_id = options.category_id - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkDetail(options.id); this.checkAbout(this.category_id); } diff --git a/pagesB/customer/customer.vue b/pagesB/customer/customer.vue index 0cbba25..daafac0 100644 --- a/pagesB/customer/customer.vue +++ b/pagesB/customer/customer.vue @@ -28,7 +28,7 @@ this.$toolAll.tools.isLogin() }, onLoad() { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkImg() } }, diff --git a/pagesB/customerCheck/customerCheck.vue b/pagesB/customerCheck/customerCheck.vue index d7f0268..aab831d 100644 --- a/pagesB/customerCheck/customerCheck.vue +++ b/pagesB/customerCheck/customerCheck.vue @@ -76,7 +76,7 @@ this.$toolAll.tools.isLogin(); }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkList() } }, diff --git a/pagesB/customerList/customerList.vue b/pagesB/customerList/customerList.vue index 16b16f7..e49a92e 100644 --- a/pagesB/customerList/customerList.vue +++ b/pagesB/customerList/customerList.vue @@ -158,7 +158,7 @@ this.$toolAll.tools.isLogin(); }, onLoad() { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkKF()//查询客服列表 this.checkCL()//客户列表 this.checkLY()//渠道来源 diff --git a/pagesB/doctorDetail/doctorDetail.vue b/pagesB/doctorDetail/doctorDetail.vue index 43d9015..7ac6a2b 100644 --- a/pagesB/doctorDetail/doctorDetail.vue +++ b/pagesB/doctorDetail/doctorDetail.vue @@ -103,7 +103,7 @@ }, onShow() { this.$toolAll.tools.isLogin(); - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkConList(this.category_id) } }, @@ -113,7 +113,7 @@ this.chuTop = rect.top }).exec() this.doctorId = options.doctor_id; - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkDoD(this.doctorId) } }, diff --git a/pagesB/messagecenter/messagecenter.vue b/pagesB/messagecenter/messagecenter.vue index 97fcd57..f901fa9 100644 --- a/pagesB/messagecenter/messagecenter.vue +++ b/pagesB/messagecenter/messagecenter.vue @@ -79,7 +79,7 @@ this.chuTop = rect.height }).exec() if(options.index==undefined){this.isWen = false;this.ntype = 'message';} - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkMsg(); let that = this ; wx.showModal({ diff --git a/pagesB/myCollection/myCollection.vue b/pagesB/myCollection/myCollection.vue index a7f8de7..f88b46f 100644 --- a/pagesB/myCollection/myCollection.vue +++ b/pagesB/myCollection/myCollection.vue @@ -180,7 +180,7 @@ // 禁用小程序分享 this.$toolAll.tools.disableShareEv(); this.$toolAll.tools.isLogin() - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkConList(this.category_id); this.shopCollection(); } diff --git a/pagesB/mysharer/mysharer.vue b/pagesB/mysharer/mysharer.vue index 6ae6b5b..0295230 100644 --- a/pagesB/mysharer/mysharer.vue +++ b/pagesB/mysharer/mysharer.vue @@ -88,7 +88,7 @@ this.navH = rect.height }).exec() } - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkShare()//查询一二级分享总人数 this.checkPeople()//查询分享一二级列表人数 } diff --git a/pagesB/orderDetail/orderDetail.vue b/pagesB/orderDetail/orderDetail.vue index 4d6d181..84a9a4b 100644 --- a/pagesB/orderDetail/orderDetail.vue +++ b/pagesB/orderDetail/orderDetail.vue @@ -153,7 +153,7 @@ this.$toolAll.tools.isLogin(); }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.checkInfo(options.id); } }, diff --git a/pagesB/personalPoster/personalPoster.vue b/pagesB/personalPoster/personalPoster.vue index bb363ca..dfda286 100644 --- a/pagesB/personalPoster/personalPoster.vue +++ b/pagesB/personalPoster/personalPoster.vue @@ -56,7 +56,7 @@ } }, onLoad(options) { - if(uni.getStorageSync('phone_active')!=0){ + if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ this.$toolAll.tools.isLogin() ; //如果还没有生成海报 if(uni.getStorageSync('imgSrcList')!='') this.imgSrcList = uni.getStorageSync('imgSrcList')//弹框关闭 diff --git a/pagesB/problemDetail/problemDetail.vue b/pagesB/problemDetail/problemDetail.vue index 7dd03f4..ffe8e02 100644 --- a/pagesB/problemDetail/problemDetail.vue +++ b/pagesB/problemDetail/problemDetail.vue @@ -47,7 +47,7 @@ style="width: 42rpx;height: 42rpx;" mode=""> {{likeCon}} - + 分享