(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/life/temp/index"],{"20b1":function(e,t,n){},"6d7a":function(e,t,n){"use strict";vari=n("20b1"),r=n.n(i);r.a},"8a4e":function(e,t,n){"use strict";n.r(t);vari=n("de17"),r=n.n(i);for(varoini)"default"!==o&&function(e){n.d(t,e,(function(){returni[e]}))}(o);t["default"]=r.a},bd38:function(e,t,n){"use strict";n.d(t,"b",(function(){returnr})),n.d(t,"c",(function(){returno})),n.d(t,"a",(function(){returni}));vari={tkiTree:function(){returnn.e("components/tki-tree/tki-tree").then(n.bind(null,"4253"))}},r=function(){vare=this,t=e.$createElement;e._self._c},o=[]},cc08:function(e,t,n){"use strict";(function(e){n("ef82");i(n("66fd"));vart=i(n("d919"));functioni(e){returne&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},d919:function(e,t,n){"use strict";n.r(t);vari=n("bd38"),r=n("8a4e");for(varoinr)"default"!==o&&function(e){n.d(t,e,(function(){returnr[e]}))}(o);n("6d7a");vara,c=n("f0c5"),l=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=l.exports},de17:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void0;vari=n("aa63");functionr(e){returnl(e)||c(e)||a(e)||o()}functiono(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functiona(e,t){if(e){if("string"===typeofe)returnu(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void0}}functionc(e){if("undefined"!==typeofSymbol&&Symbol.iteratorinObject(e))returnArray.from(e)}functionl(e){if(Array.isArray(e))returnu(e)}functionu(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,i=newArray(t);n<t;n++)i[n]=e[n];returni}getApp();vars=function(){n.e("components/select-tree/select-tree").then(function(){returnresolve(n("c87c"))}.bind(null,n)).catch(n.oe)},d=function(){n.e("components/tki-tree/tki-tree").then(function(){returnresolve(n("4253"))}.bind(null,n)).catch(n.oe)},f=[{city_id:1,id:1,isShow:1,lat:"39.904030",level:0,lng:"116.407526",mergerName:"北京",name:"北京市",parentId:0,children:[{areaCode:"110100000000",children:null,city_id:2,id:35,isShow:1,lat:"39.904030",level:1,lng:"116.407526",mergerName:"北京",name:"北京市",parentId:1}]},{areaCode:"130000000000",children:[{areaCode:"130100000000",children:null,city_id:13268,id:37,isShow:1,lat:"38.042306",level:1,lng:"114.514859",mergerName:"河北,石家庄",name:"石家庄市",parentId:13267},{areaCode:"130200000000",children:null,city_id:18128,id:38,isShow:1,lat:"39.630867",level:1,lng:"118.180193",mergerName:"河北,唐山",name:"唐山市",parentId:13267}],city_id:13267,id:3,isShow:1,lat:"38.037057",level:0,lng:"114.468664",mergerName:"河北",name:"河北省",parentId:0}],h=[{region:[{name:"默认全国",city_id:0}],regionName:"默认全国",first:1,price:0,_continue:1,continue_price:0}],p={components:{selectTree:s,tkiTree:d},data:function(){return{price:"0.00",stepNum:0,stepPrice:0,name:"",type:0,setpFreight:!1,list:f,templateList:h}},mounted:function(){vare=this;(0,i.citys)().then((function(t){varn=t.data;e.list=n}))},methods:{radioChange:function(e){this.type=e.detail.value},switchChange:function(e){this.setpFreight=e.detail.value},appointSwitchChange:function(e){this.$set(this.templateList[e],"setpFreight",!this.templateList[e].setpFreight),console.log(this.templateList)},showTree:function(){this.$refs.tkitree._show()},delTempItem:function(e){console.log(e),this.templateList.splice(e,1)},treeConfirm:function(e){vart=this.list,n=e,i=[],o=[];n.forEach((function(e,n){if(0==e.parentId){i.push(e.name);varr={name:e.name,city_id:e.city_id,children:[]};o.push(r)}elseo.forEach((function(t,n){e.parentId==t.city_id&&t.children.push({city_id:e.city_id})})),t.forEach((function(n,r){e.parentId==t[r].city_id&&i.push(t[r].name)}))}))