Compare commits

...

2 Commits

Author SHA1 Message Date
PQZ
251a7384be Merge branch 'master' of http://192.168.1.26:3000/dianliang/dl_uniapp 2025-04-28 17:23:35 +08:00
PQZ
4a51c8ab8a 1 2025-04-28 17:23:33 +08:00
3 changed files with 26 additions and 12 deletions

View File

@ -2,7 +2,7 @@
module.exports = { module.exports = {
// baseUrl: 'https://www.ddtg.site/noticeApi', // baseUrl: 'https://www.ddtg.site/noticeApi',
// 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: { appInfo: {
// 应用名称 // 应用名称

View File

@ -23,10 +23,10 @@
</view> </view>
</view> </view>
<view class="item-field" style="align-items: center;"> <view class="item-field" style="align-items: center;">
<view class="my-suggest-dom" @click="viewRichText()"> <!-- <view class="my-suggest-dom" @click="viewRichText()">-->
<text>了解通告券</text> <!-- <text>了解通告券</text>-->
<uni-icons type="right" color="#363636" size="14"></uni-icons> <!-- <uni-icons type="right" color="#363636" size="14"></uni-icons>-->
</view> <!-- </view>-->
<view class="my-suggest-dom" @click="goMyCoupon(1)"> <view class="my-suggest-dom" @click="goMyCoupon(1)">
<text>购买记录</text> <text>购买记录</text>
<uni-icons type="right" color="#363636" size="14"></uni-icons> <uni-icons type="right" color="#363636" size="14"></uni-icons>

View File

@ -21,6 +21,7 @@
<view class="title-box"> <view class="title-box">
{{userInfo.nickName || ''}} {{userInfo.nickName || ''}}
<image v-if="ifHasCard" src="@/static/mine/huang.png" mode="aspectFit"></image> <image v-if="ifHasCard" src="@/static/mine/huang.png" mode="aspectFit"></image>
<view style="font-size: 20rpx;">{{userInfo.cardName||''}}</view>
</view> </view>
<view class="bottom-box"> <view class="bottom-box">
<view class="fans-box"> <view class="fans-box">
@ -228,15 +229,20 @@
memberEndDate: "", 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() { onLoad() {
},
mounted() {
if (null != getJSONData(constant.userInfo)) {
this.userInfo = getJSONData(constant.userInfo)
this.getDetail()
}
}, },
computed: { computed: {
windowHeight() { windowHeight() {
@ -256,6 +262,11 @@
} }
}, },
getDetail() { getDetail() {
let param = {
userId: this.userInfo.userId,
userType: this.localUserType
}
console.log(param,'param')
queryDetail({ queryDetail({
userId: this.userInfo.userId, userId: this.userInfo.userId,
userType: this.localUserType userType: this.localUserType
@ -267,12 +278,15 @@
this.userInfo.coupon = res.data.coupon.toString() this.userInfo.coupon = res.data.coupon.toString()
this.userInfo.addNotice = res.data.addNotice.toString() this.userInfo.addNotice = res.data.addNotice.toString()
this.userInfo.avatar = this.imageUrl + res.data.avatar this.userInfo.avatar = this.imageUrl + res.data.avatar
this.userInfo.cardName = res.data.cardName
if (res.data.memberEndDate && null != res.data.memberEndDate) { if (res.data.memberEndDate && null != res.data.memberEndDate) {
this.ifHasCard = true this.ifHasCard = true
this.memberEndDate = res.data.memberEndDate this.memberEndDate = res.data.memberEndDate
} else { } else {
this.ifHasCard = false this.ifHasCard = false
} }
console.log(this.userInfo,'THIS.USERINFO')
this.$forceUpdate()
}) })
}, },
/** /**