project.js 2.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/project/project"],{"0ca2":function(t,e,n){"use strict";var i=n("b2ab"),o=n.n(i);o.a},"0cd0":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7748");i(n("3240"));var o=i(n("8393"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"75a8":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"3d33"))}},o=function(){var t=this.$createElement,e=(this._self._c,this.$field.findTypeNameByList("supportingFacilities",this.detail.supportingFacilities));this.$mp.data=Object.assign({},{$root:{l0:e}})},a=[]},8393:function(t,e,n){"use strict";n.r(e);var i=n("75a8"),o=n("c11e");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("0ca2");var c=n("828b"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},b2ab:function(t,e,n){},c11e:function(t,e,n){"use strict";n.r(e);var i=n("e8f9"),o=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"]=o.a},e8f9:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2ecb"),o=n("9249"),a={data:function(){return{list:[],detail:{},responsibility:[],coordinates:[],latitude:39.90923,longitude:116.397428,projectId:"",coordinatesstr:""}},onLoad:function(t){this.projectId=t.projectId,this.coordinatesstr=this.$store.getters.coordinates,this.init()},onReady:function(){this._mapContext=t.createMapContext("map",this)},components:{houseItems:function(){n.e("components/house/houseItems").then(function(){return resolve(n("2051"))}.bind(null,n)).catch(n.oe)}},methods:{init:function(){var t=this;console.log(this.coordinatesstr),(0,o.getProjectDetailById)(this.projectId+"?coordinates="+this.coordinatesstr).then((function(e){200===e.code&&(t.detail=e.data,t.detail.picture&&(t.responsibility=JSON.parse(t.detail.picture)),t.detail.coordinates&&(t.coordinates=t.detail.coordinates.split(","),t.latitude=t.coordinates[1],t.longitude=t.coordinates[0],t.addMarkers()))})),(0,i.getOpenHouseListByPage)({currPage:1,pageSize:100,projectId:parseInt(this.projectId)}).then((function(e){200===e.code&&(t.list=t.list.concat(e.data.dataList))}))},addMarkers:function(){var t=[{latitude:this.coordinates[1],longitude:this.coordinates[0]}],e=[];t.forEach((function(t,n){e.push(Object.assign({},{id:n+1,width:50,height:50,joinCluster:!0},t))})),this._mapContext.addMarkers({markers:e,clear:!1,complete:function(t){}})}}};e.default=a}).call(this,n("df3c")["default"])}},[["0cd0","common/runtime","common/vendor"]]]);