| | |
| | | (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/storage-point/storage-point"],{206:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(30);o(n(25));var i=o(n(207));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},207:function(e,t,n){"use strict";n.r(t);var o=n(208),i=n(210);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n(212);var r,s=n(41),c=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"6bbaaa78",null,!1,o["components"],r);c.options.__file="pages/storage-point/storage-point.vue",t["default"]=c.exports},208:function(e,t,n){"use strict";n.r(t);var o=n(209);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"]}))},209:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return o}));try{o={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,1116))},authLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/auth-login/auth-login")]).then(n.bind(null,1109))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.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.__map(e.filters,(function(t,n){var o=e.__get_orig(t),i=e.isFilterBold(t.key);return{$orig:o,m0:i}})));e._isMounted||(e.e0=function(t){e.showLogin=!1}),e.$mp.data=Object.assign({},{$root:{l0:n}})},a=!1,r=[];i._withStripped=!0},210:function(e,t,n){"use strict";n.r(t);var o=n(211),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},211:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(34)),a=o(n(18)),r=o(n(36)),s=o(n(11)),c=n(37);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={data:function(){return{keyword:"",page:1,isMapMode:!1,activeStore:null,currentDropdown:"",selectedFilters:{sortType:"",distance:"",businessType:"",locationTagId:""},mapCenter:{latitude:31.86119,longitude:117.28565},filters:[{key:"sortType",label:"综合排序"},{key:"distance",label:"位置范围"},{key:"businessType",label:"营业时间"},{key:"locationTagId",label:"位置标签"}],dropdownOptions:{sortType:[{label:"综合排序",value:""},{label:"评分优先",value:"2"}],distance:[{label:"位置范围",value:""},{label:"500m",value:"500"},{label:"1km",value:"1000"},{label:"2km",value:"2000"},{label:"3km",value:"3000"},{label:"5km",value:"5000"}],businessType:[{label:"营业时间",value:""},{label:"全天营业",value:"1"},{label:"限时营业",value:"0"}],locationTagId:[]},pointList:[],isRequest:!0,showLogin:!1}},computed:u(u({},(0,c.mapState)(["latitude","longitude","cityId","token"])),{},{filterLabels:function(){return{sortType:this.getFilterLabel("sortType"),distance:this.getFilterLabel("distance"),businessType:this.getFilterLabel("businessType"),locationTagId:this.getFilterLabel("locationTagId")}},currentOptions:function(){return this.currentDropdown&&this.dropdownOptions[this.currentDropdown]||[]},mapMarkers:function(){return this.pointList.map((function(e,t){return{id:t,latitude:e.latitude,longitude:e.longitude,width:0,height:0,iconPath:"/static/icon/home1_ic_location@2x.png",anchor:{x:.5,y:1},callout:{content:"".concat(e.name," ").concat(e.distance),display:"ALWAYS",padding:8,borderRadius:18,bgColor:"#FFFFFF",color:"#4AA8FF",fontSize:12,textAlign:"center"}}}))}}),watch:{filterLabels:{handler:function(e,t){this.handleSearch()}}},onLoad:function(){var e=this;return(0,r.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:e.getLocationTagList(),e.getNearbyShopList();case 4:case"end":return t.stop()}}),t)})))()},onReachBottom:function(){this.getNearbyShopList()},methods:{getLocationTagList:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var n,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.getCategoryList({type:5});case 2:n=t.sent,200===n.code&&(o=(n.data||[]).map((function(e){return{label:e.name,value:e.id}})),e.dropdownOptions.locationTagId=[{label:"位置标签",value:""}].concat((0,a.default)(o)));case 4:case"end":return t.stop()}}),t)})))()},isFilterBold:function(e){if("sortType"===e)return!0;var t=this.filterLabels[e];return"distance"===e?"位置范围"!==t:"businessType"===e&&"营业时间"!==t},handleSearch:function(){this.page=1,this.pointList=[],this.isRequest=!0,this.getNearbyShopList()},handleFilterChange:function(e,t){this.selectedFilters[e]=t,this.page=1,this.pointList=[],this.getNearbyShopList()},getNearbyShopList:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var n,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isRequest){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.$u.api.getNearbyShopList({capacity:10,page:e.page,model:{latitude:e.latitude,longitude:e.longitude,distance:e.selectedFilters.distance||"",name:e.keyword,cityId:e.cityId,sortType:e.selectedFilters.sortType||1,businessType:e.selectedFilters.businessType||"",locationTagId:e.selectedFilters.locationTagId||""}});case 4:n=t.sent,200===n.code&&(o=[],n.data.records.forEach((function(e){var t=[];e.locationTagNames&&(t=e.locationTagNames.split(","));var n={id:e.id,shopId:e.id,name:e.name,address:e.address,time:e.shopHours,distance:e.distanceText,cover:e.coverImg,latitude:e.latitude,longitude:e.longitude,depositTypes:e.depositTypes,feeStandard:e.feeStandard,locationTagNames:t};o.push(n)})),e.pointList=[].concat((0,a.default)(e.pointList),o),e.page++,n.data.total<=e.pointList.length&&(e.isRequest=!1));case 6:case"end":return t.stop()}}),t)})))()},getFilterLabel:function(e){var t=this,n=this.dropdownOptions[e]||[],o=n.find((function(n){return n.value===t.selectedFilters[e]}));return o?o.label:(this.filters.find((function(t){return t.key===e}))||{}).label||""},toggleDropdown:function(e){this.currentDropdown=this.currentDropdown===e?"":e},closeDropdown:function(){this.currentDropdown=""},closeStorePopup:function(){this.activeStore=null},selectDropdownOption:function(e){this.currentDropdown&&(this.$set(this.selectedFilters,this.currentDropdown,e.value),this.closeDropdown())},toggleViewMode:function(){this.isMapMode=!this.isMapMode,this.closeDropdown(),this.closeStorePopup(),this.isMapMode&&this.resetMapCenter()},handleMarkerTap:function(e){var t=this,n="undefined"!==typeof e.detail.markerId?e.detail.markerId:e.detail.id,o=this.pointList[n];o&&(this.mapCenter={latitude:o.latitude,longitude:o.longitude},console.log("current",o),this.$u.api.getShopDetail({id:o.shopId,latitude:this.latitude,longitude:this.longitude}).then((function(e){200===e.code&&(e.data.locationTagNames&&(e.data.locationTagNames=e.data.locationTagNames.split(",")),t.activeStore=e.data)})))},resetMapCenter:function(){var t=this;e.getLocation({type:"wgs84",success:function(e){t.mapCenter={latitude:e.latitude,longitude:e.longitude}}})},openNavigation:function(){e.openLocation({latitude:this.activeStore.latitude,longitude:this.activeStore.longitude,name:this.activeStore.name,address:this.activeStore.address,scale:18,infoUrl:""})},contactStore:function(){e.showToast({title:"联系门店待接入",icon:"none"})},storeLuggage:function(){this.token?(e.setStorageSync("selectedStore",this.activeStore),e.navigateTo({url:"/pages/luggage-storage/luggage-storage"})):this.showLogin=!0},goShopDetails:function(t){console.log(t),e.navigateTo({url:"/pages/storage-point-detail/storage-point-detail?id="+t.id})}}};t.default=d}).call(this,n(2)["default"])},212:function(e,t,n){"use strict";n.r(t);var o=n(213),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},213:function(e,t,n){}},[[206,"common/runtime","common/vendor"]]]); |
| | | (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/storage-point/storage-point"],{206:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(30);o(n(25));var i=o(n(207));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},207:function(e,t,n){"use strict";n.r(t);var o=n(208),i=n(210);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n(212);var r,s=n(41),c=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"6bbaaa78",null,!1,o["components"],r);c.options.__file="pages/storage-point/storage-point.vue",t["default"]=c.exports},208:function(e,t,n){"use strict";n.r(t);var o=n(209);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"]}))},209:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return o}));try{o={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,561))},authLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/auth-login/auth-login")]).then(n.bind(null,554))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.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.__map(e.filters,(function(t,n){var o=e.__get_orig(t),i=e.isFilterBold(t.key);return{$orig:o,m0:i}})));e._isMounted||(e.e0=function(t){e.showLogin=!1}),e.$mp.data=Object.assign({},{$root:{l0:n}})},a=!1,r=[];i._withStripped=!0},210:function(e,t,n){"use strict";n.r(t);var o=n(211),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},211:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(34)),a=o(n(18)),r=o(n(36)),s=o(n(11)),c=n(37);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={data:function(){return{keyword:"",page:1,isMapMode:!1,activeStore:null,currentDropdown:"",selectedFilters:{sortType:"",distance:"",businessType:"",locationTagId:""},mapCenter:{latitude:31.86119,longitude:117.28565},filters:[{key:"sortType",label:"综合排序"},{key:"distance",label:"位置范围"},{key:"businessType",label:"营业时间"},{key:"locationTagId",label:"位置标签"}],dropdownOptions:{sortType:[{label:"综合排序",value:""},{label:"评分优先",value:"2"}],distance:[{label:"位置范围",value:""},{label:"500m",value:"500"},{label:"1km",value:"1000"},{label:"2km",value:"2000"},{label:"3km",value:"3000"},{label:"5km",value:"5000"}],businessType:[{label:"营业时间",value:""},{label:"全天营业",value:"1"},{label:"限时营业",value:"0"}],locationTagId:[]},pointList:[],isRequest:!0,showLogin:!1}},computed:u(u({},(0,c.mapState)(["latitude","longitude","cityId","token"])),{},{filterLabels:function(){return{sortType:this.getFilterLabel("sortType"),distance:this.getFilterLabel("distance"),businessType:this.getFilterLabel("businessType"),locationTagId:this.getFilterLabel("locationTagId")}},currentOptions:function(){return this.currentDropdown&&this.dropdownOptions[this.currentDropdown]||[]},mapMarkers:function(){return this.pointList.map((function(e,t){return{id:t,latitude:e.latitude,longitude:e.longitude,width:0,height:0,iconPath:"/static/icon/home1_ic_location@2x.png",anchor:{x:.5,y:1},callout:{content:"".concat(e.name," ").concat(e.distance),display:"ALWAYS",padding:8,borderRadius:18,bgColor:"#FFFFFF",color:"#4AA8FF",fontSize:12,textAlign:"center"}}}))}}),watch:{filterLabels:{handler:function(e,t){this.handleSearch()}}},onLoad:function(){var e=this;return(0,r.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:e.getLocationTagList(),e.getNearbyShopList();case 4:case"end":return t.stop()}}),t)})))()},onReachBottom:function(){this.getNearbyShopList()},methods:{getLocationTagList:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var n,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.getCategoryList({type:5});case 2:n=t.sent,200===n.code&&(o=(n.data||[]).map((function(e){return{label:e.name,value:e.id}})),e.dropdownOptions.locationTagId=[{label:"位置标签",value:""}].concat((0,a.default)(o)));case 4:case"end":return t.stop()}}),t)})))()},isFilterBold:function(e){if("sortType"===e)return!0;var t=this.filterLabels[e];return"distance"===e?"位置范围"!==t:"businessType"===e&&"营业时间"!==t},handleSearch:function(){this.page=1,this.pointList=[],this.isRequest=!0,this.getNearbyShopList()},handleFilterChange:function(e,t){this.selectedFilters[e]=t,this.page=1,this.pointList=[],this.getNearbyShopList()},getNearbyShopList:function(){var e=this;return(0,r.default)(i.default.mark((function t(){var n,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isRequest){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.$u.api.getNearbyShopList({capacity:10,page:e.page,model:{latitude:e.latitude,longitude:e.longitude,distance:e.selectedFilters.distance||"",name:e.keyword,cityId:e.cityId,sortType:e.selectedFilters.sortType||1,businessType:e.selectedFilters.businessType||"",locationTagId:e.selectedFilters.locationTagId||""}});case 4:n=t.sent,200===n.code&&(o=[],n.data.records.forEach((function(e){var t=[];e.locationTagNames&&(t=e.locationTagNames.split(","));var n={id:e.id,shopId:e.id,name:e.name,address:e.address,time:e.shopHours,distance:e.distanceText,cover:e.coverImg,latitude:e.latitude,longitude:e.longitude,depositTypes:e.depositTypes,feeStandard:e.feeStandard,locationTagNames:t};o.push(n)})),e.pointList=[].concat((0,a.default)(e.pointList),o),e.page++,n.data.total<=e.pointList.length&&(e.isRequest=!1));case 6:case"end":return t.stop()}}),t)})))()},getFilterLabel:function(e){var t=this,n=this.dropdownOptions[e]||[],o=n.find((function(n){return n.value===t.selectedFilters[e]}));return o?o.label:(this.filters.find((function(t){return t.key===e}))||{}).label||""},toggleDropdown:function(e){this.currentDropdown=this.currentDropdown===e?"":e},closeDropdown:function(){this.currentDropdown=""},closeStorePopup:function(){this.activeStore=null},selectDropdownOption:function(e){this.currentDropdown&&(this.$set(this.selectedFilters,this.currentDropdown,e.value),this.closeDropdown())},toggleViewMode:function(){this.isMapMode=!this.isMapMode,this.closeDropdown(),this.closeStorePopup(),this.isMapMode&&this.resetMapCenter()},handleMarkerTap:function(e){var t=this,n="undefined"!==typeof e.detail.markerId?e.detail.markerId:e.detail.id,o=this.pointList[n];o&&(this.mapCenter={latitude:o.latitude,longitude:o.longitude},console.log("current",o),this.$u.api.getShopDetail({id:o.shopId,latitude:this.latitude,longitude:this.longitude}).then((function(e){200===e.code&&(e.data.locationTagNames&&(e.data.locationTagNames=e.data.locationTagNames.split(",")),t.activeStore=e.data)})))},resetMapCenter:function(){var t=this;e.getLocation({type:"wgs84",success:function(e){t.mapCenter={latitude:e.latitude,longitude:e.longitude}}})},openNavigation:function(){e.openLocation({latitude:this.activeStore.latitude,longitude:this.activeStore.longitude,name:this.activeStore.name,address:this.activeStore.address,scale:18,infoUrl:""})},contactStore:function(){e.showToast({title:"联系门店待接入",icon:"none"})},storeLuggage:function(){this.token?(e.setStorageSync("selectedStore",this.activeStore),e.navigateTo({url:"/pages/luggage-storage/luggage-storage"})):this.showLogin=!0},goShopDetails:function(t){console.log(t),e.navigateTo({url:"/pages/storage-point-detail/storage-point-detail?id="+t.id})}}};t.default=d}).call(this,n(2)["default"])},212:function(e,t,n){"use strict";n.r(t);var o=n(213),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},213:function(e,t,n){}},[[206,"common/runtime","common/vendor"]]]); |
| | | //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/storage-point/storage-point.js.map |