商城测试版v5

This commit is contained in:
2022-07-14 11:47:38 +08:00
parent b8f78eea71
commit da7c834198
7 changed files with 87 additions and 46 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ export default memo(({orderInfo, onClick}:Param) => {
SaLeModeWeightCut,
} = SALE_MODE
//订单按钮按订单状态归类, value是该订单状态,可能该按钮会出现
//注册按钮
const orderBtnsList = useRef([
{
@@ -60,7 +60,7 @@ export default memo(({orderInfo, onClick}:Param) => {
SaleOrderStatusWaitingPayment.value,
SaleOrderStatusTaking.value,
SaleOrderStatusWaitingDelivery.value], //取消订单按钮对应: 待接单,配布中,已配布, 待付款, 待发货, 提货中
label: '取消订单'
label: '取消订单',
},
{
id: 3,
@@ -112,7 +112,7 @@ export default memo(({orderInfo, onClick}:Param) => {
//取消订单按钮
return( orderInfo.actual_amount == 0 && item.value.includes(orderInfo.status)) //在待发货之前没有付过款
} else if (item.id == 2) {
//去付款按钮(这里后端偷偷改了逻辑)
//去付款按钮
return( orderInfo.wait_pay_amount != 0 && item.value.includes(orderInfo.status)) //只要没有付完款就显示
} else if(item.id == 3 ) {
//申请退款, 只有大货才有
+28 -11
View File
@@ -54,7 +54,7 @@
padding-bottom: 120px;
.product_item{
display: flex;
justify-content: space-between;
align-items: center;
&:nth-child(n+2) {
margin-top: 37px;
}
@@ -80,14 +80,11 @@
margin-left: 20px;
padding-right: 10px;
box-sizing: border-box;
.title{
font-size: $font_size;
color: $color_font_one;
@include common_ellipsis;
}
.subtitle{
color: $color_font_two;
font-size: $font_size_medium;
margin: 10px 0;
}
.tag{
font-size: $font_size_min;
@@ -106,9 +103,7 @@
}
.count{
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
.btn_count{
width: 235px;
height: 64px;
@@ -118,6 +113,25 @@
display: flex;
align-items: center;
}
.long{
color: $color_main;
font-size: $font_size_medium;
}
}
.product_item_name{
display: flex;
flex-direction: column;
flex: 1;
color: #3C3C3C;
}
.product_item_name_header{
display: flex;
justify-content: space-between;
margin-bottom: 10px;
margin-left: 20px;
font-size: 28px;
.price{
font-size: $font_size;
font-weight: 700;
@@ -126,9 +140,12 @@
font-size: $font_size_min;
}
}
.long{
color: $color_main;
font-size: $font_size_medium;
.title{
font-size: $font_size;
color: $color_font_one;
padding-right: 10px;
@include common_ellipsis;
flex: 1;
}
}
}
+23 -20
View File
@@ -307,26 +307,29 @@ export default ({show = false, onClose}: param) => {
<View className={styles.img}>
<Image mode="aspectFill" src={formatImgUrl(item.texture_url)}/>
</View>
<View className={styles.des}>
<View className={styles.title}>{formatHashTag(item.product_code, item.product_name)}</View>
<View className={styles.subtitle}>{item.product_color_code +' ' + item.product_color_name}</View>
<View className={styles.tag}>{item.sale_mode_name}</View>
</View>
<View className={styles.count}>
<View className={styles.price}><text>¥</text>{formatPirce(item.sale_price)}<text>/{selectList[item.sale_mode].eunit}</text></View>
{/* <View className={styles.long}>×{formatCount(item)}{selectList[selectIndex].unit}</View> */}
<View className={styles.btn_count}>
<Counter
onBlue={(e) => getInputValue(e, item)}
defaultNum={formatCount(item)}
step={selectList[selectIndex].step}
digits={selectList[selectIndex].digits}
onClickBtn={(e) => getInputValue(e, item)}
unit={formatUnit(item)}
minNum={selectList[selectIndex].minNum}
maxNum={selectList[selectIndex].maxNum}
disable={UpdateShoppingCartLoading}
/>
<View className={styles.product_item_name}>
<View className={styles.product_item_name_header}>
<View className={styles.title}>{formatHashTag(item.product_code, item.product_name)}</View>
<View className={styles.price}><text>¥</text>{formatPirce(item.sale_price)}<text>/{selectList[item.sale_mode].eunit}</text></View>
</View>
<View className={styles.count}>
<View className={styles.des}>
<View className={styles.subtitle}>{item.product_color_code +' ' + item.product_color_name}</View>
<View className={styles.tag}>{item.sale_mode_name}</View>
</View>
<View className={styles.btn_count}>
<Counter
onBlue={(e) => getInputValue(e, item)}
defaultNum={formatCount(item)}
step={selectList[selectIndex].step}
digits={selectList[selectIndex].digits}
onClickBtn={(e) => getInputValue(e, item)}
unit={formatUnit(item)}
minNum={selectList[selectIndex].minNum}
maxNum={selectList[selectIndex].maxNum}
disable={UpdateShoppingCartLoading}
/>
</View>
</View>
</View>
</View>