完成小程序端接单模块的前端部分
This commit is contained in:
BIN
pages/personCenter/subCommissionSetting/images/ss.png
Normal file
BIN
pages/personCenter/subCommissionSetting/images/ss.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 951 B |
BIN
pages/personCenter/subCommissionSetting/images/yjt.png
Normal file
BIN
pages/personCenter/subCommissionSetting/images/yjt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 290 B |
@ -7,6 +7,24 @@ Page({
|
||||
data: {
|
||||
items_1: [null, null, null],
|
||||
items: [null, null],
|
||||
showCommissionRatePop: false,
|
||||
},
|
||||
|
||||
// 点击“设价”按钮,显示弹窗
|
||||
showCommissionRatePop() {
|
||||
this.setData({ showCommissionRatePop: true });
|
||||
},
|
||||
|
||||
// 关闭弹窗(包括遮罩点击和取消按钮)
|
||||
closeCommissionRatePop() {
|
||||
this.setData({ showCommissionRatePop: false });
|
||||
},
|
||||
|
||||
// 确认按钮回调
|
||||
handleCommissionRateConfirm(e) {
|
||||
const { agentPrice, commissionRate, pricingMethod } = e.detail;
|
||||
console.log('设置数据:', agentPrice, commissionRate, pricingMethod);
|
||||
this.closeCommissionRatePop();
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
<view class="flex-row items-center section">
|
||||
<image
|
||||
class="image"
|
||||
src="https://ide.code.fun/api/image?token=68368d354ae84d001230f4d1&name=923cbdfd7647bf70f563354b3b547dea.png"
|
||||
src="./images/ss.png"
|
||||
/>
|
||||
<input class="font text_2 ml-7" placeholder="请输入关键字" />
|
||||
</view>
|
||||
@ -31,7 +31,7 @@
|
||||
<view class="flex-row shrink-0 group_2" bindtap="showCommissionRatePop">
|
||||
<image
|
||||
class="image_2"
|
||||
src="https://ide.code.fun/api/image?token=68368d354ae84d001230f4d1&name=2994ec01c6859d93ce653a6cb3d50301.png"
|
||||
src="./images/yjt.png"
|
||||
/>
|
||||
<text class="font_6 text_7">设价</text>
|
||||
</view>
|
||||
|
Reference in New Issue
Block a user