project.js 3.7 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/project/project"],{128:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(129));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},129:function(e,t,n){"use strict";n.r(t);var o=n(130),i=n(132);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(134);var c,a=n(32),s=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],c);s.options.__file="pages/project/project.vue",t["default"]=s.exports},130:function(e,t,n){"use strict";n.r(t);var o=n(131);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},131:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,412))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$field.findTypeNameByList("supportingFacilities",e.detail.supportingFacilities));e.$mp.data=Object.assign({},{$root:{l0:n}})},r=!1,c=[];i._withStripped=!0},132:function(e,t,n){"use strict";n.r(t);var o=n(133),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},133:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(57),i=n(92),r=function(){n.e("components/house/houseItems").then(function(){return resolve(n(486))}.bind(null,n)).catch(n.oe)},c={data:function(){return{list:[],detail:{},responsibility:[],coordinates:[],latitude:39.90923,longitude:116.397428,projectId:""}},onLoad:function(e){this.projectId=e.projectId,this.init()},onReady:function(){this._mapContext=e.createMapContext("map",this)},components:{houseItems:r},methods:{init:function(){var e=this;(0,i.getProjectDetailById)(this.projectId).then((function(t){200===t.code&&(e.detail=t.data,e.detail.picture&&(e.responsibility=JSON.parse(e.detail.picture)),e.detail.coordinates&&(e.coordinates=e.detail.coordinates.split(","),e.latitude=e.coordinates[1],e.longitude=e.coordinates[0],e.addMarkers()))})),(0,o.getOpenHouseListByPage)({currPage:1,pageSize:100,projectId:parseInt(this.projectId)}).then((function(t){200===t.code&&(e.list=e.list.concat(t.data.dataList))}))},addMarkers:function(){var e=[{latitude:this.coordinates[1],longitude:this.coordinates[0]}],t=[];e.forEach((function(e,n){t.push(Object.assign({},{id:n+1,width:50,height:50,joinCluster:!0},e))})),this._mapContext.addMarkers({markers:t,clear:!1,complete:function(e){}})}}};t.default=c}).call(this,n(2)["default"])},134:function(e,t,n){"use strict";n.r(t);var o=n(135),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},135:function(e,t,n){}},[[128,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/project/project.js.map