vip.html
9.4 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>入驻缴费</title>
{include file="public/user_head"}
<style>
li{
list-style-type: none;
}
ul{
margin: 0;
}
.clear{
clear: both;
}
body{
background:rgba(249,249,249,1);
}
/*菜单样式*/
.content{
width: 100%;
font-size: 0;
background:rgba(249,249,249,1);
}
.content .navBarBox{
width: 100%;
height: 50px;
background: rgba(0,159,142,1);
}
.content .navBarBox ul{
width: 1200px;
height: 100%;
margin: 0 auto;
padding: 0;
font-size: 16px;
font-family: PingFangSC-Semibold;
color:rgba(255,255,255,1);
}
.content .navBarBox ul li{
width: 144px;
height: 100%;
line-height: 50px;
list-style-type: none;
float: left;
}
.content .navBarBox ul li a{
color: rgba(255,255,255,1);
}
.content .titleImgContent{
width: 100%;
height: 146px;
}
.content .titleImgContent img{
width: 100%;
height: 100%;
}
/*主要内容*/
.contentBox{
width: 100%;
margin-top: 12px;
}
.contentMain{
margin: auto;
width: 1200px;
}
.contentTop{
height: 62px;
line-height: 62px;
margin-bottom: 10px;
background:#fff;
}
.titleText{
padding-left: 17px;
height:22px;
line-height:22px;
font-size:16px;
font-family:PingFang SC;
font-weight:800;
color:rgba(0,159,142,1);
vertical-align: middle;
}
.titleLine{
line-height: 20px;
display: inline-block;
width: 6px;
height:20px;
background:rgba(0,159,142,1);
opacity:1;
border-radius:2px;
vertical-align: middle;
}
.contentList{
padding: 40px;
margin-bottom: 12px;
background-color: #FFFFFF;
}
.settledPayTip{
font-size:14px;
font-family:PingFang SC;
font-weight:400;
color:rgba(69,77,87,1);
}
.settledPayBlock{
padding: 19px 0;
display: inline-block;
width:182px;
background:rgba(224,186,123,1);
border-radius:2px;
color:rgba(255,255,255,1);
text-align: center;
margin: 22px 16px 0 0;
}
.settledPaySvip{
background:rgba(255,158,4,1);
}
.settledPayPrice{
font-size:24px;
font-family:PingFang SC;
}
.settledPayText img{
width: 20px;
height: 20px;
}
.settledPayText span{
vertical-align: middle;
font-size: 20px;
font-family:PingFang SC;
font-weight:bold;
}
.cityList{
margin: 15px 0;
padding: 24px 19px 24px 29px;
width:824px;
background:rgba(255,255,255,1);
border:1px solid rgba(210,216,223,1);
border-radius:8px;
}
.cityList .cityListTitle{
display: inline-block;
margin-bottom: 20px;
font-size:16px;
font-family:PingFang SC;
font-weight:600;
color:rgba(6,18,30,1);
}
.cityList ul li{
width:80px;
height:32px;
border-radius:4px;
line-height: 32px;
text-align: center;
cursor: pointer;
font-size:14px;
font-family:PingFang SC;
font-weight:500;
color:rgba(102,105,110,1);
float: left;
margin-right: 6px;
margin-bottom: 6px;
background:rgba(255,255,255,1);
border:1px solid rgba(204,210,218,1);
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.cityActive{
border:1px solid rgba(0,169,152,1)!important;
color:rgba(0,159,142,1)!important;
}
.payBtn{
background:rgba(0,159,142,1);
border-radius:2px;
color: #fff;
width:382px;
height:51px;
font-size:18px;
font-family:PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
border: 0;
}
.payBtn:hover,.payBtn:visited,.payBtn:focus{
color: #fff;
color:rgba(255,255,255,1);
border: 0;
}
.vipPrivilege{
margin-top: 40px;
margin-bottom: 80px;
width: 812px;
}
.vipPrivilege div{
font-size:14px;
font-family:PingFang SC;
font-weight:400;
line-height:20px;
color:rgba(102,105,110,1);
}
.vipPrivilegeTitle{
display: inline-block;
font-size:14px;
font-family:PingFang SC;
font-weight:500;
color:rgba(6,18,30,1);
margin-bottom: 6px;
}
</style>
</head>
<body>
{include file="public/header"}
<!--主要内容-->
<div class="content">
{include file="public/nav"}
<!--主要内容-->
<div class="contentBox">
<div class="contentMain">
<div class="contentTop">
<span class="titleLine"></span>
<span class="titleText">
入驻缴费
</span>
</div>
<div class="contentList">
<div class="settledPayTip">感谢您对工品达平台的支持和信赖,请确认缴费信息</div>
<div>
<div class="settledPayBlock settledPaySvip">
<span id="totalPrice" class="settledPayPrice">
{$price.sum_vipprice}
</span>
<div class="settledPayText">
<img src="__CDN__/assets/store/images/vip.png" alt="">
<span>VIP</span>
</div>
</div>
<a href="{:url('svip')}">
<div class="settledPayBlock">
<span class="settledPayPrice">
{$price.svipprice}
</span>
<div class="settledPayText">
<img src="__CDN__/assets/store/images/vip.png" alt="">
<span>SVIP</span>
</div>
</div>
</a>
</div>
<div class="cityList">
<span class="cityListTitle">
城市列表
</span>
<ul>
{foreach name="$province2" item="p"}
{if condition="$store_type eq 1 && $is_valid eq 1"}
<li class="cityActive" data-id="{$p.id}" title="{$p.name}">{$p.name}
</li>
{else/}
<li class="{if condition='in_array($p.id,$province_ids)'}cityActive{/if}" data-id="{$p.id}"
onclick="cityClick(this)" title="{$p.name}">{$p.name}
</li>
{/if}
{/foreach}
<div class="clear"></div>
</ul>
</div>
<button type="button" class="btn payBtn" onclick="pay()">立即缴费</button>
<div class="vipPrivilege">
<span class="vipPrivilegeTitle">会员特权</span>
<div>{$vipdesc.content}</div>
</div>
</div>
</div>
</div>
</div>
{include file="public/footer"}
<script>
var unitPrice = {$price.vipprice};
var selectCity = '';
function cityClick(obj) {
if($(obj).hasClass('cityActive')){
$(obj).removeClass('cityActive');
}else{
$(obj).addClass('cityActive');
}
var num = $('.cityActive').length;
$('#totalPrice').html((unitPrice * num).toFixed(2))
}
//立即缴费
function pay() {
var province_ids_length = $('.cityActive').length;//省份id
var province_ids = [];
var base_url = "{$url}";
var base_arr = base_url.split('.');
//普通会员
if (province_ids_length == '' || province_ids_length == undefined) {
toast('请至少选择一个省份~');
return false;
}
//获取省份id
$($('.cityActive')).each(function (key, c) {
province_ids.push($('.cityActive').eq(key).attr('data-id'));
});
province_ids = province_ids.join(',');
var url = base_arr[0] + '/province_ids/' + province_ids + '.' + base_arr[1];
window.location.href = url;
}
</script>
</body>
</html>