From bfd70830b78bc42e0a284baa044efacc29897cd5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 28 四月 2026 22:02:46 +0800
Subject: [PATCH] 小程序改bug

---
 small-program/unpackage/dist/dev/mp-weixin/pages/storage-point/storage-point.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/storage-point/storage-point.js b/small-program/unpackage/dist/dev/mp-weixin/pages/storage-point/storage-point.js
index decbcb8..a6d38e7 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/storage-point/storage-point.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/storage-point/storage-point.js
@@ -1,2 +1,2 @@
-(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/storage-point/storage-point"],{206:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(30);i(n(25));var o=i(n(207));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},207:function(e,t,n){"use strict";n.r(t);var i=n(208),o=n(210);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n(212);var a,s=n(41),u=Object(s["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"6bbaaa78",null,!1,i["components"],a);u.options.__file="pages/storage-point/storage-point.vue",t["default"]=u.exports},208:function(e,t,n){"use strict";n.r(t);var i=n(209);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},209:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return i}));try{i={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,482))},authLogin:function(){return n.e("components/auth-login/auth-login").then(n.bind(null,491))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 鎺掓煡缁勪欢鍚嶇О鎷煎啓鏄惁姝g‘"),console.error("2. 鎺掓煡缁勪欢鏄惁绗﹀悎 easycom 瑙勮寖锛屾枃妗o細https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 鑻ョ粍浠朵笉绗﹀悎 easycom 瑙勮寖锛岄渶鎵嬪姩寮曞叆锛屽苟鍦� components 涓敞鍐岃缁勪欢")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.filters,(function(t,n){var i=e.__get_orig(t),o=e.isFilterBold(t.key);return{$orig:i,m0:o}})));e._isMounted||(e.e0=function(t){e.showLogin=!1}),e.$mp.data=Object.assign({},{$root:{l0:n}})},r=!1,a=[];o._withStripped=!0},210:function(e,t,n){"use strict";n.r(t);var i=n(211),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},211:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(34)),r=i(n(18)),a=i(n(36)),s=i(n(11)),u=n(37);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(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:""},mapCenter:{latitude:31.86119,longitude:117.28565},filters:[{key:"sortType",label:"缁煎悎鎺掑簭"},{key:"distance",label:"浣嶇疆鑼冨洿"},{key:"businessType",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"}]},pointList:[],isRequest:!0,showLogin:!1}},computed:l(l({},(0,u.mapState)(["latitude","longitude","cityId","token"])),{},{filterLabels:function(){return{sortType:this.getFilterLabel("sortType"),distance:this.getFilterLabel("distance"),businessType:this.getFilterLabel("businessType")}},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,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:e.getNearbyShopList();case 3:case"end":return t.stop()}}),t)})))()},onReachBottom:function(){this.getNearbyShopList()},methods:{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,a.default)(o.default.mark((function t(){var n,i;return o.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||""}});case 4:n=t.sent,200===n.code&&(i=[],n.data.records.forEach((function(e){var t={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};i.push(t)})),e.pointList=[].concat((0,r.default)(e.pointList),i),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]||[],i=n.find((function(n){return n.value===t.selectedFilters[e]}));return i?i.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,i=this.pointList[n];i&&(this.mapCenter={latitude:i.latitude,longitude:i.longitude},console.log("current",i),this.$u.api.getShopDetail({id:i.shopId,latitude:this.latitude,longitude:this.longitude}).then((function(e){200===e.code&&(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.navigateTo({url:"/pages/luggage-storage/luggage-storage"}):this.showLogin=!0},goShopDetails:function(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 i=n(213),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.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 i=n(4);n(30);i(n(25));var o=i(n(207));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},207:function(e,t,n){"use strict";n.r(t);var i=n(208),o=n(210);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n(212);var a,s=n(41),u=Object(s["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"6bbaaa78",null,!1,i["components"],a);u.options.__file="pages/storage-point/storage-point.vue",t["default"]=u.exports},208:function(e,t,n){"use strict";n.r(t);var i=n(209);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},209:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return i}));try{i={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,482))},authLogin:function(){return n.e("components/auth-login/auth-login").then(n.bind(null,491))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 鎺掓煡缁勪欢鍚嶇О鎷煎啓鏄惁姝g‘"),console.error("2. 鎺掓煡缁勪欢鏄惁绗﹀悎 easycom 瑙勮寖锛屾枃妗o細https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 鑻ョ粍浠朵笉绗﹀悎 easycom 瑙勮寖锛岄渶鎵嬪姩寮曞叆锛屽苟鍦� components 涓敞鍐岃缁勪欢")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.filters,(function(t,n){var i=e.__get_orig(t),o=e.isFilterBold(t.key);return{$orig:i,m0:o}})));e._isMounted||(e.e0=function(t){e.showLogin=!1}),e.$mp.data=Object.assign({},{$root:{l0:n}})},r=!1,a=[];o._withStripped=!0},210:function(e,t,n){"use strict";n.r(t);var i=n(211),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},211:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(34)),r=i(n(18)),a=i(n(36)),s=i(n(11)),u=n(37);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(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:""},mapCenter:{latitude:31.86119,longitude:117.28565},filters:[{key:"sortType",label:"缁煎悎鎺掑簭"},{key:"distance",label:"浣嶇疆鑼冨洿"},{key:"businessType",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"}]},pointList:[],isRequest:!0,showLogin:!1}},computed:l(l({},(0,u.mapState)(["latitude","longitude","cityId","token"])),{},{filterLabels:function(){return{sortType:this.getFilterLabel("sortType"),distance:this.getFilterLabel("distance"),businessType:this.getFilterLabel("businessType")}},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,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:e.getNearbyShopList();case 3:case"end":return t.stop()}}),t)})))()},onReachBottom:function(){this.getNearbyShopList()},methods:{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,a.default)(o.default.mark((function t(){var n,i;return o.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||""}});case 4:n=t.sent,200===n.code&&(i=[],n.data.records.forEach((function(e){var t={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};i.push(t)})),e.pointList=[].concat((0,r.default)(e.pointList),i),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]||[],i=n.find((function(n){return n.value===t.selectedFilters[e]}));return i?i.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,i=this.pointList[n];i&&(this.mapCenter={latitude:i.latitude,longitude:i.longitude},console.log("current",i),this.$u.api.getShopDetail({id:i.shopId,latitude:this.latitude,longitude:this.longitude}).then((function(e){200===e.code&&(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.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 i=n(213),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},213:function(e,t,n){}},[[206,"common/runtime","common/vendor"]]]);
 //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/storage-point/storage-point.js.map
\ No newline at end of file

--
Gitblit v1.9.3