佣金
This commit is contained in:
66
pages/commission/commission.js
Normal file
66
pages/commission/commission.js
Normal file
@@ -0,0 +1,66 @@
|
||||
// pages/commission/commission.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
6
pages/commission/commission.json
Normal file
6
pages/commission/commission.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"yuedetail": "/components/yue/yuedetail/yuedetail"
|
||||
|
||||
}
|
||||
}
|
||||
45
pages/commission/commission.scss
Normal file
45
pages/commission/commission.scss
Normal file
@@ -0,0 +1,45 @@
|
||||
.box{
|
||||
background-color: #eee;
|
||||
padding:0 30rpx;
|
||||
.top{
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
.tx{
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
|
||||
}
|
||||
.rigth{
|
||||
display: flex;
|
||||
.name{
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
.mp{
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
.xj{
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
>view{
|
||||
width: 263rpx;
|
||||
border-right: 1rpx solid #eee;
|
||||
}
|
||||
>view:last-child{
|
||||
border:none;
|
||||
}
|
||||
}
|
||||
.list{
|
||||
margin-top: 20rpx;
|
||||
background-color: #fff;
|
||||
.title{
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
25
pages/commission/commission.wxml
Normal file
25
pages/commission/commission.wxml
Normal file
@@ -0,0 +1,25 @@
|
||||
<view class="box">
|
||||
<view class="top">
|
||||
<image src="{{img}}" class="tx"></image>
|
||||
<view class="rigth">
|
||||
<view class="name"></view>
|
||||
<view class="mp"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="xj">
|
||||
<view>
|
||||
<text>A级</text>
|
||||
<text>0</text>
|
||||
</view>
|
||||
<view><text> B级</text>
|
||||
<text>0</text></view>
|
||||
<view><text>C级</text>
|
||||
<text>0</text></view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="title">佣金明细 </view>
|
||||
<view>
|
||||
<yuedetail date="2019-09-09" money="+12000" time="00-00-00"></yuedetail>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
1
pages/commission/commission.wxss
Normal file
1
pages/commission/commission.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.box{background-color:#eee;padding:0 30rpx}.box .top{background-color:#fff;display:flex}.box .top .tx{width:130rpx;height:130rpx}.box .top .rigth{display:flex}.box .top .rigth .name{font-size:28rpx;color:#333}.box .top .rigth .mp{font-size:24rpx;color:#999}.box .xj{background-color:#fff;display:flex}.box .xj>view{width:263rpx;border-right:1rpx solid #eee}.box .xj>view:last-child{border:none}.box .list{margin-top:20rpx;background-color:#fff}.box .list .title{font-size:28rpx;color:#333}
|
||||
@@ -74,6 +74,17 @@ Page({
|
||||
})
|
||||
}
|
||||
},
|
||||
share(){
|
||||
|
||||
wx.navigateTo({ // request({
|
||||
// url:"User/validateOpenid"
|
||||
// }).then((res)=>{
|
||||
|
||||
// })
|
||||
url:"/pages/share/share"
|
||||
})
|
||||
|
||||
},
|
||||
onReady: function() {
|
||||
|
||||
},
|
||||
|
||||
@@ -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