app-address-group.js 4.1 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/app-address-group"],{"5e920":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("5315"),r=n("7736");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(){Promise.all([n.e("common/vendor"),n.e("components/plugin/simple-address")]).then(function(){return resolve(n("618a"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/app-area-sel").then(function(){return resolve(n("62ec"))}.bind(null,n)).catch(n.oe)},f=function(){n.e("components/plugin/list-cell").then(function(){return resolve(n("1861"))}.bind(null,n)).catch(n.oe)},l={name:"AppAddressGroup",components:{AppAreaSel:u,SimpleAddress:a,TuiListCell:f},props:{customId:"",cityTitle:{type:String,default:"所在城市"},detailTitle:{type:String,default:"地址"},isFloor:{type:Boolean,default:!0},getFormObj:{type:Object,default:function(){}}},data:function(){return{regionData:[],cityPickerValueDefault:[0,0],form:{province:"",customMobile:"",customName:"",city:"",address:"",floor:"",longitude:"",latitude:""},showRegion:!1}},mounted:function(){""!=this.customId&&this.initAdress(),console.log("this.getLoginInfo===>",this.getMyShopInfo)},computed:s({},(0,r.mapGetters)(["getMyShopInfo"])),methods:{initAdress:function(){var t=this;if("0"!=this.customId)return(0,o.getUserDet)({id:this.customId}).then((function(e){t.form.province=e.data.province,t.form.city=e.data.city,t.form.address=e.data.address,t.form.latitude=e.data.lat,t.form.longitude=e.data.long,t.form.customMobile=e.data.mobile,t.form.customName=e.data.name,t.$emit("selectAdress",t.form)}));this.form.province=this.getMyShopInfo.province,this.form.city=this.getMyShopInfo.city},formatForm:function(){var t=this;Object.keys(this.form).forEach((function(e){t.form[e]=t.getFormObj[e]}))},selRegionFn:function(){if(!this.form.city)return this.$msg("请先选择城市!"),!1;this.showRegion=!0},onCityConfirm:function(t){this.form.province=t.provinceName,this.form.city=t.cityName,this.$emit("selectAdress",this.form)},openAddres:function(){this.flag&&this.$refs.simpleAddress.open()},changeAreaFn:function(t){this.form.address=t.title,this.form.latitude=t.location.lat,this.form.longitude=t.location.lng,this.$emit("selectAdress",this.form)},changeFloor:function(t){this.$emit("selectAdress",this.form)}},watch:{getFormObj:function(){this.$util.isEmpty(this.getFormObj)&&this.formatForm()}}};e.default=l},8213:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement;t._self._c},i=[]},b26a:function(t,e,n){"use strict";n.r(e);var o=n("5e920"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},cdfa:function(t,e,n){"use strict";n.r(e);var o=n("8213"),r=n("b26a");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var s,c=n("0095"),a=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"655e702f",null,!1,o["a"],s);e["default"]=a.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/app-address-group-create-component',
  4. {
  5. 'components/app-address-group-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('f3be')['createComponent'](__webpack_require__("cdfa"))
  7. })
  8. },
  9. [['components/app-address-group-create-component']]
  10. ]);