|
|
@@ -6,17 +6,25 @@
|
|
|
|
|
|
<view class="content">
|
|
|
|
|
|
- <view class="userInfo flex-row">
|
|
|
- <view class="userPhoto">
|
|
|
- <image class="userPhoto" src="/static/logo.png"></image>
|
|
|
- </view>
|
|
|
- <view class="userTitle flex-col justify-center">
|
|
|
- <text class="nickName">HI,亲爱的{{ userInfo.ncikName }}</text>
|
|
|
- <view class="flex-row">
|
|
|
- <text class="xinxTitle">啊擦黄寺大街快乐崇拜哈少得可怜</text>
|
|
|
- <u-icon name="arrow-right" color="#333333" size="16"></u-icon>
|
|
|
+ <view class="userInfo flex-row justify-between ">
|
|
|
+ <view class="flex-row">
|
|
|
+ <view class="userPhoto" @click="navigateToPage('/myPages/userInfo/index')">
|
|
|
+ <image class="userPhoto" :src="userInfo.selfPhotoUrl || '/static/me/u4.png'"></image>
|
|
|
+ </view>
|
|
|
+ <view class="userTitle flex-col justify-center" @click="navigateToPage('/myPages/userInfo/index')">
|
|
|
+ <text class="nickName">HI,亲爱的{{ userInfo.ncikName }}</text>
|
|
|
+ <view class="flex-row">
|
|
|
+ <text class="xinxTitle">点击完善个人信息</text>
|
|
|
+ <u-icon name="arrow-right" color="#333333" size="16"></u-icon>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="qrcodeView flex-col justify-center" @click="navigateToPage('/pages/qrCode/index')">
|
|
|
+ <image class="qrcode" src="/static/me/u5.png"></image>
|
|
|
+ <text class="qrcodeTitle">会员码</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<view class="sudoku flex-col">
|
|
|
@@ -24,7 +32,7 @@
|
|
|
<text>我的资产</text>
|
|
|
</view>
|
|
|
<view class="balance flex-row justify-around">
|
|
|
- <view @click="goRecharge">
|
|
|
+ <view @click="navigateToPage('/myPages/recharge/index')">
|
|
|
<view class="icon flex-row justify-center">
|
|
|
<u-icon name="/static/me/u701.png" color="red" size="30"></u-icon>
|
|
|
</view>
|
|
|
@@ -46,7 +54,7 @@
|
|
|
<text>{{userInfo.integral|| 0}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view @click="goCoupon">
|
|
|
+ <view @click="navigateToPage('/orderPages/myCoupon/index')">
|
|
|
<view class="icon flex-row justify-center">
|
|
|
<u-icon name="/static/me/u687.png" color="red" size="30"></u-icon>
|
|
|
</view>
|
|
|
@@ -140,27 +148,32 @@ export default {
|
|
|
}else {
|
|
|
this.group1[0].rightText = '未实名认证,去认证'
|
|
|
}
|
|
|
+
|
|
|
+ if (this.userInfo.selfPhoto){
|
|
|
+ this.getImgUrlByOssId(this.userInfo.selfPhoto)
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
- goRecharge(){
|
|
|
+ getImgUrlByOssId(Id){
|
|
|
+ this.$api.getImgUrlByOssId(Id).then(res=>{
|
|
|
+ this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
+ });
|
|
|
+ },
|
|
|
+ navigateToPage(url){
|
|
|
uni.navigateTo({
|
|
|
- url:'/myPages/recharge/index'
|
|
|
+ url:url
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- goCoupon(){
|
|
|
- uni.navigateTo({
|
|
|
- url:'/orderPages/myCoupon/index'
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
-
|
|
|
@import '/common/css/common.css';
|
|
|
@import './index.rpx.css';
|
|
|
</style>
|