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.
 
 
 
 
xuan-pay-cweb/pages/index/collectNotes/collectNotes.vue

62 lines
1.4 KiB

<template>
<view>
<view v-if="!notesList" class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="height90 width94 backcorfff mart20" v-for="(item,index) in notesList" :key="index">
<view class="font24 fcor333 paddtop10 padleft15">¥ <text
class="font306adb fontwig6 margle font28">{{item.tradeAmount}}</text></view>
<view class="mart10 fcor666 padleft15 font15">{{item.createTime | timeFormat('yyyy-mm-dd')}}
{{item.createTime | timeFormat('hh:mm')}}</view>
</view>
</view>
</template>
<script>
import {
getTradeOrderList
} from '../../../Utils/Api.js';
export default {
data() {
return {
notesList: []
}
},
onLoad() {
this.getTradeOrderList();
},
methods: {
getTradeOrderList() {
uni.showLoading({
title: '加载中...'
})
let datas = {
pageNum: 1,
pageSize: 10
}
getTradeOrderList(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data.pageInfo.list) {
this.notesList = res.return_data.pageInfo.list;
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
},
}
}
</script>
<style lang="scss">
page {
background-color: #f8f9f9;
}
.font306adb {
color: #306adb;
}
</style>