0c49c87e
liuqimichale
微信公众号 初始化
|
1
2
|
<template>
<div id="page">
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
3
|
|
2a4c08ca
刘淇
确定按钮在等待
|
4
5
6
|
<div v-if="alertFlag">
<div class="wrap">
<p style="margin-bottom: 18px;margin-top: 18px;">请选择车牌颜色</p>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
7
|
|
2a4c08ca
刘淇
确定按钮在等待
|
8
9
10
11
12
13
|
<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
赤峰微信公众号 -- 临停支付
|
14
|
|
2a4c08ca
刘淇
确定按钮在等待
|
15
|
</ul>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
16
|
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
17
|
|
2a4c08ca
刘淇
确定按钮在等待
|
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
|
<p style="margin-bottom: 18px;margin-top: 18px;"></p>
<p style="margin-bottom: 18px;margin-top: 18px;">请输入车牌号码</p>
<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>
<!--<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>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
60
|
|
2a4c08ca
刘淇
确定按钮在等待
|
61
62
63
|
<div v-if="historyList.length>0">
<p style="margin-bottom: 18px;margin-top: 18px;"></p>
<p style="margin-bottom: 18px;margin-top: 18px;">历史输入车牌号码</p>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
64
|
|
2a4c08ca
刘淇
确定按钮在等待
|
65
66
67
|
<mt-cell :title="i.carNumberColor | filterCarNumberColor" is-link v-for="(i, index) in historyList" :key="index" @click.native="toNext(i)">
<span style="color: green">{{i.carNumber}}</span>
</mt-cell>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
68
|
|
2a4c08ca
刘淇
确定按钮在等待
|
69
|
</div>
|
04d41f2e
刘淇
领取优惠券
|
70
|
|
2a4c08ca
刘淇
确定按钮在等待
|
71
72
73
|
<div class="submit-box" @click="submitFn()">
领取
</div>
|
04d41f2e
刘淇
领取优惠券
|
74
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
75
|
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
76
|
</div>
|
2a4c08ca
刘淇
确定按钮在等待
|
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
|
<div class="first-word-wrap"
v-if="firstWrapStatus">
<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">
<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">
<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">
<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 class="word bordernone">
<!-- <img src="../assets/images/icon-switch.png" alt=""> -->
</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>-->
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
202
|
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
203
|
<!--<div class="word">-->
|
2a4c08ca
刘淇
确定按钮在等待
|
204
|
<!--<span>警</span>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
205
|
<!--</div>-->
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
206
|
|
2a4c08ca
刘淇
确定按钮在等待
|
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
<!--<div class="word bordernone">-->
<!--</div>-->
<!--<div class="word bordernone">-->
<!--</div>-->
<!--<div class="word bordernone">-->
<!--</div>-->
<!--<div class="word bordernone">-->
<!--</div>-->
<!--</div>-->
</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">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
223
224
|
<span v-for="(item,index) in allKeyWord._1"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
225
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
226
227
|
</div>
<div class="keyboard" v-if="activeKeyWordIndex !== 1">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
228
229
|
<span v-for="(item,index) in allKeyWord._2"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
230
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
231
232
233
234
235
236
|
<span class="bordernone"></span>
<span class="bordernone"></span>
<span class="bordernone"></span>
<span class="bordernone"></span>
</div>
<div class="keyboard">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
237
238
|
<span v-for="(item,index) in allKeyWord._3"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
239
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
240
241
|
</div>
<div class="keyboard">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
242
243
|
<span v-for="(item,index) in allKeyWord._4"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
244
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
245
246
|
</div>
<div class="keyboard">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
247
248
|
<span v-for="(item,index) in allKeyWord._5"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
249
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
250
251
|
</div>
<div class="keyboard">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
252
253
|
<span v-for="(item,index) in allKeyWord._6"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
254
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
255
256
257
258
259
260
261
262
|
<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">
|
0c49c87e
liuqimichale
微信公众号 初始化
|
263
264
|
<span v-for="(item,index) in allKeyWord._7"
:key="index"
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
265
|
@click="clickKeyBoard(item)">{{ item }}</span>
|
2a4c08ca
刘淇
确定按钮在等待
|
266
267
268
269
270
271
|
<span class="bordernone"></span>
<span class="delete" @click="deleteWord"><img src="../../assets/images/parkPay/icon-delete.png" alt=""></span>
</div>
<div class="cancel">
<span @click="keyBoardStatus = false">完成</span>
</div>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
272
273
274
|
</div>
</div>
|
2a4c08ca
刘淇
确定按钮在等待
|
275
276
277
278
279
|
<div v-else style="font-size: 16px;padding: 20px;text-align: center">
<img :src="imgurl" alt="" style="margin: 10px auto;width: 64px;height: 64px;">
{{alertmsg}}
</div>
|
0c49c87e
liuqimichale
微信公众号 初始化
|
280
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
281
282
283
|
</div>
</template>
<script>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
284
|
|
6e7e8785
刘淇
江阴领券
|
285
286
287
|
import {
getEncryptTime
} from '@/api/couponPay/couponPay.js'
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
288
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
289
|
export default {
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
290
|
data() {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
291
|
return {
|
2a4c08ca
刘淇
确定按钮在等待
|
292
|
imgurl: require('../../assets/images/loseIcon.png'),
|
2b4641ef
刘淇
添加车牌颜色
|
293
294
|
// 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
295
|
colorList: [
|
0c49c87e
liuqimichale
微信公众号 初始化
|
296
|
{
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
297
298
|
name: '蓝牌',
id: '1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
299
300
|
},
{
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
301
302
|
name: '黄牌',
id: '2'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
303
|
},
|
2b4641ef
刘淇
添加车牌颜色
|
304
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
305
|
{
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
306
307
|
name: '白牌',
id: '3'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
308
309
|
},
{
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
310
311
|
name: '黑牌',
id: '4'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
312
313
|
},
{
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
314
315
|
name: '绿牌',
id: '5'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
316
317
|
},
],
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
318
319
|
currentColor: 0,
activeBG: '#0054C0',
|
0c49c87e
liuqimichale
微信公众号 初始化
|
320
321
|
formData: {
commonCard: '1',
|
eae77c58
刘淇
江阴领取优惠券
|
322
323
|
num0: '苏',
num1: 'B',
|
0c49c87e
liuqimichale
微信公众号 初始化
|
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
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
赤峰微信公众号 -- 临停支付
|
346
|
submitConfirmText: '',
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
347
348
|
carType: '',
codeType: '',
|
04d41f2e
刘淇
领取优惠券
|
349
|
historyList:[],
|
6e7e8785
刘淇
江阴领券
|
350
|
encryptTime:'', // 加密后的时间
|
2a4c08ca
刘淇
确定按钮在等待
|
351
352
|
alertmsg:'',
alertFlag:false
|
0c49c87e
liuqimichale
微信公众号 初始化
|
353
354
|
}
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
355
|
created() {
|
04d41f2e
刘淇
领取优惠券
|
356
357
|
this.historyList = localStorage.getItem('historyArr')?JSON.parse(localStorage.getItem('historyArr')):[]
console.log(this.historyList )
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
358
359
|
this.carType = this.$route.query.carType
this.codeType = this.$route.query.codeType
|
331018f3
刘淇
江阴领取优惠券调接口
|
360
|
console.log(this.codeType)
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
361
|
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
362
|
mounted() {
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
363
364
365
366
367
368
369
370
371
372
373
|
//
// 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;
// }
// }
|
2a4c08ca
刘淇
确定按钮在等待
|
374
|
this.getEncryptTime()
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
375
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
376
377
|
},
methods: {
|
6e9a3492
刘淇
江阴支付
|
378
|
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
379
|
chooseColor(index) { // 颜色选择 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
|
0c49c87e
liuqimichale
微信公众号 初始化
|
380
381
382
|
this.currentColor = index
switch (this.currentColor) {
case 0 :
|
2b4641ef
刘淇
添加车牌颜色
|
383
|
this.formData.commonCard = '1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
384
385
386
|
return this.activeBG = '#0054C0'
break;
case 1 :
|
2b4641ef
刘淇
添加车牌颜色
|
387
|
this.formData.commonCard = '1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
388
389
390
|
return this.activeBG = '#FEBE00'
break;
case 2 :
|
2b4641ef
刘淇
添加车牌颜色
|
391
392
|
this.formData.commonCard = '1'
return this.activeBG = '#E4E5E7'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
393
394
|
break;
case 3 :
|
2b4641ef
刘淇
添加车牌颜色
|
395
396
|
this.formData.commonCard = '1'
return this.activeBG = '#333333'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
397
398
|
break;
case 4 :
|
2b4641ef
刘淇
添加车牌颜色
|
399
400
|
this.formData.commonCard = '2'
return this.activeBG = '#97DEA1'
|
0c49c87e
liuqimichale
微信公众号 初始化
|
401
402
403
|
break;
}
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
404
|
clickFirstWrap() {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
405
406
407
408
409
410
|
// 点击第一个输入框
this.firstClickStatus = true
this.firstWrapStatus = true
this.keyBoardStatus = false
this.formData.num0 = ''
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
411
|
selectFirstWord(event) {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
412
413
414
415
416
417
418
419
420
421
422
423
424
|
// 选择省份
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()
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
425
|
clickKeyBoard(item) { // 点击自定义键盘
|
0c49c87e
liuqimichale
微信公众号 初始化
|
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
|
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
}
}
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
441
|
deleteWord() { // 退格
|
0c49c87e
liuqimichale
微信公众号 初始化
|
442
443
444
445
446
447
448
|
// console.log(this.activeKeyWordIndex)
// console.log(this.formData['num' + (this.activeKeyWordIndex - 1)])
if (this.activeKeyWordIndex > 1) {
this.formData['num' + (this.activeKeyWordIndex - 1)] = ''
this.activeKeyWordIndex--
}
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
449
|
clickKeyWordWrap(activeKeyWordIndex) {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
450
451
452
453
|
this.keyBoardStatus = true
this.activeKeyWordIndex = activeKeyWordIndex
this.formData['num' + this.activeKeyWordIndex] = ''
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
454
|
submitFn() {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
455
456
457
458
459
|
let plateLicense
if (this.formData.commonCard === '1') {
plateLicense = this.plate_license_1
plateLicense = this.palindrome(plateLicense)
if (plateLicense.length < 7) {
|
7850cc26
liuqimichale
赤峰微信公众号 -- 临停支付
|
460
|
this.$msgbox('提示', '请输入正确的车牌号')
|
0c49c87e
liuqimichale
微信公众号 初始化
|
461
462
463
464
465
466
467
|
return
}
}
if (this.formData.commonCard === '2') {
plateLicense = this.plate_license_2
plateLicense = this.palindrome(plateLicense)
if (plateLicense.length < 8) {
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
468
|
this.$msgbox('提示', '请输入正确的车牌号')
|
0c49c87e
liuqimichale
微信公众号 初始化
|
469
470
471
|
return
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
472
|
this.$emit('getPlateLicense', plateLicense)
|
0c49c87e
liuqimichale
微信公众号 初始化
|
473
|
console.log(plateLicense);
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
474
|
|
04d41f2e
刘淇
领取优惠券
|
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
|
// historyArr 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
// indexOf
if(JSON.stringify(this.historyList).includes(JSON.stringify({
carNumber:plateLicense,
carNumberColor:this.currentColor,
})) ){
console.log('122')
}else{
if(this.historyList.length==3){
this.historyList.splice(0,1)
}
this.historyList.push({
carNumber:plateLicense,
carNumberColor:this.currentColor,
})
localStorage.setItem('historyArr',JSON.stringify(this.historyList))
}
|
2a4c08ca
刘淇
确定按钮在等待
|
495
496
497
498
499
500
501
502
503
504
505
506
507
|
this.$router.push({
path: 'coupon',
query: {
carNumber: plateLicense,
carNumberColor: this.currentColor,
carType: 2,
codeType: this.codeType,
cardRelParkNo: this.$route.query.cardRelParkNo,
key: this.$route.query.key,
encryptTime: this.encryptTime
}
})
|
6e7e8785
刘淇
江阴领券
|
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
|
},
getEncryptTime() {
let url = process.env.VUE_APP_API;
console.log(url)
var salt = this.$utils.myCommonSalt(32);
var jsondata = {
app_id: this.$utils.myVarAppid,
deviceInfo: this.$utils.myDeviceInfo,
salt: salt,
sign_type: "md5",
codeType: this.codeType,
cardRelParkNo: this.$route.query.cardRelParkNo,
key: this.$route.query.key,
// carNumberColor: this.carNumberColor,
orgId: this.$utils.myOrgId,
terminalSource: '7',
// token:'e2c1e43722dd43a5b7e268001b39e6f0'
}
jsondata.sign = this.$utils.signObject(jsondata)
console.log(jsondata)
getEncryptTime(url,jsondata).then(response => {
console.log(response)
if (response.code == 0) {
this.encryptTime = response.data.encryptTime
|
2a4c08ca
刘淇
确定按钮在等待
|
535
536
537
538
|
this.alertFlag = true
|
6e7e8785
刘淇
江阴领券
|
539
|
} else {
|
2a4c08ca
刘淇
确定按钮在等待
|
540
541
542
543
544
545
546
547
548
549
|
// this.$msgbox({
// title: '提示',
// message: response.message,
// // showCancelButton: false,
// closeOnClickModal:false,
// showConfirmButton:false
// });
// this.alertFlag = true
this.alertmsg = response.message
// this.$refs.alert.open()
|
0c49c87e
liuqimichale
微信公众号 初始化
|
550
|
}
|
6e7e8785
刘淇
江阴领券
|
551
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
552
553
|
})
},
|
04d41f2e
刘淇
领取优惠券
|
554
555
556
557
558
559
560
561
562
563
564
|
toNext(i){
console.log(i)
this.$router.push({
path: 'coupon',
query: {
carNumber: i.carNumber,
carNumberColor: i.currentColor,
carType: 2,
codeType: this.codeType,
cardRelParkNo: this.$route.query.cardRelParkNo,
|
2a4c08ca
刘淇
确定按钮在等待
|
565
566
|
key: this.$route.query.key,
encryptTime : this.encryptTime
|
04d41f2e
刘淇
领取优惠券
|
567
568
569
|
}
})
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
570
|
palindrome(str) {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
|
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('')
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
593
|
checkIsHasSpecialStr(str) {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
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
|
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
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
627
|
checkIsHasChineseStr(str) {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
628
629
630
631
632
633
634
635
|
var Reg = /.*[\u4e00-\u9fa5]+.*/
if (Reg.test(str)) {
return true
}
return false
}
},
computed: {
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
636
|
plate_license_1() {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
637
638
639
640
641
642
643
644
645
646
|
return (
this.formData.num0 +
this.formData.num1 +
this.formData.num2 +
this.formData.num3 +
this.formData.num4 +
this.formData.num5 +
this.formData.num6
)
},
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
647
|
plate_license_2() {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
648
649
650
651
652
653
654
655
656
657
658
|
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
)
}
|
04d41f2e
刘淇
领取优惠券
|
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
|
},
filters:{
filterCarNumberColor(val){
// 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
if(val==0){
return '蓝牌'
}
if(val==1){
return '黄牌'
}
if(val==2){
return '白牌'
}
if(val==3){
return '黑牌'
}
if(val==4){
return '绿色'
}
}
|
0c49c87e
liuqimichale
微信公众号 初始化
|
679
680
681
682
|
}
}
</script>
<style lang="scss" scoped>
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
683
|
|
bb951693
liuqimichale
赤峰微信公众号 -- 临停支付
|
684
|
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
685
686
687
688
689
690
691
692
693
|
.flex-items-center {
display: flex;
align-items: center;
}
.wrap {
padding: 0 18px;
.radio-box {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
694
695
|
display: flex;
align-items: center;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
|
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;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
711
712
|
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
713
714
715
716
717
718
719
720
721
|
}
.color-choose {
width: 265px;
height: 34px;
margin: 0 auto;
background: #F3F3F3;
border-radius: 6px;
display: flex;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
722
|
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
723
724
725
726
|
li {
flex: 1;
text-align: center;
line-height: 34px;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
727
|
border-radius: 6px;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
728
|
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
|
}
.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;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
748
|
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
|
& > 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;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
770
771
|
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
772
773
774
775
776
|
em {
color: #979797;
font-size: 1.6rem;
line-height: 1.7rem;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
777
|
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
778
|
|
0c49c87e
liuqimichale
微信公众号 初始化
|
779
|
span {
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
780
|
display: inline-block;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
781
782
|
width: 100%;
height: 100%;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
783
|
// background-color: #9cbce2;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
784
|
color: #828282;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
785
|
line-height: 1.8rem;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
786
787
|
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
788
789
790
791
792
793
|
&.active {
border: 1px solid #4a90e2;
&:after {
border-bottom: 0.5rem solid #4a90e2;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
794
795
|
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
|
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;
}
|
0c49c87e
liuqimichale
微信公众号 初始化
|
812
813
814
|
}
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
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
|
.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
}
|
0c49c87e
liuqimichale
微信公众号 初始化
|
869
|
span {
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
870
|
box-sizing: border-box;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
871
|
display: flex;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
872
873
|
align-items: center;
justify-content: center;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
874
875
876
|
text-align: center;
width: 100%;
height: 100%;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
877
|
background-color: #fff;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
878
879
|
color: #000;
// border: 1px solid #fff;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
880
|
border-radius: 0.125rem;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
881
|
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
882
883
884
885
886
887
888
889
|
img {
width: 1.6rem;
}
}
&:nth-last-of-type(1) {
margin-bottom: 0rem;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
890
|
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
|
}
}
.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;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
911
|
display: flex;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
912
|
width: 1.8rem;
|
0c49c87e
liuqimichale
微信公众号 初始化
|
913
|
align-items: center;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
|
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 {
|
0c49c87e
liuqimichale
微信公众号 初始化
|
936
|
background-color: #465266;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
937
938
939
940
|
img {
width: 1.15rem;
}
|
0c49c87e
liuqimichale
微信公众号 初始化
|
941
942
943
|
}
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
944
945
946
947
948
949
950
|
.cancel {
display: flex;
justify-content: flex-end;
align-items: center;
span {
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
951
|
display: flex;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
952
953
954
955
956
957
958
|
align-items: center;
justify-content: center;
width: 3.6rem;
height: 1.8rem;
background-color: #465266;
color: #fff;
border-radius: 0.125rem;
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
959
960
|
}
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
961
962
963
964
965
|
}
.bound-list {
li {
padding: 0 10px;
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
966
|
height: 34px;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
967
|
margin-bottom: 12px;
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
968
|
line-height: 34px;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
969
|
background: #F2F1F1;
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
970
|
border-radius: 2px;
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
971
972
|
display: flex;
justify-content: space-between;
|
94c1e6a3
liuqimichale
微信公众号 个人页面集合
|
973
|
}
|
92e91fa6
刘淇
江阴领取优惠券调接口
|
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
|
}
.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;
}
}
|
04d41f2e
刘淇
领取优惠券
|
994
995
996
997
998
999
1000
|
>>> .mint-cell-wrapper{
background-image:none;
}
>>> .mint-cell:last-child{
background-image:none;
}
|
2a4c08ca
刘淇
确定按钮在等待
|
1001
1002
1003
|
/*>>> .mint-msgbox{*/
/*display: none;*/
/*}*/
|
0c49c87e
liuqimichale
微信公众号 初始化
|
1004
|
</style>
|