From f15933fc821d94b47db14d3bf9b5d3f4bd41a6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 7 Feb 2026 11:59:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E6=9B=B4=E6=96=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E9=85=8D=E7=BD=AE=E5=92=8C=E7=95=8C=E9=9D=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改开发环境API基础URL地址 - 移除门店选择相关功能组件和逻辑 - 调整页面背景渐变色和字体大小 - 优化轮播图触摸操作支持 - 更新分享标题为用户专属推荐 - 调整商品分类显示,隐藏部分分类入口 - 移除领券中心入口 - 简化配送时间选择,只选择日期不选择具体时间 - 移除门店选择界面元素 - 调整时间选择器为日期模式并修正时间格式化逻辑 --- config/env.ts | 4 +-- src/pages/index/Header.tsx | 42 ++++++++++++++-------------- src/pages/index/index.scss | 16 +++++------ src/pages/index/index.tsx | 22 +++++++-------- src/user/ticket/use.tsx | 56 ++++++++++++++++++++------------------ 5 files changed, 71 insertions(+), 69 deletions(-) diff --git a/config/env.ts b/config/env.ts index 78c1e6e..f630969 100644 --- a/config/env.ts +++ b/config/env.ts @@ -2,8 +2,8 @@ export const ENV_CONFIG = { // 开发环境 development: { - API_BASE_URL: 'http://127.0.0.1:9200/api', - // API_BASE_URL: 'https://mp-api.websoft.top/api', + // API_BASE_URL: 'http://127.0.0.1:9200/api', + API_BASE_URL: 'https://mp-api.websoft.top/api', APP_NAME: '开发环境', DEBUG: 'true', }, diff --git a/src/pages/index/Header.tsx b/src/pages/index/Header.tsx index 05d503c..a556a75 100644 --- a/src/pages/index/Header.tsx +++ b/src/pages/index/Header.tsx @@ -1,13 +1,13 @@ import {useEffect, useState} from "react"; import Taro from '@tarojs/taro'; import {Button, Sticky, Popup, Cell, CellGroup} from '@nutui/nutui-react-taro' -import {TriangleDown} from '@nutui/icons-react-taro' -import {Avatar, NavBar} from '@nutui/nutui-react-taro' +// import {TriangleDown} from '@nutui/icons-react-taro' +import { NavBar} from '@nutui/nutui-react-taro' import {getUserInfo, getWxOpenId} from "@/api/layout"; import {TenantId, TenantName} from "@/config/app"; import {getOrganization} from "@/api/system/organization"; import {myUserVerify} from "@/api/system/userVerify"; -import { useShopInfo } from '@/hooks/useShopInfo'; +// import { useShopInfo } from '@/hooks/useShopInfo'; import {handleInviteRelation, getStoredInviteParams} from "@/utils/invite"; import {View,Text} from '@tarojs/components' import MySearch from "./MySearch"; @@ -19,9 +19,9 @@ import {getSelectedStoreFromStorage, saveSelectedStoreToStorage} from "@/utils/s const Header = (_: any) => { // 使用新的useShopInfo Hook - const { - getWebsiteLogo - } = useShopInfo(); + // const { + // getWebsiteLogo + // } = useShopInfo(); const [IsLogin, setIsLogin] = useState(true) const [statusBarHeight, setStatusBarHeight] = useState() @@ -335,21 +335,21 @@ const Header = (_: any) => { }} onBackClick={() => { }} - left={ - setStorePopupVisible(true)} - > - - - {selectedStore?.name || '请选择门店'} - - - - } + // left={ + // setStorePopupVisible(true)} + // > + // + // + // {selectedStore?.name || '请选择门店'} + // + // + // + // } right={ !IsLogin ? (