From fae144549e8ccfa1d8bd907682ecb26c958c494e 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 Mar 2026 16:13:52 +0800 Subject: [PATCH] =?UTF-8?q?style(goods):=20=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8D=A1=E7=89=87=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为商品图片添加固定宽高和圆角样式 - 在政企采购专区卡片上添加点击跳转功能 - 在桂乐淘福利区卡片上添加点击跳转功能 - 为两个专区卡片添加箭头图标指示跳转 - 从 NutUI 图标库导入箭头图标组件 --- src/pages/index/index.tsx | 10 +++++----- src/shop/category/components/GoodsList.tsx | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 9f26b0e..355603e 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -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, Gift, Ticket, Agenda } from '@nutui/icons-react-taro' +import { Cart, Gift, Ticket, Agenda, ArrowRight } from '@nutui/icons-react-taro' import { getShopInfo } from '@/api/layout' import { checkAndHandleInviteRelation, hasPendingInvite } from '@/utils/invite' import { pageShopGoods } from '@/api/shop/shopGoods' @@ -290,17 +290,17 @@ function Home() { - {/* onClick={() => Taro.navigateTo({ url: `/shop/category/index?id=4560` })} */} - + Taro.navigateTo({ url: `/shop/category/index?id=4560` })}> 政企采购专区 + - {/* onClick={() => navTo('/shop/category/index?id=4556')} */} - + Taro.navigateTo({ url: `/shop/category/index?id=4556` })}> 桂乐淘·福利惊爆区 + diff --git a/src/shop/category/components/GoodsList.tsx b/src/shop/category/components/GoodsList.tsx index 742aa7b..8066e7a 100644 --- a/src/shop/category/components/GoodsList.tsx +++ b/src/shop/category/components/GoodsList.tsx @@ -19,6 +19,9 @@ const GoodsList = (props: any) => { className="goods-card__img" src={item.image || ''} mode="aspectFill" + width="100%" + height="280rpx" + radius="18rpx" lazyLoad={false} onClick={() => Taro.navigateTo({ url: `/shop/goodsDetail/index?id=${item.goodsId}` })