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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
| <template>
| <!-- 好友申请消息 -->
| <div class="apply-card">
| <div class="card-header">
| <img class="avatar" :src="avatar" />
| <div class="nickname">No. {{ nickname }}</div>
| <div class="datetime">{{ datetime }}</div>
| <div class="remarks">
| <span>备注信息:{{ remarks }}</span>
| </div>
| </div>
|
| <div class="card-footer">
| <div class="mini-button" @click="handle(1)">同意</div>
| <el-divider direction="vertical"></el-divider>
| <div class="mini-button" @click="handle(2)">拒绝</div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| name: 'FriendApplyMessage',
| props: {
| data: {
| type: Object,
| default() {
| return {}
| },
| },
| },
| data() {
| return {
| avatar:
| 'http://im-img.gzydong.club/media/images/avatar/20210602/60b6f03598ed0104301.png',
| nickname: '独特态度',
| datetime: '05/09 12:13 分',
| remarks: '编辑个签,展示我的独特态度 展示我的独特态度。',
| apply_id: 0,
| }
| },
| created() {},
| methods: {
| handle(type) {
| alert(type)
| },
| },
| }
| </script>
| <style lang="less" scoped>
| .apply-card {
| position: relative;
| width: 170px;
| min-height: 180px;
| border-radius: 15px;
| overflow: hidden;
| transition: all 0.5s;
| box-sizing: border-box;
| background-image: linear-gradient(-84deg, #1ab6ff 0, #1ab6ff 0, #82c1f3 100%);
| // #028fff
|
| &:hover {
| transform: scale(1.02);
| }
|
| .card-header {
| position: relative;
| width: 100%;
| height: 135px;
|
| .avatar {
| position: absolute;
| top: 18px;
| left: 8px;
| width: 40px;
| height: 40px;
| border-radius: 50%;
| background: white;
| }
|
| .nickname {
| position: absolute;
| top: 15px;
| right: 8px;
| width: 90px;
| height: 25px;
| font-size: 10px;
| text-align: center;
| line-height: 25px;
| color: white;
| border-bottom: 1px dashed white;
| }
|
| .datetime {
| position: absolute;
| top: 42px;
| right: 11.5px;
| color: white;
| font-size: 10px;
| transform: scale(0.9);
| }
|
| .remarks {
| position: absolute;
| bottom: 5px;
| color: white;
| font-size: 10px;
| padding: 3px 5px;
| display: -webkit-box;
| -webkit-box-orient: vertical;
| -webkit-line-clamp: 3;
| overflow: hidden;
| transform: scale(0.95);
| }
| }
|
| .card-footer {
| position: absolute;
| bottom: 0;
| width: 100%;
| height: 40px;
| border-top: 1px solid white;
| display: flex;
| align-items: center;
| justify-content: center;
| box-sizing: border-box;
|
| /deep/.el-divider {
| background: white;
| }
|
| .mini-button {
| display: flex;
| width: 50px;
| height: 25px;
| margin: 0 10px;
| text-align: center;
| align-items: center;
| justify-content: center;
| font-size: 13px;
| color: white;
| cursor: pointer;
|
| &:hover {
| font-size: 14px;
| }
| }
| }
| }
| </style>
|
|