星油车管小程序
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.
 
 
 
 

10 lines
4.0 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/components/plate/index"],{3801:function(t,e,n){"use strict";n.r(e);var i=n("7666"),u=n("d25e");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("e0ca");var l=n("f0c5"),s=Object(l["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},7666:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.plateNumber.length),n=this.plateNumber.length<2||this.isInputZh,i=(6===this.plateNumber.length||7===this.plateNumber.length)&&!this.isInputZh;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n,g2:i}})},u=[]},d25e:function(t,e,n){"use strict";n.r(e);var i=n("defa"),u=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=u.a},defa:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=i(n("2744")),a={data:function(){return{plateNumber:"",plateShow:!1,keyVehicle1:["京","沪","粤","津","冀","豫","云","辽","黑","湘"],keyVehicle2:["皖","鲁","新","苏","浙","赣","鄂","桂","甘"],keyVehicle3:["晋","蒙","陕","吉","闽","贵","渝","川"],keyVehicle4:["青","藏","琼","宁","使"],keyNumber:["1","2","3","4","5","6","7","8","9","0"],keyEnInput1:["Q","W","E","R","T","Y","U","I","O","P"],keyEnInput2:["A","S","D","F","G","H","J","K","L"],keyEnInput3:["Z","X","C","V","B","N","M"],keyEnInput4:["港","澳","学","警","临","挂"],isInputZh:!1,src:""}},props:{isShow:{type:Boolean,default:!0},safeArea:{type:Boolean,default:!1}},mounted:function(){this.src=u.default},onShow:function(){},watch:{plateNumber:function(t){this.$emit("update:plateNum",t)}},methods:{init:function(){this.plateNumber=""},open:function(){this.plateShow=!0},close:function(e){var n=this;if(this.plateNumber&&this.plateNumber.length<7||1==e)return t.showModal({title:"温馨提示",content:"关闭将会清空您已输入的内容",success:function(t){t.confirm?(n.init(),n.plateShow=!1,n.$emit("change",{value:n.plateNumber})):t.cancel}});this.isVehicleNumber(this.plateNumber)?(this.plateShow=!1,this.$emit("change",{value:this.plateNumber})):this.plateNumber?t.showToast({title:"车牌号输入错误,请重新输入",duration:2e3,icon:"none"}):this.plateShow=!1},isVehicleNumber:function(t){return 7==t.length?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳临]{1}$/.test(t):8==t.length&&/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(t)},plateHead:function(t){this.plateNumber||(this.plateNumber=this.plateNumber+t)},plateInput:function(t){this.isInputZh||"I"==t||"O"==t||this.plateNumber.length<8&&(this.plateNumber=this.plateNumber+t)},plateNum:function(t){this.isInputZh||this.plateNumber.length>=2&&this.plateNumber.length<8&&(this.plateNumber=this.plateNumber+t)},plateLast:function(t){this.isInputZh||6!==this.plateNumber.length&&7!==this.plateNumber.length||(this.plateNumber=this.plateNumber+t,this.isInputZh=!0)},plateDel:function(){this.plateNumber&&(this.plateNumber=this.plateNumber.substring(0,this.plateNumber.length-1)),6!==this.plateNumber.length&&7!==this.plateNumber.length||(this.isInputZh=!1)}}};e.default=a}).call(this,n("543d")["default"])},e0ca:function(t,e,n){"use strict";var i=n("e199"),u=n.n(i);u.a},e199:function(t,e,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'ChargingStation/components/plate/index-create-component',
{
'ChargingStation/components/plate/index-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("3801"))
})
},
[['ChargingStation/components/plate/index-create-component']]
]);