|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="container user clearfix">
|
|
|
- <cm-custom :navbar-data='nvabarData'></cm-custom>
|
|
|
+ <cm-custom :navbar-data='nvabarData' v-if="isCmcustom"></cm-custom>
|
|
|
<view class="user-section">
|
|
|
<view class="header" :style="{height:(CustomBar+90)-StatusBar+'px',paddingTop:CustomBar+'px',background:'url('+ bgImgUrl +')',backgroundSize:'cover'}">
|
|
|
<view class="header-main" v-if="hasLogin">
|
|
@@ -9,7 +9,7 @@
|
|
|
<text class="u-viptips" v-if="userIdentity == 2">{{userType}}</text>
|
|
|
<text class="u-tips" v-if="userIdentity == 4">{{userType}}</text>
|
|
|
</view>
|
|
|
- <view class="user-item"><text class="u-p">账户余额:{{userMoney}}元</text></view>
|
|
|
+ <view class="user-item amount"><text class="u-p">账户余额:{{userMoney}}元</text></view>
|
|
|
</view>
|
|
|
<view class="header-icon"><image :src="headpic == null? '../../../static/temp/icon-club@3x.png' : headpic" mode=""></image></view>
|
|
|
</view>
|
|
@@ -159,6 +159,7 @@
|
|
|
},
|
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
|
StatusBar: this.StatusBar,
|
|
|
+ isCmcustom:false,
|
|
|
isUpgradeAlert:false,
|
|
|
bgImgUrl:'https://img.caimei365.com/group1/M00/03/94/Cmis216Sk_SAPDwvAAcTspdl8h0610.png',
|
|
|
name:'',
|
|
@@ -309,9 +310,11 @@
|
|
|
},
|
|
|
onPageScroll(e){//实时获取到滚动的值
|
|
|
if(e.scrollTop>20){
|
|
|
+ this.isCmcustom = true
|
|
|
this.nvabarData.bgColor = '#FFFFFF'
|
|
|
this.nvabarData.textColor = '#333333'
|
|
|
}else{
|
|
|
+ this.isCmcustom = false
|
|
|
this.nvabarData.bgColor = ''
|
|
|
this.nvabarData.textColor = '#FFFFFF'
|
|
|
}
|
|
@@ -329,6 +332,8 @@
|
|
|
this.$api.getStorage().then((resolve) =>{
|
|
|
this.userID = resolve.userID
|
|
|
this.getUserInfo()
|
|
|
+ }).catch(reject =>{
|
|
|
+ console.log('异常处理=========>',reject)
|
|
|
})
|
|
|
}else{
|
|
|
this.getPhone()
|
|
@@ -367,6 +372,10 @@
|
|
|
flex: 1;
|
|
|
height: 64rpx;
|
|
|
line-height: 64rpx;
|
|
|
+ &.amount{
|
|
|
+ height: 30rpx;
|
|
|
+ line-height: 30rpx;
|
|
|
+ }
|
|
|
.u-tips{
|
|
|
display: inline-block;
|
|
|
float: left;
|
|
@@ -412,7 +421,7 @@
|
|
|
}
|
|
|
.u-p{
|
|
|
font-size: $font-size-24;
|
|
|
- line-height: 64rpx;
|
|
|
+ line-height: 30rpx;
|
|
|
color: #FFFFFF;
|
|
|
text-align: left;
|
|
|
}
|