功能(小程序):同步用户体验流程到小程序

This commit is contained in:
xiaowang
2026-05-23 21:56:52 +08:00
parent 861eea933b
commit b67dae502f
38 changed files with 2163 additions and 126 deletions
@@ -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.