geer-builder 1.2.487 → 1.2.488
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.
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="g-apply-product" >
|
|
3
|
+
<div v-if="user_info.hasOwnProperty('merchant') && !user_info.merchant">
|
|
4
|
+
|
|
5
|
+
<h3 class="text-primary" style="margin-top:10px;">Thank you!</h3>
|
|
6
|
+
<div style="color:gray;font-size:17px;text-align:center">
|
|
7
|
+
<p>Thanks for taking the time to apply as one of our merchant and for submitting the required documents.</p>
|
|
8
|
+
|
|
9
|
+
<p>We're currently in the process of reviewing / approving documents for our Merchant Section.</p>
|
|
10
|
+
|
|
11
|
+
<p>For updates, please always check this area for the approval of your application!</p>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div v-if="user_info.hasOwnProperty('merchant') && user_info.merchant">
|
|
15
|
+
<h3 class="text-primary" style="margin-top:10px;">Thank you!</h3>
|
|
16
|
+
<div style="color:gray;font-size:17px;text-align:center">
|
|
17
|
+
<p>Congratulations! your merchant request has been accepted,</p>
|
|
18
|
+
<p>You are now a merchant!</p>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div v-if="!user_info.hasOwnProperty('merchant')">
|
|
22
|
+
<div class="q-mb-md message">We have detected that you are not a <b>Merchant</b> yet.</div>
|
|
23
|
+
<div class="q-mb-md message"><b>Apply</b> to be one now!</div>
|
|
24
|
+
<q-btn color="primary" @click="is_apply_product_dialog_open=true" label="Apply as a Merchant"/>
|
|
25
|
+
</div>
|
|
26
|
+
<q-dialog v-model="is_apply_product_dialog_open">
|
|
27
|
+
<apply-merchant-dialog :no_slot_merchant="true" @closeDialog="is_apply_product_dialog_open=false"></apply-merchant-dialog>
|
|
28
|
+
</q-dialog>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
<script>
|
|
32
|
+
import ApplyMerchantDialog from "./components/ApplyMerchant/ApplyMerchantDialog";
|
|
33
|
+
import GlobalMixins from './mixins/global_mixins.js';
|
|
34
|
+
export default
|
|
35
|
+
{
|
|
36
|
+
mixins: [GlobalMixins],
|
|
37
|
+
components:{ ApplyMerchantDialog },
|
|
38
|
+
data:() =>({
|
|
39
|
+
is_apply_product_dialog_open: false,
|
|
40
|
+
public_settings: [],
|
|
41
|
+
}),
|
|
42
|
+
async mounted()
|
|
43
|
+
{
|
|
44
|
+
await this.$_getSlotInfo();
|
|
45
|
+
},
|
|
46
|
+
methods: { },
|
|
47
|
+
computed:
|
|
48
|
+
{
|
|
49
|
+
user_slot_info()
|
|
50
|
+
{
|
|
51
|
+
if(this.current_slot_info)
|
|
52
|
+
{
|
|
53
|
+
return this.current_slot_info;
|
|
54
|
+
}
|
|
55
|
+
else
|
|
56
|
+
{
|
|
57
|
+
return {};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
63
|
+
styl <style lang="scss">
|
|
64
|
+
.g-apply-product{
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
</style>
|
|
@@ -75,6 +75,7 @@ import ApplyMerchantUploader from './ApplyMerchantUploader';
|
|
|
75
75
|
import phil from 'philippine-location-json-for-geer';
|
|
76
76
|
export default {
|
|
77
77
|
mixins: [GlobalMixins],
|
|
78
|
+
props:['no_slot_merchant'],
|
|
78
79
|
components:{ ApplyMerchantUploader },
|
|
79
80
|
data: () =>
|
|
80
81
|
({
|
|
@@ -183,7 +184,15 @@ export default {
|
|
|
183
184
|
delete this.merchant_details.additional_details;
|
|
184
185
|
}
|
|
185
186
|
this.merchant_details.uploaded_documents = this.uploaded_picture;
|
|
186
|
-
|
|
187
|
+
|
|
188
|
+
if(this.no_slot_merchant)
|
|
189
|
+
{
|
|
190
|
+
await this.$_fbCall('memberApplyMerchant', {merchant_details:this.merchant_details, user_info:this.user_info, no_slot_merchant:true});
|
|
191
|
+
}
|
|
192
|
+
else
|
|
193
|
+
{
|
|
194
|
+
await this.$_fbCall('memberApplyMerchant', {merchant_details:this.merchant_details, slot_code:this.user_info.active_slot, slot_info:this.current_slot_info});
|
|
195
|
+
}
|
|
187
196
|
this.$emit('closeDialog');
|
|
188
197
|
this.$q.loading.hide();
|
|
189
198
|
}
|
|
@@ -164,17 +164,27 @@ export default
|
|
|
164
164
|
},
|
|
165
165
|
async mounted()
|
|
166
166
|
{
|
|
167
|
+
this.public_settings = await this.$_getData('public_settings');
|
|
168
|
+
|
|
169
|
+
if(this.user_info.hasOwnProperty('active_slot'))
|
|
170
|
+
{
|
|
171
|
+
this.field.sponsor = this.user_info.active_slot;
|
|
172
|
+
}
|
|
173
|
+
|
|
167
174
|
if(this.code)
|
|
168
175
|
{
|
|
169
176
|
this.field.code = this.code.code;
|
|
170
177
|
this.field.pin = this.code.pin;
|
|
178
|
+
if(this.code.hasOwnProperty('sale_id') && this.code.sale_id =="apply_merchant")
|
|
179
|
+
{
|
|
180
|
+
if(this.public_settings.hasOwnProperty('merchant_default_sponsor'))
|
|
181
|
+
{
|
|
182
|
+
this.field.sponsor = this.public_settings.merchant_default_sponsor;
|
|
183
|
+
this.fixed_sponsor = true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
171
186
|
}
|
|
172
187
|
|
|
173
|
-
if(this.user_info.hasOwnProperty('active_slot'))
|
|
174
|
-
{
|
|
175
|
-
this.field.sponsor = this.user_info.active_slot;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
188
|
if(this.lead_info)
|
|
179
189
|
{
|
|
180
190
|
this.field.owner_email = this.lead_info.lead.email
|
|
@@ -184,7 +194,6 @@ export default
|
|
|
184
194
|
this.field.owner_email = this.user_info.email;
|
|
185
195
|
|
|
186
196
|
}
|
|
187
|
-
this.public_settings = await this.$_getData('public_settings');
|
|
188
197
|
this.checkFixSponsor();
|
|
189
198
|
},
|
|
190
199
|
methods:
|
|
@@ -219,7 +228,6 @@ export default
|
|
|
219
228
|
async verifyCode()
|
|
220
229
|
{
|
|
221
230
|
this.submit_loading = true;
|
|
222
|
-
|
|
223
231
|
try
|
|
224
232
|
{
|
|
225
233
|
this.code_info = await this.$_fbCall('memberVerifyCode', this.field);
|
|
@@ -256,7 +264,6 @@ export default
|
|
|
256
264
|
async confirmDetails()
|
|
257
265
|
{
|
|
258
266
|
this.submit_loading = true;
|
|
259
|
-
|
|
260
267
|
try
|
|
261
268
|
{
|
|
262
269
|
await this.$_fbCall('memberCreateSlot', this.field);
|