index.js 3.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/store/group_cart/index"],{"10ed":function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("59a4");r(n("66fd"));var o=r(n("7fb7"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"7c61":function(e,t,n){"use strict";n.r(t);var r=n("9d13"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},"7fb7":function(e,t,n){"use strict";n.r(t);var r=n("d89b"),o=n("7c61");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("da4b");var c=n("f0c5"),a=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,"0dab5309",null,!1,r["a"],void 0);t["default"]=a.exports},"9d13":function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("9523")),i=n("26cb"),c=r(n("5c3b")),a=n("8bb5");n("3c98"),n("bcf5");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(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,o.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 f={computed:(0,i.mapGetters)(["isLogin","uid"]),components:{storeCate1:function(){Promise.all([n.e("common/vendor"),n.e("pages/store/group_cart/cart")]).then(function(){return resolve(n("eec4"))}.bind(null,n)).catch(n.oe)},pageFooter:function(){Promise.all([n.e("common/vendor"),n.e("components/pageFooter/index")]).then(function(){return resolve(n("a225"))}.bind(null,n)).catch(n.oe)}},mixins:[c.default],data:function(){return{info:{},id:0,isFooter:!1,category:"",storeShow:1,customerType:1,where:{latitude:0,longitude:0,store_id:0},cart_num:0,delivery_type:3}},onLoad:function(t){this.collage_id=t.collage_id,this.delivery_type=t.delivery_type,this.where.store_id=t.id;try{this.where.latitude=e.getStorageSync("user_latitude"),this.where.longitude=e.getStorageSync("user_longitude"),this.selfLocation(),this.$util.checkOpenGPSServiceByAndroidIOS()||this.getStore()}catch(n){}},onShow:function(){},mounted:function(){},methods:{otherFun:function(e){e&&1==this.storeShow&&this.$refs.refresh2.updateFun(e)},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(n){}},fail:function(e){t.$util.Tips({title:e})},complete:function(){t.getStore()}})},getStore:function(){var t=this;this.where.latitude=e.getStorageSync("user_latitude"),this.where.longitude=e.getStorageSync("user_longitude"),(0,a.getnearbyStore)(this.where).then((function(e){var n=e.data.info;t.cart_num=e.data.cart_num,"[object Array]"===Object.prototype.toString.call(n)?t.info={}:t.info=e.data.info,t.info=s(s({},t.info),{},{collage_id:t.collage_id,delivery_type:t.delivery_type}),t.id=t.info.id,t.customerType=parseInt(e.data.info.customer_type),setTimeout((function(){t.$refs.refresh2.getAllCategory(),t.$refs.refresh2.getCartNum(),t.isLogin&&t.$refs.refresh2.getCartList(1)}),10)}))},newDataStatus:function(e){this.isFooter=e}},onReachBottom:function(){var e=this;setTimeout((function(){e.$refs.refresh2.getProducts()}),10)}};t.default=f}).call(this,n("543d")["default"])},"9e20":function(e,t,n){},d89b:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement;this._self._c},o=[]},da4b:function(e,t,n){"use strict";var r=n("9e20"),o=n.n(r);o.a}},[["10ed","common/runtime","common/vendor"]]]);