From a7f9544bc5981f7834be835b3ef99b4493deaaf7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=81=E6=9D=B0?= <727475508@qq.com>
Date: Tue, 9 Jun 2026 17:49:15 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=AE=9A=E4=B9=89=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E5=A4=87=E4=BB=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/dynamic-form/FormItemCheckbox.vue | 97 +
components/dynamic-form/FormItemImage.vue | 112 +
components/dynamic-form/FormItemNumber.vue | 39 +
components/dynamic-form/FormItemRadio.vue | 71 +
components/dynamic-form/FormItemRichtext.vue | 83 +
components/dynamic-form/FormItemSelect.vue | 79 +
components/dynamic-form/FormItemText.vue | 39 +
components/dynamic-form/FormItemTextarea.vue | 56 +
components/dynamic-form/FormItemVideo.vue | 104 +
components/dynamic-form/dynamic-form.vue | 197 ++
pages/artisan/service-list.vue | 1501 ++++++-----
pages/shop/add-service.vue | 2519 ++++++++----------
utils/request.js | 12 +-
13 files changed, 2888 insertions(+), 2021 deletions(-)
create mode 100644 components/dynamic-form/FormItemCheckbox.vue
create mode 100644 components/dynamic-form/FormItemImage.vue
create mode 100644 components/dynamic-form/FormItemNumber.vue
create mode 100644 components/dynamic-form/FormItemRadio.vue
create mode 100644 components/dynamic-form/FormItemRichtext.vue
create mode 100644 components/dynamic-form/FormItemSelect.vue
create mode 100644 components/dynamic-form/FormItemText.vue
create mode 100644 components/dynamic-form/FormItemTextarea.vue
create mode 100644 components/dynamic-form/FormItemVideo.vue
create mode 100644 components/dynamic-form/dynamic-form.vue
diff --git a/components/dynamic-form/FormItemCheckbox.vue b/components/dynamic-form/FormItemCheckbox.vue
new file mode 100644
index 0000000..85dffca
--- /dev/null
+++ b/components/dynamic-form/FormItemCheckbox.vue
@@ -0,0 +1,97 @@
+
+
+
+
+ ✓
+
+ {{ item.label }}
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemImage.vue b/components/dynamic-form/FormItemImage.vue
new file mode 100644
index 0000000..2d6396c
--- /dev/null
+++ b/components/dynamic-form/FormItemImage.vue
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+ ×
+
+
+
+ +
+
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemNumber.vue b/components/dynamic-form/FormItemNumber.vue
new file mode 100644
index 0000000..1fcfa40
--- /dev/null
+++ b/components/dynamic-form/FormItemNumber.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemRadio.vue b/components/dynamic-form/FormItemRadio.vue
new file mode 100644
index 0000000..6d3c015
--- /dev/null
+++ b/components/dynamic-form/FormItemRadio.vue
@@ -0,0 +1,71 @@
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemRichtext.vue b/components/dynamic-form/FormItemRichtext.vue
new file mode 100644
index 0000000..0874f4f
--- /dev/null
+++ b/components/dynamic-form/FormItemRichtext.vue
@@ -0,0 +1,83 @@
+
+
+
+ 加粗
+ 斜体
+ 图片
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemSelect.vue b/components/dynamic-form/FormItemSelect.vue
new file mode 100644
index 0000000..1e717cf
--- /dev/null
+++ b/components/dynamic-form/FormItemSelect.vue
@@ -0,0 +1,79 @@
+
+
+
+
+ {{ selectedLabel || placeholder }}
+
+
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemText.vue b/components/dynamic-form/FormItemText.vue
new file mode 100644
index 0000000..5abc0c0
--- /dev/null
+++ b/components/dynamic-form/FormItemText.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemTextarea.vue b/components/dynamic-form/FormItemTextarea.vue
new file mode 100644
index 0000000..3783306
--- /dev/null
+++ b/components/dynamic-form/FormItemTextarea.vue
@@ -0,0 +1,56 @@
+
+
+
+ {{ (value || '').length }}/200
+
+
+
+
+
+
diff --git a/components/dynamic-form/FormItemVideo.vue b/components/dynamic-form/FormItemVideo.vue
new file mode 100644
index 0000000..31bca3f
--- /dev/null
+++ b/components/dynamic-form/FormItemVideo.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+ ×
+
+
+
+ +
+ 选择视频
+
+
+
+
+
+
+
diff --git a/components/dynamic-form/dynamic-form.vue b/components/dynamic-form/dynamic-form.vue
new file mode 100644
index 0000000..e5a564c
--- /dev/null
+++ b/components/dynamic-form/dynamic-form.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/artisan/service-list.vue b/pages/artisan/service-list.vue
index 942f783..9ae8a75 100644
--- a/pages/artisan/service-list.vue
+++ b/pages/artisan/service-list.vue
@@ -49,18 +49,18 @@
{{
- item.state == 0
- ? "草稿"
- : item.state == 1
- ? "审核中"
- : item.state == 2
- ? "已上架"
- : item.state == 3
- ? "下架"
- : item.state == 4
- ? "驳回"
- : ""
- }}
+ item.state == 0
+ ? "草稿"
+ : item.state == 1
+ ? "审核中"
+ : item.state == 2
+ ? "已上架"
+ : item.state == 3
+ ? "下架"
+ : item.state == 4
+ ? "驳回"
+ : ""
+ }}
@@ -100,170 +100,160 @@
+
+
+
\ No newline at end of file
diff --git a/pages/shop/add-service.vue b/pages/shop/add-service.vue
index 74b3a03..58feffd 100644
--- a/pages/shop/add-service.vue
+++ b/pages/shop/add-service.vue
@@ -11,241 +11,8 @@
-
-
- 服务名称
-
-
-
-
-
- 服务定价
-
-
- 服务的基础定价,未参与任何优惠的价格
-
-
-
-
-
- 服务售价
-
-
- 服务参与单品优惠后的价格
-
-
-
-
-
- 服务分类
-
-
- {{ serviceType || "选择分类" }}
-
-
-
-
-
-
-
- 服务子类
-
-
- {{ category || "选择子类" }}
-
-
-
-
-
-
-
-
- 是否允许该服务在门店端售卖,以供门店下单购买。
- {{
- showShopPrice
- ? "门店下单购买后,您需到上门至门店进行服务,门店端展示价格为"
- : ""
- }}
- {{
- shopPrice
- }}
- {{ showShopPrice ? "元。" : "" }}
-
-
-
-
- 允许
-
-
-
- 不允许
-
-
-
-
-
-
- 服务时长
-
- 分钟
-
-
-
-
-
-
-
- 图文详情
-
- {{
- formData.graphic_details ? "已设置" : "去设置"
- }}
-
-
-
-
-
-
-
- 服务简介
-
-
-
- 服务功效
-
-
- {{(detailForm.effect || '').length}}/200
-
-
-
-
- 适用人群
-
-
- {{(detailForm.crowd || '').length}}/200
-
-
-
-
- 产品清单
-
-
- {{(detailForm.product || '').length}}/200
-
-
-
-
- 适用范围
-
-
- {{(detailForm.scope || '').length}}/200
-
-
-
-
- 温馨提示
-
-
- {{(detailForm.tips || '').length}}/200
-
-
-
-
-
- 服务流程
- 添加
-
-
- 第{{ i + 1 }}步
-
-
-
-
-
-
-
-
-
-
-
-
- 上传短视频
- (仅可上传1个视频)
-
-
-
-
-
-
-
-
-
- 服务图片
- (仅可上传9个图片)
-
-
-
-
-
+
+
@@ -256,16 +23,6 @@
-
-
-
-
-
-
-
美融融plus 对储存空间/照片权限申请说明
@@ -275,1230 +32,1158 @@
美融融plus 对相机拍摄权限申请说明
便于您使用该功能上传您的照片/图片/视频以及用于更换头像、发布商品等场景中所需内容。
-
-
-
-
-
-
\ No newline at end of file
diff --git a/utils/request.js b/utils/request.js
index 60b54af..da106d8 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -120,14 +120,14 @@ const request = async (options, isUpdate) => {
if (process.env.NODE_ENV === "development") {
baseURL = url; // 发布到生产环境时,此处代码会被摇树移除掉。
- // baseURL = "http://116.63.163.121:93"; // 发布到生产环境时,此处代码会被摇树移除掉。
- //baseURL = 'http://60.247.146.5:96'; // 发布到生产环境时,此处代码会被摇树移除掉。
- baseURL = "https://app.mrrweb.com.cn";
+ baseURL = "http://116.63.163.121:93"; // 发布到生产环境时,此处代码会被摇树移除掉。
+ //baseURL = 'http://116.63.163.121:96'; // 发布到生产环境时,此处代码会被摇树移除掉。
+ // baseURL = "https://app.mrrweb.com.cn";
} else {
baseURL = url; // 发布到生产环境时,此处代码会被摇树移除掉。
- // baseURL = "http://116.63.163.121:93"; // 发布到生产环境时,此处代码会被摇树移除掉。
- //baseURL = 'http://60.247.146.5:96'; // 发布到生产环境时,此处代码会被摇树移除掉。
- baseURL = "https://app.mrrweb.com.cn";
+ baseURL = "http://116.63.163.121:93"; // 发布到生产环境时,此处代码会被摇树移除掉。
+ //baseURL = 'http://116.63.163.121:96'; // 发布到生产环境时,此处代码会被摇树移除掉。
+ // baseURL = "https://app.mrrweb.com.cn";
console.log("生产环境");
}