|
@@ -262,7 +262,11 @@ Page({
|
|
|
const _list = originScrollViewData[i].list
|
|
|
const _delIndex = _list.findIndex(item => item.id === id)
|
|
|
if (_delIndex > -1) {
|
|
|
- _list.splice(_delIndex, 1, { ...this.data.itemData, product_status: product_status === 0 ? 1 : 0 })
|
|
|
+ _list.splice(_delIndex, 1, {
|
|
|
+ ...this.data.itemData,
|
|
|
+ product_status: product_status === 0 ? 1 : 0,
|
|
|
+ ...this.getStatusTextAndColor(product_status === 0 ? 1 : 0, this.data.itemData.product_check_status)
|
|
|
+ })
|
|
|
this.setData({
|
|
|
['originScrollViewData[' + i + '].list']: _list
|
|
|
})
|