|
|
@@ -8,7 +8,7 @@
|
|
|
<view class="info-right">
|
|
|
<view class="info-right-name adfac">
|
|
|
<view class="text">{{userInfo.realName||'游客'}}</view>
|
|
|
- <view class="version">{{typeCfg[headData.type]||'基础版'}}</view>
|
|
|
+ <view class="version">{{headData.userBriefText||'普通用户'}}</view>
|
|
|
</view>
|
|
|
<view class="info-right-tip">可用次数:基础版{{headData.basicCount||0}}次,专业版{{headData.proCount||0}}次</view>
|
|
|
</view>
|
|
|
@@ -118,7 +118,7 @@
|
|
|
typeCfg:{
|
|
|
1:'基础版',
|
|
|
2:'专业版',
|
|
|
- 3:'专家版',
|
|
|
+ 0:'专家版',
|
|
|
},
|
|
|
tindex:0,
|
|
|
pindex:'',
|
|
|
@@ -144,10 +144,20 @@
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
- getMyInfo(userId){
|
|
|
+ getTeamScaleData(){
|
|
|
+ return new Promise(resolve=>{
|
|
|
+ this.$api.get('/getListByType/user_brief').then(({data:res})=>{
|
|
|
+ if(res.code!==0) return this.$showToast(res.msg)
|
|
|
+ resolve(res.data.map(d=>({name:d.dictLabel,id:d.dictValue})))
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ async getMyInfo(userId){
|
|
|
+ const userBrief = await this.getTeamScaleData()
|
|
|
this.$api.get(`/wx/myCount/${userId}`,this.params).then(({data:res})=>{
|
|
|
if(res.code!==0) return this.$showToast(res.msg)
|
|
|
this.headData = res.data;
|
|
|
+ this.$set(this.headData,'userBriefText',userBrief.find(u=>u.id==this.headData.userBrief).name||'普通用户')
|
|
|
})
|
|
|
},
|
|
|
changeTab(index){
|
|
|
@@ -228,6 +238,7 @@
|
|
|
image{
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
|
}
|
|
|
&-right{
|
|
|
@@ -243,11 +254,11 @@
|
|
|
line-height: 32rpx;
|
|
|
}
|
|
|
.version{
|
|
|
- width: 129rpx;
|
|
|
+ width: 160rpx;
|
|
|
height: 40rpx;
|
|
|
- background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/my_version_bg.png') no-repeat;
|
|
|
+ background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/my_version_bg2.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
- padding-left: 48rpx;
|
|
|
+ padding-left: 45rpx;
|
|
|
box-sizing: border-box;
|
|
|
font-family: PingFang-SC, PingFang-SC;
|
|
|
font-weight: bold;
|