红绿项目
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.
 
 
 
 

123 lines
2.3 KiB

<template>
<view class="content">
<navigation>
withdrawal
<view class="bread" slot="bread">
<image src="../../../static/promo/[email protected]" mode=""></image>
</view>
</navigation>
<view class="record_body">
<view class="record_item flex">
<view class="numcon flex">
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image>
<view class="num">
<view class="rec">
2,000.00 Wait
</view>
<view class="cpay">
Back to balance
</view>
</view>
</view>
<view class="time">
2021-05-26 14:35:20
</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{
pageNumber:1,
pageSize:20,
record_list:[],
}
},
onLoad() {
uni.request({
url: '/start/api/withdraw/withdrawList',
data: {
"ticket": uni.getStorageSync('logInfo').data,
"pageNumber":this.pageNumber,
"pageSize":this.pageSize,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息
},
method: 'POST', //请求方式 或GET,必须为大写
success: (res) => {
this.record_list=res.data.data.content;
console.log(res.data,9999);
},
fail: (res) => {
console.log(res.errMsg);
}
});
setTimeout(function(){
this.getCurrentTime
},2000)
},
methods:{
getCurrentTime(){
for(var i=0;i<record_list.length;i++){
this.record_list[i].addTime=index.formathhmm(this.record_list[i].addTime);
}
}
},
}
</script>
<style>
.bread image{
width: 28rpx;
height: 24rpx;
position: absolute;
right: 36rpx;
top: 50%;
transform: translateY(-50%);
}
.record_body{
padding: 0 36rpx;
}
.flex{
display: flex;
justify-content: space-between;
align-items: center;
}
.record_item{
height: 144rpx;
}
.numcon .img1{
width: 40rpx;
height: 40rpx;
}
.num{
margin-left: 20rpx;
}
.rec{
color: #303133;
font-size: 32rpx;
}
.cpay{
color: #909399;
font-size: 28rpx;
}
.time{
color: #909399;
font-size: 28rpx;
}
</style>