|
|
@@ -90,10 +90,10 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div class="fix-count-wrap" v-if="recordList.length">
|
|
|
- <span class="content">已收总计:<span>{{currencySymbol | currencyFilter}} {{totalRecordPrice}}</span></span>
|
|
|
+ <span class="content">已收总计:<span>{{currencySymbol | currencyFilter}} {{totalMoney}}</span></span>
|
|
|
<!--<span class="content">支出总计:<span>{{currencySymbol | currencyFilter}} 0</span></span>
|
|
|
<p>结余:{{currencySymbol | currencyFilter}} {{totalRecordPrice}} (共计{{recordList.length || 0}}笔交易)</p>-->
|
|
|
- <p>结余:{{currencySymbol | currencyFilter}} {{totalRecordPrice}} (共计{{recordList.length || 0}}笔交易)</p>
|
|
|
+ <p>结余:{{currencySymbol | currencyFilter}} {{totalMoney}} (共计{{recordList.length || 0}}笔交易)</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 交易记录end -->
|
|
|
@@ -174,6 +174,7 @@
|
|
|
<script>
|
|
|
import { RemindBox, PullUp, EmptyStatus } from '~components/mobile/common'
|
|
|
import { ModalWrapper, BaseFilter } from '~components/mobile/base'
|
|
|
+ import axios from '~plugins/axios'
|
|
|
export default {
|
|
|
layout: 'mobile',
|
|
|
middleware: 'authenticated',
|
|
|
@@ -267,7 +268,8 @@
|
|
|
}],
|
|
|
defaultVal: null
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ totalMoney: 0
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -281,9 +283,11 @@
|
|
|
return route.query.type ? Promise.all([store.dispatch('payCenter/loadVendorAccount', {count: 10, page: 1, sorting: {num: 'ASC'}, type: 'sup'})
|
|
|
]) : Promise.all([store.dispatch('payCenter/loadVendorRecord', {count: 10, page: 1, sorting: {'transferTime': 'DESC'}, type: 'sup'})])
|
|
|
},
|
|
|
- asyncData({route}) {
|
|
|
+ async asyncData({route}) {
|
|
|
+ let { data } = await axios.get('/trade/transfer/vendor/bankTransfer/ledger?type=sup')
|
|
|
return {
|
|
|
- fromUserPage: route.query.type ? true : false,
|
|
|
+ totalMoney: data.code === 1 ? data.data : 0,
|
|
|
+ fromUserPage: Boolean(route.query.type),
|
|
|
switchType: route.query.switchType || 'record'
|
|
|
}
|
|
|
},
|