解决【营销计划-C端】key码绑定一个普通商品,登录后商品详情展示不正确。
This commit is contained in:
parent
561b2ab814
commit
82b91bbb60
|
@ -156,7 +156,7 @@
|
||||||
this.bgcolor = detailsConfig.button_color;
|
this.bgcolor = detailsConfig.button_color;
|
||||||
this.ftcolor = detailsConfig.font_color;
|
this.ftcolor = detailsConfig.font_color;
|
||||||
this.describe = detailsConfig.describe;
|
this.describe = detailsConfig.describe;
|
||||||
let goodsInform = JSON.parse(sessionStorage.getItem('goodsInfo')); //商品信息
|
let goodsInform = JSON.parse(sessionStorage.getItem('goodsInfo')).entity; //商品信息
|
||||||
this.goodInfo = goodsInform;
|
this.goodInfo = goodsInform;
|
||||||
let goods_desc = goodsInform.describe_url;
|
let goods_desc = goodsInform.describe_url;
|
||||||
this.goodsShow = goods_desc.length > 0 ? goods_desc : [JSON.parse(sessionStorage.getItem('goodsInfo'))
|
this.goodsShow = goods_desc.length > 0 ? goods_desc : [JSON.parse(sessionStorage.getItem('goodsInfo'))
|
||||||
|
@ -277,6 +277,8 @@
|
||||||
}
|
}
|
||||||
req.axiosPost('/key/usage', data).then(res => {
|
req.axiosPost('/key/usage', data).then(res => {
|
||||||
sessionStorage.setItem('lastid', self.goodInfo.product_id);
|
sessionStorage.setItem('lastid', self.goodInfo.product_id);
|
||||||
|
console.log(278,res);
|
||||||
|
return
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
// 查询订单接口
|
// 查询订单接口
|
||||||
this.popboxtype = '成功';
|
this.popboxtype = '成功';
|
||||||
|
|
Loading…
Reference in New Issue