yurong/pageOne/mes/aaa.vue

86 lines
2.5 KiB
Vue

<template>
<view>
<view class="w100 rows rowsc">
<view :class="types==1?'rows rowsm rowsb w-710 bg br-20 h-200':'rows rowsm rowsa w-710 bg br-20 h-200'">
<view class="rows rowsm w-500 rowsa">
<view class="rows rowsl colfff rowsm">
<text class="fs-52 fw-b">{{user.money||0.00}}</text>
<text class="fs-26 mt-20">{{names}}<text v-if="types==1">(元)</text></text>
</view>
<view class="rows rowsl colfff rowsm" v-if="types==1">
<text class="fs-52 fw-b">{{user.freeze||0.00}}</text>
<text class="fs-26 mt-20">冻结中(元)</text>
</view>
</view>
<view class="w-120 h-60 bgff rows rowsm rowsc col fs-26" style="border-radius: 38rpx 0 0 38rpx;"
@click="$tools.goNext('/pageOne/mes/withdraw')" v-if="types==1">
提现
</view>
</view>
</view>
<view class="w100 rows rowsc mt-20">
<view class="w100 bgff pt-20" style="border-radius: 20rpx 20rpx 0 0;">
<view class="fw-b fs-30 pl-20 mb-20">明细记录</view>
<scroll-view scroll-y="true" style="height: calc(100vh - 350rpx);" v-if="list.length>0">
<view class="rows rowsl rowsm" v-for="(item,index) in list" :key="index">
<view class="w-662 h-112 rows rowsm rowsb" style="border-bottom: 1rpx solid #f5f5f5;">
<view class="rows rowsl">
<view class="fs-28 w-550 one_overflow">{{item.memo}}</view>
<view class="fs-24 col888 mt-10">{{item.createtime}}</view>
</view>
<text style="font-size: 28rpx;font-weight: bold;" :class="item.status==1?'col':'col_2cc778'">{{item.status==1?'+':'-'}}{{item.money}}</text>
</view>
</view>
</scroll-view>
<view class="w100 rows rowsc h-600 rowsm" v-else>
<image class="w-436 h-366" src="/static/other/5.png" mode=""></image>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list:[],
types:'',
names:'',
user:{}
}
},
onLoad(e) {
this.types = e.type
this.names = e.name
uni.setNavigationBarTitle({
title: e.name
})
},
onShow() {
this.userMoneyLog()
this.userMoneyInfo()
},
methods: {
userMoneyLog(){
this.$tools.axiosFrom("POST","user/userMoneyLog",{type:this.types}).then(res => {
this.list = res.data
})
},
userMoneyInfo(){
this.$tools.axiosFrom("POST","user/userMoneyInfo",{type:this.types}).then(res => {
this.user = res.data
})
},
}
}
</script>
<style>
page{
background-color: #F7F8FA;
padding-top: 20rpx;
}
</style>