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/index/index.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/index/index.js b/small-program/unpackage/dist/dev/mp-weixin/pages/index/index.js
index 12cff75..a196143 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/index/index.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/index/index.js
@@ -1,2 +1,2 @@
-(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{164:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(30);i(n(25));var r=i(n(165));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},165:function(e,t,n){"use strict";n.r(t);var i=n(166),r=n(168);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(170);var a,c=n(41),s=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"57280228",null,!1,i["components"],a);s.options.__file="pages/index/index.vue",t["default"]=s.exports},166:function(e,t,n){"use strict";n.r(t);var i=n(167);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"]}))},167:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return o})),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))},customTabbar:function(){return n.e("components/custom-tabbar/custom-tabbar").then(n.bind(null,186))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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 r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.pointList.length);e._isMounted||(e.e0=function(t){e.showLogin=!1}),e.$mp.data=Object.assign({},{$root:{g0:n}})},o=!1,a=[];r._withStripped=!0},168:function(e,t,n){"use strict";n.r(t);var i=n(169),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},169:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(34)),o=i(n(36)),a=i(n(11)),c=n(37),s=i(n(38));function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(){n.e("components/custom-tabbar/custom-tabbar").then(function(){return resolve(n(186))}.bind(null,n)).catch(n.oe)},f={components:{CustomTabbar:l},computed:d(d({},(0,c.mapState)(["navHeight","statusbarHeight","address","latitude","cityId","longitude","token"])),{},{currentAddress:function(){return this.address&&"瀹氫綅涓�"!==this.address?this.address:"鑾峰彇瀹氫綅"}}),data:function(){return{bannerList:[],pointList:[],ingOrder:null,showLogin:!1,pendingNavigate:null}},onLoad:function(){var e=this;return(0,o.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:return t.next=4,e.getBannerList();case 4:if(!(e.cityId&&e.latitude&&e.longitude)){t.next=7;break}return t.next=7,e.getNearbyShopList();case 7:case"end":return t.stop()}}),t)})))()},onShow:function(){this.ingOrder=null,this.getIngorder()},watch:{token:function(e){if(e&&this.pendingNavigate){var t=this.pendingNavigate;this.pendingNavigate=null,this.showLogin=!1,t()}}},methods:{jumpBannerDetail:function(t){t.content&&""!=t.content&&0!=t.type&&(1==t.type?e.navigateTo({url:"/shop/pages/article-details/article-details?id="+t.id}):2==t.type&&e.navigateTo({url:"/shop/pages/webview/webview?url="+t.content}))},jumpOrderDetail:function(t){e.navigateTo({url:"/pages/delivery-order-detail/delivery-order-detail?userType=0&id="+t})},getIngorder:function(){var e=this;return(0,o.default)(r.default.mark((function t(){var n,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e,t.next=3,n.$u.api.getActiveOrderTip();case 3:i=t.sent,i&&200===i.code&&(e.ingOrder=i.data);case 5:case"end":return t.stop()}}),t)})))()},jumpOrderList:function(t){var n=this;if(!this.token)return this.pendingNavigate=function(){return n.jumpOrderList(t)},void(this.showLogin=!0);e.setStorageSync("orderStatus",t),e.switchTab({url:"/pages/itinerary/itinerary"})},jumpxiadan:function(){var t=this;return this.token?this.cityId?void e.navigateTo({url:"/pages/luggage-storage/luggage-storage"}):e.showToast({title:"褰撳墠鍩庡競鏆傛湭寮�閫�",icon:"none"}):(this.pendingNavigate=function(){return t.jumpxiadan()},void(this.showLogin=!0))},getBannerList:function(){var e=this;return(0,o.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.getBannerList({position:0});case 2:n=t.sent,200===n.code&&(e.bannerList=n.data||[]);case 4:case"end":return t.stop()}}),t)})))()},getNearbyShopList:function(){var e=this;return(0,o.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.getNearbyShopList({capacity:5,page:1,model:{latitude:e.latitude,longitude:e.longitude,cityId:e.cityId,sortType:1}});case 2:n=t.sent,200===n.code&&(e.pointList=n.data.records||[]);case 4:case"end":return t.stop()}}),t)})))()},jumpJC:function(){if(!this.cityId)return e.showToast({title:"褰撳墠鍩庡競鏆傛湭寮�閫�",icon:"none"});e.navigateTo({url:"/pages/storage-point/storage-point"})},handleLocation:function(){var t=this;e.openSetting({success:function(e){e.authSetting["scope.userLocation"]&&t.positioning()}})},chooseLocation:function(){var t=this;e.chooseLocation({type:"gcj02",success:function(){var e=(0,o.default)(r.default.mark((function e(n){var i,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(n,"==================uniapp閫夋嫨浣嶇疆鎴愬姛"),"chooseLocation:ok"===n.errMsg&&n.latitude&&(i={latitude:n.latitude,longitude:n.longitude},a=new s.default.AMapWX({key:t.$gaodeMapKey}),a.getRegeo({location:n.longitude+","+n.latitude,success:function(){var e=(0,o.default)(r.default.mark((function e(o){var a,c,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(o,"==================閫夋嫨鍦板潃閫嗚В鏋�"),a=o[0],i.province=a.province,i.city=a.regeocodeData.addressComponent.city&&"string"===typeof a.regeocodeData.addressComponent.city?a.regeocodeData.addressComponent.city:a.regeocodeData.addressComponent.province,c=n.name||"鍦板潃鑾峰彇澶辫触",i.address=c,e.next=8,t.$u.api.getCityByName({cityName:i.city});case 8:s=e.sent,200===s.code&&s.data?(i.cityId=s.data.id,t.$store.commit("setPosition",i),t.pointList=[],t.getNearbyShopList()):(t.$store.commit("setPosition",i),t.$store.commit("clearCityId"),t.pointList=[],t.getNearbyShopList());case 10:case"end":return e.stop()}}),e)})));function a(t){return e.apply(this,arguments)}return a}(),fail:function(e){console.error("鑾峰彇浣嶇疆澶辫触===========",e),t.$store.commit("setPosition",i),t.pointList=[],t.getNearbyShopList()}}));case 2:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),fail:function(e){console.error("閫夋嫨浣嶇疆澶辫触===========",e)}})},positioning:function(){var t=this;e.getLocation({type:"gcj02",highAccuracyExpireTime:3e3,isHighAccuracy:!0,success:function(e){var n={latitude:e.latitude,longitude:e.longitude},i=new s.default.AMapWX({key:"f2e6c0bfcac14c27b4f0d6d0d5b9d7d"});i.getRegeo({location:e.longitude+","+e.latitude,success:function(){var e=(0,o.default)(r.default.mark((function e(i){var o,a,c;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(i,"==================鑾峰彇鍦板潃"),o=i[0],n.province=o.province,n.city=o.city,n.area=o.district,n.street=o.street,a=o.name||"鍦板潃鑾峰彇澶辫触",n.address=a,e.next=10,t.$u.api.getCityByName({cityName:n.city});case 10:c=e.sent,200===c.code&&(n.cityId=c.data.id),t.$store.commit("setPosition",n),t.$isResolve();case 14:case"end":return e.stop()}}),e)})));function i(t){return e.apply(this,arguments)}return i}(),fail:function(e){t.$isResolve()}})}})},goShopDetails:function(t){e.navigateTo({url:"/pages/storage-point-detail/storage-point-detail?id="+t.id})},goStoragePage:function(){if(!this.cityId)return e.showToast({title:"褰撳墠鍩庡競鏆傛湭寮�閫�",icon:"none"});e.navigateTo({url:"/pages/storage-point/storage-point"})}}};t.default=f}).call(this,n(2)["default"])},170:function(e,t,n){"use strict";n.r(t);var i=n(171),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},171:function(e,t,n){}},[[164,"common/runtime","common/vendor"]]]);
+(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{164:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(30);i(n(25));var r=i(n(165));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},165:function(e,t,n){"use strict";n.r(t);var i=n(166),r=n(168);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(170);var a,c=n(41),s=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"57280228",null,!1,i["components"],a);s.options.__file="pages/index/index.vue",t["default"]=s.exports},166:function(e,t,n){"use strict";n.r(t);var i=n(167);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"]}))},167:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return o})),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))},customTabbar:function(){return n.e("components/custom-tabbar/custom-tabbar").then(n.bind(null,186))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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 r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.pointList.length);e._isMounted||(e.e0=function(t){e.showLogin=!1}),e.$mp.data=Object.assign({},{$root:{g0:n}})},o=!1,a=[];r._withStripped=!0},168:function(e,t,n){"use strict";n.r(t);var i=n(169),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},169:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(34)),o=i(n(36)),a=i(n(11)),c=n(37),s=i(n(38));function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(){n.e("components/custom-tabbar/custom-tabbar").then(function(){return resolve(n(186))}.bind(null,n)).catch(n.oe)},f={components:{CustomTabbar:l},computed:d(d({},(0,c.mapState)(["navHeight","statusbarHeight","address","latitude","cityId","longitude","token"])),{},{currentAddress:function(){return this.address&&"瀹氫綅涓�"!==this.address?this.address:"鑾峰彇瀹氫綅"}}),data:function(){return{bannerList:[],pointList:[],ingOrder:null,showLogin:!1,pendingNavigate:null}},onLoad:function(){var e=this;return(0,o.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:return t.next=4,e.getBannerList();case 4:if(!(e.cityId&&e.latitude&&e.longitude)){t.next=7;break}return t.next=7,e.getNearbyShopList();case 7:case"end":return t.stop()}}),t)})))()},onShow:function(){this.ingOrder=null,this.getIngorder()},watch:{token:function(e){if(e&&this.pendingNavigate){var t=this.pendingNavigate;this.pendingNavigate=null,this.showLogin=!1,t()}}},methods:{jumpBannerDetail:function(t){t.content&&""!=t.content&&0!=t.type&&(1==t.type?e.navigateTo({url:"/shop/pages/article-details/article-details?id="+t.id}):2==t.type&&e.navigateTo({url:"/shop/pages/webview/webview?url="+t.content}))},jumpOrderDetail:function(t){e.navigateTo({url:"/pages/delivery-order-detail/delivery-order-detail?userType=0&id="+t})},getIngorder:function(){var e=this;return(0,o.default)(r.default.mark((function t(){var n,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e,t.next=3,n.$u.api.getActiveOrderTip();case 3:i=t.sent,i&&200===i.code&&(e.ingOrder=i.data);case 5:case"end":return t.stop()}}),t)})))()},jumpOrderList:function(t){var n=this;if(!this.token)return this.pendingNavigate=function(){return n.jumpOrderList(t)},void(this.showLogin=!0);e.setStorageSync("orderStatus",t),e.switchTab({url:"/pages/itinerary/itinerary"})},jumpxiadan:function(){var t=this;return this.token?this.cityId?void e.navigateTo({url:"/pages/luggage-storage/luggage-storage"}):e.showToast({title:"褰撳墠鍩庡競鏆傛湭寮�閫�",icon:"none"}):(this.pendingNavigate=function(){return t.jumpxiadan()},void(this.showLogin=!0))},getBannerList:function(){var e=this;return(0,o.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.getBannerList({position:0});case 2:n=t.sent,200===n.code&&(e.bannerList=n.data||[]);case 4:case"end":return t.stop()}}),t)})))()},getNearbyShopList:function(){var e=this;return(0,o.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.getNearbyShopList({capacity:5,page:1,model:{latitude:e.latitude,longitude:e.longitude,cityId:e.cityId,sortType:1}});case 2:n=t.sent,200===n.code&&(e.pointList=n.data.records||[]);case 4:case"end":return t.stop()}}),t)})))()},jumpJC:function(){if(!this.cityId)return e.showToast({title:"褰撳墠鍩庡競鏆傛湭寮�閫�",icon:"none"});e.navigateTo({url:"/pages/storage-point/storage-point"})},handleLocation:function(){var t=this;e.openSetting({success:function(e){e.authSetting["scope.userLocation"]&&t.positioning()}})},chooseLocation:function(){var t=this;e.chooseLocation({type:"gcj02",success:function(){var e=(0,o.default)(r.default.mark((function e(n){var i,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(n,"==================uniapp閫夋嫨浣嶇疆鎴愬姛"),"chooseLocation:ok"===n.errMsg&&n.latitude&&(i={latitude:n.latitude,longitude:n.longitude},a=new s.default.AMapWX({key:t.$gaodeMapKey}),a.getRegeo({location:n.longitude+","+n.latitude,success:function(){var e=(0,o.default)(r.default.mark((function e(o){var a,c,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(o,"==================閫夋嫨鍦板潃閫嗚В鏋�"),a=o[0],i.province=a.province,i.city=a.regeocodeData.addressComponent.city&&"string"===typeof a.regeocodeData.addressComponent.city?a.regeocodeData.addressComponent.city:a.regeocodeData.addressComponent.province,c=n.name||"鍦板潃鑾峰彇澶辫触",i.address=c,e.next=8,t.$u.api.getCityByName({cityName:i.city});case 8:s=e.sent,200===s.code&&s.data?(i.cityId=s.data.id,t.$store.commit("setPosition",i),t.pointList=[],t.getNearbyShopList()):(t.$store.commit("setPosition",i),t.$store.commit("clearCityId"),t.pointList=[]);case 10:case"end":return e.stop()}}),e)})));function a(t){return e.apply(this,arguments)}return a}(),fail:function(e){console.error("鑾峰彇浣嶇疆澶辫触===========",e),t.$store.commit("setPosition",i),t.pointList=[],t.getNearbyShopList()}}));case 2:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),fail:function(e){console.error("閫夋嫨浣嶇疆澶辫触===========",e)}})},positioning:function(){var t=this;e.getLocation({type:"gcj02",highAccuracyExpireTime:3e3,isHighAccuracy:!0,success:function(e){var n={latitude:e.latitude,longitude:e.longitude},i=new s.default.AMapWX({key:"f2e6c0bfcac14c27b4f0d6d0d5b9d7d"});i.getRegeo({location:e.longitude+","+e.latitude,success:function(){var e=(0,o.default)(r.default.mark((function e(i){var o,a,c;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(i,"==================鑾峰彇鍦板潃"),o=i[0],n.province=o.province,n.city=o.city,n.area=o.district,n.street=o.street,a=o.name||"鍦板潃鑾峰彇澶辫触",n.address=a,e.next=10,t.$u.api.getCityByName({cityName:n.city});case 10:c=e.sent,200===c.code&&(n.cityId=c.data.id),t.$store.commit("setPosition",n),t.$isResolve();case 14:case"end":return e.stop()}}),e)})));function i(t){return e.apply(this,arguments)}return i}(),fail:function(e){t.$isResolve()}})}})},goShopDetails:function(t){e.navigateTo({url:"/pages/storage-point-detail/storage-point-detail?id="+t.id})},goStoragePage:function(){if(!this.cityId)return e.showToast({title:"褰撳墠鍩庡競鏆傛湭寮�閫�",icon:"none"});e.navigateTo({url:"/pages/storage-point/storage-point"})}}};t.default=f}).call(this,n(2)["default"])},170:function(e,t,n){"use strict";n.r(t);var i=n(171),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},171:function(e,t,n){}},[[164,"common/runtime","common/vendor"]]]);
 //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
\ No newline at end of file

--
Gitblit v1.9.3