geer-builder 1.2.913 → 1.2.914
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/components/GProfile.vue +9 -5
- package/package.json +1 -1
package/components/GProfile.vue
CHANGED
|
@@ -112,7 +112,8 @@ export default
|
|
|
112
112
|
show_elms_login:false,
|
|
113
113
|
show_elms_login_test:false,
|
|
114
114
|
show_privilege_card : false,
|
|
115
|
-
secondary_slot_code : ''
|
|
115
|
+
secondary_slot_code : '',
|
|
116
|
+
public_settings: {}
|
|
116
117
|
}),
|
|
117
118
|
async mounted()
|
|
118
119
|
{
|
|
@@ -126,6 +127,7 @@ export default
|
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
let profile = await this.$_getData('public_settings');
|
|
130
|
+
this.public_settings = profile;
|
|
129
131
|
if(profile.hasOwnProperty('show_privilege_card') && profile.show_privilege_card == true) this.show_privilege_card = true;
|
|
130
132
|
if(this.secondary_slot_code) this.show_privilege_card = false;
|
|
131
133
|
if(profile.enable_successflix_product == true)
|
|
@@ -168,11 +170,13 @@ export default
|
|
|
168
170
|
computed: {
|
|
169
171
|
expiration_date_display()
|
|
170
172
|
{
|
|
171
|
-
if (this.slot_info && this.slot_info.length > 0 && this.
|
|
173
|
+
if (this.slot_info && this.slot_info.length > 0 && this.public_settings.slot_expiration && this.public_settings.slot_expiration.enable)
|
|
172
174
|
{
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
let exp_result = this.$_checkSlotExpirationLocal(this.slot_info[0], this.public_settings);
|
|
176
|
+
if (exp_result.expiration_enabled && exp_result.expiration_date)
|
|
177
|
+
{
|
|
178
|
+
return this.$_formatDate(exp_result.expiration_date);
|
|
179
|
+
}
|
|
176
180
|
}
|
|
177
181
|
return null;
|
|
178
182
|
}
|