From b2616abab018aa01b1a2bf39bd14681ca24a0d68 Mon Sep 17 00:00:00 2001 From: czm <2192718639@qq.com> Date: Mon, 12 Dec 2022 17:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E8=A1=A5=E5=85=85=E9=9D=A2?= =?UTF-8?q?=E6=96=99=E8=AF=A6=E6=83=85=E9=A1=B5=E5=AE=A2=E6=88=B7=E6=B5=AE?= =?UTF-8?q?=E7=AA=97):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/constant.ts | 4 +- src/pages/details/index.tsx | 212 ++++++++++++++++++------------------ 2 files changed, 109 insertions(+), 107 deletions(-) diff --git a/src/common/constant.ts b/src/common/constant.ts index a012d5c..63b09c0 100644 --- a/src/common/constant.ts +++ b/src/common/constant.ts @@ -1,4 +1,4 @@ -// export const BASE_URL = CURRENT_BASE_URL +export const BASE_URL = CURRENT_BASE_URL // export const BASE_URL = `http://192.168.0.75:50001/lymarket` // export const BASE_URL = `http://192.168.0.89:50001/lymarket` // export const BASE_URL = `http://10.0.0.5:50001/lymarket` @@ -12,7 +12,7 @@ // export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境 // export const BASE_URL = 'https://www.zzfzyc.com/lymarket' // 正式环境 // export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞 -export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添 +// export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添 // export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷 // export const BASE_URL = `http://192.168.1.42:50002/lymarket` // 杰 diff --git a/src/pages/details/index.tsx b/src/pages/details/index.tsx index 1b8459b..1709664 100644 --- a/src/pages/details/index.tsx +++ b/src/pages/details/index.tsx @@ -180,130 +180,132 @@ const Details = (props: Params) => { const [showPopup, setshowPopup] = useState(false) return ( - - - - - {productInfo.code && {productName}} - {productInfo.describe} + + + + + + {productInfo.code && {productName}} + {productInfo.describe} + + + + 收藏 + + + + 分享 + + - - - 收藏 - - - - 分享 - - - - - - 商品参数 - { - productInfo.is_instruct && setshowPopup(true)}>{'特色百科 >'} - } - - - {/* + + + 商品参数 + { + productInfo.is_instruct && setshowPopup(true)}>{'特色百科 >'} + } + + + {/* 编号:{productInfo.code} */} - + 幅宽:{productInfo.width} - - + + 工艺:{productInfo.craft} - - + + 空差:{productInfo.weight_error_discount / 1000}KG - - + + 克重:{productInfo.weight_density} - - + + 成分:{productInfo.component} - - + + 纸筒:{productInfo.tube / 1000}KG - - + + 出米数:{productInfo.length_to_weight_rate / 100} - - + + 开单减空差:{productInfo.weight_error / 1000}KG - - - - - 色号信息 ({productInfo?.product_color_list?.length}) - - {productInfo?.product_color_list?.map((item) => { - return ( - - - - - {item.name} - {formatPriceDiv(item.bulk_price)}/Kg - - ) - })} - - - - - - - - - - - 询货/咨询 - - setShowCart(true)}> - - 购物车 - {commonData.shopCount > 0 && {commonData.shopCount > 99 ? '99+' : commonData.shopCount}} + + + 色号信息 ({productInfo?.product_color_list?.length}) + + {productInfo?.product_color_list?.map((item) => { + return ( + + + + + {item.name} + {formatPriceDiv(item.bulk_price)}/Kg + + ) + })} + + + + + + + + + 询货/咨询 + + + + setShowCart(true)}> + + 购物车 + {commonData.shopCount > 0 && {commonData.shopCount > 99 ? '99+' : commonData.shopCount}} + + - {(!userInfo.adminUserInfo?.is_authorize_phone && ( - - + {(!userInfo.adminUserInfo?.is_authorize_phone && ( + + 选购商品 - - )) || ( - placeOrder('to_order')}> + + )) || ( + placeOrder('to_order')}> 选购商品 - - )} + + )} + + setShowOrderCount(false)} title={productName} productId={productInfo.id} /> + setShowCart(false)} /> + + setshowPopup(false)} productName={productName} productIds={Number(params?.id)}> + - setShowOrderCount(false)} title={productName} productId={productInfo.id} /> - setShowCart(false)} /> - - setshowPopup(false)} productName={productName} productIds={Number(params?.id)}> - - + ) }