geer-builder 1.2.747 → 1.2.749
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 +51 -0
- package/GEarningBreakdownWidget.vue +29 -0
- package/GProductList.vue +1 -1
- package/components/GProfile.vue +29 -0
- package/package.json +1 -1
package/GCheckout.vue
CHANGED
|
@@ -422,6 +422,7 @@ export default {
|
|
|
422
422
|
({
|
|
423
423
|
is_branch_pickup:false,
|
|
424
424
|
is_merchant_free_shipping_conflict:false,
|
|
425
|
+
is_elms_conflict:false,
|
|
425
426
|
is_ecom_disable:false,
|
|
426
427
|
is_select_voucher_open:false,
|
|
427
428
|
is_update_address_dialog_open:false,
|
|
@@ -461,6 +462,7 @@ export default {
|
|
|
461
462
|
online_payment_list : [],
|
|
462
463
|
offGcPayment: false,
|
|
463
464
|
temp_product:'',
|
|
465
|
+
digital_product_shipping:false,
|
|
464
466
|
active_index: 0,
|
|
465
467
|
custom_fees: 0,
|
|
466
468
|
courier_settings: {},
|
|
@@ -1276,9 +1278,11 @@ export default {
|
|
|
1276
1278
|
let shipping_fee = 0;
|
|
1277
1279
|
let is_merchant_free_shipping = false;
|
|
1278
1280
|
this.is_merchant_free_shipping_conflict = false;
|
|
1281
|
+
this.is_elms_conflict = false;
|
|
1279
1282
|
let free_shipping_ctr = 0;
|
|
1280
1283
|
let shipping_total = 0;
|
|
1281
1284
|
let voucher_total = 0;
|
|
1285
|
+
let last_product_type = null;
|
|
1282
1286
|
// this.checkout_info.orders.forEach(async orders => {
|
|
1283
1287
|
|
|
1284
1288
|
for(let orders of this.checkout_info.orders){
|
|
@@ -1299,6 +1303,36 @@ export default {
|
|
|
1299
1303
|
{
|
|
1300
1304
|
this.is_merchant_free_shipping_conflict = true;
|
|
1301
1305
|
}
|
|
1306
|
+
|
|
1307
|
+
if(!last_product_type)
|
|
1308
|
+
{
|
|
1309
|
+
last_product_type = pro.product.type;
|
|
1310
|
+
}
|
|
1311
|
+
else if(last_product_type == "ELMS")
|
|
1312
|
+
{
|
|
1313
|
+
this.is_elms_conflict = true;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
else if(pro.product.type === "ELMS")
|
|
1317
|
+
{
|
|
1318
|
+
let check_condition = true;
|
|
1319
|
+
if(free_shipping_ctr >= 1 && is_merchant_free_shipping !== true && check_condition === true)
|
|
1320
|
+
{
|
|
1321
|
+
this.is_merchant_free_shipping_conflict = true;
|
|
1322
|
+
}
|
|
1323
|
+
else if(free_shipping_ctr >= 1 && is_merchant_free_shipping === true && check_condition !== true)
|
|
1324
|
+
{
|
|
1325
|
+
this.is_merchant_free_shipping_conflict = true;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
if(!last_product_type)
|
|
1329
|
+
{
|
|
1330
|
+
last_product_type = "ELMS";
|
|
1331
|
+
}
|
|
1332
|
+
else if(last_product_type != "ELMS")
|
|
1333
|
+
{
|
|
1334
|
+
this.is_elms_conflict = true;
|
|
1335
|
+
}
|
|
1302
1336
|
}
|
|
1303
1337
|
else
|
|
1304
1338
|
{
|
|
@@ -1310,6 +1344,15 @@ export default {
|
|
|
1310
1344
|
{
|
|
1311
1345
|
this.is_merchant_free_shipping_conflict = true;
|
|
1312
1346
|
}
|
|
1347
|
+
|
|
1348
|
+
if(!last_product_type)
|
|
1349
|
+
{
|
|
1350
|
+
last_product_type = pro.product.type;
|
|
1351
|
+
}
|
|
1352
|
+
else if(last_product_type == "ELMS")
|
|
1353
|
+
{
|
|
1354
|
+
this.is_elms_conflict = true;
|
|
1355
|
+
}
|
|
1313
1356
|
}
|
|
1314
1357
|
|
|
1315
1358
|
free_shipping_ctr++;
|
|
@@ -1324,6 +1367,10 @@ export default {
|
|
|
1324
1367
|
is_merchant_free_shipping = true;
|
|
1325
1368
|
}
|
|
1326
1369
|
}
|
|
1370
|
+
else if(pro.product.type === 'ELMS')
|
|
1371
|
+
{
|
|
1372
|
+
is_merchant_free_shipping = true;
|
|
1373
|
+
}
|
|
1327
1374
|
});
|
|
1328
1375
|
}
|
|
1329
1376
|
|
|
@@ -2236,6 +2283,10 @@ export default {
|
|
|
2236
2283
|
{
|
|
2237
2284
|
this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine products with shipping fee to a product with free shipping fee please clear your cart.` });
|
|
2238
2285
|
}
|
|
2286
|
+
else if(this.is_elms_conflict == true)
|
|
2287
|
+
{
|
|
2288
|
+
this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine elms wallet purchase with other products please clear your cart.` });
|
|
2289
|
+
}
|
|
2239
2290
|
else if(!this.checkout_info.shipping_address.first_name ||!this.checkout_info.shipping_address.last_name )
|
|
2240
2291
|
{
|
|
2241
2292
|
this.$q.dialog({ html: true, title: `Something's not quite right`, message: "Please Update Shipping Address First Name/Last Name" }).onOk(async data =>
|
|
@@ -101,6 +101,35 @@ export default
|
|
|
101
101
|
}
|
|
102
102
|
return res;
|
|
103
103
|
});
|
|
104
|
+
|
|
105
|
+
if(complan_plan.hasOwnProperty("breakdown_complan"))
|
|
106
|
+
{
|
|
107
|
+
complan_plan.breakdown_complan.map((val) =>
|
|
108
|
+
{
|
|
109
|
+
let res = { icon: val.icon, active: val.active, label: val.label, complan: val.key, amount : 0, last_update: null, show:val.show };
|
|
110
|
+
this.earning_breakdown.forEach((breakdown) =>
|
|
111
|
+
{
|
|
112
|
+
let another_keyword = val.key+"_convert";
|
|
113
|
+
if(breakdown.id == val.key || breakdown.id == another_keyword)
|
|
114
|
+
{
|
|
115
|
+
res.amount = res.amount+breakdown.amount;
|
|
116
|
+
res.last_update = breakdown.last_update;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
for (var key in this.earning_breakdown_slot.temporary_wallet)
|
|
121
|
+
{
|
|
122
|
+
if(key == val.key)
|
|
123
|
+
{
|
|
124
|
+
res.amount = res.amount +this.earning_breakdown_slot.temporary_wallet[key];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
this.earning_breakdown_processed.push(res);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// console.log(this.earning_breakdown_processed);
|
|
104
133
|
// console.log(this.earning_breakdown_processed);
|
|
105
134
|
// console.log(this.earning_breakdown_slot.temporary_wallet);
|
|
106
135
|
|
package/GProductList.vue
CHANGED
|
@@ -287,7 +287,7 @@ export default {
|
|
|
287
287
|
},
|
|
288
288
|
async newGetProduct(limit,loadmore=false)
|
|
289
289
|
{
|
|
290
|
-
let querry = new DB_PRODUCTS().collection().where("type", "in", ["Product", "Membership Kit", "Exclusive"]).where("ecommerce", "==", true).where("country_code", "==", this.country_code ? this.country_code : 'PH');
|
|
290
|
+
let querry = new DB_PRODUCTS().collection().where("type", "in", ["Product", "Membership Kit", "Exclusive", "ELMS"]).where("ecommerce", "==", true).where("country_code", "==", this.country_code ? this.country_code : 'PH');
|
|
291
291
|
if(this.is_membership_only)
|
|
292
292
|
{
|
|
293
293
|
querry = querry.where("type", "==", "Membership Kit")
|
package/components/GProfile.vue
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
<q-img :src="prop_user_info.hasOwnProperty('profile_picture') ? prop_user_info.profile_picture : default_profile_picture"></q-img>
|
|
11
11
|
</q-avatar>
|
|
12
12
|
</div>
|
|
13
|
+
<div v-if="profile_details && show_elms_login == true && ( show_elms_login_test == false || ( show_elms_login_test == true && prop_user_info.enable_elms_test ) )">
|
|
14
|
+
<q-btn class="full-width q-mt-sm" @click="getElmsLogin()" color="primary" outline>Login to elms</q-btn>
|
|
15
|
+
</div>
|
|
13
16
|
<div class="profile-details" v-if="profile_details">
|
|
14
17
|
<div class="total-earning-label">Total Earnings</div>
|
|
15
18
|
<div class="total-earning">{{$_formatNumber(slot_info.total_earned, { decimal: 2 })}}</div>
|
|
@@ -98,6 +101,8 @@ export default
|
|
|
98
101
|
membership:'',
|
|
99
102
|
rank: '',
|
|
100
103
|
slot_info:'',
|
|
104
|
+
show_elms_login:false,
|
|
105
|
+
show_elms_login_test:false
|
|
101
106
|
}),
|
|
102
107
|
async mounted()
|
|
103
108
|
{
|
|
@@ -110,6 +115,16 @@ export default
|
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
let profile = await this.$_getData('public_settings');
|
|
118
|
+
if(profile.enable_successflix_product == true)
|
|
119
|
+
{
|
|
120
|
+
this.show_elms_login = true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if(profile.enable_successflix_product_test == true)
|
|
124
|
+
{
|
|
125
|
+
this.show_elms_login_test = true;
|
|
126
|
+
}
|
|
127
|
+
|
|
113
128
|
this.default_profile_picture = profile.default_profile_picture;
|
|
114
129
|
},
|
|
115
130
|
methods: {
|
|
@@ -121,6 +136,20 @@ export default
|
|
|
121
136
|
sendMessage()
|
|
122
137
|
{
|
|
123
138
|
EventBus.$emit('emitToChat', this.prop_user_info.uid);
|
|
139
|
+
},
|
|
140
|
+
async getElmsLogin()
|
|
141
|
+
{
|
|
142
|
+
this.$q.loading.show();
|
|
143
|
+
let public_settings = await this.$_getData('public_settings');
|
|
144
|
+
if(public_settings.success_flix_elms_login_visit)
|
|
145
|
+
{
|
|
146
|
+
let return_response = await this.$_fbCall('memberGetElmsLogin');
|
|
147
|
+
if(return_response && return_response.data && return_response.data.generated_id)
|
|
148
|
+
{
|
|
149
|
+
window.open(public_settings.success_flix_elms_login_visit+"?loginTokenId="+return_response.data.generated_id, '_blank');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
this.$q.loading.hide();
|
|
124
153
|
}
|
|
125
154
|
},
|
|
126
155
|
computed: { }
|