From 3f1879c72084e63b1469e91d9e6fc4e3b5ceaaed Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Mon, 23 Mar 2026 18:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AB=8B=E5=8D=B3=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 6 +- src/api/tea-room.ts | 2 +- src/bundle/package/detail.vue | 566 ++++++++++++++++++++++++ src/bundle/settle-in/tea-specialist.vue | 11 +- src/http/alova.ts | 1 + src/pages.json | 9 + src/pages/index/index.vue | 81 ++-- 7 files changed, 637 insertions(+), 39 deletions(-) create mode 100644 src/bundle/package/detail.vue diff --git a/env/.env.development b/env/.env.development index 171a4aa..77cbeb4 100644 --- a/env/.env.development +++ b/env/.env.development @@ -8,10 +8,10 @@ VITE_DELETE_CONSOLE = false VITE_SHOW_SOURCEMAP = true # 请求地址 -VITE_SERVER_BASEURL = 'https://76458.com' +VITE_SERVER_BASEURL = 'https://test1.stnav.com' # 图片上传路径 -VITE_UPLOAD_BASEURL = 'https://76458.com/upload' +VITE_UPLOAD_BASEURL = 'https://test1.stnav.com/upload' # 上传图片请求地址 -VITE_UPLOAD_BASEURL = 'https://76458.com/api/upload/image' +VITE_UPLOAD_BASEURL = 'https://test1.stnav.com/api/upload/image' VITE_UPLOAD_IMAGE_URL = 'https://chaz.oss-cn-shanghai.aliyuncs.com/' \ No newline at end of file diff --git a/src/api/tea-room.ts b/src/api/tea-room.ts index 40e2289..87c3564 100644 --- a/src/api/tea-room.ts +++ b/src/api/tea-room.ts @@ -66,7 +66,7 @@ export function getHomeTeaStoreList(data: IHomeTeaStoreListParams) { * 获取茶室开通城市列表 */ export function getOpenCityList() { - return http.Post('/api/teaStore/teaStoreCity', + return http.Post('/api/teaStore/teaStoreCity', null, { meta: { ignoreAuth: true } } diff --git a/src/bundle/package/detail.vue b/src/bundle/package/detail.vue new file mode 100644 index 0000000..a87c794 --- /dev/null +++ b/src/bundle/package/detail.vue @@ -0,0 +1,566 @@ + +{ + "needLogin": true, + "layout": "tabbar", + "style": { + "navigationStyle": "custom" + } +} + + + + + + diff --git a/src/bundle/settle-in/tea-specialist.vue b/src/bundle/settle-in/tea-specialist.vue index 69dd8c8..0fa8fad 100644 --- a/src/bundle/settle-in/tea-specialist.vue +++ b/src/bundle/settle-in/tea-specialist.vue @@ -130,16 +130,7 @@ v-for="(item, idx) in tagList" :key="item.id" class="tea-tag" - :class="{ 'tea-tag--active': selectedTags.includes(item.id) }" - :style="selectedTags.includes(item.id) - ? idx === 0 - ? 'background:#FAF1F1;color:#CE295A;' - : idx === 1 - ? 'background:#F1F3FA;color:#2934CE;' - : idx === 2 - ? 'background:#F1FAF9;color:#29C9CE;' - : 'background:#4C9F44;color:#fff;' - : 'background:#F3F3F3;color:#818CA9;' + :style="selectedTags.includes(item.id) ?'background:#4C9F44;color:#fff;' : 'background:#F3F3F3;color:#818CA9;' " @click="handleTagClick(item.id)" > diff --git a/src/http/alova.ts b/src/http/alova.ts index 27bfa17..cca7b7f 100644 --- a/src/http/alova.ts +++ b/src/http/alova.ts @@ -49,6 +49,7 @@ const alovaInstance = createAlova({ statesHook: VueHook, beforeRequest: onAuthRequired((method) => { + console.log("🚀 ~ method:", method) // 设置默认 Content-Type method.config.headers = { ContentType: ContentTypeEnum.JSON, diff --git a/src/pages.json b/src/pages.json index f8ef412..a20da5e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -242,6 +242,15 @@ "navigationBarTitleText": "分包页面" } }, + { + "path": "package/detail", + "type": "page", + "needLogin": true, + "layout": "tabbar", + "style": { + "navigationStyle": "custom" + } + }, { "path": "profile/profile", "type": "page", diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1971bfe..0cddbeb 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -32,7 +32,7 @@ - +