commission--yt-commit
This commit is contained in:
@ -7,16 +7,30 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
items_1: [null, null, null],
|
||||
items: [null, null],
|
||||
showCommissionRatePop: false,
|
||||
showCommissionRatePop: false, // 控制弹窗显隐
|
||||
id: 0, // 项目id
|
||||
subCommissionList: [], // 下级抽佣列表
|
||||
|
||||
projectId: 0, // 项目ID
|
||||
maxCommissionRate: 0, // 最大抽佣比率
|
||||
LodingHidden: true, // 控制加载框取消
|
||||
nowMyUnitPrice: 0, // 现在的‘我的单价’,用于传给弹窗
|
||||
nowCommissionRate: 0, // 现在的'抽成比例', 用于传给弹窗
|
||||
nowAgentUnitPrice: 0, // 现在的‘代理单价’,用于传给弹窗
|
||||
nowProjectDetailName: '', // 现在的‘项目详细名称’,用于传给弹窗
|
||||
isSub: true, // 用于区分是项目抽佣页面还是单个用户抽佣页面
|
||||
},
|
||||
|
||||
// 点击“设价”按钮,显示弹窗
|
||||
showCommissionRatePop() {
|
||||
showCommissionRatePop(e) {
|
||||
console.log('弹窗传值----->',e);
|
||||
this.setData({
|
||||
nowCommissionRate: e.currentTarget.dataset.currentcommissionrate,
|
||||
nowMyUnitPrice: e.currentTarget.dataset.nowmyunitprice,
|
||||
nowAgentUnitPrice: e.currentTarget.dataset.agentunitprice,
|
||||
nowProjectDetailName: e.currentTarget.dataset.projectdetailname,
|
||||
projectId: e.currentTarget.dataset.detailid,
|
||||
maxCommissionRate: e.currentTarget.dataset.maxcommissionrate,
|
||||
})
|
||||
this.setData({ showCommissionRatePop: true });
|
||||
},
|
||||
|
||||
@ -27,8 +41,7 @@ Page({
|
||||
|
||||
// 确认按钮回调
|
||||
handleCommissionRateConfirm(e) {
|
||||
const { agentPrice, commissionRate, pricingMethod } = e.detail;
|
||||
console.log('设置数据:', agentPrice, commissionRate, pricingMethod);
|
||||
this.getSubCommissionList();
|
||||
this.closeCommissionRatePop();
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user