体现
This commit is contained in:
@@ -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
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
|
||||
@@ -4,4 +4,9 @@
|
||||
|
||||
.title {
|
||||
margin-top: 40rpx
|
||||
}
|
||||
.tixian{
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 60rpx;
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user