geer-builder 1.2.772 → 1.2.773
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/GCheckout.vue +52 -6
- package/GProductAutoBuy.vue +2212 -0
- package/components/Checkout/ProcessCheckoutConfirmDialog.vue +18 -4
- package/package.json +1 -1
package/GCheckout.vue
CHANGED
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
<add-new-address-form @done="updateAddress"></add-new-address-form>
|
|
230
230
|
</q-dialog>
|
|
231
231
|
<q-dialog persistent v-model="is_dialog_confirm_open">
|
|
232
|
-
<process-checkout-confirm-dialog @closePopup="confirmedCheckout" :checkout_details="checkout_info" :sale_id="sale_id.data" :proc_id="dragon_pay_choice"></process-checkout-confirm-dialog>
|
|
232
|
+
<process-checkout-confirm-dialog @closePopupElms="confirmedCheckoutElms" @closePopup="confirmedCheckout" :is_elms_popup_checkout="is_elms_popup" :checkout_details="checkout_info" :sale_id="sale_id.data" :proc_id="dragon_pay_choice"></process-checkout-confirm-dialog>
|
|
233
233
|
</q-dialog>
|
|
234
234
|
</div>
|
|
235
235
|
</div>
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
<add-new-address-form @done="updateAddress"></add-new-address-form>
|
|
371
371
|
</q-dialog>
|
|
372
372
|
<q-dialog persistent v-model="is_dialog_confirm_open" :maximized="true">
|
|
373
|
-
<process-checkout-confirm-dialog @closePopup="confirmedCheckout" :checkout_details="checkout_info" :sale_id="sale_id.data" :chosen_proc="true" ></process-checkout-confirm-dialog>
|
|
373
|
+
<process-checkout-confirm-dialog @closePopupElms="confirmedCheckoutElms" @closePopup="confirmedCheckout" :is_elms_popup_checkout="is_elms_popup" :checkout_details="checkout_info" :sale_id="sale_id.data" :chosen_proc="true" ></process-checkout-confirm-dialog>
|
|
374
374
|
</q-dialog>
|
|
375
375
|
</div>
|
|
376
376
|
</div>
|
|
@@ -505,10 +505,17 @@ export default {
|
|
|
505
505
|
}
|
|
506
506
|
],
|
|
507
507
|
payment_channel_tab: 'otc',
|
|
508
|
-
checkout_fix: false
|
|
508
|
+
checkout_fix: false,
|
|
509
|
+
is_elms_popup: false
|
|
509
510
|
}),
|
|
510
511
|
async mounted()
|
|
511
512
|
{
|
|
513
|
+
|
|
514
|
+
if(this.$route.query.elms_token)
|
|
515
|
+
{
|
|
516
|
+
this.is_elms_popup = true;
|
|
517
|
+
}
|
|
518
|
+
|
|
512
519
|
if (this.user_info)
|
|
513
520
|
{
|
|
514
521
|
this.public_settings = await this.$_getData('public_settings');
|
|
@@ -633,8 +640,22 @@ export default {
|
|
|
633
640
|
sessionStorage.removeItem('referral_slot_code');
|
|
634
641
|
sessionStorage.removeItem('pending_checkout');
|
|
635
642
|
this.product_list = [];
|
|
636
|
-
|
|
637
|
-
|
|
643
|
+
|
|
644
|
+
if(this.is_elms_popup)
|
|
645
|
+
{
|
|
646
|
+
swal(
|
|
647
|
+
{
|
|
648
|
+
text: `Sale No. ${this.sale_id} has been successfully processed.`,
|
|
649
|
+
closeOnClickOutside: false,
|
|
650
|
+
closeOnEsc: false,
|
|
651
|
+
close:window.close()
|
|
652
|
+
})
|
|
653
|
+
}
|
|
654
|
+
else
|
|
655
|
+
{
|
|
656
|
+
swal("Placement Order Successful", `Sale No. ${this.sale_id} has been successfully processed.`, "success");
|
|
657
|
+
}
|
|
658
|
+
|
|
638
659
|
|
|
639
660
|
// this.$q.dialog({ title: "Transaction Succesful!", message: `Sale No. ${pending_checkout.sale_id} has been successfully processed.` });
|
|
640
661
|
}
|
|
@@ -2566,15 +2587,40 @@ export default {
|
|
|
2566
2587
|
this.payment_method = this.payment_method_list[index];
|
|
2567
2588
|
this.checkout_info.payment_method = this.payment_method_list[index];
|
|
2568
2589
|
},
|
|
2590
|
+
confirmedCheckoutElms(payment_method)
|
|
2591
|
+
{
|
|
2592
|
+
this.product_list = [];
|
|
2593
|
+
if(payment_method!="online_payment")
|
|
2594
|
+
{
|
|
2595
|
+
this.$emit('success');
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
swal(
|
|
2599
|
+
{
|
|
2600
|
+
text: `Sale No. ${this.sale_id.data} has been successfully processed.`,
|
|
2601
|
+
closeOnClickOutside: false,
|
|
2602
|
+
closeOnEsc: false,
|
|
2603
|
+
close:this.onCloseElmsPopup()
|
|
2604
|
+
})
|
|
2605
|
+
.then((value) =>
|
|
2606
|
+
{
|
|
2607
|
+
window.close();
|
|
2608
|
+
});
|
|
2609
|
+
|
|
2610
|
+
},
|
|
2611
|
+
onCloseElmsPopup()
|
|
2612
|
+
{
|
|
2613
|
+
this.is_dialog_confirm_open = false;
|
|
2614
|
+
},
|
|
2569
2615
|
confirmedCheckout(payment_method)
|
|
2570
2616
|
{
|
|
2617
|
+
|
|
2571
2618
|
this.is_dialog_confirm_open = false;
|
|
2572
2619
|
this.product_list = [];
|
|
2573
2620
|
if(payment_method!="online_payment")
|
|
2574
2621
|
{
|
|
2575
2622
|
this.$emit('success');
|
|
2576
2623
|
}
|
|
2577
|
-
|
|
2578
2624
|
},
|
|
2579
2625
|
async addQuantity(i, ind)
|
|
2580
2626
|
{
|