commission--yt-commit
This commit is contained in:
@ -8,10 +8,15 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
projectList: [], // 项目列表
|
||||
items_1: [null, null, null],
|
||||
items: [null, null],
|
||||
projectId: 0, // 项目ID
|
||||
maxCommissionRate: 0, // 最大抽佣比率
|
||||
showPopup: false, // 控制弹窗显隐
|
||||
LodingHidden: true, // 控制加载框取消
|
||||
showCommissionRatePop: false,
|
||||
nowMyUnitPrice: 0, // 现在的‘我的单价’,用于传给弹窗
|
||||
nowCommissionRate: 0, // 现在的'抽成比例', 用于传给弹窗
|
||||
nowAgentUnitPrice: 0, // 现在的‘代理单价’,用于传给弹窗
|
||||
nowProjectDetailName: '', // 现在的‘项目详细名称’,用于传给弹窗
|
||||
},
|
||||
|
||||
// 获取项目列表
|
||||
@ -76,7 +81,17 @@ Page({
|
||||
},
|
||||
|
||||
// 点击“设价”按钮,显示弹窗
|
||||
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 });
|
||||
},
|
||||
|
||||
@ -87,8 +102,7 @@ Page({
|
||||
|
||||
// 确认按钮回调
|
||||
handleCommissionRateConfirm(e) {
|
||||
const { agentPrice, commissionRate, pricingMethod } = e.detail;
|
||||
console.log('设置数据:', agentPrice, commissionRate, pricingMethod);
|
||||
this.getProjectList()
|
||||
this.closeCommissionRatePop();
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user