1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/buildmap/index"],{"07db":function(e,a,n){"use strict";n.r(a);var t=n("0bde"),r=n("75ad");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(a,e,(function(){return r[e]}))}(i);n("dd5b");var o=n("828b"),u=Object(o["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);a["default"]=u.exports},"0bde":function(e,a,n){"use strict";n.d(a,"b",(function(){return r})),n.d(a,"c",(function(){return i})),n.d(a,"a",(function(){return t}));var t={uniSearchBar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(n.bind(null,"6731"))},liuEasyMap:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/liu-easy-map/components/liu-easy-map/liu-easy-map")]).then(n.bind(null,"abd1"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"083e"))},lysDate:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/lys-date/components/lys-date/lys-date")]).then(n.bind(null,"5390"))}},r=function(){var e=this,a=e.$createElement,t=(e._self._c,e.__map(e.list,(function(a,t){var r=e.__get_orig(a),i=0==t||1==t||2==t?n("0f15")("./top"+(t+1)+".png"):null;return{$orig:r,m0:i}})));e._isMounted||(e.e0=function(a){e.showTimePicker=!0},e.e1=function(a){e.showTimePicker=!1}),e.$mp.data=Object.assign({},{$root:{l0:t}})},i=[]},"23a3":function(e,a,n){"use strict";var t=n("47a9");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=t(n("7eb4")),i=t(n("ee10")),o=n("5ae7"),u={data:function(){return{showTimePicker:!1,searchName:"",markerData:[],polygons:[],list:[],week:""}},onShow:function(){var e=new Date;console.log("第几年",e.getFullYear());var a=e.getFullYear()+"第"+this.getYearWeek(e.getFullYear(),Number(e.getMonth())+1,e.getDate())+"周";console.log(a),this.week=a,this.getActivationRanking(a)},methods:{getActivationRanking:function(e){var a=this;return(0,i.default)(r.default.mark((function n(){var t,i;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,o.getActivationRanking)({week:e});case 2:t=n.sent,i=t.data,console.log(i),a.list=i;case 6:case"end":return n.stop()}}),n)})))()},getYearWeek:function(e,a,n){var t=new Date(e,parseInt(a)-1,n),r=new Date(e,0,1),i=Math.round((t.valueOf()-r.valueOf())/864e5);return Math.ceil((i+(r.getDay()+1-1))/7)},submitTime:function(e){this.week=e,this.showTimePicker=!1,console.log(e),this.getActivationRanking(e)},onChange:function(e){console.log(e.detail.name),1==e.detail.name&&this.getPartyBranchList()},cancel:function(){this.searchName="",this.getPartyBranchList()},searchMap:function(){var e=this;return(0,i.default)(r.default.mark((function a(){var t,i;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,o.getPartyBranchList)({searchName:e.searchName});case 2:t=a.sent,i=t.data,e.markerData=i.map((function(e,a,t){return{latitude:e.branchLat,longitude:e.branchLng,name:e.branchName,mapid:e.id,id:a,address:e.branchName,iconWidth:32,iconHeight:32,calloutColor:"#798DF3",calloutFontSize:16,calloutBorderRadius:6,calloutPadding:8,calloutBgColor:"#00000000",calloutDisplay:"ALWAYS",markerUrl:n("b20a")}})),e.$refs.liuEasyMap.changeCenter({latitude:e.markerData[0].latitude,longitude:e.markerData[0].longitude}),e.$refs.liuEasyMap.showMarkers();case 7:case"end":return a.stop()}}),a)})))()},getPartyBranchList:function(){var e=this;return(0,i.default)(r.default.mark((function a(){var t,i;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,o.getPartyBranchList)({searchName:e.searchName});case 2:t=a.sent,i=t.data,console.log(i),e.markerData=i.map((function(e,a,t){return{latitude:e.branchLat,longitude:e.branchLng,name:e.branchName,mapid:e.id,id:a,address:e.branchName,iconWidth:32,iconHeight:32,calloutColor:"#798DF3",calloutFontSize:16,calloutBorderRadius:6,calloutPadding:8,calloutBgColor:"#00000000",calloutDisplay:"ALWAYS",markerUrl:n("b20a")}})),e.$refs.liuEasyMap.showMarkers();case 7:case"end":return a.stop()}}),a)})))()},markerClick:function(e){console.log("点击标记点信息:",e)}}};a.default=u},"75ad":function(e,a,n){"use strict";n.r(a);var t=n("23a3"),r=n.n(t);for(var i in t)["default"].indexOf(i)<0&&function(e){n.d(a,e,(function(){return t[e]}))}(i);a["default"]=r.a},b72d:function(e,a,n){"use strict";(function(e,a){var t=n("47a9");n("5e15"),n("3c60");t(n("3240"));var r=t(n("07db"));e.__webpack_require_UNI_MP_PLUGIN__=n,a(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ca48:function(e,a,n){},dd5b:function(e,a,n){"use strict";var t=n("ca48"),r=n.n(t);r.a}},[["b72d","common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);
|