功能(小程序):同步用户体验流程到小程序
This commit is contained in:
@@ -155,6 +155,16 @@ Page({
|
||||
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
description: '',
|
||||
/**
|
||||
* Purpose: targetAudience records who or which scene this product is suitable for.
|
||||
* Usage: edit it in the product form and submit it with create/update payloads.
|
||||
*/
|
||||
targetAudience: '',
|
||||
/**
|
||||
* Purpose: precautions records service reminders for this product.
|
||||
* Usage: edit it in the product form and submit it with create/update payloads.
|
||||
*/
|
||||
precautions: '',
|
||||
/**
|
||||
* Purpose: price supports index.js by holding or executing the price 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.
|
||||
@@ -230,6 +240,16 @@ Page({
|
||||
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
description: currentProduct.description || '',
|
||||
/**
|
||||
* Purpose: targetAudience restores the existing product suitable-audience text in edit mode.
|
||||
* Usage: bind this field to the form textarea and submit it unchanged unless the operator edits it.
|
||||
*/
|
||||
targetAudience: currentProduct.targetAudience || '',
|
||||
/**
|
||||
* Purpose: precautions restores the existing product reminder text in edit mode.
|
||||
* Usage: bind this field to the form textarea and submit it unchanged unless the operator edits it.
|
||||
*/
|
||||
precautions: currentProduct.precautions || '',
|
||||
/**
|
||||
* Purpose: price supports index.js by holding or executing the price 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.
|
||||
@@ -700,6 +720,16 @@ Page({
|
||||
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
description: this.data.form.description || undefined,
|
||||
/**
|
||||
* Purpose: targetAudience sends the optional suitable-audience text to the backend.
|
||||
* Usage: leave it undefined when empty so old products can hide the section on user detail pages.
|
||||
*/
|
||||
targetAudience: this.data.form.targetAudience || undefined,
|
||||
/**
|
||||
* Purpose: precautions sends the optional reminder text to the backend.
|
||||
* Usage: leave it undefined when empty so old products can hide the section on user detail pages.
|
||||
*/
|
||||
precautions: this.data.form.precautions || undefined,
|
||||
/**
|
||||
* Purpose: imageFileIds supports index.js by holding or executing the image file ids 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.
|
||||
|
||||
@@ -26,6 +26,14 @@
|
||||
<text class="field-label">作品描述</text>
|
||||
<textarea class="field-textarea" value="{{form.description}}" data-field="description" bindinput="handleInputChange"></textarea>
|
||||
</view>
|
||||
<view class="field-group">
|
||||
<text class="field-label">适合人群</text>
|
||||
<textarea class="field-textarea" value="{{form.targetAudience}}" data-field="targetAudience" bindinput="handleInputChange" placeholder="例如:短甲、通勤、婚礼跟妆"></textarea>
|
||||
</view>
|
||||
<view class="field-group">
|
||||
<text class="field-label">注意事项</text>
|
||||
<textarea class="field-textarea" value="{{form.precautions}}" data-field="precautions" bindinput="handleInputChange" placeholder="例如:完成后 24 小时内避免长时间热水浸泡"></textarea>
|
||||
</view>
|
||||
<view class="field-group">
|
||||
<text class="field-label">点赞数量</text>
|
||||
<input class="field-input" type="number" value="{{form.likeCount}}" data-field="likeCount" bindinput="handleInputChange"></input>
|
||||
|
||||
Reference in New Issue
Block a user