index.html
5.1 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<link rel="stylesheet" href="__CDN__/assets/addons/groupon/libs/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/groupon/libs/common.css">
<style>
#configIndex {
background: #fff;
border-radius: 10px 10px 0px 0px;
color: #444;
font-weight: 500;
}
.config-body {
padding: 0px 30px 0;
}
.tip-container {
padding: 0 10px;
}
.config-item {
width: 100%;
height: 254px;
border-radius: 20px;
padding: 0 10px 24px;
margin-bottom: 30px;
display: flex;
align-items: stretch;
color: #fff;
justify-content: space-between;
}
.config-item-icon-container {
height: 48px;
}
.config-title {
font-size: 22px;
margin-top: 28px;
}
.config-tip {
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
margin-top: 14px;
}
.config-message {
font-size: 14px;
max-width: 170px;
margin-top: 26px;
}
.set-container {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.config-item-btn {
width: 98px;
height: 40px;
border-radius: 20px;
font-size: 14px;
cursor: pointer;
}
.item-icon-1 {
width: 48px;
height: 48px;
border-radius: 50%;
}
.item-icon-1 img {
width: 100%;
height: 100%;
}
.item-icon-2 {
width: 48px;
height: 48px;
background: #fff;
border-radius: 50%;
position: absolute;
left: 36px;
opacity: 0.5;
}
.config-item-leaf-container {
display: flex;
flex: 1;
}
.leaf {
width: 54px;
height: 54px;
}
.leaf-11 {
background: rgba(255, 255, 255, 0.2);
border-radius: 0px 34px;
}
.leaf-12 {
border-radius: 0px 35px;
transform: matrix(-1, 0, 0, 1, 0, 0);
}
.leaf-13 {
background: rgba(255, 255, 255, 0.66);
border-radius: 0px 34px;
}
.item-leaf-2 {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.4);
border-radius: 6px;
transform: rotate(-45deg);
margin-top: 86px;
margin-left: 10px;
}
.config-item {
cursor: pointer;
transition: all 0.2s;
}
.config-item:hover {
transform: scale(1.05);
filter: drop-shadow(0px 1px 8px rgba(0, 0, 0, 0.1));
}
[v-cloak] {
display: none
}
</style>
<script src="__CDN__/assets/addons/groupon/libs/vue.js"></script>
<script src="__CDN__/assets/addons/groupon/libs/element/element.js"></script>
<div id="configIndex" v-cloak>
<div class="common-tabs-container">
<el-tabs v-model="activeName" @tab-click="tabClick">
<el-tab-pane label="基础配置" name="basic"></el-tab-pane>
<el-tab-pane label="平台配置" name="platform"></el-tab-pane>
<el-tab-pane label="支付配置" name="payment"></el-tab-pane>
</el-tabs>
</div>
<div class="config-body">
<el-row :gutter="30">
<el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="6" v-for="item in configData[activeName]">
<div class="config-item" :style="{background:item.background}">
<div class="tip-container">
<div class="config-item-icon-container"
style="margin-top: 30px;position: relative;display: flex;">
<div class="item-icon-1"><img v-if="'/assets/addons/groupon/img/config/'+item.icon+'.png'" :src="'/assets/addons/groupon/img/config/'+item.icon+'.png'" />
</div>
<div class="item-icon-2"></div>
</div>
<div class="config-title">{{item.title}}</div>
<div class="config-tip ellipsis-item">{{item.tip}}</div>
<div class="config-message ellipsis-item">{{item.message}}</div>
</div>
<div class="set-container">
<div class="config-item-leaf-container">
<div class="item-leaf-1">
<div class="leaf leaf-11"></div>
<div class="leaf leaf-12" :style="{background:item.leaf}"></div>
<div class="leaf leaf-13"></div>
</div>
<div class="item-leaf-2"></div>
</div>
<div v-if="item.id!='apple'" class="config-item-btn display-flex-c" :style="item.button"
@click="operation(item.id,item.title)">{{item.buttonMessage?item.buttonMessage:'立即设置'}}</div>
<div v-if="item.id=='apple'" class="config-item-btn display-flex-c" :style="item.button">暂未开通
</div>
</div>
</div>
</el-col>
</el-row>
</div>
</div>