commission--yt-commit
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { baseUrl } from "../../../request";
|
||||
|
||||
// pages/personCenter/subCommissionSetting/subCommissionSetting.js
|
||||
Page({
|
||||
|
||||
@ -8,6 +10,9 @@ Page({
|
||||
items_1: [null, null, null],
|
||||
items: [null, null],
|
||||
showCommissionRatePop: false,
|
||||
id: 0, // 项目id
|
||||
subCommissionList: [], // 下级抽佣列表
|
||||
|
||||
},
|
||||
|
||||
// 点击“设价”按钮,显示弹窗
|
||||
@ -27,11 +32,36 @@ Page({
|
||||
this.closeCommissionRatePop();
|
||||
},
|
||||
|
||||
// 查询下级抽佣情况
|
||||
getSubCommissionList() {
|
||||
const id = this.data.id
|
||||
wx.request({
|
||||
url: baseUrl + '/projectCommission/query/sub/commission',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token'),
|
||||
},
|
||||
data: { id: id },
|
||||
success: res => {
|
||||
console.log('下级抽佣列表----->',res.data.data);
|
||||
if (res.data.code === 1) {
|
||||
this.setData({
|
||||
subCommissionList: res.data.data
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
console.log('----->',options);
|
||||
this.setData({
|
||||
id: options.id
|
||||
})
|
||||
this.getSubCommissionList()
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -10,8 +10,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-col mt-16">
|
||||
<view class="flex-col list-item_1 mt-23" wx:for="{{items}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<text class="self-start font_2 text_3">结算标准:张新然</text>
|
||||
<view class="flex-col list-item_1 mt-23" wx:for="{{ subCommissionList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<text class="self-start font_2 text_3">结算标准:{{ item.subUserNickName }}</text>
|
||||
<view class="flex-col self-stretch section_3 mt-17">
|
||||
<view class="flex-row justify-between items-center">
|
||||
<text class="font_3 text_4">结算标准</text>
|
||||
@ -21,13 +21,13 @@
|
||||
<view class="flex-col mt-19">
|
||||
<view
|
||||
class="flex-row items-center list-item mt-13"
|
||||
wx:for="{{items_1}}"
|
||||
wx:for-item="item"
|
||||
wx:for="{{ item.subUserProjectDetailCommissionVOList }}"
|
||||
wx:for-item="DetailCommission"
|
||||
wx:for-index="index"
|
||||
wx:key="index"
|
||||
>
|
||||
<text class="font_5 text_5">3.6元购买30元</text>
|
||||
<text class="shrink-0 font_2 text_8">0.30/0.00%</text>
|
||||
<text class="font_5 text_5">{{ DetailCommission.projectDetailName }}</text>
|
||||
<text class="shrink-0 font_2 text_8">{{ DetailCommission.agentUnitPrice }}/{{ DetailCommission.currentCommissionRate }}%</text>
|
||||
<view class="flex-row shrink-0 group_2" bindtap="showCommissionRatePop">
|
||||
<image
|
||||
class="image_2"
|
||||
|
Reference in New Issue
Block a user