fix: 增加判断

This commit is contained in:
zhangds 2024-03-19 17:55:37 +08:00
parent de7986c47d
commit 1b9a52c844
1 changed files with 25 additions and 23 deletions

View File

@ -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'));