geer-builder 1.2.552 → 1.2.553
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 +33 -16
- package/package.json +1 -1
package/GCheckout.vue
CHANGED
|
@@ -444,20 +444,44 @@ export default {
|
|
|
444
444
|
{
|
|
445
445
|
if (this.user_info)
|
|
446
446
|
{
|
|
447
|
-
if(this.user_info.slot_owned >0)
|
|
448
|
-
{
|
|
449
|
-
if(sessionStorage.referral_slot_code)
|
|
450
|
-
{
|
|
451
|
-
sessionStorage.removeItem('referral_slot_code');
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
this.courier_settings = await this.$_getData('courier_settings');
|
|
455
447
|
this.public_settings = await this.$_getData('public_settings');
|
|
448
|
+
this.courier_settings = await this.$_getData('courier_settings');
|
|
456
449
|
this.main_currency = this.public_settings.main_currency;
|
|
457
450
|
this.shipping_fee_settings = this.public_settings.shipping_fee;
|
|
458
451
|
this.payment_method_list = await this.$_getData('payment_method_list');
|
|
459
452
|
this.online_payment_index = this.payment_method_list.map(function(e) { return e.payment_method_id; }).indexOf('online_payment');
|
|
460
453
|
this.payment_account_list = await this.$_getData('payment_account_list');
|
|
454
|
+
if( this.user_info.slot_owned > 0 && this.public_settings.hasOwnProperty('registration_sponsor') && this.public_settings.registration_sponsor.active)
|
|
455
|
+
{
|
|
456
|
+
if(this.user_info.hasOwnProperty('sponsor'))
|
|
457
|
+
{
|
|
458
|
+
sessionStorage.setItem('referral_slot_code', this.user_info.sponsor);
|
|
459
|
+
}
|
|
460
|
+
else
|
|
461
|
+
{
|
|
462
|
+
sessionStorage.setItem('referral_slot_code', this.public_settings.registration_sponsor.default_sponsor);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
else if(this.user_info.slot_owned >0)
|
|
466
|
+
{
|
|
467
|
+
if(sessionStorage.referral_slot_code)
|
|
468
|
+
{
|
|
469
|
+
sessionStorage.removeItem('referral_slot_code');
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
else if(this.user_info.slot_owned<1)
|
|
473
|
+
{
|
|
474
|
+
if(this.user_info.hasOwnProperty('sponsor'))
|
|
475
|
+
{
|
|
476
|
+
sessionStorage.setItem('referral_slot_code', this.user_info.sponsor);
|
|
477
|
+
}
|
|
478
|
+
else if(this.public_settings.hasOwnProperty('registration_sponsor') && this.public_settings.registration_sponsor.active)
|
|
479
|
+
{
|
|
480
|
+
sessionStorage.setItem('referral_slot_code', this.user_info.sponsor);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
|
|
461
485
|
// console.log(this.payment_account_list);
|
|
462
486
|
this.product_list = Object.assign([], this.checkout_list);
|
|
463
487
|
await this.$_getSlotInfo();
|
|
@@ -534,14 +558,7 @@ export default {
|
|
|
534
558
|
{
|
|
535
559
|
this.loading_done = true;
|
|
536
560
|
}
|
|
537
|
-
|
|
538
|
-
{
|
|
539
|
-
if(this.user_info.sponsor)
|
|
540
|
-
{
|
|
541
|
-
sessionStorage.setItem('referral_slot_code', this.user_info.sponsor);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
|
|
561
|
+
|
|
545
562
|
if(this.public_settings.hasOwnProperty('dragonpay_details') && this.public_settings.dragonpay_details.show_active_payment)
|
|
546
563
|
{
|
|
547
564
|
this.getPaymentChannel();
|