|
|
@@ -1,44 +1,66 @@
|
|
|
<template>
|
|
|
<view class="content" :style="{height:nowHeight}">
|
|
|
|
|
|
- <view class="recharge-box" v-for="pay in payList" :key='pay.payId'>
|
|
|
+ <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}}</view>
|
|
|
+ <view class="recharge-time">{{pay.paytime}}</view>
|
|
|
</view>
|
|
|
<view class="recharge-money">
|
|
|
- <text>{{pay.payMoney}}</text>
|
|
|
+ <text>{{pay.money}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
+<script>
|
|
|
+ var md5 = require("../../../common/md5.js");
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
nowHeight:getApp().globalData.glbalHeight,
|
|
|
payList:[
|
|
|
{
|
|
|
- payTime:'8-28 17:27',
|
|
|
- payMoney:'¥ 14',
|
|
|
- payId:'A1',
|
|
|
+ paytime:'8-28 17:27',
|
|
|
+ money:'¥ 14',
|
|
|
+ id:'A1',
|
|
|
},
|
|
|
{
|
|
|
- payTime:'8-27 18:27',
|
|
|
- payMoney:'¥ 6',
|
|
|
- payId:'A2',
|
|
|
+ paytime:'8-27 18:27',
|
|
|
+ money:'¥ 6',
|
|
|
+ id:'A2',
|
|
|
},{
|
|
|
- payTime:'8-29 19:27',
|
|
|
- payMoney:'¥ 10' ,
|
|
|
- payId:'A3',
|
|
|
+ paytime:'8-29 19:27',
|
|
|
+ money:'¥ 10' ,
|
|
|
+ id:'A3',
|
|
|
},
|
|
|
],
|
|
|
}
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ this.getRechargeList()
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ getRechargeList(){
|
|
|
+ let that = this;
|
|
|
+ uni.request({
|
|
|
+ url:getApp().globalData.shareUrl, //需要设置为全局
|
|
|
+ method: 'POST',
|
|
|
+ header: {
|
|
|
+ 'content-type': 'application/x-www-form-urlencoded'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ method: 'charge_list',
|
|
|
+ timestamp: getApp().globalData.globalTimestamp, //Date.now()
|
|
|
+ uid:getApp().globalData.user_id,
|
|
|
+ sign: md5('charge_list' + getApp().globalData.globalTimestamp),
|
|
|
+ },
|
|
|
+ success: res => {
|
|
|
+ that.payList = res.data.msg
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
|