update style upload / connect api

This commit is contained in:
2024-04-22 00:23:39 +07:00
parent dfc314e16e
commit a871a8e178
8 changed files with 819 additions and 292 deletions

View File

@@ -9,17 +9,23 @@
"
class="pa-lg-10 pa-md-10 pa-sm-4 pa-2"
>
<v-row>
<v-col v-for="(item, i) in profile" :key="i" cols="12" md="6" lg="6" >
<v-card elevation="5" class="text-sub2 mx-auto pb-5 card-user" >
<!-- {{ dataProfile }} -->
<v-row >
<v-col
v-for="(item, i) in dataProfile"
:key="i"
cols="12"
md="6"
lg="6"
>
<v-card elevation="5" class="text-sub2 mx-auto pb-5 card-user">
<div
style="background: #37332f; color: white; width: 100%"
class="font-weight-bold pa-2 w-100 text-center"
>
<div class="more">{{ item.group }}</div>
<div class="more" v-if="item.group">{{ item.group.name }}</div>
</div>
<v-card-item >
<v-card-item>
<v-row align="left">
<!-- <div class="box-province px-3 py-2">
<div class="font-weight-bold">
@@ -28,28 +34,37 @@
</div> -->
<v-col cols="12" md="auto" class="text-center">
<v-avatar color="#635d56" size="100">
<v-icon
icon="mdi-account"
color=""
size="80"
></v-icon> </v-avatar
></v-col>
<!-- {{ item.image }} -->
<v-avatar
color="#635d56"
size="100"
v-if="item.image"
:image="item.image"
>
</v-avatar
><v-avatar color="#635d56" size="100" v-else>
<v-icon icon="mdi-account" color="" size="80"></v-icon>
</v-avatar>
</v-col>
<v-col cols="12" md="" class="text-center">
<div class="font-weight-bold text-normal my-2 text-center">
{{ item.name }}
{{ item.firstName }}
<span class="ml-3">
{{ item.lastname }}
{{ item.lastName }}
<span v-if="item.age" class="text-sub2">
( {{ item.age }}ปี )</span
></span
>
<div class="box-province px-3 py-2 text-sub2">
<div
class="box-province px-3 py-2 text-sub2"
v-if="item.zone"
>
<div class="font-weight-bold">
{{ item.province }} |
<span class="font-weight-medium"
>เขต{{ item.district }}</span
>
{{ item.zone.province.name }} |
<span class="font-weight-medium">{{
item.zone.name
}}</span>
</div>
</div>
<!-- <div class="text-sub3">{{ item.group }}</div> -->
@@ -62,7 +77,7 @@
<div class="text-small text-left">
<div class="font-weight-medium">
<span class="font-weight-bold">อาช :</span>
{{ item.occupation }}
{{ item.job }}
</div>
<div class="font-weight-medium">
<span class="font-weight-bold">การศกษา :</span>
@@ -74,27 +89,60 @@
<div class="text-left text-small my-3">
<div class="text-small font-weight-bold">องทางตดต</div>
<v-divider class="my-1"></v-divider>
<span>
<span v-if="item.social.email" class="mr-2"
><v-icon icon="mdi-email"></v-icon>
{{ item.social.email }}</span
<div class="mt-2 d-flex justify">
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
width="23"
height="23"
viewBox="0 0 50 50"
class="mr-2"
>
<span v-if="item.social.fb" class="mr-2"
><v-icon icon="mdi-facebook"></v-icon>
{{ item.social.fb }}</span
<path
d="M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M37,19h-2c-2.14,0-3,0.5-3,2 v3h5l-1,5h-4v15h-5V29h-4v-5h4v-3c0-4,2-7,6-7c2.9,0,4,1,4,1V19z"
></path></svg
><span v-if="item.facebook"> {{ item.facebook }}</span
><span v-else> - </span>
</div>
<div class="mt-2 d-flex justify">
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="-5px"
width="23"
height="23"
viewBox="0 0 50 50"
class="mr-2"
>
<span v-if="item.social.x" class="mr-2"
><v-icon icon="mdi-twitter"></v-icon>
{{ item.social.x }}</span
<path
d="M 11 4 C 7.134 4 4 7.134 4 11 L 4 39 C 4 42.866 7.134 46 11 46 L 39 46 C 42.866 46 46 42.866 46 39 L 46 11 C 46 7.134 42.866 4 39 4 L 11 4 z M 13.085938 13 L 21.023438 13 L 26.660156 21.009766 L 33.5 13 L 36 13 L 27.789062 22.613281 L 37.914062 37 L 29.978516 37 L 23.4375 27.707031 L 15.5 37 L 13 37 L 22.308594 26.103516 L 13.085938 13 z M 16.914062 15 L 31.021484 35 L 34.085938 35 L 19.978516 15 L 16.914062 15 z"
></path></svg
><span v-if="item.twitter"> {{ item.twitter }}</span
><span v-else> - </span>
</div>
<div class="mt-2 d-flex justify">
<!-- <i class="far fa-tiktok"></i> -->
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
width="23"
height="23"
viewBox="0 0 50 50"
class="mr-2"
>
<span v-if="item.phone" class="mr-2 d-none"
><v-icon icon="mdi-cellphone"></v-icon>
{{ item.phone }}</span
>
</span>
<path
d="M41,4H9C6.243,4,4,6.243,4,9v32c0,2.757,2.243,5,5,5h32c2.757,0,5-2.243,5-5V9C46,6.243,43.757,4,41,4z M37.006,22.323 c-0.227,0.021-0.457,0.035-0.69,0.035c-2.623,0-4.928-1.349-6.269-3.388c0,5.349,0,11.435,0,11.537c0,4.709-3.818,8.527-8.527,8.527 s-8.527-3.818-8.527-8.527s3.818-8.527,8.527-8.527c0.178,0,0.352,0.016,0.527,0.027v4.202c-0.175-0.021-0.347-0.053-0.527-0.053 c-2.404,0-4.352,1.948-4.352,4.352s1.948,4.352,4.352,4.352s4.527-1.894,4.527-4.298c0-0.095,0.042-19.594,0.042-19.594h4.016 c0.378,3.591,3.277,6.425,6.901,6.685V22.323z"
></path></svg
><span v-if="item.tiktok"> {{ item.tiktok }}</span
><span v-else> - </span>
</div>
</div>
<div class="text-small font-weight-bold text-left d-none">
<!-- <div class="text-small font-weight-bold text-left d-none">
ดย
<v-divider class="my-1"></v-divider>
<v-row class="text-small" style="height: 150px; overflow: auto">
@@ -111,16 +159,23 @@
</div>
</v-col>
</v-row>
</div>
</div> -->
</v-card-item>
</v-card></v-col
>
</v-row>
<!-- {{ dataProfile.length }}
<div v-if="dataProfile.length == 0">ไม่พบข้อมูล</div> -->
</div>
</div>
</template>
<script>
export default {
props: {
dataProfile: {
type: Array,
},
},
data() {
return {
profile: [
@@ -296,8 +351,8 @@ export default {
};
</script>
<style>
.card-user{
height: auto;
.card-user {
height: 100%;
/* height: 370px; */
}
.more {