feat(home): 更新首页配置和界面展示
- 修改开发环境API基础URL地址 - 移除门店选择相关功能组件和逻辑 - 调整页面背景渐变色和字体大小 - 优化轮播图触摸操作支持 - 更新分享标题为用户专属推荐 - 调整商品分类显示,隐藏部分分类入口 - 移除领券中心入口 - 简化配送时间选择,只选择日期不选择具体时间 - 移除门店选择界面元素 - 调整时间选择器为日期模式并修正时间格式化逻辑
This commit is contained in:
@@ -3,7 +3,7 @@ import Banner from './Banner'
|
||||
import Taro, { useDidShow, useShareAppMessage } from '@tarojs/taro'
|
||||
import { View, Text, Image, ScrollView } from '@tarojs/components'
|
||||
import { useEffect, useMemo, useState, type ReactNode } from 'react'
|
||||
import { Cart, Coupon, Gift, Ticket } from '@nutui/icons-react-taro'
|
||||
import { Cart, Gift, Ticket } from '@nutui/icons-react-taro'
|
||||
import { getShopInfo } from '@/api/layout'
|
||||
import { checkAndHandleInviteRelation, hasPendingInvite } from '@/utils/invite'
|
||||
import { pageShopGoods } from '@/api/shop/shopGoods'
|
||||
@@ -21,7 +21,7 @@ function Home() {
|
||||
const userId = Taro.getStorageSync('UserId');
|
||||
|
||||
return {
|
||||
title: '🏠 首页 🏠',
|
||||
title: userId + '超值推荐',
|
||||
path: userId ? `/pages/index/index?inviter=${userId}&source=share&t=${Date.now()}` : `/pages/index/index`,
|
||||
success: function () {
|
||||
console.log('首页分享成功');
|
||||
@@ -174,9 +174,9 @@ function Home() {
|
||||
() => [
|
||||
{ key: 'recommend', title: '推荐', params: { recommend: 1 } },
|
||||
{ key: '4476', title: '桶装水', params: { categoryId: 4476 } },
|
||||
{ key: '4556', title: '优惠组合', params: { categoryId: 4556 } },
|
||||
{ key: '4557', title: '购机套餐', params: { categoryId: 4557 } },
|
||||
{ key: '4477', title: '饮水设备', params: { categoryId: 4477 } },
|
||||
{ key: '4556', title: '水票套餐', params: { categoryId: 4556 } },
|
||||
// { key: '4557', title: '购机套餐', params: { categoryId: 4557 } },
|
||||
// { key: '4477', title: '饮水设备', params: { categoryId: 4477 } },
|
||||
],
|
||||
[]
|
||||
)
|
||||
@@ -215,12 +215,12 @@ function Home() {
|
||||
icon: <Gift size={30} />,
|
||||
onClick: () => Taro.navigateTo({ url: '/dealer/qrcode/index' }),
|
||||
},
|
||||
{
|
||||
key: 'coupon',
|
||||
title: '领券中心',
|
||||
icon: <Coupon size={30} />,
|
||||
onClick: () => Taro.navigateTo({ url: '/coupon/index' }),
|
||||
},
|
||||
// {
|
||||
// key: 'coupon',
|
||||
// title: '领券中心',
|
||||
// icon: <Coupon size={30} />,
|
||||
// onClick: () => Taro.navigateTo({ url: '/coupon/index' }),
|
||||
// },
|
||||
],
|
||||
[]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user