星油车管小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
25 KiB

{"version":3,"sources":["webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/components/plate/index.vue?f084","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/components/plate/index.vue?50f5","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/components/plate/index.vue?1001","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/components/plate/index.vue?0f43","uni-app:///ChargingStation/components/plate/index.vue","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/components/plate/index.vue?1cde","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/components/plate/index.vue?3282"],"names":["data","plateNumber","plateShow","keyVehicle1","keyVehicle2","keyVehicle3","keyVehicle4","keyNumber","keyEnInput1","keyEnInput2","keyEnInput3","keyEnInput4","isInputZh","src","props","isShow","type","default","safeArea","mounted","onShow","watch","methods","init","open","close","title","content","success","value","uni","duration","icon","isVehicleNumber","plateHead","plateInput","plateNum","plateLast","plateDel"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AACgN;AAChN,gBAAgB,wNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACvBA;AAAA;AAAA;AAAA;AAAszB,CAAgB,s0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;AC0F10B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AATA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA,eAWA;EACAA;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;EACA;EACAE;IACA;EACA;EACAC;EACAC;IACApB;MACA;IACA;EACA;EACAqB;IACA;AACA;AACA;IACAC;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;IACA;IACA;AACA;AACA;IACAC;MAAA;MACA;QACA;UACAC;UACAC;UACAC;YACA;cACA;cACA;cACA;cACA;gBACAC;cACA;YACA;UACA;QACA;MACA;MACA;QACA;QACA;QACA;UACAA;QACA;MACA;QACAC;UACAJ;UACAK;UACAC;QACA;MAEA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA,WACA;MACA;MACA;QACA;MACA;QACA;MACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;MACA;QACA;MACA;MACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;MACA;QACA;MACA;MACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;MACA;QACA;MACA;MACA;QACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;QACA;MACA;MAEA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC9PA;AAAA;AAAA;AAAA;AAA6gD,CAAgB,i+CAAG,EAAC,C;;;;;;;;;;;ACAjiD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"ChargingStation/components/plate/index.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=871d8b4c&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"ChargingStation/components/plate/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=871d8b4c&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.plateNumber.length\n var g1 = _vm.plateNumber.length < 2 || _vm.isInputZh\n var g2 =\n (_vm.plateNumber.length === 6 || _vm.plateNumber.length === 7) &&\n !_vm.isInputZh\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- 车牌组件 -->\r\n\t<view class=\"plate-content\">\r\n\t\t<view class=\"plate-popup\" v-show=\"plateShow\">\r\n\t\t\t<view class=\"plate-close flex jw\" style=\"padding: 0 20rpx;box-sizing: border-box;\">\r\n\t\t\t\t<text @click=\"close(1)\">关闭</text>\r\n\t\t\t\t<text @click=\"close(2)\" v-if=\"plateNumber.length > 6\">确定 </text>\r\n\t\t\t</view>\r\n\t\t\t<!-- <view class=\"numbox\" v-if=\"isShow\">\r\n\t\t\t\t<block v-for=\"(item, index) in 7\" :key=\"index\">\r\n\t\t\t\t\t<input v-model=\"plateNumber[index]\" disabled class=\"numInput\" maxlength=\"1\" type=\"text\" value=\"\"\r\n\t\t\t\t\t\t@click=\"carInputClick(index)\" />\r\n\t\t\t\t</block>\r\n\t\t\t\t<input v-model=\"plateNumber[7]\" disabled class=\"newnumInput\" maxlength=\"1\" type=\"text\" value=\"\"\r\n\t\t\t\t\tplaceholder=\"新能源\" placeholder-class=\"newpl\" @click=\"carInputClick(7)\" />\r\n\t\t\t</view> -->\r\n\t\t\t<!-- 汉字键盘 -->\r\n\t\t\t<view v-show=\"!plateNumber\" :class=\"safeArea ? 'isPhoneX' : ''\">\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" v-for=\"(item, itemIndex) in keyVehicle1\" :key=\"itemIndex\"\r\n\t\t\t\t\t\t@click=\"plateHead(item)\">{{ item }}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" v-for=\"(item, itemIndex) in keyVehicle2\" :key=\"itemIndex\"\r\n\t\t\t\t\t\t@click=\"plateHead(item)\">{{ item }}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" v-for=\"(item, itemIndex) in keyVehicle3\" :key=\"itemIndex\"\r\n\t\t\t\t\t\t@click=\"plateHead(item)\">{{ item }}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" v-for=\"(item, itemIndex) in keyVehicle4\" :key=\"itemIndex\"\r\n\t\t\t\t\t\t@click=\"plateHead(item)\">{{ item }}</view>\r\n\t\t\t\t\t<!-- 删除 -->\r\n\t\t\t\t\t<view class=\"plate-popup-item-list delImg\" @click=\"plateDel\">\r\n\t\t\t\t\t\t<image :src=\"src\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 数字字母键盘 -->\r\n\t\t\t<view v-show=\"plateNumber\" :class=\"safeArea ? 'isPhoneX' : '' \">\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<!-- 数字选择 -->\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\"\r\n\t\t\t\t\t\t:class=\"plateNumber.length < 2 || isInputZh ? 'plate-popup-item-disabled' : ''\"\r\n\t\t\t\t\t\tv-for=\"(item, itemIndex) in keyNumber\" :key=\"itemIndex\" @click=\"plateNum(item)\">{{ item }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" :class=\"!isInputZh ? '' : 'plate-popup-item-disabled'\"\r\n\t\t\t\t\t\tv-for=\"(item, itemIndex) in keyEnInput1\" :key=\"itemIndex\" @click=\"plateInput(item)\">\r\n\t\t\t\t\t\t<view :class=\"item =='I' || item == 'O' ? 'plate-popup-item-disabled' : ''\">{{ item }}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" :class=\"!isInputZh ? '' : 'plate-popup-item-disabled'\"\r\n\t\t\t\t\t\tv-for=\"(item, itemIndex) in keyEnInput2\" :key=\"itemIndex\" @click=\"plateInput(item)\">{{ item }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<view class=\"plate-popup-item-list\" :class=\"!isInputZh ? '' : 'plate-popup-item-disabled'\"\r\n\t\t\t\t\t\tv-for=\"(item, itemIndex) in keyEnInput3\" :key=\"itemIndex\" @click=\"plateInput(item)\">{{ item }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"plate-popup-item\">\r\n\t\t\t\t\t<!-- 车牌最后一位-->\r\n\t\t\t\t\t<view class=\"plate-popup-item-list del2\"\r\n\t\t\t\t\t\t:class=\"(plateNumber.length === 6 || plateNumber.length === 7) && !isInputZh ? '' : 'plate-popup-item-disabled'\"\r\n\t\t\t\t\t\tv-for=\"(item, itemIndex) in keyEnInput4\" :key=\"itemIndex\" @click=\"plateLast(item)\">{{ item }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- 删除 -->\r\n\t\t\t\t\t<view class=\"plate-popup-item-list delImg\" @click=\"plateDel\">\r\n\t\t\t\t\t\t<image :src=\"src\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/*\r\n\t * @change By:CkCode\r\n\t * @logs:\r\n\t * 1:将键盘和输入框整合到了一起\r\n\t * 2:适配苹果X \r\n\t * 3:增加校验规则\r\n\t * 4:增加了错误提示\r\n\t * @Last Modified time: 2022-10-17\r\n\t */\r\n\timport plateDel from './KeyboardDelete.png'\r\n\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tplateNumber: '', //输入的车牌\r\n\t\t\t\tplateShow: false, //车牌选择是否打开\r\n\t\t\t\tkeyVehicle1: ['京', '沪', '粤', '津', '冀', '豫', '云', '辽', '黑', '湘'],\r\n\t\t\t\tkeyVehicle2: ['皖', '鲁', '新', '苏', '浙', '赣', '鄂', '桂', '甘'],\r\n\t\t\t\tkeyVehicle3: ['晋', '蒙', '陕', '吉', '闽', '贵', '渝', '川'],\r\n\t\t\t\tkeyVehicle4: ['青', '藏', '琼', '宁', '使'],\r\n\t\t\t\tkeyNumber: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\r\n\t\t\t\tkeyEnInput1: ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\r\n\t\t\t\tkeyEnInput2: ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\r\n\t\t\t\tkeyEnInput3: ['Z', 'X', 'C', 'V', 'B', 'N', 'M'],\r\n\t\t\t\tkeyEnInput4: ['港', '澳', '学', '警', '临', '挂'],\r\n\t\t\t\tisInputZh: false, //是否输入了特殊字符\r\n\t\t\t\tsrc: '',\r\n\t\t\t};\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\t//是否开启输入框\r\n\t\t\tisShow: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t//是否适配安全线(iphone X)\r\n\t\t\tsafeArea: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.src = plateDel;\r\n\t\t},\r\n\t\tonShow() {},\r\n\t\twatch: {\r\n\t\t\tplateNumber(num) {\r\n\t\t\t\tthis.$emit('update:plateNum', num);\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t/**\r\n\t\t\t * @desc 初始化\r\n\t\t\t */\r\n\t\t\tinit() {\r\n\t\t\t\tthis.plateNumber = '';\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 打开下拉栏\r\n\t\t\t */\r\n\t\t\topen() {\r\n\t\t\t\tthis.plateShow = true;\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 关闭弹出的车牌\r\n\t\t\t */\r\n\t\t\tclose(e) {\r\n\t\t\t\tif ((this.plateNumber && this.plateNumber.length < 7) || e == 1) {\r\n\t\t\t\t\treturn uni.showModal({\r\n\t\t\t\t\t\ttitle: '温馨提示',\r\n\t\t\t\t\t\tcontent: '关闭将会清空您已输入的内容',\r\n\t\t\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\t\tthis.init();\r\n\t\t\t\t\t\t\t\tthis.plateShow = false;\r\n\t\t\t\t\t\t\t\t//传值到父组件\r\n\t\t\t\t\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\t\t\t\t\tvalue: this.plateNumber\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t} else if (res.cancel) {}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tif (this.isVehicleNumber(this.plateNumber)) {\r\n\t\t\t\t\tthis.plateShow = false;\r\n\t\t\t\t\t//传值到父组件,写成对象,方便后期改造\r\n\t\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\t\tvalue: this.plateNumber\r\n\t\t\t\t\t})\r\n\t\t\t\t} else if (this.plateNumber) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '车牌号输入错误,请重新输入',\r\n\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.plateShow = false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 车牌号验证方法\r\n\t\t\t */\r\n\t\t\tisVehicleNumber(vehicleNumber) {\r\n\t\t\t\tvar xreg =\r\n\t\t\t\t\t/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;\r\n\t\t\t\tvar creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳临]{1}$/;\r\n\t\t\t\tif (vehicleNumber.length == 7) {\r\n\t\t\t\t\treturn creg.test(vehicleNumber);\r\n\t\t\t\t} else if (vehicleNumber.length == 8) {\r\n\t\t\t\t\treturn xreg.test(vehicleNumber);\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 汉字选择\r\n\t\t\t */\r\n\t\t\tplateHead(plate) {\r\n\t\t\t\tif (!this.plateNumber) {\r\n\t\t\t\t\tthis.plateNumber = this.plateNumber + plate;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 字母选择\r\n\t\t\t */\r\n\t\t\tplateInput(plate) {\r\n\t\t\t\t//判断是否输入了字母\r\n\t\t\t\tif (this.isInputZh || plate == 'I' || plate == 'O') {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.plateNumber.length < 8) {\r\n\t\t\t\t\tthis.plateNumber = this.plateNumber + plate;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 数字选择\r\n\t\t\t */\r\n\t\t\tplateNum(plate) {\r\n\t\t\t\t//判断是否输入了字母\r\n\t\t\t\tif (this.isInputZh) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.plateNumber.length >= 2 && this.plateNumber.length < 8) {\r\n\t\t\t\t\tthis.plateNumber = this.plateNumber + plate;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 最后一位选择\r\n\t\t\t */\r\n\t\t\tplateLast(plate) {\r\n\t\t\t\t//判断是否输入了字母\r\n\t\t\t\tif (this.isInputZh) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.plateNumber.length === 6 || this.plateNumber.length === 7) {\r\n\t\t\t\t\tthis.plateNumber = this.plateNumber + plate;\r\n\t\t\t\t\tthis.isInputZh = true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @desc 删除\r\n\t\t\t */\r\n\t\t\tplateDel() {\r\n\t\t\t\tif (this.plateNumber) {\r\n\t\t\t\t\tthis.plateNumber = this.plateNumber.substring(0, this.plateNumber.length - 1);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (this.plateNumber.length === 6 || this.plateNumber.length === 7) {\r\n\t\t\t\t\tthis.isInputZh = false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*宽度转换vw*/\r\n\t@function vww($number) {\r\n\t\t@return ($number / 375) * 750+rpx;\r\n\t}\r\n\r\n\t.isPhoneX {\r\n\t\tpadding-bottom: env(safe-area-inset-bottom);\r\n\t}\r\n\r\n\t.numbox {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: space-between;\r\n\t\tbackground: #fff;\r\n\t\tpadding: 0 24rpx 32rpx;\r\n\r\n\t\t.numInput {\r\n\t\t\twidth: 76rpx;\r\n\t\t\theight: 96rpx;\r\n\t\t\tline-height: 92rpx;\r\n\t\t\ttext-align: center;\r\n\t\t\tbackground: #ffffff;\r\n\t\t\tborder-radius: 4rpx;\r\n\t\t\tborder: 2rpx solid #e6e6e6;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\tfont-family: SourceHanSansCN-Regular, SourceHanSansCN;\r\n\t\t\tfont-weight: 400;\r\n\t\t\tcolor: #333333;\r\n\t\t}\r\n\r\n\t\t.numInputon {\r\n\t\t\tposition: relative;\r\n\t\t\tborder: 2rpx solid #377cff;\r\n\r\n\t\t\t&::after {\r\n\t\t\t\twidth: 56rpx;\r\n\t\t\t\theight: 4rpx;\r\n\t\t\t\tbackground: #377cff;\r\n\t\t\t\tborder-radius: 2rpx;\r\n\t\t\t\tcontent: '';\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tbottom: 6rpx;\r\n\t\t\t\tleft: 12rpx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.newnumInput {\r\n\t\t\twidth: 76rpx;\r\n\t\t\theight: 96rpx;\r\n\t\t\tline-height: 92rpx;\r\n\t\t\ttext-align: center;\r\n\t\t\tborder-radius: 4rpx;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\tfont-family: SourceHanSansCN-Regular, SourceHanSansCN;\r\n\t\t\tfont-weight: 400;\r\n\t\t\tbackground: #e7faf1;\r\n\t\t\tborder: 2rpx dashed #0fd07e;\r\n\t\t\tcolor: #0fd07e;\r\n\t\t}\r\n\r\n\t\t.newnumInputon {\r\n\t\t\tposition: relative;\r\n\t\t\tborder: 2rpx solid #0fd07e;\r\n\r\n\t\t\t&::after {\r\n\t\t\t\twidth: 56rpx;\r\n\t\t\t\theight: 4rpx;\r\n\t\t\t\tbackground: #0fd07e;\r\n\t\t\t\tborder-radius: 2rpx;\r\n\t\t\t\tcontent: '';\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tbottom: 6rpx;\r\n\t\t\t\tleft: 12rpx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.newpl {\r\n\t\t\tfont-size: 24rpx;\r\n\t\t\tfont-family: SourceHanSansCN-Regular, SourceHanSansCN;\r\n\t\t\tfont-weight: 400;\r\n\t\t\tcolor: #00bf6e;\r\n\t\t\tline-height: 36rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.plate-popup {\r\n\t\tposition: fixed;\r\n\t\tz-index: 999;\r\n\t\tbackground-color: #e3e2e7;\r\n\t\t-webkit-box-shadow: 0 0 30upx rgba(0, 0, 0, 0.1);\r\n\t\tbox-shadow: 0 0 30upx rgba(0, 0, 0, 0.1);\r\n\t\tbottom: 0;\r\n\t\twidth: 100%;\r\n\t\toverflow: hidden;\r\n\t\ttext-align: center;\r\n\t\t$height: vww(35);\r\n\r\n\t\t//关闭\r\n\t\t.plate-close {\r\n\t\t\twidth: calc(100% - vww(10));\r\n\t\t\tbackground: #ffffff;\r\n\t\t\tline-height: vww(30);\r\n\t\t\tfont-size: vww(12);\r\n\t\t\ttext-align: right;\r\n\t\t\tpadding-right: vww(10);\r\n\t\t\tcolor: #00a7ea;\r\n\t\t}\r\n\r\n\t\t//键盘主体内容-单行\r\n\t\t.plate-popup-item {\r\n\t\t\tmargin: 0 auto;\r\n\t\t\toverflow: hidden;\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tdisplay: table;\r\n\r\n\t\t\t&:last-child {\r\n\t\t\t\tmargin-bottom: 2vw;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//键盘主体内容-单个\r\n\t\t.plate-popup-item-list {\r\n\t\t\tfloat: left;\r\n\t\t\tfont-size: vww(14);\r\n\t\t\twidth: 8vw;\r\n\t\t\tmargin: 0 1vw;\r\n\t\t\tmargin-top: 2vw;\r\n\t\t\theight: $height;\r\n\t\t\tline-height: $height;\r\n\t\t\tbackground: #ffffff;\r\n\t\t\tborder-radius: 5px;\r\n\t\t\tcolor: #4a4a4a;\r\n\t\t\toverflow: hidden;\r\n\r\n\t\t\t//删除键\r\n\t\t\t&.del {\r\n\t\t\t\twidth: 14vw;\r\n\t\t\t}\r\n\r\n\t\t\t&.del2 {\r\n\t\t\t\twidth: 12vw;\r\n\t\t\t}\r\n\r\n\t\t\t&.delImg {\r\n\t\t\t\twidth: 14vw;\r\n\t\t\t\tdisplay: flex;\r\n\r\n\t\t\t\t//删除键图片\r\n\t\t\t\timage {\r\n\t\t\t\t\twidth: 48rpx;\r\n\t\t\t\t\theight: 48rpx;\r\n\t\t\t\t\tmargin: 0 auto;\r\n\t\t\t\t\tdisplay: block;\r\n\t\t\t\t\tvertical-align: middle;\r\n\t\t\t\t\talign-self: center;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//特殊字符(港澳学)\r\n\t\t\t&.special {\r\n\t\t\t\tbackground: #f0f2f4;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.plate-popup-item-disabled {\r\n\t\t\tbackground: #f0f2f4;\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1702257189456\n var cssReload = require(\"D:/hbuliderx/HBuilderX.3.3.11.20220209.full/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}