From 317e1ada110ee62b260f635a0c978d794312c141 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Fri, 25 Apr 2025 15:59:26 +0800 Subject: [PATCH] no message --- pages/components/notice-index.vue | 8 ++++---- pages/components/notice-item.vue | 4 ++-- pages/index.vue | 4 ++-- pages/login.vue | 14 +++++++++++++- pages/mine/mine-index.vue | 8 +++++++- pages/notice/detail.vue | 4 ++-- utils/request.js | 4 ++-- 7 files changed, 32 insertions(+), 14 deletions(-) diff --git a/pages/components/notice-index.vue b/pages/components/notice-index.vue index 08490d2..24f5ae9 100644 --- a/pages/components/notice-index.vue +++ b/pages/components/notice-index.vue @@ -6,13 +6,13 @@ 通告 - + - + @@ -252,7 +252,7 @@ this.getByCodeInfo() this.selectDataList() //鉴权 - this.checkRights() + // this.checkRights() }, onLoad: function() { @@ -799,7 +799,7 @@ } .dl-item-box { - height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 555rpx); + height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 585rpx); isplay: flex; flex-direction: column; } diff --git a/pages/components/notice-item.vue b/pages/components/notice-item.vue index 9a81648..ee11cf9 100644 --- a/pages/components/notice-item.vue +++ b/pages/components/notice-item.vue @@ -3,7 +3,7 @@ 急招 - + {{item.title}} @@ -268,4 +268,4 @@ } } } - \ No newline at end of file + diff --git a/pages/index.vue b/pages/index.vue index b75a86e..45795fa 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,7 +3,7 @@ - + @@ -218,4 +218,4 @@ width: 70vw; } } - + \ No newline at end of file diff --git a/pages/login.vue b/pages/login.vue index 3b710a7..154918a 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -76,6 +76,12 @@ }], //是否同意 ifAgree: false, + canBack: "false", + } + }, + onLoad(params) { + if (params.canBack) { + this.canBack = params.canBack } }, created() { @@ -192,8 +198,14 @@ loginSuccess(result) { // 设置用户信息 this.$store.dispatch('GetInfo').then(res => { + if ("true" == this.canBack) { + uni.navigateBack({ + delta: 1 + }) + } else { + this.$tab.reLaunch('/pages/index') + } - this.$tab.reLaunch('/pages/index') }) } } diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index 1dd153a..04d282a 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -211,7 +211,7 @@ localUserType: this.nowUserType, globalConfig: getApp().globalData.config, //是否已开通会员 - ifHasCard: true, + ifHasCard: false, userInfo: { coupon: 0 }, @@ -264,6 +264,12 @@ this.userInfo.coupon = res.data.coupon.toString() this.userInfo.addNotice = res.data.addNotice.toString() this.userInfo.avatar = this.imageUrl + res.data.avatar + if (res.data.memberEndDate && null != res.data.memberEndDate) { + this.ifHasCard = true + this.memberEndDate = res.data.memberEndDate + } else { + this.ifHasCard = false + } }) }, /** diff --git a/pages/notice/detail.vue b/pages/notice/detail.vue index abf2439..35b2dd3 100644 --- a/pages/notice/detail.vue +++ b/pages/notice/detail.vue @@ -175,7 +175,7 @@ - + @@ -971,4 +971,4 @@ } } } - + \ No newline at end of file diff --git a/utils/request.js b/utils/request.js index 248de8b..30d6ec1 100644 --- a/utils/request.js +++ b/utils/request.js @@ -45,8 +45,8 @@ const request = config => { const msg = errorCode[code] || res.data.msg || errorCode['default'] if (code === 401) { store.dispatch('LogOut').then(res => { - uni.reLaunch({ - url: '/pages/login' + uni.navigateTo({ + url: '/pages/login?canBack=true' }) }) } else if (code === 500) {