Blame view

src/components/plateNumber.vue 23.4 KB
e7874705   liuqimichale   init
1
2
3
  <template>
    <div id="page">
      <div class="wrap">
2c31a41c   liuqimichale   赤峰静态码测试完成
4
        <!--<p style="margin-bottom: 18px;margin-top: 18px;">请选择车牌颜色</p>-->
e7874705   liuqimichale   init
5
  
2c31a41c   liuqimichale   赤峰静态码测试完成
6
7
8
9
10
11
        <!--<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:'' }"-->
        <!--&gt;-->
        <!--{{i.name}}-->
        <!--</li>-->
e7874705   liuqimichale   init
12
  
2c31a41c   liuqimichale   赤峰静态码测试完成
13
        <!--</ul>-->
e7874705   liuqimichale   init
14
  
2c31a41c   liuqimichale   赤峰静态码测试完成
15
        <p style="margin-bottom: 18px;margin-top: 18px;">
b89c7412   刘淇   赤峰出场码
16
          {{formData.commonCard == "3"?"请输入手机号码":"请输入车牌号码"}}
2c31a41c   liuqimichale   赤峰静态码测试完成
17
18
19
20
        </p>
  
  
        <div v-if="formData.commonCard == '3'">
b89c7412   刘淇   赤峰出场码
21
22
          <input type="text" class="iphone-box" v-model="carNum" maxlength="11"
                 oninput="value=value.replace(/[^\d]/g,'')">
2c31a41c   liuqimichale   赤峰静态码测试完成
23
24
25
        </div>
  
        <div class="num-box" v-else>
e7874705   liuqimichale   init
26
27
28
29
30
31
32
33
34
35
          <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>
2c31a41c   liuqimichale   赤峰静态码测试完成
36
37
          <div v-if="formData.commonCard == '2'" class="num1" @click="clickKeyWordWrap(7)"><span>{{formData.num7}}</span>
          </div>
e7874705   liuqimichale   init
38
39
40
        </div>
  
  
e7874705   liuqimichale   init
41
        <div class="radio-box">
2c31a41c   liuqimichale   赤峰静态码测试完成
42
          <label class="flex-items-center" @click="keyBoardStatus = true">
e7874705   liuqimichale   init
43
44
45
46
47
48
49
50
            <img v-if="formData.commonCard == 1"
                 src="../assets/images/icon_chose_s@2x.png"
                 alt="">
            <img v-else
                 src="../assets/images/icon_chose_n@2x.png"
                 alt="">
            <input type="radio"
                   v-model="formData.commonCard"
2c31a41c   liuqimichale   赤峰静态码测试完成
51
                   value="1"/>普通车牌
e7874705   liuqimichale   init
52
          </label>
2c31a41c   liuqimichale   赤峰静态码测试完成
53
          <label class="flex-items-center" @click="keyBoardStatus = true">
e7874705   liuqimichale   init
54
55
56
57
58
59
60
61
            <img v-if="formData.commonCard == 2"
                 src="../assets/images/icon_chose_s@2x.png"
                 alt="">
            <img v-else
                 src="../assets/images/icon_chose_n@2x.png"
                 alt="">
            <input type="radio"
                   v-model="formData.commonCard"
2c31a41c   liuqimichale   赤峰静态码测试完成
62
63
64
65
66
67
68
69
70
71
72
73
                   value="2"/>新能源车牌
          </label>
          <label class="flex-items-center" @click.self="changeTab">
            <img v-if="formData.commonCard == 3"
                 src="../assets/images/icon_chose_s@2x.png"
                 alt="">
            <img v-else
                 src="../assets/images/icon_chose_n@2x.png"
                 alt="">
            <input type="radio"
                   v-model="formData.commonCard"
                   value="3"/>无牌车
e7874705   liuqimichale   init
74
75
76
77
78
79
80
81
82
83
84
85
86
          </label>
        </div>
  
  
        <div class="submit-box" @click="submitFn()">
          查询
        </div>
      </div>
      <div class="first-word-wrap"
           v-if="firstWrapStatus">
        <div class="first-word"
             @click="selectFirstWord($event)">
          <div class="word">
b67c269c   liuqimichale   入场码
87
            <span>蒙</span>
e7874705   liuqimichale   init
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
          </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">
a24caa86   liuqimichale  
114
            <span>冀</span>
e7874705   liuqimichale   init
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
          </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">
