|
|
@@ -8,7 +8,7 @@
|
|
|
<t-th>可提现余额</t-th>
|
|
|
<t-th>总余额</t-th>
|
|
|
</t-tr>
|
|
|
- <view v-for="(item, index) in list.data" :key="index">
|
|
|
+ <view v-for="(item, index) in list.data" :key="index" @click="goDetail(item)">
|
|
|
<t-tr>
|
|
|
<t-td align="center" color="info"><view style="width:200rpx;">{{ item.event }}</view></t-td>
|
|
|
<t-td align="center" color="info"><view >{{ parseFloat(item.amount) }}</view></t-td>
|
|
|
@@ -40,24 +40,21 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init(){
|
|
|
- uni.showLoading({title: '加载中'})
|
|
|
- try {
|
|
|
- const res = await changeList({
|
|
|
- page:this.list.page,tx:0
|
|
|
- })
|
|
|
- if (this.$util.isEmpty(res.data.list)){
|
|
|
- this.completes(res)
|
|
|
- return
|
|
|
- }
|
|
|
- let currentList = res.data.list
|
|
|
- currentList.forEach(function(item,index,array){
|
|
|
- array[index].amount = item.io ==0 ? '-'+item.amount : '+'+item.amount
|
|
|
- });
|
|
|
- res.data.list = currentList
|
|
|
+ const res = await changeList({
|
|
|
+ page:this.list.page,tx:0
|
|
|
+ })
|
|
|
+ if (this.$util.isEmpty(res.data.list)){
|
|
|
this.completes(res)
|
|
|
- } finally {
|
|
|
- uni.hideLoading();
|
|
|
- }
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let currentList = res.data.list
|
|
|
+ currentList.forEach(function(item,index,array){
|
|
|
+ array[index].amount = item.io ==0 ? '-'+item.amount : '+'+item.amount
|
|
|
+ });
|
|
|
+ res.data.list = currentList
|
|
|
+ this.completes(res)
|
|
|
+ },
|
|
|
+ goDetail(item){
|
|
|
}
|
|
|
},
|
|
|
async onPullDownRefresh() {
|