@nuskin/ns-shop 7.0.11-pur-813.3 → 7.0.11-pur-813.5
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/package.json
CHANGED
package/src/cart/cartService.js
CHANGED
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
hasItems,
|
|
35
35
|
hasEventItems,
|
|
36
36
|
hasPreviewItems,
|
|
37
|
-
|
|
37
|
+
hasDangerousGoods,
|
|
38
38
|
getItemCnt,
|
|
39
39
|
addProductToCart,
|
|
40
40
|
addSkuToCart,
|
|
@@ -299,7 +299,7 @@ function hasPreviewItems() {
|
|
|
299
299
|
return _getCart().hasPreviewItems();
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
function
|
|
302
|
+
function hasDangerousGoods(options = {cartOrderItems: true}) {
|
|
303
303
|
let retVal = false;
|
|
304
304
|
_getCart().getItems(options).forEach((item) => {
|
|
305
305
|
retVal = retVal || item.product.dangerousGoods;
|
|
@@ -79,7 +79,7 @@ let PickupUtil = function() {
|
|
|
79
79
|
distance: distances && distances[i] ? distances[i].Value : undefined,
|
|
80
80
|
locker: lockers && lockers[i] ? lockers[i].Value : undefined,
|
|
81
81
|
unit: units && units[i] ? units[i].Value : undefined,
|
|
82
|
-
openingHours: openHours && openHours[i] ? openHours[i].Value
|
|
82
|
+
openingHours: openHours && openHours[i] ? openHours[i].Value : undefined,
|
|
83
83
|
latitude: latitudes && latitudes[i] ? parseFloat(latitudes[i].Value) : undefined,
|
|
84
84
|
longitude: longitudes && longitudes[i] ? parseFloat(longitudes[i].Value) : undefined,
|
|
85
85
|
carrierCode: carrierCodes && carrierCodes[i] ? carrierCodes[i].Value : undefined
|
|
@@ -163,9 +163,9 @@ let PickupUtil = function() {
|
|
|
163
163
|
case 'stage':
|
|
164
164
|
return 'https://ship-methods.api.dev.nuskin.com/v1';
|
|
165
165
|
case 'prod':
|
|
166
|
-
return 'https://ship-methods.api.
|
|
166
|
+
return 'https://ship-methods.api.nuskin.com/v1';
|
|
167
167
|
default:
|
|
168
|
-
return 'https://ship-methods.api.
|
|
168
|
+
return 'https://ship-methods.api.test.nuskin.com/v1';
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -188,7 +188,8 @@ let PickupUtil = function() {
|
|
|
188
188
|
order,
|
|
189
189
|
pudo: includePickupPoints,
|
|
190
190
|
orderValue: getOrderValue(),
|
|
191
|
-
dangerousGoods: CartService.hasDangerousGoods()
|
|
191
|
+
dangerousGoods: CartService.hasDangerousGoods(),
|
|
192
|
+
language: RunConfigService.getRunConfig().language
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
195
|
headers: {
|