1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/fa-citys/fa-citys"],{"545c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("9736")),s=o(n("7a03")),a=o(n("8c17"));function o(t){return t&&t.__esModule?t:{default:t}}var u={name:"fa-citys",props:{value:{type:Boolean,default:!1},defaultRegion:{type:Array,default:function(){return[]}},areaCode:{type:Array,default:function(){return[]}},maskCloseAble:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:0}},data:function(){return{cityValue:"",isChooseP:!1,province:0,provinces:i.default,isChooseC:!1,city:0,citys:s.default[0],isChooseA:!1,area:0,areas:a.default[0][0],tabsIndex:0}},mounted:function(){this.init()},computed:{isChange:function(){return this.tabsIndex>1},genTabsList:function(){var t=[{name:"请选择"}];return this.isChooseP&&(t[0]["name"]=this.provinces[this.province]["label"],t[1]={name:"请选择"}),this.isChooseC&&(t[1]["name"]=this.citys[this.city]["label"],t[2]={name:"请选择"}),this.isChooseA&&(t[2]["name"]=this.areas[this.area]["label"]),t},uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},methods:{init:function(){3==this.areaCode.length?(this.setProvince("",this.areaCode[0]),this.setCity("",this.areaCode[1]),this.setArea("",this.areaCode[2])):3==this.defaultRegion.length&&(this.setProvince(this.defaultRegion[0],""),this.setCity(this.defaultRegion[1],""),this.setArea(this.defaultRegion[2],""))},setProvince:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.provinces.map((function(i,s){(n?i.value==n:i.label==e)&&t.provinceChange(s)}))},setCity:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.citys.map((function(i,s){(n?i.value==n:i.label==e)&&t.cityChange(s)}))},setArea:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.areas.map((function(i,s){(n?i.value==n:i.label==e)&&(t.isChooseA=!0,t.area=s)}))},close:function(){this.$emit("input",!1)},tabsChange:function(t){this.tabsIndex=t},provinceChange:function(t){this.isChooseP=!0,this.isChooseC=!1,this.isChooseA=!1,this.province=t,this.citys=s.default[t],this.tabsIndex=1},cityChange:function(t){this.isChooseC=!0,this.isChooseA=!1,this.city=t,this.areas=a.default[this.province][t],this.tabsIndex=2},areaChange:function(t){this.isChooseA=!0,this.area=t;var e={};e.province=this.provinces[this.province],e.city=this.citys[this.city],e.area=this.areas[this.area],this.$emit("city-change",e),this.close()}}};e.default=u},"619b":function(t,e,n){"use strict";var i=n("fdaf"),s=n.n(i);s.a},b858:function(t,e,n){"use strict";n.r(e);var i=n("545c"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},cc0f:function(t,e,n){"use strict";n.r(e);var i=n("e9ed"),s=n("b858");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);n("619b");var o,u=n("f0c5"),c=Object(u["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=c.exports},e9ed:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,"0cac"))},uTabs:function(){return n.e("uview-ui/components/u-tabs/u-tabs").then(n.bind(null,"8978"))},uCellGroup:function(){return n.e("uview-ui/components/u-cell-group/u-cell-group").then(n.bind(null,"027d"))},uCellItem:function(){return n.e("uview-ui/components/u-cell-item/u-cell-item").then(n.bind(null,"e84c"))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"ba52"))}},s=function(){var t=this,e=t.$createElement;t._self._c},a=[]},fdaf:function(t,e,n){}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/fa-citys/fa-citys-create-component',
- {
- 'components/fa-citys/fa-citys-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('5486')['createComponent'](__webpack_require__("cc0f"))
- })
- },
- [['components/fa-citys/fa-citys-create-component']]
- ]);
|