index.js 2.9 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/storeLis/index"],{"038e":function(t,e,i){"use strict";var n=i("491c"),a=i.n(n);a.a},"491c":function(t,e,i){},"67a1":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("f8b7"),a=(i("328e"),i("26cb")),o={name:"storeList",props:{num:{type:Number,default:1},ids:{type:Number,default:0},type:{type:String,default:""},storeList:{typeof:Object,default:{}}},data:function(){return{page:1,limit:20,loaded:!1,loading:!1,system_store:{},user_latitude:0,user_longitude:0}},computed:(0,a.mapState)({nearbyStore:function(t){return t.app.nearbyStore}}),created:function(){},mounted:function(){},methods:{call:function(e){t.makePhoneCall({phoneNumber:e})},selfLocation:function(){var e=this,i=this;t.getLocation({type:"wgs84",success:function(n){try{e.user_latitude=n.latitude,e.user_longitude=n.longitude,t.setStorageSync("user_latitude",n.latitude),t.setStorageSync("user_longitude",n.longitude)}catch(a){}i.getList()},complete:function(){i.getList()}})},showMaoLocation:function(e){t.openLocation({latitude:Number(e.latitude),longitude:Number(e.longitude),name:e.name,address:"".concat(e.address,"-").concat(e.detailed_address),success:function(){}})},getList:function(){var t=this;if(!this.loading&&!this.loaded){this.loading=!0;var e={latitude:this.user_latitude||"",longitude:this.user_longitude||"",page:this.page,limit:this.limit,product_id:this.ids,type:"seckill"==this.type?1:0,store_id:this.storeId?this.storeId:this.nearbyStore};(0,n.storeListApi)(e).then((function(e){t.loading=!1,t.loaded=e.data.list.length<t.limit,t.storeList.push.apply(t.storeList,e.data.list.list),1==t.page&&t.$emit("getStoreList",t.storeList.length),t.page=t.page+1})).catch((function(e){t.$util.Tips({title:e})}))}}},onReachBottom:function(){}};e.default=o}).call(this,i("543d")["default"])},aa30:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},a=[]},b2ad:function(t,e,i){"use strict";i.r(e);var n=i("aa30"),a=i("efc1");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("038e");var u=i("f0c5"),s=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},efc1:function(t,e,i){"use strict";i.r(e);var n=i("67a1"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/storeLis/index-create-component',
  4. {
  5. 'components/storeLis/index-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("b2ad"))
  7. })
  8. },
  9. [['components/storeLis/index-create-component']]
  10. ]);