|
|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
- <view class="content" :style="{height:nowHeight}">
|
|
|
+ <view class="content">
|
|
|
|
|
|
<view class="recharge-box" v-for="pay in payList" :key='pay.id'>
|
|
|
<view class="recharge-time-box">
|
|
|
<view class="recharge-font">微信充值</view>
|
|
|
- <view class="recharge-time">{{pay.paytime}} · {{pay.times}}次</view>
|
|
|
+ <view class="recharge-time">{{pay.paytime || '-'}} · {{pay.times || '-'}}次</view>
|
|
|
</view>
|
|
|
<view class="recharge-money">
|
|
|
- <text>{{pay.money}}元</text>
|
|
|
+ <text>{{pay.money || '-'}}元</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if='payList.length === 0' style="font-size: 14px;margin-top: 5%;">
|
|
|
@@ -21,14 +21,13 @@
|
|
|
var md5 = require("../../../common/md5.js");
|
|
|
export default {
|
|
|
data() {
|
|
|
- return {
|
|
|
- nowHeight:getApp().globalData.glbalHeight,
|
|
|
+ return {
|
|
|
payList:[
|
|
|
- // {
|
|
|
- // paytime:'8-28 17:27',
|
|
|
- // money:'¥ 14',
|
|
|
- // id:'A1',
|
|
|
- // },
|
|
|
+ {
|
|
|
+ paytime:'-',
|
|
|
+ money:'-',
|
|
|
+ id:'-',
|
|
|
+ },
|
|
|
],
|
|
|
}
|
|
|
},
|
|
|
@@ -37,6 +36,8 @@
|
|
|
},
|
|
|
methods: {
|
|
|
getRechargeList(){
|
|
|
+ uni.showLoading({
|
|
|
+ })
|
|
|
let that = this;
|
|
|
uni.request({
|
|
|
url:getApp().globalData.shareUrl, //需要设置为全局
|
|
|
@@ -51,6 +52,7 @@
|
|
|
sign: md5('charge_list' + getApp().globalData.globalTimestamp),
|
|
|
},
|
|
|
success: res => {
|
|
|
+ uni.hideLoading()
|
|
|
that.payList = res.data.msg
|
|
|
}
|
|
|
});
|
|
|
@@ -60,8 +62,12 @@
|
|
|
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style>
|
|
|
+ page{
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
.content {
|
|
|
+ height: 100%;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
@@ -70,12 +76,12 @@
|
|
|
}
|
|
|
|
|
|
.recharge-box {
|
|
|
+ width:100%;
|
|
|
+ height: 150upx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
background: #fff;
|
|
|
- width:100%;
|
|
|
- height: 150upx;
|
|
|
border-bottom: 1upx solid #D8D8D8;
|
|
|
}
|
|
|
|