qingcheng-xiaochengxu/pages/personCenter/component/commissionRatePop/commissionRatePop.js

41 lines
740 B
JavaScript
Raw Normal View History

2025-05-29 00:56:35 +00:00
Component({
/**
* 组件的属性列表
*/
properties: {
show: { // 控制显示/隐藏
type: Boolean,
value: false
},
2025-06-04 02:41:47 +00:00
pgencyPrice: 0, // 代理价
commissionRate: 0, // 抽成比例
},
/**
* 处理输入框的变化
*/
handleInputChange(e) {
const { field } = e.target.dataset; // 获取字段名
this.setData({
[field]: e.detail.value, // 动态更新输入框数据
});
2025-05-29 00:56:35 +00:00
},
/**
* 组件的方法列表
*/
methods: {
close() {
this.triggerEvent('close');
},
cancel() {
this.triggerEvent('cancel');
},
confirm() {
// 触发confirm事件带数据
this.triggerEvent('confirm', {/*数据*/});
},
2025-05-30 00:30:19 +00:00
}
})