bayi před 1 rokem
rodič
revize
b0db2354e7

+ 1 - 1
salesperson/pages/lxDetail/index.js

@@ -22,7 +22,7 @@ Page({
             title: '半年'
         }],
         allIncome: {},
-        orderList: [],
+        orderList: {},
         orderListKey: []
     },
     async onShow() {

+ 3 - 1
salesperson/pages/lxDetail/index.json

@@ -1,4 +1,6 @@
 {
-    "usingComponents": {},
+    "usingComponents": {
+        "emptyBg": "/components/empty/index"
+    },
     "navigationBarTitleText": "收益报表"
 }

+ 3 - 1
salesperson/pages/lxDetail/index.wxml

@@ -53,7 +53,8 @@
                     <view class="row" wx:for="{{orderList[item]}}" wx:key="id" wx:for-item="row">
                         <view class="col">{{filters.formatDate(row.gmtCreated,6)}}日</view>
                         <view class="col">
-                            <view class="num {{row.type=='1'?'add':'reduce'}}"> {{row.type=='1'?'+':'-'}}{{filters.twoDecimal(row.amount)}}</view>
+                            <view class="num {{row.type=='1'?'add':'reduce'}}">
+                                {{row.type=='1'?'+':'-'}}{{filters.twoDecimal(row.amount)}}</view>
                             {{row.title}}
                         </view>
                         <view class="col">{{filters.twoDecimal(row.balance)}}</view>
@@ -62,4 +63,5 @@
             </view>
         </view>
     </view>
+    <emptyBg wx:if="{{orderListKey.length==0}}" message="暂无订单" />
 </view>