Commit 376d3a6d by 高淑倩

modify:个人中心字体颜色

parent ee284484
...@@ -14,9 +14,7 @@ Component({ ...@@ -14,9 +14,7 @@ Component({
value: [], value: [],
}, },
}, },
attached () { attached () {},
console.log('this.data', this.data)
},
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
......
...@@ -14,11 +14,11 @@ Component({ ...@@ -14,11 +14,11 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
personCenterObj: {} personCenter: {}
}, },
attached () { attached () {
this.setData({ this.setData({
personCenterObj: this.data.personData personCenter: this.data.personData
}) })
}, },
methods: { methods: {
......
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
</view> </view>
<view class='df tc'> <view class='df tc'>
<view class='df-1 point'> <view class='df-1 point'>
<view class='point-desc'>积分</view> <view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
<view class='point-number'>{{personCenterObj.bonus}}</view> <view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.bonus}}</view>
</view> </view>
<view class='df-1 point'> <view class='df-1 point'>
<view class='point-desc'>优惠券</view> <view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
<view class='point-number'>{{personCenterObj.coupon}}</view> <view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view>
</view> </view>
</view> </view>
<!-- <view class="activation-content {{true ? 'user-content' : ''}}"> <!-- <view class="activation-content {{true ? 'user-content' : ''}}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment