解决【营销计划-C端】key码绑定一个普通商品,登录后商品详情展示不正确。

This commit is contained in:
Apple 2022-06-15 11:24:53 +08:00
parent 561b2ab814
commit 82b91bbb60
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,7 @@
this.bgcolor = detailsConfig.button_color;
this.ftcolor = detailsConfig.font_color;
this.describe = detailsConfig.describe;
let goodsInform = JSON.parse(sessionStorage.getItem('goodsInfo')); //商品信息
let goodsInform = JSON.parse(sessionStorage.getItem('goodsInfo')).entity; //商品信息
this.goodInfo = goodsInform;
let goods_desc = goodsInform.describe_url;
this.goodsShow = goods_desc.length > 0 ? goods_desc : [JSON.parse(sessionStorage.getItem('goodsInfo'))
@ -277,6 +277,8 @@
}
req.axiosPost('/key/usage', data).then(res => {
sessionStorage.setItem('lastid', self.goodInfo.product_id);
console.log(278,res);
return
if (res.code == 200) {
// 查询订单接口
this.popboxtype = '成功';