|
@@ -282,8 +282,7 @@
|
|
|
// 优惠
|
|
|
discount: {},
|
|
|
// 底部菜单
|
|
|
- options: [ //
|
|
|
- {
|
|
|
+ options: [{
|
|
|
icon: 'shop',
|
|
|
text: '店铺',
|
|
|
type: 'shop',
|
|
@@ -296,8 +295,7 @@
|
|
|
route: 'pages/market/index',
|
|
|
},
|
|
|
],
|
|
|
- buttonGroup: [ //
|
|
|
- {
|
|
|
+ buttonGroup: [{
|
|
|
text: '加入购物车',
|
|
|
backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
|
|
|
color: '#fff',
|
|
@@ -404,7 +402,6 @@
|
|
|
shop: that.info?.shop?._id
|
|
|
});
|
|
|
if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
|
|
|
-
|
|
|
},
|
|
|
// 查询商品信息
|
|
|
async search() {
|
|
@@ -445,16 +442,9 @@
|
|
|
that.$set(that, `info`, data);
|
|
|
// 优惠
|
|
|
act = data.act.find(i => i.type == '5')
|
|
|
- if (act) {
|
|
|
- var text = act.text.split(';')
|
|
|
- that.$set(that.discount, `full_decrement`, text);
|
|
|
- }
|
|
|
-
|
|
|
+ if (act) that.$set(that.discount, `full_decrement`, act.text.split(';'));
|
|
|
act = data.act.find(i => i.type == '6')
|
|
|
- if (act) {
|
|
|
- var text = act.text.split(';')
|
|
|
- that.$set(that.discount, `full_fold`, text);
|
|
|
- }
|
|
|
+ if (act) that.$set(that.discount, `full_fold`, act.text.split(';'));
|
|
|
// 查询规格
|
|
|
that.searchSpecs(data.specs);
|
|
|
// 查询评价数
|