Commit 376d3a6d by 高淑倩

modify:个人中心字体颜色

parent ee284484
......@@ -14,9 +14,7 @@ Component({
value: [],
},
},
attached () {
console.log('this.data', this.data)
},
attached () {},
/**
* 组件的初始数据
*/
......
......@@ -14,11 +14,11 @@ Component({
* 页面的初始数据
*/
data: {
personCenterObj: {}
personCenter: {}
},
attached () {
this.setData({
personCenterObj: this.data.personData
personCenter: this.data.personData
})
},
methods: {
......
......@@ -23,12 +23,12 @@
</view>
<view class='df tc'>
<view class='df-1 point'>
<view class='point-desc'>积分</view>
<view class='point-number'>{{personCenterObj.bonus}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.bonus}}</view>
</view>
<view class='df-1 point'>
<view class='point-desc'>优惠券</view>
<view class='point-number'>{{personCenterObj.coupon}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view>
</view>
</view>
<!-- <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