余额
This commit is contained in:
parent
fa782d2a51
commit
4140d8e8d6
@ -4,7 +4,9 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
money:String,
|
||||
date:String,
|
||||
time:String
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
<view class="yuedetail">
|
||||
<view class="left">
|
||||
<view class="date">2017-02-21</view>
|
||||
<view class="time">17:23:25</view>
|
||||
<view class="date">{{date}}</view>
|
||||
<view class="time">{{time}}</view>
|
||||
</view>
|
||||
<view class="right">-1234.00</view>
|
||||
<view class="right">{{money}}</view>
|
||||
</view>
|
@ -4,7 +4,7 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
money:String
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
<view class="yuetop">
|
||||
<view class="all">总资产</view>
|
||||
<view class="money">
|
||||
<text>615.96</text>
|
||||
<text>{{money}}</text>
|
||||
<text class="chong">充值</text>
|
||||
</view>
|
||||
</view>
|
@ -1,23 +1,38 @@
|
||||
// pages/yue/yue.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
import bin from "../../utils/bin"
|
||||
Page({
|
||||
data: {
|
||||
|
||||
money:"",
|
||||
list:[]
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
onLoad(a) {
|
||||
bin.request({
|
||||
url:"User/validateOpenid"
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
if(res.data.code == 200){
|
||||
this.setData({
|
||||
money : res.data.data.user_money
|
||||
})
|
||||
}
|
||||
})
|
||||
bin.getuserid().then((userid) => {
|
||||
bin.request({
|
||||
url: "User/account",
|
||||
urldata: {
|
||||
user_id : userid,
|
||||
page:0
|
||||
}
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
for(let i in res.data.result){
|
||||
let linshi = res.data.result[i].change_time.split(" ")
|
||||
res.data.result[i].date = linshi[0]
|
||||
res.data.result[i].time = linshi[1]
|
||||
}
|
||||
this.setData({
|
||||
list:res.data.result
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
@ -1,19 +1,18 @@
|
||||
<view class="yue">
|
||||
<yuetop></yuetop>
|
||||
<yuetop money="{{money}}"></yuetop>
|
||||
<view class="title">
|
||||
<yuetitle></yuetitle>
|
||||
<yuetitle></yuetitle>
|
||||
</view>
|
||||
<view class="detail" wx:for="{{list}}" wx:key="{{index}}">
|
||||
<yuedetail money="{{item.user_money}}" date="{{item.date}}" time="{{item.time}}"></yuedetail>
|
||||
</view>
|
||||
<!-- <view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
<view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
<view class="detail">
|
||||
<view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
<view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
<view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
|
||||
</view> -->
|
||||
</view>
|
Loading…
x
Reference in New Issue
Block a user