(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/pointsExchange"],{"1e4b":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"20fd"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e._f("storename")(e.checkedStore.name)),o=e.space(e.checkedStore.latitude,e.checkedStore.longitude);e.$mp.data=Object.assign({},{$root:{f0:n,m0:o}})},a=[]},"45eb":function(e,t,n){"use strict";var o=n("f034"),r=n.n(o);r.a},"508f":function(e,t,n){"use strict";n.r(t);var o=n("bc6e"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},b3a1:function(e,t,n){"use strict";n.r(t);var o=n("1e4b"),r=n("508f");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("45eb");var i,c=n("f0c5"),l=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);t["default"]=l.exports},b786:function(e,t,n){"use strict";(function(e){n("5935");o(n("66fd"));var t=o(n("b3a1"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},bc6e:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("7e95"),r=n("26cb");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(){n.e("components/empty").then(function(){return resolve(n("de8d"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("20fd"))}.bind(null,n)).catch(n.oe)},s={components:{empty:l,uniLoadMore:u},data:function(){return{integral:{page:1,limit:10,list:[],loadingType:"more",loaded:""}}},computed:i({},(0,r.mapState)("user",["userInfo","checkedStore","des","latlng"])),onLoad:function(){this.loadData()},onReachBottom:function(){this.loadData()},filters:{storename:function(e){var t="";return e&&(t=e,e.length>5&&(t=e.slice(0,5)+"...")),t},longstorename:function(e){var t="";return e&&(t=e,e.length>10&&(t=e.slice(0,10)+"...")),t}},methods:{space:function(t,n){var o=e.getStorageSync("latlon");console.log(o);var r=o.split(","),a=r[0],i=r[1];console.log(t,n,a,i,"位置信息");var c=t*Math.PI/180,l=a*Math.PI/180,u=c-l,s=n*Math.PI/180-i*Math.PI/180,f=2*Math.asin(Math.sqrt(Math.pow(Math.sin(u/2),2)+Math.cos(c)*Math.cos(l)*Math.pow(Math.sin(s/2),2)));return f*=6378.137,f=Math.round(1e4*f)/1e4,f>1?f.toFixed(2)+"km":1e3*f+"m"},navTo:function(t){e.navigateTo({url:t})},loadData:function(){var t=this,n=this;"loading"!==n.integral.loadingType&&"noMore"!==n.integral.loadingType&&(n.integral.loadingType="loading",(0,o.getIntegralList)({page:n.integral.page,limit:n.integral.limit}).then((function(o){var r=o.data;console.log(r),n.integral.list=n.integral.list.concat(r),console.log(n.integral.list),n.integral.limit!=r.length?(n.integral.loadingType="noMore",e.hideLoading(),t.$set(n.integral,"loaded",!0)):n.integral.loadingType="more"})))}}};t.default=s}).call(this,n("543d")["default"])},f034:function(e,t,n){}},[["b786","common/runtime","common/vendor"]]]);