|
@@ -3,7 +3,7 @@
|
|
|
<image src="../../static/images/broker/topBg.png" class="header-image" mode="widthFix"></image>
|
|
|
<view class="cu-bar bg-white solid-bottom">
|
|
|
<view class="action">
|
|
|
- <text class="cuIcon-title text-orange "></text> 我的收益
|
|
|
+ <text class="cuIcon-title text-orange "></text> {{income_title}}
|
|
|
</view>
|
|
|
<view class="action">
|
|
|
<button class="cu-btn bg-green shadow" @click="goNavPage('/pages/broker/income')">详情</button>
|
|
@@ -11,12 +11,12 @@
|
|
|
</view>
|
|
|
<view class="lw-table">
|
|
|
<view class="lw-table-item padding">
|
|
|
- <view class="lw-table-value text-price text-bold text-red">{{statistics.income_total}}</view>
|
|
|
- <view class="lw-table-title text-gray padding-top-xs">总收益</view>
|
|
|
+ <view :class="{'text-price':brokerinfo.type == 1}" class="lw-table-value text-bold text-red">{{statistics.income_total}}</view>
|
|
|
+ <view class="lw-table-title text-gray padding-top-xs">{{income_total_title}}</view>
|
|
|
</view>
|
|
|
<view class="lw-table-item padding">
|
|
|
- <view class="lw-table-value text-price text-bold text-red">{{statistics.income}}</view>
|
|
|
- <view class="lw-table-title text-gray padding-top-xs">当前收益</view>
|
|
|
+ <view :class="{'text-price':brokerinfo.type == 1}" class="lw-table-value text-bold text-red">{{statistics.income}}</view>
|
|
|
+ <view class="lw-table-title text-gray padding-top-xs">{{income_now_title}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cu-bar bg-white solid-bottom margin-top">
|
|
@@ -110,7 +110,21 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ income_title() {
|
|
|
+ return _this.brokerinfo.type == 1 ? '我的收益' : '我的积分';
|
|
|
+ },
|
|
|
+ income_total_title() {
|
|
|
+ return _this.brokerinfo.type == 1 ? '总收益' : '总积分';
|
|
|
+ },
|
|
|
+ income_now_title() {
|
|
|
+ return _this.brokerinfo.type == 1 ? '当前收益' : '剩余积分';
|
|
|
+ },
|
|
|
+ income_unit() {
|
|
|
+ return _this.brokerinfo.type == 1 ? '元' : '分';
|
|
|
+ },
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|