@lancom/shared 0.0.122 → 0.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/api/index.js +2 -2
- package/nuxt.config.js +4 -1
- package/package.json +1 -1
- package/store/order.js +1 -1
package/assets/js/api/index.js
CHANGED
|
@@ -57,8 +57,8 @@ const api = {
|
|
|
57
57
|
fetchBanners(shop, params) {
|
|
58
58
|
return _get(`shop/${shop}/banners`, params);
|
|
59
59
|
},
|
|
60
|
-
fetchNews(shop) {
|
|
61
|
-
return _get(`shop/${shop}/news
|
|
60
|
+
fetchNews(shop, params) {
|
|
61
|
+
return _get(`shop/${shop}/news`, params);
|
|
62
62
|
},
|
|
63
63
|
fetchSingleNews(shop, alias, preview = false) {
|
|
64
64
|
return _get(`shop/${shop}/news/${alias}?preview=${preview}`);
|
package/nuxt.config.js
CHANGED
|
@@ -102,9 +102,12 @@ module.exports = (config, axios) => ({
|
|
|
102
102
|
const title = product.feedTitle
|
|
103
103
|
? product.feedTitle.replace('{colour}', sp.color.name).replace('{size}', sp.size.name).replace('{brand}', product.brand.name)
|
|
104
104
|
: `${product.name} ${sp.color.name}`;
|
|
105
|
+
const description = `${product.description || product.fabricInfoShort || product.name || ''}`
|
|
106
|
+
.replace(/ /g, ' ')
|
|
107
|
+
.replace(/·/, '·');
|
|
105
108
|
const info = {
|
|
106
109
|
title: { _text: title },
|
|
107
|
-
description: { _text:
|
|
110
|
+
description: { _text: description },
|
|
108
111
|
link: { _text: `https://${config.HOST_NAME}/${product.brand.alias}/${product.productType.alias}/${product.alias}?color=${sp.color.alias}` },
|
|
109
112
|
'g:id': { _text: sp.SKU },
|
|
110
113
|
'g:item_group_id': { _text: product.SKU },
|
package/package.json
CHANGED
package/store/order.js
CHANGED
|
@@ -20,7 +20,7 @@ export const actions = {
|
|
|
20
20
|
order.totalGST = pricing.totalPrice;
|
|
21
21
|
order.total = pricing.totalPriceWithoutTax;
|
|
22
22
|
order.couponTotal = pricing.coupon?.totalPrice || 0;
|
|
23
|
-
order.couponCode = pricing.coupon?.code ||
|
|
23
|
+
order.couponCode = pricing.coupon?.code || null;
|
|
24
24
|
order.productsTotal = pricing.products?.products?.totalPriceWithoutTax || 0;
|
|
25
25
|
order.printsTotal = pricing.products?.prints?.totalPriceWithoutTax || 0;
|
|
26
26
|
order.shippingTotal = pricing.shipping?.totalPriceWithoutTax || 0;
|