fix: 增加判断
This commit is contained in:
parent
de7986c47d
commit
1b9a52c844
|
@ -351,9 +351,11 @@
|
||||||
let detailsConfig = JSON.parse(localStorage.getItem('product_detail'));
|
let detailsConfig = JSON.parse(localStorage.getItem('product_detail'));
|
||||||
goodsCount = localStorage.getItem('goodsCount');
|
goodsCount = localStorage.getItem('goodsCount');
|
||||||
this.backAble = goodsCount > 1;//多个商品才有返回
|
this.backAble = goodsCount > 1;//多个商品才有返回
|
||||||
|
if (detailsConfig) {
|
||||||
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;
|
||||||
|
}
|
||||||
|
|
||||||
//商品详情
|
//商品详情
|
||||||
goodsDetail = JSON.parse(localStorage.getItem('goodsInfo'));
|
goodsDetail = JSON.parse(localStorage.getItem('goodsInfo'));
|
||||||
|
|
Loading…
Reference in New Issue