From 4a51c8ab8a8bc4a8812243c36ea1ec91bb8fccb5 Mon Sep 17 00:00:00 2001 From: PQZ Date: Mon, 28 Apr 2025 17:23:33 +0800 Subject: [PATCH] 1 --- config.js | 2 +- pages/mine/coupon/coupon-list.vue | 8 ++++---- pages/mine/mine-index.vue | 28 +++++++++++++++++++++------- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/config.js b/config.js index 7f026d3..88b33a6 100644 --- a/config.js +++ b/config.js @@ -2,7 +2,7 @@ module.exports = { // baseUrl: 'https://www.ddtg.site/noticeApi', // baseUrl: 'https://www.ddtg.site/noticeApi', - baseUrl: 'http://192.168.1.17:8099', + baseUrl: 'http://192.168.1.4:8099', // 应用信息 appInfo: { // 应用名称 diff --git a/pages/mine/coupon/coupon-list.vue b/pages/mine/coupon/coupon-list.vue index 828007c..8802974 100644 --- a/pages/mine/coupon/coupon-list.vue +++ b/pages/mine/coupon/coupon-list.vue @@ -23,10 +23,10 @@ - - 了解通告券 - - + + + + 购买记录 diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index 6fb0ea4..13d58c9 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -21,6 +21,7 @@ {{userInfo.nickName || ''}} + {{userInfo.cardName||''}} @@ -228,15 +229,20 @@ memberEndDate: "", } }, - onShow() {}, + mounted() { + if (null != getJSONData(constant.userInfo)) { + this.userInfo = getJSONData(constant.userInfo) + this.getDetail() + } + }, + onShow() { + if (null != getJSONData(constant.userInfo)) { + this.userInfo = getJSONData(constant.userInfo) + this.getDetail() + } + }, onLoad() { - }, - mounted() { - if (null != getJSONData(constant.userInfo)) { - this.userInfo = getJSONData(constant.userInfo) - this.getDetail() - } }, computed: { windowHeight() { @@ -256,6 +262,11 @@ } }, getDetail() { + let param = { + userId: this.userInfo.userId, + userType: this.localUserType + } + console.log(param,'param') queryDetail({ userId: this.userInfo.userId, userType: this.localUserType @@ -267,12 +278,15 @@ this.userInfo.coupon = res.data.coupon.toString() this.userInfo.addNotice = res.data.addNotice.toString() this.userInfo.avatar = this.imageUrl + res.data.avatar + this.userInfo.cardName = res.data.cardName if (res.data.memberEndDate && null != res.data.memberEndDate) { this.ifHasCard = true this.memberEndDate = res.data.memberEndDate } else { this.ifHasCard = false } + console.log(this.userInfo,'THIS.USERINFO') + this.$forceUpdate() }) }, /**