Blame view

src/components/plateNumber.vue 19 KB
e7874705   liuqimichale   init
1
2
3
  <template>
    <div id="page">
      <div class="wrap">
12335653   刘淇   房山临时车牌
4
5
6
7
8
        <!-- 输入区域:初始隐藏,缓存查询失败后显示 -->
        <div v-if="showInputArea">
          <p style="margin-bottom: 18px;margin-top: 18px;">
            {{formData.commonCard == "3"?"请输入入场时的虚拟临时车牌":"请输入车牌号码"}}
          </p>
2c31a41c   liuqimichale   赤峰静态码测试完成
9
  
12335653   刘淇   房山临时车牌
10
          <div v-if="formData.commonCard == '3'">
4cc8ccf9   刘淇   房山 临牌
11
12
13
            <input type="text" class="iphone-box" v-model="carNum" maxlength="8"
            @input="carNum = carNum.toUpperCase()"
            >
12335653   刘淇   房山临时车牌
14
          </div>
2c31a41c   liuqimichale   赤峰静态码测试完成
15
  
12335653   刘淇   房山临时车牌
16
17
18
19
20
21
22
23
24
25
26
27
          <div class="num-box" v-else>
            <div class="num0" @click="clickFirstWrap()">
              <span>{{formData.num0}}</span>
            </div>
            <div class="num1" @click="clickKeyWordWrap(1)"><span>{{formData.num1}}</span></div>
            <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>
2c31a41c   liuqimichale   赤峰静态码测试完成
28
  
12335653   刘淇   房山临时车牌
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
          <div class="radio-box">
            <label class="flex-items-center" @click="keyBoardStatus = true">
              <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" value="1"/>普通车牌
            </label>
            <label class="flex-items-center" @click="keyBoardStatus = true">
              <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" 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"/>无牌车
            </label>
e7874705   liuqimichale   init
45
          </div>
12335653   刘淇   房山临时车牌
46
47
48
  
          <div class="submit-box" @click="submitFn()">
            查询
2c31a41c   liuqimichale   赤峰静态码测试完成
49
          </div>
e7874705   liuqimichale   init
50
51
        </div>
  
12335653   刘淇   房山临时车牌
52
53
54
        <!-- 加载提示 -->
        <div v-if="loading" style="text-align: center; padding: 30px 0; font-size: 16px; color: #666;">
          {{ loadingText }}
e7874705   liuqimichale   init
55
        </div>
12335653   刘淇   房山临时车牌
56
      </div>
e7874705   liuqimichale   init
57
  
12335653   刘淇   房山临时车牌
58
59
60
61
62
63
64
65
66
67
68
      <!-- 省份选择/自定义键盘区域(原有代码不变) -->
      <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>
e7874705   liuqimichale   init
69
        </div>
12335653   刘淇   房山临时车牌
70
71
72
73
74
75
76
77
78
        <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>
e7874705   liuqimichale   init
79
        </div>
12335653   刘淇   房山临时车牌
80
81
82
83
84
85
86
87
88
        <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>
e7874705   liuqimichale   init
89
        </div>
12335653   刘淇   房山临时车牌
90
91
92
93
94
95
96
97
98
        <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 bordernone"></div>
e7874705   liuqimichale   init
99
100
        </div>
      </div>
2c31a41c   liuqimichale   赤峰静态码测试完成
101
      <div class="keyboard-wrap" v-show="keyBoardStatus == true">
e7874705   liuqimichale   init
102
        <div class="keyboard" v-if="activeKeyWordIndex !== 1">
12335653   刘淇   房山临时车牌
103
          <span v-for="(item,index) in allKeyWord._1" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
104
105
        </div>
        <div class="keyboard" v-if="activeKeyWordIndex !== 1">
12335653   刘淇   房山临时车牌
106
          <span v-for="(item,index) in allKeyWord._2" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
107
108
109
110
111
112
          <span class="bordernone"></span>
          <span class="bordernone"></span>
          <span class="bordernone"></span>
          <span class="bordernone"></span>
        </div>
        <div class="keyboard">
