Authored by 黄敬囿

优化我的收入 review by 李其昌

@@ -8,7 +8,11 @@ Page({ @@ -8,7 +8,11 @@ Page({
8 data: { 8 data: {
9 api: Object, 9 api: Object,
10 data: [], 10 data: [],
11 - summary:{}, 11 + summary: {
  12 + totalIncome: '0.00',
  13 + goodsIncome: '0.00',
  14 + compensateIncome: '0.00'
  15 + },
12 currentPage:1, 16 currentPage:1,
13 page:0, 17 page:0,
14 pagetotal:0, 18 pagetotal:0,
@@ -3,12 +3,12 @@ @@ -3,12 +3,12 @@
3 <text class='asset-title'>我的收入</text> 3 <text class='asset-title'>我的收入</text>
4 <view class='asset-head-parent'> 4 <view class='asset-head-parent'>
5 <view class='income-detail1'> 5 <view class='income-detail1'>
6 - <text class='income-all-count-txt'>收入:{{summary.totalIncome}}</text> 6 + <text class='income-all-count-txt'>收入:¥{{summary.totalIncome}}</text>
7 <view class='income-detail2'> 7 <view class='income-detail2'>
8 <view class='income-radiu-icon-view1'></view> 8 <view class='income-radiu-icon-view1'></view>
9 <view> 9 <view>
10 <text class='income-title-txt'>货款收入:</text> 10 <text class='income-title-txt'>货款收入:</text>
11 - <text class='income-count-txt'>{{summary.goodsIncome}}</text> 11 + <text class='income-count-txt'>¥{{summary.goodsIncome}}</text>
12 </view> 12 </view>
13 13
14 </view> 14 </view>
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <view class='income-radiu-icon-view2'></view> 16 <view class='income-radiu-icon-view2'></view>
17 <view> 17 <view>
18 <text class='income-title-txt'>补偿收入:</text> 18 <text class='income-title-txt'>补偿收入:</text>
19 - <text class='income-count-txt'>{{summary.compensateIncome}}</text> 19 + <text class='income-count-txt'>¥{{summary.compensateIncome}}</text>
20 </view> 20 </view>
21 </view> 21 </view>
22 </view> 22 </view>
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 <image class='tips-icon' src='../../assets/images/tip_3x.png'></image> 35 <image class='tips-icon' src='../../assets/images/tip_3x.png'></image>
36 <view class='income-title-txt'>无法收到补偿款请进入<text class='tips-txt'>Yoho!Buy有货APP</text>进行设置</view> 36 <view class='income-title-txt'>无法收到补偿款请进入<text class='tips-txt'>Yoho!Buy有货APP</text>进行设置</view>
37 </view> 37 </view>
38 - <text class='income-record-txt'>交易流水</text> 38 + <text class='income-record-txt'>收入明细</text>
39 <view class='split-line'></view> 39 <view class='split-line'></view>
40 <block wx:if='{{data.length > 0}}'> 40 <block wx:if='{{data.length > 0}}'>
41 <scroll-view bindscrolltolower="loadMore"> 41 <scroll-view bindscrolltolower="loadMore">
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 </block> 46 </block>
47 <block wx:else> 47 <block wx:else>
48 <view class='empty'> 48 <view class='empty'>
49 - <view>暂无交易明细</view> 49 + <view>暂无收入明细</view>
50 </view> 50 </view>
51 </block> 51 </block>
52 </view> 52 </view>