This commit is contained in:
2019-12-30 09:05:39 +08:00
parent 17591d9e31
commit 1088d64c93
8 changed files with 48 additions and 85 deletions

View File

@@ -1,17 +1,40 @@
// pages/yongjin/yongjin.js
import bin from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
user:{},
list:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
bin.request({
url:"User/validateOpenid"
}).then((res)=>{
console.log(res)
this.setData({
user:res.data.data
})
})
bin.getuserid().then((id)=>{
bin.request({
url:"User/my_bill",
urldata:{
user_id:id
}
}).then((res)=>{
console.log(res)
this.setData({
list:res.data
})
})
})
},

View File

@@ -4,4 +4,9 @@
.title {
margin-top: 40rpx
}
.tixian{
position: absolute;
top: 20rpx;
right: 60rpx;
}

View File

@@ -1,9 +1,12 @@
<view class="yongjin">
<yongjintop></yongjintop>
<yongjintop tel="{{user.nick_name}}" img="{{user.head_pic}}"></yongjintop>
<view class="title">
<yuetitle></yuetitle>
<yuetitle ></yuetitle>
</view>
<view class="detail">
<view class="detail" wx:for="{{list}}" wx:key="{{index}}">
<yuedetail date="{{item.change_time}}" money="{{item.user_money}}" time="00-00-00"></yuedetail>
</view>
<!-- <view class="detail">
<yuedetail></yuedetail>
</view>
<view class="detail">
@@ -11,8 +14,6 @@
</view>
<view class="detail">
<yuedetail></yuedetail>
</view>
<view class="detail">
<yuedetail></yuedetail>
</view>
</view> -->
<view class="tixian">提现</view>
</view>

View File

@@ -1,7 +1 @@
.detail {
margin-top: 41rpx;
}
.title {
margin-top: 40rpx;
}
.detail{margin-top:41rpx}.title{margin-top:40rpx}.tixian{position:absolute;top:20rpx;right:60rpx}