geer-builder 1.2.538 → 1.2.539
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
CHANGED
|
@@ -136,6 +136,7 @@
|
|
|
136
136
|
<div v-else v-for="(addre, i) in all_address" :key="i" class="shipping">
|
|
137
137
|
<div class="shipping-left">
|
|
138
138
|
<q-radio v-model="selectedAddress" :val="i" label="" />
|
|
139
|
+
<div v-if="!addre.default" class="text-center" style="margin-top:15px;padding-right:15px;" @click="archiveAddressPrompt(addre.id)"><q-icon name="fa fa-trash" size="12px"></q-icon></div>
|
|
139
140
|
</div>
|
|
140
141
|
<div class="shipping-right">
|
|
141
142
|
<div class="name"> {{addre.full_name}}</div>
|
|
@@ -395,6 +396,7 @@ export default {
|
|
|
395
396
|
is_add_address_dialog_open: false,
|
|
396
397
|
messageToOwner: [],
|
|
397
398
|
all_address : [],
|
|
399
|
+
all_address_recheck : [],
|
|
398
400
|
payment_method_list: [],
|
|
399
401
|
payment_account_list:[],
|
|
400
402
|
shipping_address: { full_name:"",region: { region_name: "" },province: { province_name: "" } },
|
|
@@ -459,7 +461,15 @@ export default {
|
|
|
459
461
|
this.product_list = Object.assign([], this.checkout_list);
|
|
460
462
|
await this.$_getSlotInfo();
|
|
461
463
|
await this.getordersbymerchant();
|
|
462
|
-
await this.$bind('all_address', new DB_USER_SHIPPING_ADDRESS(this.user_info.uid).collection());
|
|
464
|
+
await this.$bind('all_address', new DB_USER_SHIPPING_ADDRESS(this.user_info.uid).collection().where("archive","==",false));
|
|
465
|
+
|
|
466
|
+
let oneTime_checker = localStorage.getItem("oneTime_checker");
|
|
467
|
+
if(!oneTime_checker)
|
|
468
|
+
{
|
|
469
|
+
localStorage.setItem("oneTime_checker",true);
|
|
470
|
+
await this.$bind('all_address_recheck', new DB_USER_SHIPPING_ADDRESS(this.user_info.uid).collection());
|
|
471
|
+
this.recheckAddress();
|
|
472
|
+
}
|
|
463
473
|
this.getAdress();
|
|
464
474
|
this.showActivePayment();
|
|
465
475
|
if(this.public_settings.hasOwnProperty('functions') && this.public_settings.functions.hasOwnProperty('ecommerce') && !this.public_settings.functions.ecommerce)
|
|
@@ -1548,6 +1558,53 @@ export default {
|
|
|
1548
1558
|
this.checkout_info.grand_total += this.custom_fees;
|
|
1549
1559
|
}
|
|
1550
1560
|
},
|
|
1561
|
+
archiveAddressPrompt(address_id)
|
|
1562
|
+
{
|
|
1563
|
+
this.$q.dialog({
|
|
1564
|
+
title: 'Confirm',
|
|
1565
|
+
message: 'Would you like to delete this address?',
|
|
1566
|
+
cancel: true,
|
|
1567
|
+
persistent: true
|
|
1568
|
+
}).onOk(() => {
|
|
1569
|
+
this.archiveAddress(address_id);
|
|
1570
|
+
});
|
|
1571
|
+
},
|
|
1572
|
+
async archiveAddress(address_id)
|
|
1573
|
+
{
|
|
1574
|
+
this.$q.loading.show();
|
|
1575
|
+
await this.$_fbCall('memberArchiveAddress', {uid : this.user_info.uid, address_id: address_id});
|
|
1576
|
+
|
|
1577
|
+
if(this.all_address[this.selectedAddress].id == address_id)
|
|
1578
|
+
{
|
|
1579
|
+
this.all_address.forEach( (address,i) =>
|
|
1580
|
+
{
|
|
1581
|
+
if(address.default)
|
|
1582
|
+
{
|
|
1583
|
+
if(this.selectedAddress < i)
|
|
1584
|
+
{
|
|
1585
|
+
this.selectedAddress=i-1;
|
|
1586
|
+
}
|
|
1587
|
+
else
|
|
1588
|
+
{
|
|
1589
|
+
this.selectedAddress=i;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
this.$q.loading.hide();
|
|
1596
|
+
},
|
|
1597
|
+
recheckAddress()
|
|
1598
|
+
{
|
|
1599
|
+
// this.all_address = await new DB_USER_SHIPPING_ADDRESS(this.user_info.uid).collection().get();
|
|
1600
|
+
for (let address of this.all_address_recheck)
|
|
1601
|
+
{
|
|
1602
|
+
if(!address.hasOwnProperty("archive"))
|
|
1603
|
+
{
|
|
1604
|
+
this.$_fbCall('memberrecheckArchiveAddress', {uid : this.user_info.uid, address_id: address.id});
|
|
1605
|
+
}
|
|
1606
|
+
};
|
|
1607
|
+
},
|
|
1551
1608
|
getAdress()
|
|
1552
1609
|
{
|
|
1553
1610
|
// this.all_address = await new DB_USER_SHIPPING_ADDRESS(this.user_info.uid).collection().get();
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
<q-icon name="fa fa-calendar" size="14px" class="q-mr-sm" ></q-icon>
|
|
39
39
|
<div>Period PV</div>
|
|
40
40
|
</q-btn>
|
|
41
|
+
<q-btn color="primary" unelevated v-if="show_unilevel_breakdown" @click="is_repeat_sale_dialog_open = true" style="margin:2px auto; width:75%;">
|
|
42
|
+
<q-icon name="fa fa-calendar" size="14px" class="q-mr-sm" ></q-icon>
|
|
43
|
+
<div>Unilevel Breakdown</div>
|
|
44
|
+
</q-btn>
|
|
41
45
|
<q-btn v-close-popup color="primary" @click="direct()" style="margin:2px auto; width:75%;">
|
|
42
46
|
<q-icon name="fa fa-user" size="14px" class="q-mr-sm"></q-icon>
|
|
43
47
|
<div v-if="is_company_success">Direct Enrollees List</div>
|
|
@@ -54,6 +58,9 @@
|
|
|
54
58
|
<div v-else>Show downline maintaning status</div>
|
|
55
59
|
</q-btn>
|
|
56
60
|
</div>
|
|
61
|
+
<q-dialog v-model="is_repeat_sale_dialog_open">
|
|
62
|
+
<unilevel-breakdown @closePopup="is_repeat_sale_dialog_open = false;" :row="current_slot_info" :unilevel="distributed"></unilevel-breakdown>
|
|
63
|
+
</q-dialog>
|
|
57
64
|
<q-dialog v-model="is_direct_downline_open">
|
|
58
65
|
<direct-downline-dialog :slot_list="slot_list" @closePopup="is_direct_downline_open = false"></direct-downline-dialog>
|
|
59
66
|
</q-dialog>
|
|
@@ -203,13 +210,14 @@ import UnilevelPurchasesDialog from './dialogs/UnilevelPurchasesDialog';
|
|
|
203
210
|
import moment from 'moment';
|
|
204
211
|
import {formatNumber} from './utilities/NumberUtils';
|
|
205
212
|
import {formatDate} from './utilities/DateUtils';
|
|
213
|
+
import UnilevelBreakdown from './dialogs/UnilevelBreakdown.vue';
|
|
206
214
|
|
|
207
215
|
|
|
208
216
|
|
|
209
217
|
|
|
210
218
|
export default
|
|
211
219
|
{
|
|
212
|
-
components: { GCard, DirectDownlineDialog,UnilevelPurchasesDialog, DownLineListTable},
|
|
220
|
+
components: { GCard, DirectDownlineDialog,UnilevelPurchasesDialog, DownLineListTable, UnilevelBreakdown},
|
|
213
221
|
mixins: [GlobalMixins],
|
|
214
222
|
props:{
|
|
215
223
|
is_company_success: Boolean,
|
|
@@ -217,6 +225,7 @@ export default
|
|
|
217
225
|
},
|
|
218
226
|
data: () =>
|
|
219
227
|
({
|
|
228
|
+
is_repeat_sale_dialog_open:false,
|
|
220
229
|
is_downline_table_open: false,
|
|
221
230
|
is_unity:false,
|
|
222
231
|
first_month_unity:null,
|
|
@@ -244,12 +253,15 @@ export default
|
|
|
244
253
|
downline_list:[],
|
|
245
254
|
membership_list:[],
|
|
246
255
|
period_pv: 0 ,
|
|
247
|
-
pv_filter:true
|
|
256
|
+
pv_filter:true,
|
|
257
|
+
distributed:{},
|
|
258
|
+
show_unilevel_breakdown:false
|
|
248
259
|
}),
|
|
249
260
|
async mounted()
|
|
250
261
|
{
|
|
251
262
|
this.$bind('slot_list', this.db_slot.collection().where('sponsor', '==', this.user_info.active_slot));
|
|
252
263
|
this.main_currency = await new DB_SETTINGS().doc('public_settings').get();
|
|
264
|
+
this.show_unilevel_breakdown = this.main_currency.data().value.company_social ? this.main_currency.data().value.company_social : false;
|
|
253
265
|
this.check_direct_settings = this.main_currency.data().value.active_complan[0];
|
|
254
266
|
this.is_unity = this.check_direct_settings.hasOwnProperty("direct_unity_count") ? true : false;
|
|
255
267
|
this.membership_list = await this.$_getData('membership_list');
|
|
@@ -258,6 +270,13 @@ export default
|
|
|
258
270
|
this.filter.from = moment().format('YYYY/MM/DD');
|
|
259
271
|
this.filter.to = moment().format('YYYY/MM/DD');
|
|
260
272
|
let activated_unilevel = await new DB_UNILEVEL().collection().where('activated', '==', true).get();
|
|
273
|
+
let distributed_unilevel = await new DB_UNILEVEL().collection().where('status', '==', 'distributed').orderBy('created_date', 'desc').limit(1).get();
|
|
274
|
+
|
|
275
|
+
if(distributed_unilevel.docs.length >0)
|
|
276
|
+
{
|
|
277
|
+
this.distributed = distributed_unilevel.docs[0].data();
|
|
278
|
+
}
|
|
279
|
+
|
|
261
280
|
if(activated_unilevel.docs.length >0)
|
|
262
281
|
{
|
|
263
282
|
let user_tree_details = await new DB_UNTREES().collection().where('downline', '==', this.current_slot_info.slot_code).where('level', '<=', 1).get();
|
|
@@ -272,7 +291,6 @@ export default
|
|
|
272
291
|
});
|
|
273
292
|
if(this.activated_period.length > 0)
|
|
274
293
|
{
|
|
275
|
-
console.log(this.activated_period.length , 'activated period');
|
|
276
294
|
if(user_tree_details.docs.length > 0)
|
|
277
295
|
{
|
|
278
296
|
this.period_pv = user_tree_details.docs[0].data()[this.activated_period[0].id].pv_earned;
|
|
@@ -283,8 +301,6 @@ export default
|
|
|
283
301
|
}
|
|
284
302
|
}
|
|
285
303
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
304
|
this.first_month_unity = this.is_unity ? (this.current_slot_info.hasOwnProperty("first_month_unity") ? moment(new Date(this.current_slot_info.first_month_unity.toDate())).format("YYYY/MM/DD hh:mm a") : null) : null;
|
|
289
305
|
this.second_month_unity = this.is_unity ? (this.current_slot_info.hasOwnProperty("second_month_unity") ? moment(new Date(this.current_slot_info.second_month_unity.toDate())).format("YYYY/MM/DD hh:mm a") : null) : null;
|
|
290
306
|
},
|
package/GLogin.vue
CHANGED
|
@@ -7,13 +7,29 @@
|
|
|
7
7
|
<q-input :disable="is_submitting" v-model="form_data.email" dense placeholder="Enter Email" class="input input-email" outlined stack-label/>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
<div class="g-login__fields q-mt-md row" v-if="show_pass_button == true">
|
|
12
|
+
<div class="label col-12">Password</div>
|
|
13
|
+
<div class="input col-11">
|
|
14
|
+
<q-input v-if="showPassword" :disable="is_submitting" v-model="form_data.password" type="text" dense placeholder="Enter Password" class="input input-password" outlined stack-label/>
|
|
15
|
+
<q-input v-if="!showPassword" :disable="is_submitting" v-model="form_data.password" type="password" dense placeholder="Enter Password" class="input input-password" outlined stack-label/>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-1">
|
|
18
|
+
<div @click="toggleShowPass" class="text-center" style="height:100%">
|
|
19
|
+
<span class="icon is-small is-right">
|
|
20
|
+
<q-icon :class="{ 'fa-eye-slash': showPassword, 'fa-eye': !showPassword }" name="fas fa-eye" size="20px" style="margin-top:10px;"></q-icon>
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="g-login__fields q-mt-md" v-else>
|
|
11
26
|
<div class="label">Password</div>
|
|
12
27
|
<div class="input">
|
|
13
28
|
<q-input :disable="is_submitting" v-model="form_data.password" type="password" dense placeholder="Enter Password" class="input input-password" outlined stack-label/>
|
|
14
29
|
</div>
|
|
15
30
|
</div>
|
|
16
31
|
|
|
32
|
+
|
|
17
33
|
<div class="g-login__fields q-mt-md" style="margin-top: 20px">
|
|
18
34
|
<q-btn class="submit-login" :disable="is_submitting" :loading="is_submitting" type="submit" color="primary full-width button-login" unelevated>Sign In</q-btn>
|
|
19
35
|
<q-btn v-if="!hide_registration" class="full-width q-mt-sm" @click="openRegistration()" color="primary" outline>Create Account</q-btn>
|
|
@@ -83,7 +99,8 @@ export default
|
|
|
83
99
|
terms: String,
|
|
84
100
|
val: Boolean,
|
|
85
101
|
hide_registration: Boolean,
|
|
86
|
-
mbot:Boolean
|
|
102
|
+
mbot:Boolean,
|
|
103
|
+
show_pass_button:Boolean
|
|
87
104
|
|
|
88
105
|
},
|
|
89
106
|
components: { GRegistration,GForgotPassword },
|
|
@@ -98,6 +115,7 @@ export default
|
|
|
98
115
|
db_slot: new DB_SLOT(),
|
|
99
116
|
is_resend_dialog: false,
|
|
100
117
|
public_settings:[],
|
|
118
|
+
showPassword:false
|
|
101
119
|
}),
|
|
102
120
|
watch:
|
|
103
121
|
{
|
|
@@ -166,6 +184,10 @@ export default
|
|
|
166
184
|
{
|
|
167
185
|
this.is_registration_dialog= true;
|
|
168
186
|
},
|
|
187
|
+
toggleShowPass()
|
|
188
|
+
{
|
|
189
|
+
this.showPassword = this.showPassword == false ? true : false;
|
|
190
|
+
},
|
|
169
191
|
async submitLogin()
|
|
170
192
|
{
|
|
171
193
|
/* start login */
|
package/GSlotWallet.vue
CHANGED
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
<div class="value">{{ main_currency }} {{ $_formatNumber(global_pool.count, { decimal: 2 }) }}</div>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
|
+
<div class="global-holder" v-if="show_damayan_pool">
|
|
18
|
+
<div>
|
|
19
|
+
<div class="label">Damayan Funds</div>
|
|
20
|
+
<div class="value">{{ main_currency }} {{ $_formatNumber(damayan_pool.count, { decimal: 2 }) }}</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
17
23
|
<div>
|
|
18
24
|
<div class="" v-if="is_company_success">
|
|
19
25
|
<div class="label" style="margin-top:10px">TOTAL CENTRAL WALLET EARNED</div>
|
|
@@ -185,6 +191,8 @@ export default
|
|
|
185
191
|
public_settings:{},
|
|
186
192
|
total_wallet_label:'',
|
|
187
193
|
global_pool:[],
|
|
194
|
+
damayan_pool:[],
|
|
195
|
+
show_damayan_pool:false,
|
|
188
196
|
show_global_pool:false,
|
|
189
197
|
}),
|
|
190
198
|
watch:
|
|
@@ -207,6 +215,7 @@ export default
|
|
|
207
215
|
await this.getTempWallet();
|
|
208
216
|
await this.memberUpdateSlotLimit();
|
|
209
217
|
await this.getGlobalPool();
|
|
218
|
+
await this.getDamayan();
|
|
210
219
|
|
|
211
220
|
if(this.is_company_success == true)
|
|
212
221
|
{
|
|
@@ -215,6 +224,14 @@ export default
|
|
|
215
224
|
},
|
|
216
225
|
methods:
|
|
217
226
|
{
|
|
227
|
+
async getDamayan()
|
|
228
|
+
{
|
|
229
|
+
await this.$bind('damayan_pool', new DB_STAT().doc('damayan'));
|
|
230
|
+
if(this.damayan_pool != null)
|
|
231
|
+
{
|
|
232
|
+
this.show_damayan_pool = true;
|
|
233
|
+
}
|
|
234
|
+
},
|
|
218
235
|
async getGlobalPool()
|
|
219
236
|
{
|
|
220
237
|
await this.$bind('global_pool', new DB_STAT().doc('global_pool'));
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<input type="hidden" name="ResponseURL" :value="ipay88_response_url">
|
|
32
32
|
<input type="hidden" name="BackendURL" :value="ipay88_backend_url">
|
|
33
33
|
</form>
|
|
34
|
-
<form v-if="sale.payment_method.payment_method_id == 'dragon_pay'" method="get" id="dragon_pay_form" name="ePayment" :action="public_settings.dragonpay_details.payment_request_url">
|
|
34
|
+
<form v-if="sale.payment_method.payment_method_id == 'dragon_pay'" method="get" id="dragon_pay_form" name="ePayment" :action="public_settings.dragonpay_details.test ? public_settings.dragonpay_details.test_payment_request_url : public_settings.dragonpay_details.payment_request_url">
|
|
35
35
|
<input type="hidden" name="merchantid" :value="merchant_id">
|
|
36
36
|
<input type="hidden" name="txnid" :value="txnid">
|
|
37
37
|
<input type="hidden" name="amount" :value="amount">
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
122
122
|
this.txnid = this.sale.sale_id.toString();
|
|
123
123
|
this.amount = floattotal.toString();
|
|
124
124
|
this.ccy = "PHP";
|
|
125
|
-
this.description = "test";
|
|
125
|
+
this.description = this.public_settings.dragonpay_details.test ? "test" : "order: ", this.txnid;
|
|
126
126
|
this.email = this.public_settings.dragonpay_details.test ? "admin@gmail.com" : this.sale.customer_email;
|
|
127
127
|
let digest_string = `${this.merchant_id}:${this.txnid}:${this.amount}:${this.ccy}:${this.description}:${this.email}:${this.password}`;
|
|
128
128
|
this.digest = encryptSha(digest_string);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<q-card style="max-width: 700px; min-height: 200px;">
|
|
3
3
|
<q-bar class="bg-primary text-white q-pa-lg">
|
|
4
4
|
<q-icon class="q-mr-sm" name="fa fa-splotch"></q-icon>
|
|
5
|
-
<b>Breakdown
|
|
5
|
+
<b>Unilevel Breakdown({{unilevel.unilevel_id}})</b>
|
|
6
6
|
<q-space />
|
|
7
7
|
|
|
8
8
|
<q-btn dense flat icon="close" v-close-popup>
|