佣金
This commit is contained in:
parent
6c2e1acd4a
commit
fe9beef904
@ -71,3 +71,4 @@
|
||||
- member/membertop 会员商品顶部的字
|
||||
- member/membershop 单个商品
|
||||
- pages/deposit/deposit 提现
|
||||
- pages/commission/commission 当前佣金
|
5
app.json
5
app.json
@ -1,6 +1,8 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/share/share",
|
||||
"pages/commission/commission",
|
||||
"pages/login/login",
|
||||
"pages/search/search",
|
||||
"pages/shopping/shopping",
|
||||
@ -23,9 +25,8 @@
|
||||
"pages/deposit/deposit",
|
||||
"pages/yue/yue",
|
||||
|
||||
"pages/yongjin/yongjin",
|
||||
"pages/yongjin/yongjin"
|
||||
|
||||
"pages/share/share"
|
||||
],
|
||||
"window": {
|
||||
"backgroundTextStyle": "light",
|
||||
|
@ -4,7 +4,11 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
name:String,
|
||||
img:String,
|
||||
A:String,
|
||||
B:String,
|
||||
C:String
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
.midbox {
|
||||
width: 478rpx;
|
||||
width: 590rpx;
|
||||
height: 175rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@ -60,6 +60,7 @@
|
||||
}
|
||||
.money1 {
|
||||
color: #F81F1F;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.line {
|
||||
width: 2rpx;
|
||||
|
@ -1,9 +1,9 @@
|
||||
<view class="box">
|
||||
<view class="img"></view>
|
||||
<view class="yongjintop">
|
||||
<image class="photo"></image>
|
||||
<image class="photo" src="{{img}}"></image>
|
||||
<view class="tel">
|
||||
<view>156***578</view>
|
||||
<view>{{name}}</view>
|
||||
<view class="mingpian">我的名片</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -11,18 +11,26 @@
|
||||
<view class="mid">
|
||||
<view class="midbox">
|
||||
<view>
|
||||
<view class="way">昨日收益</view>
|
||||
<view class="way">A级</view>
|
||||
<view class="money">
|
||||
<text class="money1">657.00</text>
|
||||
<text>RMB</text>
|
||||
<text class="money1">{{A}}</text>
|
||||
<text>人</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
<view>
|
||||
<view class="way">昨日收益</view>
|
||||
<view class="way">B级</view>
|
||||
<view class="money">
|
||||
<text class="money1">657.00</text>
|
||||
<text>RMB</text>
|
||||
<text class="money1">{{B}}</text>
|
||||
<text>人</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
<view>
|
||||
<view class="way">C级</view>
|
||||
<view class="money">
|
||||
<text class="money1">{{C}}</text>
|
||||
<text>人</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -1,78 +1 @@
|
||||
.box {
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 41rpx;
|
||||
border-bottom: 2rpx solid #EEEEEE;
|
||||
}
|
||||
|
||||
.box .img {
|
||||
width: 40rpx;
|
||||
height: 39rpx;
|
||||
background-color: #999999;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.box .yongjintop {
|
||||
width: 317rpx;
|
||||
margin-top: 71rpx;
|
||||
margin-left: 30rpx;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.box .yongjintop .photo {
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
background-color: gold;
|
||||
margin-bottom: 52rpx;
|
||||
border-radius: 90%;
|
||||
}
|
||||
|
||||
.box .yongjintop .tel {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
margin-top: 33rpx;
|
||||
margin-left: 35rpx;
|
||||
}
|
||||
|
||||
.box .yongjintop .tel .mingpian {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
|
||||
.mid {
|
||||
width: 100%;
|
||||
height: 175rpx;
|
||||
border-bottom: 20rpx solid #FBFBFB;
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mid .midbox {
|
||||
width: 478rpx;
|
||||
height: 175rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.mid .way {
|
||||
margin-top: 46rpx;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.mid .money {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.mid .money1 {
|
||||
color: #F81F1F;
|
||||
}
|
||||
|
||||
.mid .line {
|
||||
width: 2rpx;
|
||||
height: 60rpx;
|
||||
margin: auto 0;
|
||||
background-color: #EEEEEE;
|
||||
}
|
||||
.box{width:690rpx;margin:0 auto;padding-bottom:41rpx;border-bottom:2rpx solid #EEEEEE}.box .img{width:40rpx;height:39rpx;background-color:#999999;float:right}.box .yongjintop{width:317rpx;margin-top:71rpx;margin-left:30rpx;display:flex}.box .yongjintop .photo{width:130rpx;height:130rpx;background-color:gold;margin-bottom:52rpx;border-radius:90%}.box .yongjintop .tel{color:#333333;font-size:28rpx;margin-top:33rpx;margin-left:35rpx}.box .yongjintop .tel .mingpian{font-size:24rpx;color:#999999;margin-top:18rpx}.mid{width:100%;height:175rpx;border-bottom:20rpx solid #FBFBFB;color:#333333;font-size:28rpx;text-align:center}.mid .midbox{width:590rpx;height:175rpx;display:flex;justify-content:space-between;margin:0 auto}.mid .way{margin-top:46rpx;margin-bottom:14rpx}.mid .money{font-size:24rpx}.mid .money1{color:#F81F1F;font-size:24rpx}.mid .line{width:2rpx;height:60rpx;margin:auto 0;background-color:#EEEEEE}
|
||||
|
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,4 +1,5 @@
|
||||
{
|
||||
"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>
|
Loading…
Reference in New Issue
Block a user