徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
4.2 KiB

2 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/store/home/index"],{"40ac":function(e,t,o){"use strict";(function(e){var n=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o("7ca3")),i=o("8f59"),c=n(o("cef6")),s=o("e752"),a=(o("a230"),o("152a"),n(o("2c75")));function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){(0,r.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var l={computed:f(f({},(0,i.mapState)({nearbyStore:function(e){return e.app.nearbyStore}})),(0,i.mapGetters)(["isLogin","uid"])),components:{storeCate1:function(){Promise.all([o.e("common/vendor"),o.e("pages/store/home/store_cate1")]).then(function(){return resolve(o("feee"))}.bind(null,o)).catch(o.oe)},storeCate2:function(){Promise.all([o.e("common/vendor"),o.e("pages/store/home/store_cate2")]).then(function(){return resolve(o("76a8"))}.bind(null,o)).catch(o.oe)}},mixins:[c.default],data:function(){return{info:{},id:0,category:"",home_style:0,customer_type:1,where:{latitude:0,longitude:0,store_id:0},cart_num:0,mapFrom:0}},onLoad:function(t){t.scene&&(t=a.default.getUrlParams(decodeURIComponent(t.scene))),this.where.store_id=this.nearbyStore,t.mapFrom&&(this.mapFrom=t.mapFrom),t.id&&(this.where.store_id=t.id,e.setStorageSync("user_store_id",t.id));try{this.where.latitude=e.getStorageSync("user_latitude"),this.where.longitude=e.getStorageSync("user_longitude"),1==t.mapFrom?this.getStore():(this.selfLocation(),this.$util.checkOpenGPSServiceByAndroidIOS()||this.getStore())}catch(o){this.getStore()}},onUnload:function(){this.mapFrom=0},onHide:function(){this.mapFrom=0},onShow:function(){var e=this;0==this.mapFrom&&1==this.home_style&&setTimeout((function(){e.$refs.refresh2.getNoCart()}),10)},onPageScroll:function(t){e.$emit("onPageScroll",t),e.$emit("scroll")},onReachBottom:function(){e.$emit("onReachBottom")},methods:{otherFun:function(e){e&&(1==this.home_style?this.$refs.refresh2.updateFun(e,1):this.$refs.refresh.updateFun(e,1))},selfLocation:function(){var t=this;e.getLocation({type:"gcj02",success:function(t){try{e.setStorageSync("user_latitude",t.latitude),e.setStorageSync("user_longitude",t.longitude)}catch(o){}},fail:function(e){},complete:function(){t.getStore()}})},getStore:function(){var t=this;(0,s.getnearbyStore)(this.where).then((function(o){var n=o.data,r=n.info;"[object Array]"===Object.prototype.toString.call(r)&&(r={}),t.info=f({store_splicing_switch:n.store_splicing_switch,store_self_mention:parseInt(n.store_self_mention)},r),t.cart_num=n.cart_num,t.customer_type=parseInt(r.customer_type),t.home_style=r.home_style||0,t.id=r.id||0,e.setStorageSync("user_store_id",t.id),1===t.home_style?setTimeout((function(){t.isLogin&&t.$refs.refresh2.getCartList(1)}),10):2===t.home_style&&setTimeout((function(){}))}))}}};t.default=l}).call(this,o("df3c")["default"])},"721b":function(e,t,o){"use strict";(function(e,t){var n=o("47a9");o("7561");n(o("3240"));var r=n(o("8a33"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(r.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"73cb":function(e,t,o){"use strict";o.r(t);var n=o("40ac"),r=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=r.a},"8a33":function(e,t,o){"use strict";o.r(t);var n=o("9754"),r=o("73cb");for(var i in r)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return r[e]}))}(i);o("d7b4");var c=o("828b"),s=Object(c["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=s.exports},9754:function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return r