[发布商品认证及商品认证展示,详情页面水晶展示位置]

This commit is contained in:
2021-11-26 11:33:51 +08:00
parent c85f1bccc0
commit 47667b9177
7 changed files with 344 additions and 272 deletions

View File

@@ -194,18 +194,28 @@
// 移出删除商品
goodsRemove(id){
let index = this.goods.findIndex(val => val.goods_id == id)
managesGoodsDelete(id).then(res => {
this.goods.splice(index,1)
if(this.goods.length === 0) this.getList()
uni.showToast({
title: '商品权证已删除',
icon : 'none'
})
}).catch(err => {
uni.showToast({
title: err.message,
icon: 'none'
})
uni.showModal({
title : '温馨提示',
content : '是否确认删除该商品权证,删除后无法恢复',
confirmText : '确认',
cancelText : '再想想',
success : res => {
if(res.confirm){
managesGoodsDelete(id).then(res => {
this.goods.splice(index,1)
if(this.goods.length === 0) this.getList()
uni.showToast({
title: '商品权证已删除',
icon : 'none'
})
}).catch(err => {
uni.showToast({
title: err.message,
icon: 'none'
})
})
}
}
})
}
},