geer-builder 1.2.481 → 1.2.482
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 +15 -5
- package/GReplicatedInvite.vue +10 -7
- package/dialogs/EcommerceMaintenance.vue +40 -0
- package/package.json +1 -1
package/GCheckout.vue
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
<div class="q-ma-md">
|
|
154
154
|
|
|
155
|
-
<q-btn :disable='groupedProducts.some(per_merch => per_merch.courier_chosen === "No courier Available")' outline color="primary" class="full-width" @click="proceedCheckout" >
|
|
155
|
+
<q-btn :disable='groupedProducts.some(per_merch => per_merch.courier_chosen === "No courier Available") || disable_ecom' outline color="primary" class="full-width" @click="proceedCheckout" >
|
|
156
156
|
<q-icon size="14px" class="q-mr-sm" name="fa fa-check"></q-icon>
|
|
157
157
|
Place Order
|
|
158
158
|
</q-btn>
|
|
@@ -323,7 +323,10 @@
|
|
|
323
323
|
</q-dialog>
|
|
324
324
|
<q-dialog persistent v-model="is_update_address_dialog_open" max-width="1000px">
|
|
325
325
|
<add-new-address-form :edit_address="checkout_info.shipping_address" @done="is_update_address_dialog_open=false"></add-new-address-form>
|
|
326
|
-
|
|
326
|
+
</q-dialog>
|
|
327
|
+
<q-dialog v-model="is_ecom_disable" max-width="1000px">
|
|
328
|
+
<ecommerce-maintenance></ecommerce-maintenance>
|
|
329
|
+
</q-dialog>
|
|
327
330
|
</div>
|
|
328
331
|
<div v-else >
|
|
329
332
|
<div class="loader">
|
|
@@ -348,17 +351,19 @@ import SelectVoucherDialog from "./components/Checkout/SelectVoucherDialog"
|
|
|
348
351
|
import GLoader from './components/GlobalLoader';
|
|
349
352
|
import axios from 'axios';
|
|
350
353
|
import swal from 'sweetalert';
|
|
351
|
-
import ProductClass
|
|
354
|
+
import ProductClass from './classes/ProductClass';
|
|
355
|
+
import EcommerceMaintenance from './dialogs/EcommerceMaintenance';
|
|
352
356
|
|
|
353
357
|
|
|
354
358
|
|
|
355
359
|
export default {
|
|
356
360
|
|
|
357
|
-
components: { SelectShippingOptions, AddNewAddressForm ,ProcessCheckoutConfirmDialog, GLoader, axios ,ChooseCourierDialog, SelectVoucherDialog},
|
|
361
|
+
components: { EcommerceMaintenance,SelectShippingOptions, AddNewAddressForm ,ProcessCheckoutConfirmDialog, GLoader, axios ,ChooseCourierDialog, SelectVoucherDialog},
|
|
358
362
|
mixins: [GlobalMixins],
|
|
359
363
|
props:{ checkout_list: Array, show_discount_badge: Boolean },
|
|
360
364
|
data: () =>
|
|
361
365
|
({
|
|
366
|
+
is_ecom_disable:false,
|
|
362
367
|
is_select_voucher_open:false,
|
|
363
368
|
is_update_address_dialog_open:false,
|
|
364
369
|
pass_order_details:{},
|
|
@@ -406,6 +411,7 @@ export default {
|
|
|
406
411
|
cod_payment_limit:999999,
|
|
407
412
|
online_payment_limit:999999,
|
|
408
413
|
hide_voucher:false,
|
|
414
|
+
disable_ecom:false,
|
|
409
415
|
}),
|
|
410
416
|
async mounted(){
|
|
411
417
|
if (this.user_info)
|
|
@@ -431,7 +437,11 @@ export default {
|
|
|
431
437
|
await this.$bind('all_address', new DB_USER_SHIPPING_ADDRESS(this.user_info.uid).collection());
|
|
432
438
|
this.getAdress();
|
|
433
439
|
this.showActivePayment();
|
|
434
|
-
|
|
440
|
+
if(this.public_settings.hasOwnProperty('functions') && this.public_settings.functions.hasOwnProperty('ecommerce') && !this.public_settings.functions.ecommerce)
|
|
441
|
+
{
|
|
442
|
+
this.disable_ecom = true;
|
|
443
|
+
this.is_ecom_disable = true;
|
|
444
|
+
}
|
|
435
445
|
if(this.public_settings.hasOwnProperty('hide_voucher') && this.public_settings.hide_voucher)
|
|
436
446
|
{
|
|
437
447
|
this.hide_voucher = true;
|
package/GReplicatedInvite.vue
CHANGED
|
@@ -5,18 +5,16 @@
|
|
|
5
5
|
<q-img spinner-size="0" class="logo-img" :style="`width: ${settings.front.login.logo_width}`" :src="settings.front.login.logo" />
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
<iframe width="
|
|
8
|
+
<div v-if="show_video" class="youtube">
|
|
9
|
+
<iframe width="500"
|
|
10
10
|
height="315"
|
|
11
|
-
:src="`${
|
|
11
|
+
:src="`${settings.lead_page.url}?autoplay=1&modestbranding=1&controls=0&showinfo=0`"
|
|
12
12
|
frameborder="0"
|
|
13
13
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
14
14
|
allowfullscreen
|
|
15
15
|
autoplay>
|
|
16
16
|
</iframe>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
</div>
|
|
20
18
|
|
|
21
19
|
<div class="btn">
|
|
22
20
|
<q-btn @click="$router.push({ name: 'front_registration', query: { sponsor: slot_info.slot_code } })" color="primary" unelevated>CLICK HERE TO JOIN NOW!</q-btn>
|
|
@@ -45,7 +43,8 @@ export default
|
|
|
45
43
|
db_slot: new DB_SLOT(),
|
|
46
44
|
referral_code: '',
|
|
47
45
|
loading: true,
|
|
48
|
-
settings:[]
|
|
46
|
+
settings:[],
|
|
47
|
+
show_video:false
|
|
49
48
|
}),
|
|
50
49
|
mounted() {
|
|
51
50
|
this.referral_code = this.$route.params.code.toUpperCase();
|
|
@@ -61,6 +60,10 @@ export default
|
|
|
61
60
|
|
|
62
61
|
this.settings= await new DB_SETTINGS().doc('public_settings').get();
|
|
63
62
|
this.settings= this.settings.data().value;
|
|
63
|
+
if(this.settings.hasOwnProperty('lead_page') && this.settings.lead_page.active)
|
|
64
|
+
{
|
|
65
|
+
this.show_video = true;
|
|
66
|
+
}
|
|
64
67
|
}
|
|
65
68
|
},
|
|
66
69
|
computed: { }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-card class="ecom-maintenance">
|
|
3
|
+
<div class='title'>System is upgrading.</div>
|
|
4
|
+
<q-icon name="fa fa-tools" size="100px"></q-icon>
|
|
5
|
+
<div class="subtitle">
|
|
6
|
+
Ecommerce transaction currently disabled.
|
|
7
|
+
</div>
|
|
8
|
+
</q-card>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default
|
|
13
|
+
{
|
|
14
|
+
filters: { },
|
|
15
|
+
data:() =>(
|
|
16
|
+
{
|
|
17
|
+
}),
|
|
18
|
+
mounted() { },
|
|
19
|
+
methods: { },
|
|
20
|
+
computed: { }
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
<style lang="scss">
|
|
24
|
+
.ecom-maintenance{
|
|
25
|
+
min-height: 500px;
|
|
26
|
+
min-width: 500px;
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: 1fr;
|
|
29
|
+
place-items: center;
|
|
30
|
+
font-size: 30px;
|
|
31
|
+
color: $primary;
|
|
32
|
+
text-align: center;
|
|
33
|
+
.title{
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
.subtitle{
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</style>
|