You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
8.9 KiB
160 lines
8.9 KiB
<template>
|
|
<view>
|
|
|
|
<view v-if="recordInfo == '' " class="mart60 fotct font14 fcor666">
|
|
<image style="width: 100px;height: 100px;"
|
|
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAPoElEQVR4Xu1daXBcRxGefqusIisJUS6UiwApU4TiKkhxQ8UU91Gc5XAYE8na995KsoiVkBPiXTuxndiWHMmr9+atLYMxhJiQOyE4IcoB4aaAgiKFCyoQElS5lEocKZG0r6l2zUuthazdfvv20s783e6Z7p7v9XT3zOyA0K2hLQANrb1WXmgANDgINAA0ABrcAg2uvvYAGgANboEGV197AA2AxrQAIoLneWtJe9M00wCAjWiJhvMAqVTKaG9vXwsAV+RPOCKuGx8fT6dSKb+RgNAwANi7d29sYmKCvvhvF5jg9W1tbenly5fnGgEIix4AY2NjTfv371+LiN/iTCgAXLl06dL0smXLZjl89Ua7aAEgpTxCCEFf/OUlTspVQoi0ZVkzJfZTk+yLDgBDQ0PNzc3NtL5fFqXFEXHj9PR0uq+v76Uo+612X4sGALt27TpyenqavvhLymzUTfF4PN3R0fFimcepSPd1D4CBgYGWJUuWUFR/McdiAHBfLpdLE08sFqMY4Rwm/9UHDhxI9/f3T3H4ao22bgEgpVyi1viLOEYNJj6ZTN6Xz+c4zjlhgCCEuEbFCJMcOWqFtu4AsHv37tapqSly9d/kGBEA7s7lchvmTvzcPkoAwuaWlpb0ypUrX+DIVW3augFAJpM5ir5QALiQabQ7fN/fUmjiowICAGyZmZlJ9/T0HGDKWRXymgfAzp07j56dnaUv/gKOhRDxJkQc4k58VEAQQmxtampKr1q16nmO3JWmrVkA7Nmz55jJyUkKzvqZRrne93231ImPEAiDra2tqRUrVjzH1KMi5DUHgMHBwWMpqhdCnM+0wPeEEJ5lWT9n8rHIS4gRtk1OTqbXrFnzLGvAMhPXDABGRkbaDMOgN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+Pj6VQqRfWChmkNB4BgZhERPM87+ICkaZppAKACUMO1hgVAw830YRTWAGhwJGgAaAA0uAUaXH3tATQAGtwCDa6+9gAaAA1ugQZX/3+DPb4XwPiylgAAAABJRU5ErkJggg==">
|
|
</image>
|
|
<view class="mart10">暂无数据</view>
|
|
</view>
|
|
|
|
<view class="width90" v-for="recod in recordInfo" :key="recod.id">
|
|
<view class="width100 font15">
|
|
<view class="flleft width50 fcor666">
|
|
金币充值
|
|
</view>
|
|
<view class="flright width50 fotrt fcorred" v-if="typeId == 1">
|
|
+{{recod.gold}}
|
|
</view>
|
|
<view class="flright width50 fotrt fcorred" v-else>
|
|
-{{recod.gold}}
|
|
</view>
|
|
</view>
|
|
<view class="width100 fcor999 font14 mart10">
|
|
{{recod.createTime | formatDate('-')}}
|
|
</view>
|
|
<view class="line1f2 mart5"></view>
|
|
</view>
|
|
<view class="loading-text">{{ loadingText }}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getUserGoldRecList
|
|
} from '../../../Utils/Api.js';
|
|
export default {
|
|
data() {
|
|
return {
|
|
typeId: '',
|
|
recordInfo: [],
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
isNoMoreData: false,
|
|
loadingText: ''
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.typeId = option.id;
|
|
if (this.typeId == 1) {
|
|
uni.setNavigationBarTitle({
|
|
title: '充值记录'
|
|
})
|
|
} else {
|
|
uni.setNavigationBarTitle({
|
|
title: '消费记录'
|
|
})
|
|
}
|
|
this.getUserGoldRecLists();
|
|
},
|
|
filters: {
|
|
//过滤器 用于格式化时间
|
|
formatDate: function(value, spe = '/') {
|
|
let data = new Date(value);
|
|
let year = data.getFullYear();
|
|
let month = data.getMonth() + 1;
|
|
let day = data.getDate();
|
|
let h = data.getHours();
|
|
let mm = data.getMinutes();
|
|
let s = data.getSeconds();
|
|
month = month >= 10 ? month : "0" + month;
|
|
day = day >= 10 ? day : "0" + day;
|
|
h = h >= 10 ? h : "0" + h;
|
|
mm = mm >= 10 ? mm : "0" + mm;
|
|
s = s >= 10 ? s : "0" + s;
|
|
return `${year}${spe}${month}${spe}${day} ${h}:${mm}:${s}`;
|
|
}
|
|
},
|
|
onReachBottom() {
|
|
this.getUserGoldRecLists();
|
|
},
|
|
methods: {
|
|
getUserGoldRecLists() {
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
})
|
|
if (this.isNoMoreData) {
|
|
uni.hideLoading()
|
|
this.loadingText = '到底了';
|
|
return false;
|
|
}
|
|
let pagenum = this.pageNum;
|
|
let params = {
|
|
pageNum: pagenum,
|
|
goldType: this.typeId,
|
|
pageSize: this.pageSize
|
|
}
|
|
getUserGoldRecList(params).then(res => {
|
|
if (res.return_code == '000000') {
|
|
uni.hideLoading();
|
|
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;
|
|
if(res.return_data.total == (this.pageNum * this.pageSize)){
|
|
this.isNoMoreData = true;
|
|
}
|
|
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
|
|
this.recordInfo = this.recordInfo.concat(res.return_data.list);
|
|
} else {
|
|
this.recordInfo = [];
|
|
uni.hideLoading()
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background-color: #f8f8f9;
|
|
}
|
|
|
|
.loading-text {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 60upx;
|
|
color: #979797;
|
|
font-size: 24upx;
|
|
}
|
|
|
|
.bordr {
|
|
border-top: 1px solid #fcfcfc;
|
|
}
|
|
|
|
.height60 {
|
|
height: 60px;
|
|
line-height: 60px;
|
|
}
|
|
|
|
.pictime {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.arrow {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-top: 2px solid #999;
|
|
border-right: 2px solid #999;
|
|
position: absolute;
|
|
left: 30%;
|
|
top: 22px;
|
|
transform: rotate(135deg);
|
|
}
|
|
|
|
.line1f2 {
|
|
width: 100%;
|
|
height: 1px;
|
|
background-color: #f2f2f2;
|
|
}
|
|
</style>
|
|
|