From 7e0fa9ad0fe43455ac20fb61889893c80a5927ef Mon Sep 17 00:00:00 2001 From: czm <2192718639@qq.com> Date: Thu, 2 Feb 2023 16:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E9=A6=96=E9=A1=B5=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=94=B6=E8=97=8F=E6=A0=87=E8=AF=86):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/product/index.module.scss | 5 +++++ src/components/product/index.tsx | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/product/index.module.scss b/src/components/product/index.module.scss index 0100b9b..aae938f 100644 --- a/src/components/product/index.module.scss +++ b/src/components/product/index.module.scss @@ -81,6 +81,11 @@ margin-top: 16px; @include common_ellipsis($params: 2); } + .header_con { + display: flex; + justify-content: space-between; + align-items: center; + } .header_label { width: 212px; height: 40px; diff --git a/src/components/product/index.tsx b/src/components/product/index.tsx index dd1b7c4..d64cf06 100644 --- a/src/components/product/index.tsx +++ b/src/components/product/index.tsx @@ -1,7 +1,9 @@ import { Image, Text, View } from '@tarojs/components' import Taro from '@tarojs/taro' import { useCallback, useMemo } from 'react' +import classNames from 'classnames' import LabAndImg from '../LabAndImg' +import IconFont from '../iconfont/iconfont' import styles from './index.module.scss' import { goLink } from '@/common/common' import { formatHashTag, formatImgUrl } from '@/common/fotmat' @@ -35,10 +37,16 @@ const Product = ({ desStatus = true, productList = [] }: Params) => { {item.width} {item.weight_density} - {!!item.product_screw_id && - 推荐 - 配套螺纹 - } + + + {!!item.product_screw_id + && + 推荐 + 配套螺纹 + } + + + )