0c49c87e
liuqimichale
微信公众号 初始化
|
1
2
|
<template>
<div id="page">
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
3
|
|
f36d25ac
刘淇
西城家园
|
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!--<div class="swiper-container" style="height: 260px">-->
<!--<div class="swiper-wrapper">-->
<!--<div class="swiper-slide" v-for="item in swiperData" :key="item.id"-->
<!--:style="{backgroundImage:'url(' + item.url + ')'}"-->
<!--@click="openImgUrl(item)"-->
<!--></div>-->
<!--</div>-->
<!--<!– 如果需要分页器 –>-->
<!--<div class="swiper-pagination"></div>-->
<!--<!– 如果需要滚动条 –>-->
<!--<!– <div class="swiper-scrollbar"></div>–>-->
<!--</div>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
17
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
18
|
<div class="wrap">
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
19
20
|
<!--<p style="margin-bottom: 18px;margin-top: 18px;">请选择车牌颜色</p>-->
|
2b4641ef
刘淇
添加车牌颜色
|
21
22
23
24
25
26
|
<ul class="color-choose">
<li v-for="(i,index) in colorList" :key="i.name" @click="chooseColor(index)"
:style="{color:currentColor==index?'#FFF':'',background: currentColor==index?activeBG:'' }"
>
{{i.name}}
</li>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
27
|
|
2b4641ef
刘淇
添加车牌颜色
|
28
|
</ul>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
29
30
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
31
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
32
|
|
2b4641ef
刘淇
添加车牌颜色
|
33
34
|
<p style="margin-bottom: 18px;margin-top: 18px;"></p>
<!--<p style="margin-bottom: 18px;margin-top: 18px;">请输入车牌号码</p>-->
|
0c49c87e
liuqimichale
微信公众号 初始化
|
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<div class="num-box">
<div class="num0" @click="clickFirstWrap()">
<span>{{formData.num0}}</span>
</div>
<div class="num1" @click="clickKeyWordWrap(1)"><span>{{formData.num1}}</span></div>
<!--<em class="spot"></em>-->
<div class="num1" @click="clickKeyWordWrap(2)"><span>{{formData.num2}}</span></div>
<div class="num1" @click="clickKeyWordWrap(3)"><span>{{formData.num3}}</span></div>
<div class="num1" @click="clickKeyWordWrap(4)"><span>{{formData.num4}}</span></div>
<div class="num1" @click="clickKeyWordWrap(5)"><span>{{formData.num5}}</span></div>
<div class="num1" @click="clickKeyWordWrap(6)"><span>{{formData.num6}}</span></div>
<div v-if="formData.commonCard == '2'" class="num1" @click="clickKeyWordWrap(7)"><span>{{formData.num7}}</span></div>
</div>
|
2b4641ef
刘淇
添加车牌颜色
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<!--<div class="radio-box">-->
<!--<label class="flex-items-center">-->
<!--<img v-if="formData.commonCard == 1"-->
<!--src="../../assets/images/parkPay/icon_chose_s@2x.png"-->
<!--alt="">-->
<!--<img v-else-->
<!--src="../../assets/images/parkPay/icon_chose_n@2x.png"-->
<!--alt="">-->
<!--<input type="radio"-->
<!--v-model="formData.commonCard"-->
<!--value="1" />普通车牌-->
<!--</label>-->
<!--<label class="flex-items-center">-->
<!--<img v-if="formData.commonCard == 2"-->
<!--src="../../assets/images/parkPay/icon_chose_s@2x.png"-->
<!--alt="">-->
<!--<img v-else-->
<!--src="../../assets/images/parkPay/icon_chose_n@2x.png"-->
<!--alt="">-->
<!--<input type="radio"-->
<!--v-model="formData.commonCard"-->
<!--value="2" />新能源车牌-->
<!--</label>-->
<!--</div>-->
|
0c49c87e
liuqimichale
微信公众号 初始化
|
74
75
76
77
78
|
<div class="submit-box" @click="submitFn()">
查询
</div>
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
79
80
|
<div>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
81
82
|
<p style="margin-bottom: 18px;margin-top: 18px;">查询记录</p>
<ul class="bound-list" v-if="boundList.length>0">
|
c14fb301
liuqimichale
赤峰 输入车牌停车记录
|
83
|
<li v-for="i in boundList" :key="i" @click="boundHandle(i)">
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
84
|
<span>{{ i }}</span>
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
85
86
|
</li>
</ul>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
87
88
|
<div v-else style="text-align: center;padding: 10px 0;">暂无查询记录</div>
<!--<div class="addCarNum"><span></span>添加车辆</div>-->
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
89
90
91
92
93
|
</div>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
94
|
</div>
|
34c54a40
刘淇
去缓存
|
95
96
97
98
99
100
101
102
|
<div class="iphone-wrap">
<p>任你停赤峰
</p>
<p>
联系电话:400-6345688
</p>
</div>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
103
104
105
106
107
|
<div class="first-word-wrap"
v-if="firstWrapStatus">
<div class="first-word"
@click="selectFirstWord($event)">
<div class="word">
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
108
|
<span>蒙</span>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
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
|
</div>
<div class="word">
<span>湘</span>
</div>
<div class="word">
<span>津</span>
</div>
<div class="word">
<span>鄂</span>
</div>
<div class="word">
<span>沪</span>
</div>
<div class="word">
<span>粤</span>
</div>
<div class="word">
<span>渝</span>
</div>
<div class="word">
<span>琼</span>
</div>
</div>
<div class="first-word"
@click="selectFirstWord($event)">
<div class="word">
|
12fc10d2
liuqimichale
赤峰 输入车牌停车记录
|
135
|
<span>冀</span>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
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
|
</div>
<div class="word">
<span>川</span>
</div>
<div class="word">
<span>晋</span>
</div>
<div class="word">
<span>贵</span>
</div>
<div class="word">
<span>辽</span>
</div>
<div class="word">
<span>云</span>
</div>
<div class="word">
<span>吉</span>
</div>
<div class="word">
<span>陕</span>
</div>
</div>
<div class="first-word"
@click="selectFirstWord($event)">
<div class="word">
<span>黑</span>
</div>
<div class="word">
<span>甘</span>
</div>
<div class="word">
<span>苏</span>
</div>
<div class="word">
<span>青</span>
</div>
<div class="word">
<span>浙</span>
</div>
<div class="word">
<span>皖</span>
</div>
<div class="word">
<span>藏</span>
</div>
<div class="word">
<span>闽</span>
</div>
</div>
<div class="first-word"
@click="selectFirstWord($event)">
<div class="word">
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
189
|
<span>京</span>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
</div>
<div class="word">
<span>赣</span>
</div>
<div class="word">
<span>桂</span>
</div>
<div class="word">
<span>鲁</span>
</div>
<div class="word">
<span>宁</span>
</div>
<div class="word">
<span>豫</span>
</div>
<div class="word">
<span>新</span>
</div>
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
209
210
|
<!--<div class="word">-->
<!--<span>学</span>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
211
|
<!--</div>-->
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
212
213
214
|
<div class="word bordernone">
<!-- <img src="../assets/images/icon-switch.png" alt=""> -->
</div>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
215
216
|
</div>
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
217
218
219
220
221
222
223
224
225
226
227
|
<!--<div class="first-word"-->
<!--@click="selectFirstWord($event)">-->
<!--<div class="word">-->
<!--<span>港</span>-->
<!--</div>-->
<!--<div class="word">-->
<!--<span>澳</span>-->
<!--</div>-->
<!--<div class="word">-->
<!--<span>领</span>-->
<!--</div>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
228
|
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
229
230
231
|
<!--<div class="word">-->
<!--<span>警</span>-->
<!--</div>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
232
233
|
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
234
235
236
237
238
239
240
241
242
|
<!--<div class="word bordernone">-->
<!--</div>-->
<!--<div class="word bordernone">-->
<!--</div>-->
<!--<div class="word bordernone">-->
<!--</div>-->
<!--<div class="word bordernone">-->
<!--</div>-->
<!--</div>-->
|
0c49c87e
liuqimichale
微信公众号 初始化
|
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
|
</div>
<div class="keyboard-wrap" v-if="keyBoardStatus === true">
<!-- <div class="number-wrap"></div>
<div class="letter-wrap"></div>
<div class="cn-wrap"></div> -->
<div class="keyboard" v-if="activeKeyWordIndex !== 1">
<span v-for="(item,index) in allKeyWord._1"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
</div>
<div class="keyboard" v-if="activeKeyWordIndex !== 1">
<span v-for="(item,index) in allKeyWord._2"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
<span class="bordernone"></span>
<span class="bordernone"></span>
<span class="bordernone"></span>
<span class="bordernone"></span>
</div>
<div class="keyboard">
<span v-for="(item,index) in allKeyWord._3"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
</div>
<div class="keyboard">
<span v-for="(item,index) in allKeyWord._4"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
</div>
<div class="keyboard">
<span v-for="(item,index) in allKeyWord._5"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
</div>
<div class="keyboard">
<span v-for="(item,index) in allKeyWord._6"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
<span class="bordernone"></span>
<span class="bordernone"></span>
<span class="bordernone"></span>
<!-- <span class="bordernone" v-if="activeKeyWordIndex === 1"></span>
<span class="bordernone" v-if="activeKeyWordIndex === 1"></span> -->
<!-- <span @click="deleteWord" v-if="activeKeyWordIndex === 1">x</span> -->
</div>
<div class="keyboard" v-if="activeKeyWordIndex !== 1">
<span v-for="(item,index) in allKeyWord._7"
:key="index"
@click="clickKeyBoard(item)">{{item}}</span>
<span class="bordernone"></span>
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
293
|
<span class="delete" @click="deleteWord"><img src="../../assets/images/parkPay/icon-delete.png" alt=""></span>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
294
295
296
297
298
299
300
|
</div>
<div class="cancel">
<span @click="keyBoardStatus = false">完成</span>
</div>
</div>
|
12fc10d2
liuqimichale
赤峰 输入车牌停车记录
|
301
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
302
303
304
|
</div>
</template>
<script>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
305
306
307
308
|
import Swiper from 'swiper' // 应入swiper
import {swiperQuery} from '../../api/plateNumber/plateNumber'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
309
310
311
|
export default {
data () {
return {
|
2b4641ef
刘淇
添加车牌颜色
|
312
313
|
// 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
|
0c49c87e
liuqimichale
微信公众号 初始化
|
314
315
316
317
318
319
320
321
322
|
colorList:[
{
name:'蓝牌',
id:'1'
},
{
name:'黄牌',
id:'2'
},
|
2b4641ef
刘淇
添加车牌颜色
|
323
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
324
|
{
|
2b4641ef
刘淇
添加车牌颜色
|
325
|
name:'白牌',
|
0c49c87e
liuqimichale
微信公众号 初始化
|
326
327
328
|
id:'3'
},
{
|
2b4641ef
刘淇
添加车牌颜色
|
329
|
name:'黑牌',
|
0c49c87e
liuqimichale
微信公众号 初始化
|
330
331
332
|
id:'4'
},
{
|
2b4641ef
刘淇
添加车牌颜色
|
333
|
name:'绿牌',
|
0c49c87e
liuqimichale
微信公众号 初始化
|
334
335
336
337
338
339
340
|
id:'5'
},
],
currentColor:0,
activeBG:'#0054C0',
formData: {
commonCard: '1',
|
e4f61055
刘淇
赤峰正式环境 默认蒙D车牌
|
341
342
|
num0: '蒙',
num1: 'D',
|
0c49c87e
liuqimichale
微信公众号 初始化
|
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
num2: '',
num3: '',
num4: '',
num5: '',
num6: '',
num7: ''
},
allKeyWord: {
_1: [1, 2, 3, 4, 5, 6, 7],
_2: [8, 9, 0],
_3: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
_4: ['H', 'J', 'K', 'L', 'M', 'N', 'O'],
_5: ['P', 'Q', 'R', 'S', 'T', 'U', 'V'],
_6: ['W', 'X', 'Y', 'Z'],
_7: ['港', '澳', '学', '领', '警']
},
activeKeyWordIndex: 1, // 当前车牌号
keyBoardStatus: false,
firstWrapStatus: false, // 选择弹窗
confirmTitle: '',
submitConfirm: false,
submitConfirmFalse: false,
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
365
366
367
|
submitConfirmText: '',
swiperData: [], // 轮播数据
boundList:[] // 历史记录
|
0c49c87e
liuqimichale
微信公众号 初始化
|
368
369
|
}
},
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
370
371
372
|
created(){
this.initSWiper()
},
|
0c49c87e
liuqimichale
微信公众号 初始化
|
373
|
mounted () {
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
374
375
376
377
378
379
380
381
382
383
384
385
|
//
// if (this.$utils.clientBrowser() == "微信") {
// var appID = this.$utils.myVxAppId;
// var code = this.getUrlParam('code');
// var local = window.location.href;
// if (code == null || code === '') {
// window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_userinfo&state=1,0#wechat_redirect'
// } else {
// return code;
// }
// }
|
12fc10d2
liuqimichale
赤峰 输入车牌停车记录
|
386
|
this.boundList = JSON.parse(localStorage.getItem('parkRecordList')) ? JSON.parse(localStorage.getItem('parkRecordList')) : []
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
387
|
console.log(this.boundList)
|
0c49c87e
liuqimichale
微信公众号 初始化
|
388
389
|
},
methods: {
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
390
391
392
393
394
395
396
397
398
|
initSWiper() {
var salt = this.$utils.myCommonSalt(32)
var jsondata = {
app_id: this.$utils.myVarAppid,
deviceInfo: this.$utils.myDeviceInfo,
salt: salt,
sign_type: 'md5',
sign: '1',
orgId: this.$utils.myOrgId,
|
9f6e52ca
liuqimichale
jumpType: '8' 7...
|
399
|
jumpType: '7' // 7 微信公众号 8小票
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
|
};
// jsondata = JSON.stringify(jsondata);
swiperQuery(jsondata).then(res => {
this.swiperData = res.data
console.log(this.swiperData)
new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
centeredSlides: true,
notNextTick: true,
autoplay: 5000,
autoplayDisableOnInteraction: true,
observer: true, //修改swiper自己或子元素时,自动初始化swiper
observeParents: true, //修改swiper的父元素时,自动初始化swiper
onSlideChangeStart: function (swiper) {
//console.log(swiper.activeIndex)
}
})
})
},
openImgUrl(i) { // 点击图片跳转
window.open(i.jumpUrl)
},
|
c14fb301
liuqimichale
赤峰 输入车牌停车记录
|
424
425
426
427
428
429
430
431
432
433
|
boundHandle(i) { // 记录点击事件
console.log(i)
this.$router.push({
path:'parkRecord',
query:{
carNumber:i,
carNumberColor: this.currentColor
}
})
},
|
2b4641ef
刘淇
添加车牌颜色
|
434
|
chooseColor (index){ // 颜色选择 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
|
0c49c87e
liuqimichale
微信公众号 初始化
|
435
436
437
|
this.currentColor = index
switch (this.currentColor) {
case 0 :
|
2b4641ef
刘淇
添加车牌颜色
|
438
|
this.formData.commonCard = '1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
439
440
441
|
return this.activeBG = '#0054C0'
break;
case 1 :
|
2b4641ef
刘淇
添加车牌颜色
|
442
|
this.formData.commonCard = '1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
443
444
445
|
return this.activeBG = '#FEBE00'
break;
case 2 :
|
2b4641ef
刘淇
添加车牌颜色
|
446
447
|
this.formData.commonCard = '1'
return this.activeBG = '#E4E5E7'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
448
449
|
break;
case 3 :
|
2b4641ef
刘淇
添加车牌颜色
|
450
451
|
this.formData.commonCard = '1'
return this.activeBG = '#333333'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
452
453
|
break;
case 4 :
|
2b4641ef
刘淇
添加车牌颜色
|
454
455
|
this.formData.commonCard = '2'
return this.activeBG = '#97DEA1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
|
break;
}
},
clickFirstWrap () {
// 点击第一个输入框
this.firstClickStatus = true
this.firstWrapStatus = true
this.keyBoardStatus = false
this.formData.num0 = ''
},
selectFirstWord (event) {
// 选择省份
if (event.target.localName !== 'span') {
return
}
this.formData.num0 = event.target.innerText
this.firstSelectStatus = true
this.firstWrapStatus = false
this.firstClickStatus = false
this.keyBoardStatus = true
this.activeKeyWordIndex = 1
// this.$refs.num1.focus()
// document.getElementById('num1').focus()
},
clickKeyBoard (item) { // 点击自定义键盘
console.log(item)
this.formData['num' + this.activeKeyWordIndex] = item
if (this.formData.commonCard === '1') {
this.activeKeyWordIndex++
if (this.activeKeyWordIndex > 6) {
this.keyBoardStatus = false
}
} else {
this.activeKeyWordIndex++
if (this.activeKeyWordIndex > 7) {
this.keyBoardStatus = false
}
}
},
deleteWord () { // 退格
// console.log(this.activeKeyWordIndex)
// console.log(this.formData['num' + (this.activeKeyWordIndex - 1)])
if (this.activeKeyWordIndex > 1) {
this.formData['num' + (this.activeKeyWordIndex - 1)] = ''
this.activeKeyWordIndex--
}
},
clickKeyWordWrap (activeKeyWordIndex) {
this.keyBoardStatus = true
this.activeKeyWordIndex = activeKeyWordIndex
this.formData['num' + this.activeKeyWordIndex] = ''
},
submitFn () {
let plateLicense
if (this.formData.commonCard === '1') {
plateLicense = this.plate_license_1
plateLicense = this.palindrome(plateLicense)
if (plateLicense.length < 7) {
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
515
|
this.$msgbox('提示', '请输入正确的车牌号')
|
0c49c87e
liuqimichale
微信公众号 初始化
|
516
517
518
519
520
521
522
|
return
}
}
if (this.formData.commonCard === '2') {
plateLicense = this.plate_license_2
plateLicense = this.palindrome(plateLicense)
if (plateLicense.length < 8) {
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
523
|
this.$msgbox('提示', '请输入正确的车牌号')
|
0c49c87e
liuqimichale
微信公众号 初始化
|
524
525
526
527
528
|
return
}
}
this.$emit('getPlateLicense',plateLicense)
console.log(plateLicense);
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
529
530
531
532
533
534
535
536
|
// boundList
if(this.boundList.indexOf(plateLicense) == -1 ){
if(this.boundList.length == 3){
this.boundList.pop()
}
this.boundList.unshift(plateLicense)
}
|
12fc10d2
liuqimichale
赤峰 输入车牌停车记录
|
537
538
|
localStorage.setItem('parkRecordList',JSON.stringify(this.boundList))
console.log(this.boundList)
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
539
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
540
541
542
|
this.$router.push({
path:'parkRecord',
query:{
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
543
544
|
carNumber:plateLicense,
carNumberColor: this.currentColor
|
0c49c87e
liuqimichale
微信公众号 初始化
|
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
|
}
})
},
palindrome (str) {
var arr = str.split('')
arr = arr.filter(function (val) {
return (
val !== ' ' &&
val !== ',' &&
val !== '.' &&
val !== '?' &&
val !== ':' &&
val !== ';' &&
val !== '`' &&
val !== "'" &&
val !== '_' &&
val !== '/' &&
val !== '-' &&
val !== '\\' &&
val !== '' &&
val !== '(' &&
val !== ')'
)
})
return arr.join('')
},
checkIsHasSpecialStr (str) {
var flag = false
var arr = str.split('')
arr.forEach(val => {
if (
val === '!' ||
val === '}' ||
val === '{' ||
val === ']' ||
val === '[' ||
val === '&' ||
val === '$' ||
val === '@' ||
val === ' ' ||
val === ',' ||
val === '.' ||
val === '?' ||
val === ':' ||
val === ';' ||
val === '`' ||
val === "'" ||
val === '_' ||
val === '/' ||
val === '-' ||
val === '\\' ||
val === '' ||
val === '(' ||
val === ')'
) {
flag = true
}
})
return flag
},
checkIsHasChineseStr (str) {
var Reg = /.*[\u4e00-\u9fa5]+.*/
if (Reg.test(str)) {
return true
}
return false
}
},
computed: {
plate_license_1 () {
return (
this.formData.num0 +
this.formData.num1 +
this.formData.num2 +
this.formData.num3 +
this.formData.num4 +
this.formData.num5 +
this.formData.num6
)
},
plate_license_2 () {
return (
this.formData.num0 +
this.formData.num1 +
this.formData.num2 +
this.formData.num3 +
this.formData.num4 +
this.formData.num5 +
this.formData.num6 +
this.formData.num7
)
}
}
}
</script>
<style lang="scss" scoped>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
641
642
643
644
645
646
647
648
649
650
651
652
|
.swiper-container {
height: 206px;
}
.swiper-slide {
/*width: 100%;*/
height: 206px;
background-repeat: no-repeat;
background-size: 100% 100%;
}
|
0c49c87e
liuqimichale
微信公众号 初始化
|
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
|
.flex-items-center {
display: flex;
align-items: center;
}
.wrap {
padding:0 18px;
.radio-box {
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 18px;
text-align: right;
input[type="radio"] {
display: none;
}
label {
padding-left: 0.6rem;
cursor: pointer;
img {
width: 0.8rem;
margin-right: 0.1rem;
}
}
}
.color-choose{
width: 265px;
height: 34px;
margin: 0 auto;
background: #F3F3F3;
border-radius: 6px;
display: flex;
li{
flex: 1;
text-align: center;
line-height: 34px;
border-radius: 6px;
}
}
.card-header {
font-size: 0.75rem;
margin: 0.2rem 0 0.5rem;
color: #4a4a4a;
}
// input输入框
.num-box {
display: flex;
justify-content: space-between;
align-items: center;
.spot {
width: 0.2rem;
height: 0.2rem;
border-radius: 50%;
background-color: #d8d8d8;
}
& > div {
width: 1.8rem;
height: 1.8rem;
border: 1px solid #e4e4e4;
&.first {
position: relative;
text-align: center;
line-height: 1.7rem;
font-weight: 200;
.input-wrap {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
&.active {
z-index: 100;
}
}
em {
color: #979797;
font-size: 1.6rem;
line-height: 1.7rem;
}
span {
display: inline-block;
width: 100%;
height: 100%;
// background-color: #9cbce2;
color: #828282;
line-height: 1.8rem;
}
}
&.active {
border: 1px solid #4a90e2;
&:after {
border-bottom: 0.5rem solid #4a90e2;
}
}
span {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 1rem;
color: #828282;
&.first {
background-color: #9cbce2;
color: #fff;
text-indent: 0.4rem;
border-radius: 0;
}
}
}
}
.submit-box {
width: 100%;
height: 44px;
line-height: 44px;
border-radius: 4px;
font-size: 20px;
margin-top: 18px;
background: linear-gradient(180deg, #3885D9 0%, #4194EF 100%);
color: #fff;
text-align: center;
}
.info {
font-size: 0.5rem;
margin-top: 0.9rem;
color: #828282;
text-align: left;
img {
width: 0.6rem;
vertical-align: middle;
}
}
}
.first-word-wrap {
// height: 9.4rem;
background-color: #D2D5DB;
padding: 0.6rem 0.8rem 1.1rem;
position: fixed;
bottom: 0;
left: 0;
right: 0;
.first-word {
display: flex;
justify-content: space-between;
margin-bottom: 0.45rem;
.word {
box-sizing: border-box;
width: 1.8rem;
height: 1.8rem;
// border: 1px solid #9cbce2;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.35);
border-radius: 0.16rem;
text-align: center;
&.bordernone {
border: none;
box-shadow:none
}
span {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
height: 100%;
background-color: #fff;
color: #000;
// border: 1px solid #fff;
border-radius: 0.125rem;
}
img {
width: 1.6rem;
}
}
&:nth-last-of-type(1){
margin-bottom: 0rem;
}
}
}
.keyboard-wrap {
background-color: #D2D5DB;
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 0.6rem 0.6rem 0.4rem;
.keyboard {
display: flex;
justify-content: space-between;
align-items: center;
height: 2rem;
margin-bottom: 0.3rem;
span {
text-align: center;
display: flex;
width: 1.8rem;
align-items: center;
justify-content: center;
height: 1.8rem;
margin: 0 0.3rem;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.35);
background-color: #fff;
border-radius: 0.125rem;
&:active {
background-color: #e4e4e4;
}
&.bordernone{
border: none;
box-shadow: none;
background-color: #D2D5DB;
&:active{
background-color:#D2D5DB;
}
}
&.delete{
background-color: #465266;
img{
width: 1.15rem;
}
}
}
}
.cancel{
display: flex;
justify-content: flex-end;
align-items: center;
span{
display: flex;
align-items: center;
justify-content: center;
width: 3.6rem;
height: 1.8rem;
background-color: #465266;
color: #fff;
border-radius: 0.125rem;
}
}
}
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
|
.bound-list{
li{
padding: 0 10px;
height: 34px;
margin-bottom: 12px;
line-height: 34px;
background: #F2F1F1;
border-radius: 2px;
display: flex;
justify-content: space-between;
}
}
.addCarNum{
height: 34px;
line-height: 34px;
background: #FFFFFF;
border-radius: 2px;
border: 1px solid #F2F1F1;
text-align: center;
span{
width: 16px;
height: 16px;
display: inline-block;
background: url("../../assets/images/parkPay/addCarNum.png") no-repeat;
margin-right: 10px;
vertical-align: sub;
cursor: pointer;
}
}
|
34c54a40
刘淇
去缓存
|
920
921
922
923
924
925
|
.iphone-wrap{
position: absolute;
width: 100%;
bottom: 10px;
text-align: center;
}
|
0c49c87e
liuqimichale
微信公众号 初始化
|
926
|
</style>
|