(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/pointsExchange"],{138:function(e,n,t){"use strict";(function(e){var n=t(3);t(25);n(t(24));var o=n(t(139));wx.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["createPage"])},139:function(e,n,t){"use strict";t.r(n);var o=t(140),r=t(142);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(144);var i,c=t(39),l=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);l.options.__file="pages/product/pointsExchange.vue",n["default"]=l.exports},140:function(e,n,t){"use strict";t.r(n);var o=t(141);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},141:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uniLoadMore:function(){return t.e("components/uni-load-more/uni-load-more").then(t.bind(null,322))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(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:t,m0:o}})},a=!1,i=[];r._withStripped=!0},142:function(e,n,t){"use strict";t.r(n);var o=t(143),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},143:function(e,n,t){"use strict";(function(e){var o=t(3);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(10)),a=t(52),i=t(27);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,r.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var u=function(){t.e("components/empty").then(function(){return resolve(t(631))}.bind(null,t)).catch(t.oe)},s=function(){t.e("components/uni-load-more/uni-load-more").then(function(){return resolve(t(322))}.bind(null,t)).catch(t.oe)},d={components:{empty:u,uniLoadMore:s},data:function(){return{integral:{page:1,limit:10,list:[],loadingType:"more",loaded:""}}},computed:l({},(0,i.mapState)("user",["userInfo","checkedStore","des","latlng"])),onLoad:function(){this.loadData()},onReachBottom:function(){this.loadData()},filters:{storename:function(e){var n="";return e&&(n=e,e.length>5&&(n=e.slice(0,5)+"...")),n},longstorename:function(e){var n="";return e&&(n=e,e.length>10&&(n=e.slice(0,10)+"...")),n}},methods:{space:function(n,t){var o=e.getStorageSync("latlon");console.log(o);var r=o.split(","),a=r[0],i=r[1];console.log(n,t,a,i,"位置信息");var c=n*Math.PI/180,l=a*Math.PI/180,u=c-l,s=t*Math.PI/180-i*Math.PI/180,d=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 d*=6378.137,d=Math.round(1e4*d)/1e4,d>1?d.toFixed(2)+"km":1e3*d+"m"},navTo:function(n){e.navigateTo({url:n})},loadData:function(){var n=this,t=this;"loading"!==t.integral.loadingType&&"noMore"!==t.integral.loadingType&&(t.integral.loadingType="loading",(0,a.getIntegralList)({page:t.integral.page,limit:t.integral.limit}).then((function(o){var r=o.data;console.log(r),t.integral.list=t.integral.list.concat(r),console.log(t.integral.list),t.integral.limit!=r.length?(t.integral.loadingType="noMore",e.hideLoading(),n.$set(t.integral,"loaded",!0)):t.integral.loadingType="more"})))}}};n.default=d}).call(this,t(1)["default"])},144:function(e,n,t){"use strict";t.r(n);var o=t(145),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},145:function(e,n,t){}},[[138,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/product/pointsExchange.js.map