完善管理师预约项目与美甲师创建

This commit is contained in:
2026-06-24 20:54:41 +08:00
parent 03c972d90c
commit eda109cb62
28 changed files with 911 additions and 32 deletions
@@ -194,7 +194,11 @@ Page({
* Purpose: shopId supports index.js by holding or executing the shop id page or API role.
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
*/
shopId: ''
shopId: '',
/**
* 前台展示开关,手动预约项目补全前保持隐藏。
*/
frontVisible: 1
}
},
@@ -279,7 +283,11 @@ Page({
* Purpose: shopId supports index.js by holding or executing the shop id page or API role.
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
*/
shopId: currentProduct.shopId || ''
shopId: currentProduct.shopId || '',
/**
* 编辑时回填前台展示开关。
*/
frontVisible: currentProduct.frontVisible === 0 ? 0 : 1
}
})
}
@@ -503,6 +511,13 @@ Page({
this.scheduleProductDraft()
},
handleFrontVisibleChange(event) {
this.setData({
'form.frontVisible': event.detail.value ? 1 : 0
})
this.scheduleProductDraft()
},
/**
* Purpose: handleShopChange supports index.js by holding or executing the handle shop change page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
@@ -769,7 +784,11 @@ Page({
* Purpose: availableCoupons supports index.js by holding or executing the available coupons page or API role.
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
*/
availableCoupons: this._selectedCouponIds.join(',') || undefined
availableCoupons: this._selectedCouponIds.join(',') || undefined,
/**
* 后台补全后可手动发布到用户端。
*/
frontVisible: this.data.form.frontVisible === 0 ? 0 : 1
}
try {
@@ -42,6 +42,12 @@
<text class="field-label">收藏数量</text>
<input class="field-input" type="number" value="{{form.collectCount}}" data-field="collectCount" bindinput="handleInputChange"></input>
</view>
<view class="field-group switch-field">
<view>
<text class="field-label">前台展示</text>
</view>
<switch checked="{{form.frontVisible === 1}}" bindchange="handleFrontVisibleChange"></switch>
</view>
<view class="field-group">
<text class="field-label">作品图片</text>
@@ -3,3 +3,10 @@ checkbox {
transform: scale(0.75);
margin-right: 8rpx;
}
.switch-field {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24rpx;
}