Browse Source

景点增加库存校验

master
chenkainan 4 years ago
parent
commit
8d742a2a34
  1. 9
      pages/info/sceneProductInfo/index.js

9
pages/info/sceneProductInfo/index.js

@ -251,6 +251,13 @@ Page({
})
},
order: function (e) {
commonApi.user_post("/product/checkStock",{
sku_id: this.data.skuList[this.data.skuIndex].id,
}).then(res => {
console.log(res)
if(res && res.code != 1){
return;
}else{
// console.log(this.data.info,this.data.skuFlag)
app.globalData.postProduct = []
app.globalData.list = []
@ -310,6 +317,8 @@ Page({
}
})
}
}
})
},
pagePoint: function (e) {
util.pagePoint({

Loading…
Cancel
Save