b67c269c   liuqimichale   入场码
168
            <span>京</span>
e7874705   liuqimichale   init
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
          </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>
2c31a41c   liuqimichale   赤峰静态码测试完成
193
      <div class="keyboard-wrap" v-show="keyBoardStatus == true">
e7874705   liuqimichale   init
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
        <!-- <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>
          <span class="delete" @click="deleteWord"><img src="../assets/images/icon-delete.png" alt=""></span>
        </div>
        <div class="cancel">
          <span @click="keyBoardStatus = false">完成</span>
        </div>
      </div>
  
  
e7874705   liuqimichale   init
250
251
252
    </div>
  </template>
  <script>
b89c7412   刘淇   赤峰出场码
253
  import { noCarQRcodeInOutPark } from "@/api/plateNumber/plateNumber";
e7874705   liuqimichale   init
254
  export default {
2c31a41c   liuqimichale   赤峰静态码测试完成
255
    data() {
e7874705   liuqimichale   init
256
      return {
2c31a41c   liuqimichale   赤峰静态码测试完成
257
        colorList: [
e7874705   liuqimichale   init
258
          {
b89c7412   刘淇   赤峰出场码
259
260
            name: "蓝牌",
            id: "1"
e7874705   liuqimichale   init
261
262
          },
          {
b89c7412   刘淇   赤峰出场码
263
264
            name: "黄牌",
            id: "2"
e7874705   liuqimichale   init
265
266
          },
          {
b89c7412   刘淇   赤峰出场码
267
268
            name: "绿牌",
            id: "3"
e7874705   liuqimichale   init
269
270
          },
          {
b89c7412   刘淇   赤峰出场码
271
272
            name: "白牌",
            id: "4"
e7874705   liuqimichale   init
273
274
          },
          {
b89c7412   刘淇   赤峰出场码
275
276
277
            name: "黑牌",
            id: "5"
          }
e7874705   liuqimichale   init
278
        ],
2c31a41c   liuqimichale   赤峰静态码测试完成
279
        currentColor: 0,
b89c7412   刘淇   赤峰出场码
280
        activeBG: "#0054C0",
e7874705   liuqimichale   init
281
        formData: {
b89c7412   刘淇   赤峰出场码
282
283
284
285
286
287
288
289
290
          commonCard: "1",
          num0: "",
          num1: "",
          num2: "",
          num3: "",
          num4: "",
          num5: "",
          num6: "",
          num7: ""
e7874705   liuqimichale   init
291
292
293
294
        },
        allKeyWord: {
          _1: [1, 2, 3, 4, 5, 6, 7],
          _2: [8, 9, 0],
b89c7412   刘淇   赤峰出场码
295
296
297
298
299
          _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: ["港", "澳", "学", "领", "警"]
e7874705   liuqimichale   init
300
301
302
303
        },
        activeKeyWordIndex: 1, // 当前车牌号
        keyBoardStatus: false,
        firstWrapStatus: false, // 选择弹窗
b89c7412   刘淇   赤峰出场码
304
        confirmTitle: "",
e7874705   liuqimichale   init
305
306
        submitConfirm: false,
        submitConfirmFalse: false,
b89c7412   刘淇   赤峰出场码
307
308
309
310
        submitConfirmText: "",
        carNum: "",
        tip: "车牌号"
      };
e7874705   liuqimichale   init
311
    },
2c31a41c   liuqimichale   赤峰静态码测试完成
312
    mounted() {
b89c7412   刘淇   赤峰出场码
313
314
      console.log(window.location);
      console.log(this.$route.query);
01a35d04   刘淇   授权方式修改
315
316
317
318
319
320
321
322
323
324
      // 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_base&state=1,0#wechat_redirect'
      //   } else {
      //     return code;
      //   }
      // }
b89c7412   刘淇   赤峰出场码
325
      let params = this.$route.query;
2c31a41c   liuqimichale   赤峰静态码测试完成
326
      if (Object.keys(params).length == 0) {
2c31a41c   liuqimichale   赤峰静态码测试完成
327
      } else {
b89c7412   刘淇   赤峰出场码
328
        this.noCarQRcodeInOutPark();
2c31a41c   liuqimichale   赤峰静态码测试完成
329
      }
e7874705   liuqimichale   init
330
331
    },
    methods: {
f6710433   liuqimichale   静态码 输入车牌页面 微信授权
332
      getUrlParam(name) {
b89c7412   刘淇   赤峰出场码
333
334
335
336
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
f6710433   liuqimichale   静态码 输入车牌页面 微信授权
337
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
      // chooseColor (index){ // 颜色选择
      //   this.currentColor = index
      //   switch (this.currentColor) {
      //     case 0 :
      //       return this.activeBG = '#0054C0'
      //       break;
      //     case 1 :
      //       return this.activeBG = '#FEBE00'
      //       break;
      //     case 2 :
      //       return this.activeBG = '#97DEA1'
      //       break;
      //     case 3 :
      //       return this.activeBG = '#E4E5E7'
      //       break;
      //     case 4 :
      //       return this.activeBG = '#333333'
      //       break;
      //   }
      // },
      noCarQRcodeInOutPark() {
b89c7412   刘淇   赤峰出场码
359
360
        let params = this.$route.query;
        params.payType = this.$utils.IsWeixinOrAlipay();//4:微信     1:支付宝    34:农行
2c31a41c   liuqimichale   赤峰静态码测试完成
361
        params.terminalSource = "7";//1:任你听 3:微信公共号 4:云平台 7:H5
b89c7412   刘淇   赤峰出场码
362
363
364
365
366
367
368
        params.app_id = 1;
        params.salt = 2;
        params.deviceInfo = 3;
        params.sign_type = "md5";
        params.sign = 4;
        params.token = "666";
        params.carNumber = this.carNum;
2c31a41c   liuqimichale   赤峰静态码测试完成
369
        noCarQRcodeInOutPark(params).then(res => {
b89c7412   刘淇   赤峰出场码
370
          console.log(res);
2c31a41c   liuqimichale   赤峰静态码测试完成
371
372
373
374
          if (res.code == 0) {//进场
            //alertMsg("出场成功");
            if (res.data) {
              var tmpObj = res.data;
b89c7412   刘淇   赤峰出场码
375
              console.log(tmpObj);
2c31a41c   liuqimichale   赤峰静态码测试完成
376
              //判断是否需要支付
b89c7412   刘淇   赤峰出场码
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
              // if (tmpObj.needPay) {
              //   var queryParams = this.$utils.parseParams(tmpObj);
              //   console.log(queryParams);
              //   // //
              //   this.$router.push({
              //     path: "pay",
              //     query: tmpObj
              //   });
              //   // window.location.href = "../pay.html?" + queryParams;
              // } else {
              //   this.$msgbox("提示", "无需缴费,欢迎下次光临");
              // }
  
  
  
da4c69a8   刘淇   赤峰出场码
392
393
394
395
              // var queryParams = this.$utils.parseParams(tmpObj);
              sessionStorage.setItem('tmpObjCookie', JSON.stringify(tmpObj))
  
              // console.log(queryParams);
b89c7412   刘淇   赤峰出场码
396
397
398
              // //
              this.$router.push({
                path: "pay",
da4c69a8   刘淇   赤峰出场码
399
                // query: tmpObj
b89c7412   刘淇   赤峰出场码
400
401
402
              });
  
  
2c31a41c   liuqimichale   赤峰静态码测试完成
403
404
  
            } else {
b89c7412   刘淇   赤峰出场码
405
              this.$msgbox("提示", "没有找到订单");
2c31a41c   liuqimichale   赤峰静态码测试完成
406
            }
2947f4d1   liuqimichale   市医院静态码 +弹窗样式
407
          }
b89c7412   刘淇   赤峰出场码
408
409
          else if (res.code == 1031) { // 当前道闸禁止通行
            sessionStorage.setItem("noPassText", res.message);
2947f4d1   liuqimichale   市医院静态码 +弹窗样式
410
            this.$router.push({
b89c7412   刘淇   赤峰出场码
411
              path: "noPass"
2947f4d1   liuqimichale   市医院静态码 +弹窗样式
412
              // query: tmpObj.message
b89c7412   刘淇   赤峰出场码
413
            });
2947f4d1   liuqimichale   市医院静态码 +弹窗样式
414
415
          }
          else {//其他情况如【该卡号场内已存在】
2c31a41c   liuqimichale   赤峰静态码测试完成
416
            console.log(res.message);
b89c7412   刘淇   赤峰出场码
417
            this.$msgbox("提示", res.message);
2c31a41c   liuqimichale   赤峰静态码测试完成
418
          }
b89c7412   刘淇   赤峰出场码
419
        });
e7874705   liuqimichale   init
420
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
421
422
423
      changeTab() {
        // this.firstSelectStatus = false
        // this.firstWrapStatus = false
b89c7412   刘淇   赤峰出场码
424
425
426
        this.keyBoardStatus = false;
        this.firstClickStatus = false;
        this.firstWrapStatus = false;
2c31a41c   liuqimichale   赤峰静态码测试完成
427
428
      },
      clickFirstWrap() {
e7874705   liuqimichale   init
429
        // 点击第一个输入框
b89c7412   刘淇   赤峰出场码
430
431
432
433
        this.firstClickStatus = true;
        this.firstWrapStatus = true;
        this.keyBoardStatus = false;
        this.formData.num0 = "";
e7874705   liuqimichale   init
434
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
435
      selectFirstWord(event) {
e7874705   liuqimichale   init
436
        // 选择省份
b89c7412   刘淇   赤峰出场码
437
438
        if (event.target.localName !== "span") {
          return;
e7874705   liuqimichale   init
439
        }
b89c7412   刘淇   赤峰出场码
440
441
442
443
444
445
        this.formData.num0 = event.target.innerText;
        this.firstSelectStatus = true;
        this.firstWrapStatus = false;
        this.firstClickStatus = false;
        this.keyBoardStatus = true;
        this.activeKeyWordIndex = 1;
e7874705   liuqimichale   init
446
447
448
        // this.$refs.num1.focus()
        // document.getElementById('num1').focus()
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
449
      clickKeyBoard(item) { // 点击自定义键盘
b89c7412   刘淇   赤峰出场码
450
451
452
453
        console.log(item);
        this.formData["num" + this.activeKeyWordIndex] = item;
        if (this.formData.commonCard === "1") {
          this.activeKeyWordIndex++;
e7874705   liuqimichale   init
454
          if (this.activeKeyWordIndex > 6) {
b89c7412   刘淇   赤峰出场码
455
            this.keyBoardStatus = false;
e7874705   liuqimichale   init
456
457
          }
        } else {
b89c7412   刘淇   赤峰出场码
458
          this.activeKeyWordIndex++;
e7874705   liuqimichale   init
459
          if (this.activeKeyWordIndex > 7) {
b89c7412   刘淇   赤峰出场码
460
            this.keyBoardStatus = false;
e7874705   liuqimichale   init
461
462
463
          }
        }
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
464
      deleteWord() { // 退格
e7874705   liuqimichale   init
465
466
467
        // console.log(this.activeKeyWordIndex)
        // console.log(this.formData['num' + (this.activeKeyWordIndex - 1)])
        if (this.activeKeyWordIndex > 1) {
b89c7412   刘淇   赤峰出场码
468
469
          this.formData["num" + (this.activeKeyWordIndex - 1)] = "";
          this.activeKeyWordIndex--;
e7874705   liuqimichale   init
470
471
        }
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
472
      clickKeyWordWrap(activeKeyWordIndex) {
b89c7412   刘淇   赤峰出场码
473
474
475
        this.keyBoardStatus = true;
        this.activeKeyWordIndex = activeKeyWordIndex;
        this.formData["num" + this.activeKeyWordIndex] = "";
e7874705   liuqimichale   init
476
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
477
      submitFn() {
b89c7412   刘淇   赤峰出场码
478
479
480
481
        let plateLicense;
        if (this.formData.commonCard === "1") {
          plateLicense = this.plate_license_1;
          plateLicense = this.palindrome(plateLicense);
e7874705   liuqimichale   init
482
          if (plateLicense.length < 7) {
b89c7412   刘淇   赤峰出场码
483
484
            this.$msgbox("提示", "请输入正确车牌号");
            return;
e7874705   liuqimichale   init
485
          }
b89c7412   刘淇   赤峰出场码
486
          this.carNum = plateLicense;
e7874705   liuqimichale   init
487
        }
b89c7412   刘淇   赤峰出场码
488
489
490
        if (this.formData.commonCard === "2") {
          plateLicense = this.plate_license_2;
          plateLicense = this.palindrome(plateLicense);
e7874705   liuqimichale   init
491
          if (plateLicense.length < 8) {
b89c7412   刘淇   赤峰出场码
492
493
            this.$msgbox("提示", "请输入正确车牌号");
            return;
e7874705   liuqimichale   init
494
          }
b89c7412   刘淇   赤峰出场码
495
          this.carNum = plateLicense;
e7874705   liuqimichale   init
496
        }
b89c7412   刘淇   赤峰出场码
497
498
499
500
        console.log(plateLicense);
        if (this.formData.commonCard === "3") {
          plateLicense = this.plate_license_2;
          plateLicense = this.palindrome(plateLicense);
e2fc6c62   liuqimichale   输入手机号 问题
501
          if (this.carNum.length < 11) {
b89c7412   刘淇   赤峰出场码
502
503
            this.$msgbox("提示", "请输入正确手机号");
            return;
e7874705   liuqimichale   init
504
          }
b89c7412   刘淇   赤峰出场码
505
          this.carNum = this.carNum + "111";
2c31a41c   liuqimichale   赤峰静态码测试完成
506
507
508
509
        }
        //
        // this.$emit('getPlateLicense', plateLicense)
        console.log(plateLicense);
2c31a41c   liuqimichale   赤峰静态码测试完成
510
511
512
513
514
515
        // this.$router.push({
        //   path: 'pay',
        //   query: {
        //     carNumber: plateLicense
        //   }
        // })
b89c7412   刘淇   赤峰出场码
516
        this.noCarQRcodeInOutPark();
e7874705   liuqimichale   init
517
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
518
      palindrome(str) {
b89c7412   刘淇   赤峰出场码
519
520
        var arr = str.split("");
        arr = arr.filter(function(val) {
e7874705   liuqimichale   init
521
          return (
b89c7412   刘淇   赤峰出场码
522
523
524
525
526
527
528
            val !== " " &&
            val !== "," &&
            val !== "." &&
            val !== "?" &&
            val !== ":" &&
            val !== ";" &&
            val !== "`" &&
e7874705   liuqimichale   init
529
            val !== "'" &&
b89c7412   刘淇   赤峰出场码
530
531
532
533
534
535
536
537
538
539
            val !== "_" &&
            val !== "/" &&
            val !== "-" &&
            val !== "\\" &&
            val !== "" &&
            val !== "(" &&
            val !== ")"
          );
        });
        return arr.join("");
e7874705   liuqimichale   init
540
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
541
      checkIsHasSpecialStr(str) {
b89c7412   刘淇   赤峰出场码
542
543
        var flag = false;
        var arr = str.split("");
e7874705   liuqimichale   init
544
545
        arr.forEach(val => {
          if (
b89c7412   刘淇   赤峰出场码
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
            val === "!" ||
            val === "}" ||
            val === "{" ||
            val === "]" ||
            val === "[" ||
            val === "&" ||
            val === "$" ||
            val === "@" ||
            val === " " ||
            val === "," ||
            val === "." ||
            val === "?" ||
            val === ":" ||
            val === ";" ||
            val === "`" ||
e7874705   liuqimichale   init
561
            val === "'" ||
b89c7412   刘淇   赤峰出场码
562
563
564
565
566
567
568
            val === "_" ||
            val === "/" ||
            val === "-" ||
            val === "\\" ||
            val === "" ||
            val === "(" ||
            val === ")"
e7874705   liuqimichale   init
569
          ) {
b89c7412   刘淇   赤峰出场码
570
            flag = true;
e7874705   liuqimichale   init
571
          }
b89c7412   刘淇   赤峰出场码
572
573
        });
        return flag;
e7874705   liuqimichale   init
574
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
575
      checkIsHasChineseStr(str) {
b89c7412   刘淇   赤峰出场码
576
        var Reg = /.*[\u4e00-\u9fa5]+.*/;
e7874705   liuqimichale   init
577
        if (Reg.test(str)) {
b89c7412   刘淇   赤峰出场码
578
          return true;
e7874705   liuqimichale   init
579
        }
b89c7412   刘淇   赤峰出场码
580
        return false;
e7874705   liuqimichale   init
581
582
583
      }
    },
    computed: {
2c31a41c   liuqimichale   赤峰静态码测试完成
584
      plate_license_1() {
e7874705   liuqimichale   init
585
586
587
588
589
590
591
592
        return (
          this.formData.num0 +
          this.formData.num1 +
          this.formData.num2 +
          this.formData.num3 +
          this.formData.num4 +
          this.formData.num5 +
          this.formData.num6
b89c7412   刘淇   赤峰出场码
593
        );
e7874705   liuqimichale   init
594
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
595
      plate_license_2() {
e7874705   liuqimichale   init
596
597
598
599
600
601
602
603
604
        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
b89c7412   刘淇   赤峰出场码
605
        );
e7874705   liuqimichale   init
606
607
      }
    }
b89c7412   刘淇   赤峰出场码
608
  };
e7874705   liuqimichale   init
609
610
611
612
613
614
  </script>
  <style lang="scss" scoped>
    .flex-items-center {
      display: flex;
      align-items: center;
    }
2c31a41c   liuqimichale   赤峰静态码测试完成
615
  
e7874705   liuqimichale   init
616
    .wrap {
2c31a41c   liuqimichale   赤峰静态码测试完成
617
      padding: 0 18px;
e7874705   liuqimichale   init
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
      .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;
          }
        }
      }
  
2c31a41c   liuqimichale   赤峰静态码测试完成
637
      .color-choose {
e7874705   liuqimichale   init
638
639
640
641
642
643
        width: 265px;
        height: 34px;
        margin: 0 auto;
        background: #F3F3F3;
        border-radius: 6px;
        display: flex;
2c31a41c   liuqimichale   赤峰静态码测试完成
644
        li {
e7874705   liuqimichale   init
645
646
647
648
649
650
651
652
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
          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;
        }
      }
    }
2c31a41c   liuqimichale   赤峰静态码测试完成
745
  
e7874705   liuqimichale   init
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
    .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;
2c31a41c   liuqimichale   赤峰静态码测试完成
763
          box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.35);
e7874705   liuqimichale   init
764
765
766
767
          border-radius: 0.16rem;
          text-align: center;
          &.bordernone {
            border: none;
2c31a41c   liuqimichale   赤峰静态码测试完成
768
            box-shadow: none
e7874705   liuqimichale   init
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
          }
          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;
          }
        }
2c31a41c   liuqimichale   赤峰静态码测试完成
787
        &:nth-last-of-type(1) {
e7874705   liuqimichale   init
788
789
790
791
          margin-bottom: 0rem;
        }
      }
    }
2c31a41c   liuqimichale   赤峰静态码测试完成
792
  
e7874705   liuqimichale   init
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
    .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;
2c31a41c   liuqimichale   赤峰静态码测试完成
814
          box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.35);
e7874705   liuqimichale   init
815
816
817
818
819
          background-color: #fff;
          border-radius: 0.125rem;
          &:active {
            background-color: #e4e4e4;
          }
2c31a41c   liuqimichale   赤峰静态码测试完成
820
          &.bordernone {
e7874705   liuqimichale   init
821
822
823
            border: none;
            box-shadow: none;
            background-color: #D2D5DB;
2c31a41c   liuqimichale   赤峰静态码测试完成
824
825
            &:active {
              background-color: #D2D5DB;
e7874705   liuqimichale   init
826
827
            }
          }
2c31a41c   liuqimichale   赤峰静态码测试完成
828
          &.delete {
e7874705   liuqimichale   init
829
            background-color: #465266;
2c31a41c   liuqimichale   赤峰静态码测试完成
830
            img {
e7874705   liuqimichale   init
831
832
833
834
835
              width: 1.15rem;
            }
          }
        }
      }
2c31a41c   liuqimichale   赤峰静态码测试完成
836
      .cancel {
e7874705   liuqimichale   init
837
838
839
        display: flex;
        justify-content: flex-end;
        align-items: center;
2c31a41c   liuqimichale   赤峰静态码测试完成
840
        span {
e7874705   liuqimichale   init
841
842
843
844
845
846
847
848
849
850
851
          display: flex;
          align-items: center;
          justify-content: center;
          width: 3.6rem;
          height: 1.8rem;
          background-color: #465266;
          color: #fff;
          border-radius: 0.125rem;
        }
      }
    }
2c31a41c   liuqimichale   赤峰静态码测试完成
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
  
    input[type="text"]:focus {
      border: 0;
      border: 1px solid #e4e4e4 !important;
    }
  
    .iphone-box {
      border: 0;
      width: 100%;
      height: 1.8rem;
      line-height: 1.8rem;
      padding-left: 20px;
      border: 1px solid #e4e4e4;
      font-size: 14px;
    }
  
e7874705   liuqimichale   init
868
  </style>