佣金
This commit is contained in:
@@ -1,18 +1,40 @@
|
||||
// pages/share/share.js
|
||||
import bin from "../../utils/bin"
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
list:{},
|
||||
user:{}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
bin.getuserid().then((id)=>{
|
||||
bin.request({
|
||||
url:"Distribut/rebateLogList",
|
||||
data:{
|
||||
user_id:id
|
||||
}
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
this.setData({
|
||||
list:res.data.data
|
||||
})
|
||||
})
|
||||
})
|
||||
bin.request({
|
||||
url:"User/validateOpenid"
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
this.setData({
|
||||
user:res.data.data
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"navigationBarTitleText": "佣金列表",
|
||||
"usingComponents": {
|
||||
"share": "/components/yue/share/share",
|
||||
"yuedetail": "/components/yue/yuedetail/yuedetail"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<view class="share">
|
||||
<share></share>
|
||||
<view class="detail">
|
||||
<share A="{{list.group.A}}" B="{{list.group.B}}" C="{{list.group.C}}" name="{{user.nick_name}}" img="{{user.head_pic}}"></share>
|
||||
<view class="detail" wx:for="{{list.logList}}" wx:key="{{index}}">
|
||||
<yuedetail date="{{item.date}}" time="{{item.content}}" money="{{item.money}}"></yuedetail>
|
||||
</view>
|
||||
<!-- <view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
<view class="detail">
|
||||
@@ -8,8 +11,5 @@
|
||||
</view>
|
||||
<view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
<view class="detail">
|
||||
<yuedetail></yuedetail>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
Reference in New Issue
Block a user