✨ feat:h5样式问题
This commit is contained in:
@@ -572,4 +572,7 @@
|
||||
// height: calc($customTabBarHeight + env(safe-area-inset-bottom));
|
||||
// width: 100%;
|
||||
// }
|
||||
.safeBoxs {
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ export default () => {
|
||||
item.av_product_color.map(it => {
|
||||
if (it.sale_order_detail_id === val.sale_order_detail_id) {
|
||||
if (val.nums === 1) {
|
||||
it.isTui = false
|
||||
// it.isTui = false
|
||||
it.nums = 1
|
||||
} else {
|
||||
it.nums--
|
||||
@@ -95,6 +95,27 @@ export default () => {
|
||||
item.av_product_color.map(it => {
|
||||
if (it.sale_order_detail_id === val.sale_order_detail_id) {
|
||||
if (Number(e.detail.value) < 1) {
|
||||
it.nums = ''
|
||||
} else {
|
||||
it.nums = Number(e.detail.value)
|
||||
}
|
||||
if (Number(e.detail.value) > it.roll) {
|
||||
it.nums = 1
|
||||
}
|
||||
}
|
||||
return it
|
||||
})
|
||||
})
|
||||
setListArr([...ListArr])
|
||||
}
|
||||
|
||||
|
||||
const onBlur = (e, val) => {
|
||||
ListArr.forEach(item => {
|
||||
item.av_product_color.map(it => {
|
||||
if (it.sale_order_detail_id === val.sale_order_detail_id) {
|
||||
if (Number(e.detail.value) < 1 || e.detail.value == '') {
|
||||
it.isTui = false
|
||||
it.nums = 1
|
||||
} else {
|
||||
it.nums = Number(e.detail.value)
|
||||
@@ -439,7 +460,7 @@ export default () => {
|
||||
obj={infoObj}
|
||||
handTui={(item) => handTui(item)}
|
||||
handCancel={(item) => handCancel(item)}
|
||||
// onBlur={(e, item) => onBlur(e, item)}
|
||||
onBlur={(e, item) => onBlur(e, item)}
|
||||
handReduce={(item) => handReduce(item)}
|
||||
handAdd={(item) => handAdd(item)}
|
||||
onInputEven={(e, item) => onInputEven(e, item)}
|
||||
@@ -545,7 +566,7 @@ export default () => {
|
||||
}
|
||||
</View>
|
||||
</View>
|
||||
<View style={{ height: '100rpx' }}></View>
|
||||
<View className={styles.safeBoxs} ></View>
|
||||
<View className={styles.bottomBox1}>
|
||||
|
||||
<Button className={styles.resetBox1} onClick={() => { handResetStatus() }}> 重置</Button >
|
||||
|
||||
Reference in New Issue
Block a user