-
Notifications
You must be signed in to change notification settings - Fork 4
/
individual_user_info.vue
69 lines (59 loc) · 1.62 KB
/
individual_user_info.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!-- Author Hiroki Okubo -->
<template>
<div>
<v-app
<!-- <v-main style="margin-left: 50%; margin-top:100px"> -->
<v-main style="margin-top:100px; text-align:center;">
<img style="margin-left: 30%;" class="img" src="/v.png" width="50%" />
<!-- <img style="text-align:center;" class="img" src="/v.png" width="50%" /> -->
<v-text>Bob-san</v-text>
<!-- <v-text>friend_data.username</v-text> -->
<span>{{ friend_data.username }}</span>
<div class="text-center">
<v-btn small class="ma-2" outlined color="indigo">chat</v-btn>
<v-btn small class="ma-2" outlined color="success">favorite</v-btn>
<v-btn small class="ma-2" outlined color="teal">block</v-btn>
</div>
</v-main>
</v-app>
</div>
</template>
<script>
export default {
layout: "home",
data: () => ({
friend_data: [],
}),
methods: {
findData: async function() {
// let userid = this.$store.state.user.userInfo.id; //友達のuserid
const friend_data = this.$axios.get('/users/find', {
params: {
// user_id: this.userid,
// $route.query (もし URL 上にクエリがあるなら)
user_id: this.$route.query.user_id,
}
});
},
if (friend_data != null) {
this.friend_data = friend_data;
},
search(keyword) {
this.searchlist = this.friendslist.filter(
friend => friend.status == keyword
);
}
},
created() {
this.findData();
}
</script>
<script>
export default {
data() {
return {
staticImage: "/v.png"
};
},
};
</script>