KfBox.vue
3.11 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
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
151
152
153
154
155
156
157
158
<template>
<uni-popup
ref="popup"
type="bottom"
border-radius="16px"
>
<view class="kf-box">
<view
class="close flex"
@click="close"
>
<uni-icons
type="closeempty"
:size="18"
color="#1A1A1A"
></uni-icons>
</view>
<view class="title flex">
<view class="sprite-icon icon-qw"></view>
嘀加智慧云
</view>
<view class="info flex">
<view class="text">
<view class="name flex">
云小白 <view class="duty">产品经理</view>
</view>
<view class="content">嘀加智慧云|产品中心</view>
<view class="tool">
<template v-for="(i,index) in tool">
<view
class="tool-item flex"
:key="index"
>
<view :class="['sprite-icon',`icon-kf-${index}`]"></view>
{{i}}
</view>
</template>
</view>
</view>
<view class="qr-box flex">
<image
class="qr"
:src="qr"
/>
使用企业微信扫码
</view>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
tool: ['使用反馈', '功能建议', '心得分享', '吐槽拍砖'],
qr: require('@/assets/images/common/qr.webp')
}
},
mounted () {
},
methods: {
open () {
this.$refs.popup.open("center");
},
close () {
this.$refs.popup.close()
}
}
}
</script>
<style scoped lang='scss'>
.kf-box {
position: relative;
width: 864rpx;
height: 478rpx;
background: #ffffff;
border-radius: 32rpx;
padding: 0 48rpx;
box-sizing: border-box;
.close {
position: absolute;
width: 120rpx;
height: 120rpx;
top: 0;
right: 0;
justify-content: center;
}
.title {
font-weight: 500;
font-size: 32rpx;
padding: 46rpx 0;
.sprite-icon {
margin-right: 16rpx;
}
}
.info {
.name {
position: relative;
width: 480rpx;
font-weight: 600;
font-size: 48rpx;
align-items: baseline;
padding-bottom: 24rpx;
border-bottom: 2rpx solid #e6e6e6;
.duty {
font-weight: 400;
font-size: 28rpx;
margin-left: 16rpx;
}
&::after {
position: absolute;
left: 0;
bottom: -2rpx;
width: 280rpx;
height: 4rpx;
background: #2c66f7;
content: "";
}
}
.content {
padding: 28rpx 0;
font-weight: 500;
font-size: 28rpx;
}
.tool {
display: flex;
flex-wrap: wrap;
&-item {
flex: 50%;
font-size: 28rpx;
color: #666666;
margin-bottom: 20rpx;
.sprite-icon {
margin-right: 8rpx;
}
}
}
}
.qr-box {
margin-left: 48rpx;
flex-shrink: 0;
flex-direction: column;
font-weight: 500;
font-size: 28rpx;
.qr {
width: 240rpx;
height: 240rpx;
margin-bottom: 8rpx;
}
}
}
</style>