From cb434a532c91c8b5080105d7076c18b275bd7b64 Mon Sep 17 00:00:00 2001 From: liguigong Date: Fri, 19 Sep 2025 10:19:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A6=96=E9=A1=B5):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AF=95=E8=A1=A3=E9=97=B4=E9=A1=B5=E9=9D=A2=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=B8=E5=85=B3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增试衣间页面组件,支持店铺装修和轮播图功能- 更新 .env 文件,修改开发环境基础 URL - 调整 app.js 中的初始化逻辑, --- .env | 2 +- pages.json | 12 +++ pages/fittingRoom/index.vue | 142 ++++++++++++++++++++++++++++++++++++ sheep/store/app.js | 12 +-- 4 files changed, 161 insertions(+), 7 deletions(-) create mode 100644 pages/fittingRoom/index.vue diff --git a/.env b/.env index 62323b3..4c8aa5c 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ SHOPRO_VERSION=v2.4.1 SHOPRO_BASE_URL=http://api-dashboard.yudao.iocoder.cn # 后端接口 - 测试环境(通过 process.env.NODE_ENV = development) -SHOPRO_DEV_BASE_URL=http://114.215.197.144:8080 +SHOPRO_DEV_BASE_URL=https://puton.huimeimeta.com # SHOPRO_DEV_BASE_URL=http://127.0.0.1:48080 ### SHOPRO_DEV_BASE_URL=http://10.171.1.188:48080 ### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc diff --git a/pages.json b/pages.json index bd6123e..bf1b7f5 100644 --- a/pages.json +++ b/pages.json @@ -44,6 +44,18 @@ "group": "商城" } }, + { + "path": "pages/fittingRoom/index", + "style": { + "navigationBarTitleText": "试衣间", + "enablePullDownRefresh": true + }, + "meta": { + "sync": true, + "title": "试衣间", + "group": "商城" + } + }, { "path": "pages/index/category", "style": { diff --git a/pages/fittingRoom/index.vue b/pages/fittingRoom/index.vue new file mode 100644 index 0000000..2ee1a01 --- /dev/null +++ b/pages/fittingRoom/index.vue @@ -0,0 +1,142 @@ + + + + + + diff --git a/sheep/store/app.js b/sheep/store/app.js index 3302797..7065383 100644 --- a/sheep/store/app.js +++ b/sheep/store/app.js @@ -63,10 +63,10 @@ const app = defineStore({ } // 加载租户 - await adaptTenant(); + // await adaptTenant(); // 加载装修配置 - await adaptTemplate(this.template, templateId); + // await adaptTemplate(this.template, templateId); // TODO 芋艿:【初始化优化】未来支持管理后台可配;对应 https://api.shopro.sheepjs.com/shop/api/init if (true) { @@ -104,10 +104,10 @@ const app = defineStore({ sysStore.setTheme(); // 模拟用户登录 - const userStore = user(); - if (userStore.isLogin) { - userStore.loginAfter(); - } + // const userStore = user(); + // if (userStore.isLogin) { + // userStore.loginAfter(); + // } return Promise.resolve(true); } else { $router.error('InitError', res.msg || '加载失败');