12335653   刘淇   房山临时车牌
113
          <span v-for="(item,index) in allKeyWord._3" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
114
115
        </div>
        <div class="keyboard">
12335653   刘淇   房山临时车牌
116
          <span v-for="(item,index) in allKeyWord._4" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
117
118
        </div>
        <div class="keyboard">
12335653   刘淇   房山临时车牌
119
          <span v-for="(item,index) in allKeyWord._5" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
120
121
        </div>
        <div class="keyboard">
12335653   刘淇   房山临时车牌
122
          <span v-for="(item,index) in allKeyWord._6" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
123
124
125
          <span class="bordernone"></span>
          <span class="bordernone"></span>
          <span class="bordernone"></span>
e7874705   liuqimichale   init
126
127
        </div>
        <div class="keyboard" v-if="activeKeyWordIndex !== 1">
12335653   刘淇   房山临时车牌
128
          <span v-for="(item,index) in allKeyWord._7" :key="index" @click="clickKeyBoard(item)">{{item}}</span>
e7874705   liuqimichale   init
129
130
131
132
133
134
135
          <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
136
137
    </div>
  </template>
12335653   刘淇   房山临时车牌
138
  
e7874705   liuqimichale   init
139
  <script>
b89c7412   刘淇   赤峰出场码
140
  import { noCarQRcodeInOutPark } from "@/api/plateNumber/plateNumber";
