1
This commit is contained in:
parent
2286d6b3ad
commit
4a51c8ab8a
@ -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: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user