diff --git a/config/env.ts b/config/env.ts
index 8eb6791..4ec1704 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://glt-api.websoft.top/api',
+ // API_BASE_URL: 'http://127.0.0.1:9200/api',
+ API_BASE_URL: 'https://glt-api.websoft.top/api',
APP_NAME: '开发环境',
DEBUG: 'true',
},
diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx
index cbc8cf0..1efe053 100644
--- a/src/pages/index/index.tsx
+++ b/src/pages/index/index.tsx
@@ -11,6 +11,7 @@ import type { ShopGoods, ShopGoodsParam } from '@/api/shop/shopGoods/model'
import { getMyGltUserTicketTotal } from '@/api/glt/gltUserTicket'
import { ensureLoggedIn } from '@/utils/auth'
import './index.scss'
+import navTo from "@/utils/common";
function Home() {
const [activeTabKey, setActiveTabKey] = useState('recommend')
@@ -178,8 +179,8 @@ function Home() {
>(
() => [
{ key: 'recommend', title: '推荐', params: { recommend: 1 } },
- { key: '4476', title: '政企采购专区', params: { categoryId: 4476 } },
- { key: '4556', title: '桂乐淘·福利惊爆区', params: { categoryId: 4556 } },
+ { key: '4476', title: '桶装水', params: { categoryId: 4476 } },
+ { key: '4556', title: '水票套餐', params: { categoryId: 4556 } },
// { key: '4557', title: '购机套餐', params: { categoryId: 4557 } },
// { key: '4477', title: '饮水设备', params: { categoryId: 4477 } },
],
@@ -289,7 +290,20 @@ function Home() {
- {/* 分类Tabs */}
+ Taro.navigateTo({ url: `/shop/category/index?id=4557` })}>
+
+ 政企采购专区
+
+
+
+
+ navTo('/shop/category/index?id=4556')}>
+
+ 桂乐淘·福利惊爆区
+
+
+
+ {/*分类Tabs*/}
{tabs.map((tab) => {
@@ -306,7 +320,6 @@ function Home() {
})}
-
{/* 商品列表 */}
{visibleGoods.map((item) => (
@@ -356,6 +369,7 @@ function Home() {
))}
+
>
)