完善管理师预约项目与美甲师创建
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user