🎈 perf(ID1001193 加入购物车显示单位):

This commit is contained in:
czm 2023-02-02 17:22:21 +08:00
parent 7e0fa9ad0f
commit 2084e19188
3 changed files with 35 additions and 3 deletions

View File

@ -1,11 +1,11 @@
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.75:50001/lymarket`
// export const BASE_URL = `http://192.168.0.89:50001/lymarket` // export const BASE_URL = `http://192.168.0.89:50001/lymarket`
// export const BASE_URL = `http://10.0.0.5:50001/lymarket` // export const BASE_URL = `http://10.0.0.5:50001/lymarket`
// export const BASE_URL = `http://192.168.0.89:40001/lymarket` // export const BASE_URL = `http://192.168.0.89:40001/lymarket`
// export const BASE_URL = `http://192.168.1.165:40001/lymarket` // 王霞 // export const BASE_URL = `http://192.168.1.165:40001/lymarket` // 王霞
// export const BASE_URL = 'https://test.zzfzyc.com/lymarket' // 测试环境 // export const BASE_URL = 'https://test.zzfzyc.com/lymarket' // 测试环境
// export const BASE_URL = 'https://pre.zzfzyc.com/lymarket' // 预发布 export const BASE_URL = 'https://pre.zzfzyc.com/lymarket' // 预发布
// export const BASE_URL = `http://192.168.1.9:40001/lymarket` // 发 // export const BASE_URL = `http://192.168.1.9:40001/lymarket` // 发
// export const BASE_URL = `http://192.168.1.9:50005/lymarket` // 发 // export const BASE_URL = `http://192.168.1.9:50005/lymarket` // 发
// export const BASE_URL = `http://192.168.1.30:50001/lymarket` // 发 // export const BASE_URL = `http://192.168.1.30:50001/lymarket` // 发

View File

@ -97,6 +97,23 @@
padding: 20px; padding: 20px;
.title { .title {
font-size: 26px; font-size: 26px;
display: flex;
align-items: center;
text {
&:nth-child(1) {
font-size: 28px;
color: #000;
font-weight: 500;
}
&:nth-child(2) {
font-size: 22px;
display: inline-block;
color: red;
margin-left: 16px;
border: 1px solid red;
padding: 2px 5px;
}
}
} }
.miconfont { .miconfont {
font-size: 36px; font-size: 36px;

View File

@ -334,6 +334,18 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
if (recommendStatus) { goLink('/pages/details/index', { id: productId }) } if (recommendStatus) { goLink('/pages/details/index', { id: productId }) }
} }
const unit_text = useMemo(() => {
if (selectIndex == 0) {
return '大货单位:条'
}
else if (selectIndex == 1) {
return '剪版单位:米'
}
else {
return '散剪单位:米'
}
}, [selectIndex])
return ( return (
<View className={styles.shop_cart_main}> <View className={styles.shop_cart_main}>
<Popup showTitle={false} show={showPopup} onClose={() => closePopup()}> <Popup showTitle={false} show={showPopup} onClose={() => closePopup()}>
@ -375,7 +387,10 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
</View> </View>
)} )}
<View className={styles.colorNum}> <View className={styles.colorNum}>
<View className={styles.title}> ({list.length})</View> <View className={styles.title}>
<Text> ({list.length})</Text>
<Text>{unit_text}</Text>
</View>
{!searchShow && <View className={classnames('iconfont icon-sousuo', styles.miconfont)} onClick={() => changeSearchShow()}></View>} {!searchShow && <View className={classnames('iconfont icon-sousuo', styles.miconfont)} onClick={() => changeSearchShow()}></View>}
</View> </View>