Browse Source

账户添加提成账户

xiaohaizhao 1 year ago
parent
commit
1d5ec15d2e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packageA/account/index.wxml
  2. 1 1
      utils/FormatTheAttachment.js

+ 1 - 1
packageA/account/index.wxml

@@ -58,7 +58,7 @@
 <navigator url="#" class="record" wx:for="{{recordList}}" wx:key="sa_accountclassid">
     <view class="content">
         <view class="title">{{item.type==0?'支出':'收入'}}{{item.source?'-'+item.source:""}}</view>
-        <view class="exp">{{item.accountname}}:{{item.showBalance}}</view>
+        <view class="exp">{{item.accountname || item.hraccountname}}:{{item.showBalance}}</view>
         <view class="exp">交易备注:{{item.remarks || ' --'}}</view>
         <view class="exp">{{item.createdate}}</view>
     </view>

+ 1 - 1
utils/FormatTheAttachment.js

@@ -18,7 +18,7 @@ function fileList(list) {
         list[i].cover = `/static/image/file/unknown.png`
         const suffix = list[i].postfix.toLowerCase();
         if (suffix != "folder") {
-            for (var key in suffixList) {
+            for (let key in suffixList) {
                 if (suffixList[key].some(value => value == suffix)) {
                     list[i].fileType = key;
                     if (key == 'image') {