|
|
@ -19,8 +19,8 @@ |
|
|
|
<view style="font-size: 29px;">{{accountId}}</view> |
|
|
|
<view class="balance-label" style="margin-top: 20px;"> |
|
|
|
<text>{{languageData.wallet.availableBalance}} (KIP)</text> |
|
|
|
<uni-icons :type="showDetail ? 'eye-filled' : 'eye-slash-filled'" |
|
|
|
@click="showDetail = !showDetail" size="20" color="#333333"></uni-icons> |
|
|
|
<uni-icons :type="showDetail ? 'eye-filled' : 'eye-slash-filled'" @click="showDetail = !showDetail" |
|
|
|
size="20" color="#333333"></uni-icons> |
|
|
|
</view> |
|
|
|
<view style="">{{ showDetail ? formatNumber(userAmount) : '*****' }}</view> |
|
|
|
</view> |
|
|
@ -41,11 +41,11 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<scroll-view class="message-list" scroll-y :refresher-triggered="triggered" @scrolltolower="onLoadMore"> |
|
|
|
<view class="list-main" v-for="(item, index) in recordList" :key="index"> |
|
|
|
<view class="list-main" v-for="(item, index) in recordList.splice(0,2)" :key="index"> |
|
|
|
<view class="transaction-item"> |
|
|
|
<view class="transaction-info"> |
|
|
|
<text class="transaction-type">{{ item.timeStr }}</text> |
|
|
|
<text class="transaction-remark ellipsis-200">{{ item.remark }}</text> |
|
|
|
<text class="transaction-remark ellipsis-200">{{ item.billCode }}</text> |
|
|
|
<text class="transaction-time">{{ item.time }}</text> |
|
|
|
</view> |
|
|
|
<view class="transaction-amount padding-right-xs"> |
|
|
@ -69,7 +69,10 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getRecordList,getAmount } from '@/api/account/transactionRecord.js' |
|
|
|
import { |
|
|
|
getTransRecord, |
|
|
|
getAmount |
|
|
|
} from '@/api/account/transactionRecord.js' |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
@ -89,8 +92,7 @@ export default { |
|
|
|
triggered: false, |
|
|
|
userAmount: 5322200, |
|
|
|
quota: 0, |
|
|
|
recordList:[ |
|
|
|
{ |
|
|
|
recordList: [{ |
|
|
|
senderName: 'senderName1', |
|
|
|
senderAccount: '22540212', |
|
|
|
changeBalance: '250000', |
|
|
@ -111,6 +113,9 @@ export default { |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.selectRecordList(); |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
//TODO |
|
|
|
if (false) |
|
|
@ -150,6 +155,39 @@ export default { |
|
|
|
this.params.pageSize = this.params.pageSize + 10 |
|
|
|
this.loadRecordList(); |
|
|
|
}, |
|
|
|
selectRecordList() { |
|
|
|
getTransRecord(this.params).then(res => { |
|
|
|
this.recordList = res.data; |
|
|
|
this.recordList.forEach(item => { |
|
|
|
item.billCode = item.billCode.split("@")[0]; |
|
|
|
if (item.billCode == "BTR") { |
|
|
|
item.billCode = this.$languageData.tmp.transferAccounts; //转账 |
|
|
|
} else if (item.billCode == "BPY") { |
|
|
|
item.billCode = this.$languageData.tmp.proxyPayment; //代缴 |
|
|
|
} else if (item.billCode == "BPT") { |
|
|
|
item.billCode = this.$languageData.tmp.payment; //付款 |
|
|
|
} else if (item.billCode == "BRT") { |
|
|
|
item.billCode = this.$languageData.tmp.receivePayment; //收款 |
|
|
|
} else if (item.billCode == "BWL") { |
|
|
|
item.billCode = this.$languageData.tmp.withdrawal; //提现 |
|
|
|
} else if (item.billCode == "BRE") { |
|
|
|
item.billCode = this.$languageData.tmp.recharge; //充值 |
|
|
|
} else { |
|
|
|
item.billCode = this.$languageData.tmp.other; //其他 |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(e => { |
|
|
|
//this.$refs.loading.close(); |
|
|
|
}) |
|
|
|
//this.$refs.loading.close(); |
|
|
|
//TODO |
|
|
|
if (false) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.loading.open(); |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -159,10 +197,12 @@ export default { |
|
|
|
page { |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.amount2 { |
|
|
|
display: flex; |
|
|
|
align-items: flex-start; |
|
|
|
} |
|
|
|
|
|
|
|
.wallet-page { |
|
|
|
// min-height: 100%; |
|
|
|
// background: linear-gradient(180deg, #FEE1A8 0%, #f9f8f8 30%); |
|
|
|