orderiom-api-package 0.3.31 → 0.3.33
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 +1 -1
- package/src/modules/order.js +10 -3
- package/src/modules/product.js +4 -1
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -395,9 +395,14 @@ const actions = {
|
|
|
395
395
|
// commit('setuserOrder', JSON.parse(res.data.data.order.user_details));
|
|
396
396
|
// commit('setshippigPriceOrder', res.data.data.order.shipping_price);
|
|
397
397
|
|
|
398
|
-
if(
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
if(
|
|
399
|
+
(
|
|
400
|
+
res.data.data.paymentLink.includes("/paymentstatus/?") ||
|
|
401
|
+
res.data.data.paymentLink.includes("/paymentstatus?")
|
|
402
|
+
) &&
|
|
403
|
+
data.$router &&
|
|
404
|
+
data.routeName
|
|
405
|
+
){
|
|
401
406
|
data.$router.push({
|
|
402
407
|
name: data.routeName,
|
|
403
408
|
query: res.data.data.paymentLink
|
|
@@ -410,6 +415,8 @@ const actions = {
|
|
|
410
415
|
return result;
|
|
411
416
|
}, {})
|
|
412
417
|
});
|
|
418
|
+
} else {
|
|
419
|
+
window.location = res.data.data.paymentLink;
|
|
413
420
|
}
|
|
414
421
|
|
|
415
422
|
var index = data.basket ? basketData.indexOf(basketData.find((item) => item.basketId == data.basket)) :
|
package/src/modules/product.js
CHANGED
|
@@ -38,7 +38,10 @@ const getters = {
|
|
|
38
38
|
|
|
39
39
|
ids.forEach(id=>{
|
|
40
40
|
let filter = state.products.find(i=> i.subcategory_id === id)
|
|
41
|
-
subCategories.push({name: filter.subcategory_name, id: filter.subcategory_id, imagePath: filter.subcategory_image})
|
|
41
|
+
subCategories.push({name: filter.subcategory_name, id: filter.subcategory_id, imagePath: filter.subcategory_image, priority: filter.subcategory_priority})
|
|
42
|
+
subCategories.sort(function(a,b) {
|
|
43
|
+
return a.priority - b.priority;
|
|
44
|
+
});
|
|
42
45
|
})
|
|
43
46
|
|
|
44
47
|
return subCategories
|