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.
109 lines
2.2 KiB
109 lines
2.2 KiB
<template>
|
|
<view class="content" :class="test!=0?'he':''">
|
|
<navigation>
|
|
apply record
|
|
</navigation>
|
|
<view class="prore_body">
|
|
</view>
|
|
<view class="noRes" v-if="test==0">
|
|
<view class="imgcon">
|
|
<image src="../../../../static/promo/[email protected]" mode="aspectFit"></image>
|
|
</view>
|
|
<view class="res">
|
|
No results
|
|
</view>
|
|
</view>
|
|
<view class="record_body">
|
|
<view class="record_item flex" v-for="(item,index) in promotionRecord" :key="item.id">
|
|
<view class="numcon flex">
|
|
<view class="num">
|
|
<view class="rec">
|
|
<view class="Nop1">
|
|
{{item.orderNo}}
|
|
</view>
|
|
<view class="Nop2">
|
|
{{item.addTime}}
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="time">
|
|
<view class="money">
|
|
{{item.tranAmt}}
|
|
</view>
|
|
<!-- <view class="nickname">
|
|
Complete
|
|
</view> -->
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import api from '@/utils/api'
|
|
import utils from '@/utils'
|
|
import cont from "@/components/navigation/navigation.vue"
|
|
import index from '@/utils/index'
|
|
export default{
|
|
data(){
|
|
return{
|
|
test:0,
|
|
promotionRecord:[],
|
|
}
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
this.getBounsRecord();
|
|
|
|
},
|
|
onReachBottom() {
|
|
this.pageSize += 3;
|
|
if(this.pageSize>this.totalElements){
|
|
return;
|
|
}
|
|
|
|
this.getBounsRecord();
|
|
|
|
},
|
|
methods:{
|
|
|
|
getBounsRecord(){
|
|
const post = api.bonusOutRecords({
|
|
"ticket": uni.getStorageSync('logInfo').data,
|
|
|
|
"pageNumber": 1,
|
|
"pageSize": this.pageSize,
|
|
})
|
|
post.then(res => {
|
|
if(res.data.content.length!=undefined||res.data.content.length!=0){
|
|
this.totalElements=res.data.totalElements;
|
|
this.promotionRecord=res.data.content;
|
|
for(var i=0;i<this.promotionRecord.length;i++){
|
|
this.promotionRecord[i].addTime=index.formatyymmddhhmmss(this.promotionRecord[i].addTime);
|
|
this.promotionRecord[i].tranAmt=parseFloat(this.promotionRecord[i].tranAmt).toFixed(2)
|
|
}
|
|
this.test=this.promotionRecord.length;
|
|
|
|
}
|
|
})
|
|
.catch(e => {
|
|
uni.showToast({
|
|
title: e,
|
|
icon: 'none',
|
|
duration: 2500
|
|
})
|
|
})
|
|
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
@import './index.css';
|
|
</style>
|
|
|