@burh/nuxt-core 1.0.493 → 1.0.495
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.
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
`${userData.name} ${userData.last_name}`
|
|
20
20
|
)
|
|
21
21
|
"
|
|
22
|
-
|
|
22
|
+
/>
|
|
23
|
+
<h6
|
|
24
|
+
v-if="userData && userData.user_complementary_information && userData.user_complementary_information.birth && getAge() > 0 || false"
|
|
25
|
+
>
|
|
26
|
+
{{ getAge() }} anos
|
|
27
|
+
</h6>
|
|
23
28
|
|
|
24
29
|
<p
|
|
25
30
|
class="user-info"
|
|
@@ -223,7 +228,7 @@
|
|
|
223
228
|
<script>
|
|
224
229
|
import getPrefixes from '~/util/getPrefixes.js';
|
|
225
230
|
import VueQrcode from '@chenfengyuan/vue-qrcode';
|
|
226
|
-
|
|
231
|
+
import moment from 'moment';
|
|
227
232
|
|
|
228
233
|
export default {
|
|
229
234
|
name: 'user-cv-left-side',
|
|
@@ -251,6 +256,10 @@ export default {
|
|
|
251
256
|
};
|
|
252
257
|
},
|
|
253
258
|
methods: {
|
|
259
|
+
getAge(){
|
|
260
|
+
const userAge = this.userData.user_complementary_information.birth;
|
|
261
|
+
return moment().diff(userAge, 'years');
|
|
262
|
+
},
|
|
254
263
|
highlightText(search, text) {
|
|
255
264
|
if (search.length < 2) return text;
|
|
256
265
|
|