e7874705   liuqimichale   init
141
  export default {
2c31a41c   liuqimichale   赤峰静态码测试完成
142
    data() {
e7874705   liuqimichale   init
143
      return {
2c31a41c   liuqimichale   赤峰静态码测试完成
144
        colorList: [
12335653   刘淇   房山临时车牌
145
146
147
148
149
          { name: "蓝牌", id: "1" },
          { name: "黄牌", id: "2" },
          { name: "绿牌", id: "3" },
          { name: "白牌", id: "4" },
          { name: "黑牌", id: "5" }
e7874705   liuqimichale   init
150
        ],
2c31a41c   liuqimichale   赤峰静态码测试完成
151
        currentColor: 0,
b89c7412   刘淇   赤峰出场码
152
        activeBG: "#0054C0",
e7874705   liuqimichale   init
153
        formData: {
b89c7412   刘淇   赤峰出场码
154
155
156
157
158
159
160
161
162
          commonCard: "1",
          num0: "",
          num1: "",
          num2: "",
          num3: "",
          num4: "",
          num5: "",
          num6: "",
          num7: ""
e7874705   liuqimichale   init
163
164
165
166
        },
        allKeyWord: {
          _1: [1, 2, 3, 4, 5, 6, 7],
          _2: [8, 9, 0],
b89c7412   刘淇   赤峰出场码
167
168
169
170
171
          _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
172
        },
12335653   刘淇   房山临时车牌
173
        activeKeyWordIndex: 1,
e7874705   liuqimichale   init
174
        keyBoardStatus: false,
12335653   刘淇   房山临时车牌
175
        firstWrapStatus: false,
b89c7412   刘淇   赤峰出场码
176
        carNum: "",
12335653   刘淇   房山临时车牌
177
178
179
180
181
        // 新增核心状态
        showInputArea: false, // 是否显示输入框
        loading: true, // 加载状态
        loadingText: "正在查询订单费用...", // 加载提示文本
        queryType: "url" // 当前查询类型:url/缓存/manual
b89c7412   刘淇   赤峰出场码
182
      };
e7874705   liuqimichale   init
183
    },
2c31a41c   liuqimichale   赤峰静态码测试完成
184
    mounted() {
12335653   刘淇   房山临时车牌
185
186
187
188
      const params = this.$route.query;
      // URL有参数时,启动「URL参数→缓存→手动」查询流程
      if (Object.keys(params).length > 0) {
        this.queryByUrlParams();
2c31a41c   liuqimichale   赤峰静态码测试完成
189
      } else {
12335653   刘淇   房山临时车牌
190
191
        this.loading = false;
        this.showInputArea = true;
2c31a41c   liuqimichale   赤峰静态码测试完成
192
      }
e7874705   liuqimichale   init
193
194
    },
    methods: {
12335653   刘淇   房山临时车牌
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
      // 步骤1:用URL参数查询费用
      queryByUrlParams() {
        this.loadingText = "正在查询订单费用...";
        const params = this.$route.query;
        // 组装接口参数
        const apiParams = {
          ...params,
          payType: this.$utils.IsWeixinOrAlipay(),
          terminalSource: "7",
          app_id: 1,
          salt: 2,
          deviceInfo: 3,
          sign_type: "md5",
          sign: 4,
          token: "666",
          carNumber: params.carNumber || "" // URL中的车牌(如果有)
        };
b89c7412   刘淇   赤峰出场码
212
  
12335653   刘淇   房山临时车牌
213
        noCarQRcodeInOutPark(apiParams).then(res => {
4cc8ccf9   刘淇   房山 临牌
214
215
        console.log(res)
          if (res.code == 0 && res.data) {
12335653   刘淇   房山临时车牌
216
217
218
219
220
221
222
223
224
225
226
227
228
            // URL参数查询到费用 → 跳支付页
            sessionStorage.setItem('tmpObjCookie', JSON.stringify(res.data));
            this.$router.push({ path: "pay" });
          } else {
            // URL参数未查询到费用 → 执行步骤2:缓存车牌查询
            this.queryByCachePlate();
          }
        }).catch(err => {
          console.error("URL参数查询失败:", err);
          // URL查询异常 → 执行步骤2:缓存车牌查询
          this.queryByCachePlate();
        });
      },
da4c69a8   刘淇   赤峰出场码
229
  
12335653   刘淇   房山临时车牌
230
231
232
233
234
235
236
237
238
239
240
      // 步骤2:用缓存车牌查询费用
      queryByCachePlate() {
        this.loadingText = "正在尝试缓存车牌查询...";
        const cachePlate = localStorage.getItem('virtualCarPlate');
        // 无缓存车牌 → 直接显示输入框
        if (!cachePlate) {
          this.loading = false;
          this.showInputArea = true;
          this.$msgbox("提示", "未查询到订单信息,请手动输入车牌查询");
          return;
        }
b89c7412   刘淇   赤峰出场码
241
  
12335653   刘淇   房山临时车牌
242
243
244
245
246
247
248
249
250
251
252
253
254
255
        const params = this.$route.query;
        // 组装接口参数(用缓存车牌)
        const apiParams = {
          ...params,
          payType: this.$utils.IsWeixinOrAlipay(),
          terminalSource: "7",
          app_id: 1,
          salt: 2,
          deviceInfo: 3,
          sign_type: "md5",
          sign: 4,
          token: "666",
          carNumber: cachePlate
        };
b89c7412   刘淇   赤峰出场码
256
  
12335653   刘淇   房山临时车牌
257
258
        noCarQRcodeInOutPark(apiParams).then(res => {
          this.loading = false;
4cc8ccf9   刘淇   房山 临牌
259
          if (res.code == 0 && res.data) {
12335653   刘淇   房山临时车牌
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
            // 缓存车牌查询到费用 → 跳支付页
            sessionStorage.setItem('tmpObjCookie', JSON.stringify(res.data));
            this.$router.push({ path: "pay" });
          } else {
            // 缓存车牌未查询到费用 → 显示输入框
            this.showInputArea = true;
            this.$msgbox("提示", `缓存车牌【${cachePlate}】未查询到订单,请手动输入车牌查询`);
          }
        }).catch(err => {
          this.loading = false;
          console.error("缓存车牌查询失败:", err);
          // 缓存查询异常 → 显示输入框
          this.showInputArea = true;
          this.$msgbox("提示", "缓存车牌查询失败,请手动输入车牌重试");
        });
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
276
  
12335653   刘淇   房山临时车牌
277
278
279
280
281
282
283
284
285
      // 步骤3:用户手动输入车牌查询
      submitFn() {
        // 校验输入
        let plateLicense = "";
        if (this.formData.commonCard === "1") {
          plateLicense = this.palindrome(this.plate_license_1);
          if (plateLicense.length < 7) {
            this.$msgbox("提示", "请输入正确的普通车牌号(7位)");
            return;
2947f4d1   liuqimichale   市医院静态码 +弹窗样式
286
          }
12335653   刘淇   房山临时车牌
287
288
289
290
291
        } else if (this.formData.commonCard === "2") {
          plateLicense = this.palindrome(this.plate_license_2);
          if (plateLicense.length < 8) {
            this.$msgbox("提示", "请输入正确的新能源车牌号(8位)");
            return;
2947f4d1   liuqimichale   市医院静态码 +弹窗样式
292
          }
12335653   刘淇   房山临时车牌
293
294
295
296
297
298
299
300
        } else if (this.formData.commonCard === "3") {
          plateLicense = this.carNum.trim();
          if (!plateLicense) {
            this.$msgbox("提示", "请输入虚拟临时车牌");
            return;
          }
        }
        this.carNum = plateLicense;
67b6417e   刘淇   房山 扫码
301
  
12335653   刘淇   房山临时车牌
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
        // 调用接口查询
        this.loading = true;
        this.loadingText = "正在查询...";
        const params = this.$route.query;
        const apiParams = {
          ...params,
          payType: this.$utils.IsWeixinOrAlipay(),
          terminalSource: "7",
          app_id: 1,
          salt: 2,
          deviceInfo: 3,
          sign_type: "md5",
          sign: 4,
          token: "666",
          carNumber: plateLicense
        };
67b6417e   刘淇   房山 扫码
318
  
12335653   刘淇   房山临时车牌
319
320
        noCarQRcodeInOutPark(apiParams).then(res => {
          this.loading = false;
4cc8ccf9   刘淇   房山 临牌
321
          if (res.code == 0 && res.data) {
12335653   刘淇   房山临时车牌
322
323
324
325
326
327
            // 手动输入查询到费用 → 跳支付页
            sessionStorage.setItem('tmpObjCookie', JSON.stringify(res.data));
            this.$router.push({ path: "pay" });
          } else {
            // 手动输入未查询到费用 → 提示
            this.$msgbox("提示", res.message || "未查询到该车牌的订单信息");
2c31a41c   liuqimichale   赤峰静态码测试完成
328
          }
12335653   刘淇   房山临时车牌
329
330
331
332
        }).catch(err => {
          this.loading = false;
          console.error("手动查询失败:", err);
          this.$msgbox("提示", "查询失败,请稍后重试");
b89c7412   刘淇   赤峰出场码
333
        });
e7874705   liuqimichale   init
334
      },
12335653   刘淇   房山临时车牌
335
336
337
338
339
340
341
342
  
      // 原有辅助方法(不变)
      getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
343
      changeTab() {
b89c7412   刘淇   赤峰出场码
344
        this.keyBoardStatus = false;
b89c7412   刘淇   赤峰出场码
345
        this.firstWrapStatus = false;
2c31a41c   liuqimichale   赤峰静态码测试完成
346
347
      },
      clickFirstWrap() {
b89c7412   刘淇   赤峰出场码
348
349
350
        this.firstWrapStatus = true;
        this.keyBoardStatus = false;
        this.formData.num0 = "";
e7874705   liuqimichale   init
351
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
352
      selectFirstWord(event) {
12335653   刘淇   房山临时车牌
353
        if (event.target.localName !== "span") return;
b89c7412   刘淇   赤峰出场码
354
        this.formData.num0 = event.target.innerText;
b89c7412   刘淇   赤峰出场码
355
        this.firstWrapStatus = false;
b89c7412   刘淇   赤峰出场码
356
357
        this.keyBoardStatus = true;
        this.activeKeyWordIndex = 1;
e7874705   liuqimichale   init
358
      },
12335653   刘淇   房山临时车牌
359
      clickKeyBoard(item) {
b89c7412   刘淇   赤峰出场码
360
        this.formData["num" + this.activeKeyWordIndex] = item;
12335653   刘淇   房山临时车牌
361
362
        const maxIndex = this.formData.commonCard === "1" ? 6 : 7;
        if (this.activeKeyWordIndex < maxIndex) {
b89c7412   刘淇   赤峰出场码
363
          this.activeKeyWordIndex++;
e7874705   liuqimichale   init
364
        } else {
12335653   刘淇   房山临时车牌
365
          this.keyBoardStatus = false;
e7874705   liuqimichale   init
366
367
        }
      },
12335653   刘淇   房山临时车牌
368
      deleteWord() {
e7874705   liuqimichale   init
369
        if (this.activeKeyWordIndex > 1) {
b89c7412   刘淇   赤峰出场码
370
371
          this.formData["num" + (this.activeKeyWordIndex - 1)] = "";
          this.activeKeyWordIndex--;
e7874705   liuqimichale   init
372
373
        }
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
374
      clickKeyWordWrap(activeKeyWordIndex) {
b89c7412   刘淇   赤峰出场码
375
376
377
        this.keyBoardStatus = true;
        this.activeKeyWordIndex = activeKeyWordIndex;
        this.formData["num" + this.activeKeyWordIndex] = "";
e7874705   liuqimichale   init
378
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
379
      palindrome(str) {
b89c7412   刘淇   赤峰出场码
380
381
        var arr = str.split("");
        arr = arr.filter(function(val) {
e7874705   liuqimichale   init
382
          return (
12335653   刘淇   房山临时车牌
383
384
385
            val !== " " && val !== "," && val !== "." && val !== "?" && val !== ":" &&
            val !== ";" && val !== "`" && val !== "'" && val !== "_" && val !== "/" &&
            val !== "-" && val !== "\\" && val !== "" && val !== "(" && val !== ")"
b89c7412   刘淇   赤峰出场码
386
387
388
          );
        });
        return arr.join("");
e7874705   liuqimichale   init
389
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
390
      checkIsHasSpecialStr(str) {
b89c7412   刘淇   赤峰出场码
391
392
        var flag = false;
        var arr = str.split("");
e7874705   liuqimichale   init
393
394
        arr.forEach(val => {
          if (
12335653   刘淇   房山临时车牌
395
396
397
398
399
            val === "!" || val === "}" || val === "{" || val === "]" || val === "[" ||
            val === "&" || val === "$" || val === "@" || val === " " || val === "," ||
            val === "." || val === "?" || val === ":" || val === ";" || val === "`" ||
            val === "'" || val === "_" || val === "/" || val === "-" || val === "\\" ||
            val === "" || val === "(" || val === ")"
e7874705   liuqimichale   init
400
          ) {
b89c7412   刘淇   赤峰出场码
401
            flag = true;
e7874705   liuqimichale   init
402
          }
b89c7412   刘淇   赤峰出场码
403
404
        });
        return flag;
e7874705   liuqimichale   init
405
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
406
      checkIsHasChineseStr(str) {
b89c7412   刘淇   赤峰出场码
407
        var Reg = /.*[\u4e00-\u9fa5]+.*/;
12335653   刘淇   房山临时车牌
408
        return Reg.test(str);
e7874705   liuqimichale   init
409
410
411
      }
    },
    computed: {
2c31a41c   liuqimichale   赤峰静态码测试完成
412
      plate_license_1() {
12335653   刘淇   房山临时车牌
413
414
        return this.formData.num0 + this.formData.num1 + this.formData.num2 +
          this.formData.num3 + this.formData.num4 + this.formData.num5 + this.formData.num6;
e7874705   liuqimichale   init
415
      },
2c31a41c   liuqimichale   赤峰静态码测试完成
416
      plate_license_2() {
12335653   刘淇   房山临时车牌
417
418
        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;
e7874705   liuqimichale   init
419
420
      }
    }
b89c7412   刘淇   赤峰出场码
421
  };
e7874705   liuqimichale   init
422
  </script>
12335653   刘淇   房山临时车牌
423
  
e7874705   liuqimichale   init
424
  <style lang="scss" scoped>
12335653   刘淇   房山临时车牌
425
426
427
428
429
430
431
  .flex-items-center {
    display: flex;
    align-items: center;
  }
  .wrap {
    padding: 0 18px;
    .radio-box {
e7874705   liuqimichale   init
432
433
      display: flex;
      align-items: center;
12335653   刘淇   房山临时车牌
434
435
436
437
438
439
      justify-content: flex-end;
      margin-top: 18px;
      text-align: right;
      font-size:16px;
      input[type="radio"] {
        display: none;
e7874705   liuqimichale   init
440
      }
12335653   刘淇   房山临时车牌
441
442
443
      label {
        padding-left: 0.6rem;
        cursor: pointer;
e7874705   liuqimichale   init
444
        img {
12335653   刘淇   房山临时车牌
445
446
          width:1rem;
          margin-right: 0.1rem;
e7874705   liuqimichale   init
447
448
449
        }
      }
    }
12335653   刘淇   房山临时车牌
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
    .num-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      & > div {
        width: 1.8rem;
        height: 1.8rem;
        border: 1px solid #e4e4e4;
        span {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          height: 100%;
          font-size: 1rem;
          color: #828282;
e7874705   liuqimichale   init
466
467
468
        }
      }
    }
12335653   刘淇   房山临时车牌
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
    .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;
      cursor: pointer;
    }
  }
  .first-word-wrap {
    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;
        box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.35);
        border-radius: 0.16rem;
        text-align: center;
        &.bordernone {
          border: none;
          box-shadow: none
        }
e7874705   liuqimichale   init
504
        span {
12335653   刘淇   房山临时车牌
505
          box-sizing: border-box;
e7874705   liuqimichale   init
506
          display: flex;
e7874705   liuqimichale   init
507
508
          align-items: center;
          justify-content: center;
12335653   刘淇   房山临时车牌
509
510
511
          text-align: center;
          width: 100%;
          height: 100%;
e7874705   liuqimichale   init
512
          background-color: #fff;
12335653   刘淇   房山临时车牌
513
          color: #000;
e7874705   liuqimichale   init
514
          border-radius: 0.125rem;
12335653   刘淇   房山临时车牌
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
        }
      }
      &: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;
e7874705   liuqimichale   init
553
          &:active {
e7874705   liuqimichale   init
554
            background-color: #D2D5DB;
e7874705   liuqimichale   init
555
          }
12335653   刘淇   房山临时车牌
556
557
558
559
560
        }
        &.delete {
          background-color: #465266;
          img {
            width: 1.15rem;
e7874705   liuqimichale   init
561
562
563
          }
        }
      }
12335653   刘淇   房山临时车牌
564
565
566
567
568
569
    }
    .cancel {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      span {
e7874705   liuqimichale   init
570
        display: flex;
e7874705   liuqimichale   init
571
        align-items: center;
12335653   刘淇   房山临时车牌
572
573
574
575
576
577
578
        justify-content: center;
        width: 3.6rem;
        height: 1.8rem;
        background-color: #465266;
        color: #fff;
        border-radius: 0.125rem;
        cursor: pointer;
e7874705   liuqimichale   init
579
580
      }
    }
12335653   刘淇   房山临时车牌
581
582
583
584
585
586
587
588
589
590
591
592
593
  }
  input[type="text"]:focus {
    border: 1px solid #e4e4e4 !important;
  }
  .iphone-box {
    border: 1px solid #e4e4e4;
    width: 100%;
    height: 1.8rem;
    line-height: 1.8rem;
    padding-left: 20px;
    font-size: 14px;
  }
  </style>