星油车管小程序
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 line
3.5 KiB

9 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/pages/chooseLocation/index"],{"0c3c":function(e,n,t){},"351d":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,"e4f7"))}},a=function(){var e=this.$createElement,n=(this._self._c,Boolean(Number(this.List.length)));this.$mp.data=Object.assign({},{$root:{m0:n}})},o=[]},"560c":function(e,n,t){"use strict";var i=t("0c3c"),a=t.n(i);a.a},"5e06":function(e,n,t){"use strict";(function(e,n){var i=t("4ea4");t("9773");i(t("66fd"));var a=i(t("7a4c"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},"748c":function(e,n,t){"use strict";t.r(n);var i=t("8d1b"),a=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=a.a},"7a4c":function(e,n,t){"use strict";t.r(n);var i=t("351d"),a=t("748c");for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);t("560c");var s=t("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"0c2d8880",null,!1,i["a"],void 0);n["default"]=c.exports},"8d1b":function(e,n,t){"use strict";(function(e){var i=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("2482")),o={components:{charge:function(){Promise.all([t.e("common/vendor"),t.e("ChargingStation/components/charge/index")]).then(function(){return resolve(t("16ee"))}.bind(null,t)).catch(t.oe)}},data:function(){return{params:{province:!0,city:!0,area:!0},isShow:{address:!1},type:1,seachValue:"",List:[],TXSDK:null,location:"",addressData:{province:"",city:"",area:""},pageSize:{page_size:15,page:1}}},onLoad:function(e){var n=this;e.type&&(this.type=e.type.split("/")[0],this.location=e.type.split("/")[1],console.log(this.List,Boolean(Number(this.List))),this.TXSDK.reverseGeocoder({sig:"mOPvEv4WmyaxymycTYy00pSiad2jnQil",location:n.location,success:function(e){var t=e.result.address_component;n.addressData.province=t.province,n.addressData.city=t.city,n.addressData.area=t.district,console.log(e,n.addressData,"地址逆解析")},fail:function(e){console.log(e,"地址逆解析 错误")}}))},created:function(){this.TXSDK=new a.default({key:"UTXBZ-BUH6D-TQD44-HCEG4-UKOFT-U2BDN"})},methods:{seleClick:function(n){e.$emit("UpdateAddress",n,this.type),e.navigateBack()},chargeChange:function(e){this.addressData=Object.assign(this.addressData,e),console.log(e)},isShowFn:function(){this.isShow.address=!0},loding:function(n){n?e.showLoading({title:"加载中",mask:!0}):setTimeout((function(){e.hideLoading()}),500)},getRegion:function(){var n=this;this.loding(!0),this.TXSDK.search({sig:"mOPvEv4WmyaxymycTYy00pSiad2jnQil",keyword:n.seachValue,auto_extend:"0",region:-1!==n.addressData.province.indexOf("市")?n.addressData.province:n.addressData.province+n.addressData.city,page_size:n.pageSize.page_size,location:n.location||"",page_index:n.pageSize.page,success:function(t){n.loding(!1),"query ok"===t.message&&(0==t.data.length&&e.showToast({title:"没有数据了",icon:"none"}),n.pageSize.page>1?n.List=n.List.concat(t.data):n.List=t.data)},fail:function(e){n.loding(!1),console.log(e,"错误")}})},seachFn:function(e){this.pageSize.page=1,this.getRegion()},lower:function(){this.pageSize.page+=1,this.getRegion()}}};n.default=o}).call(this,t("543d")["default"])}},[["5e06","common/runtime","common/vendor"]]]);