society.vue
3.5 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<template>
<div class="container">
<div class="coursenav flexone">
<div
class="coursenavleft"
:class="selnav == index ? 'selactive' : ''"
:data-id="index"
@click="selectnav"
v-for="(item, index) in navarr"
:key="index"
>
{{ item }}
</div>
</div>
<div class="societybox">
<div class="societyitem">
<div class="societytop flextwo">
<div class="societyleft flexone">
<div class="personimg">
<img src="../../../assets/touxiang.png" alt="" />
</div>
<div class="personright">
<div class="personname">宁立青</div>
<div class="persondate">2020-6-12</div>
</div>
</div>
<div class="dingimg">
<img src="../../../assets/ding.png" alt="" />
</div>
</div>
<div class="societytext">
这个月又瘦了10斤,唐元集真的是太棒了,我 现在自信很多!
</div>
<div class="societyimg flexone">
<div class="societyimgitem">
<img src="../../../assets/societyimg.png" alt="" />
</div>
<div class="societyimgitem">
<img src="../../../assets/societyimg.png" alt="" />
</div>
<div class="societyimgitem">
<img src="../../../assets/societyimg.png" alt="" />
</div>
<div class="societyimgitem">
<img src="../../../assets/societyimg.png" alt="" />
</div>
<div class="societyimgitem">
<img src="../../../assets/societyimg.png" alt="" />
</div>
</div>
<div class="jianzheng flexone">
<div class="jianzhengleft">
#
</div>
<div class="jianzhengright">见证蜕变</div>
</div>
<!-- 点赞 -->
<div class="dainzan flexone">
<div class="flexone dianitem">
<img src="../../../assets/zan.png" alt="" class="dianzanimg" />
<span class="number">960</span>
</div>
<div class="flexone dianitem">
<img src="../../../assets/star.png" alt="" class="dianzanimg" />
<span class="number">960</span>
</div>
<div class="flexone dianitem">
<img src="../../../assets/edit.png" alt="" class="dianzanimg" />
<span class="number">960</span>
</div>
<div class="flexone dianitem">
<img src="../../../assets/download.png" alt="" class="dianzanimg" />
<span class="number">960</span>
</div>
</div>
</div>
</div>
<!-- 图片没有上传 -->
<div class="gantanimg">
<img src="../../../assets/gantan.png" class="ganimg" alt="" />
<div class="gantantext">用户未上传图片</div>
</div>
<tabBar v-bind:active="1" />
</div>
</template>
<script>
import tabBar from "@/components/views/tabBar.vue";
export default {
components: {
tabBar
},
data() {
return {
selnav: 0,
navarr: [
"分类一",
"分类一",
"分类一",
"分类一",
"分类一",
"分类一",
"分类一",
"分类一",
"分类一",
"分类一",
"分类一"
]
};
},
methods: {
selectnav(e) {
this.selnav = e.currentTarget.dataset.id;
}
}
};
</script>
<style scoped>
@import "../../../style/society.css";
</style>