(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/couponList"],{1537:function(n,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return u})),e.d(o,"a",(function(){return t}));var t={uniLoadMore:function(){return e.e("components/uni-load-more/uni-load-more").then(e.bind(null,"ef69"))}},i=function(){var n=this,o=n.$createElement;n._self._c},u=[]},"1a26":function(n,o,e){"use strict";e.r(o);var t=e("1537"),i=e("1da6");for(var u in i)"default"!==u&&function(n){e.d(o,n,(function(){return i[n]}))}(u);e("9f42");var a,c=e("f0c5"),l=Object(c["a"])(i["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],a);o["default"]=l.exports},"1da6":function(n,o,e){"use strict";e.r(o);var t=e("b0ad"),i=e.n(t);for(var u in t)"default"!==u&&function(n){e.d(o,n,(function(){return t[n]}))}(u);o["default"]=i.a},"9f42":function(n,o,e){"use strict";var t=e("b657"),i=e.n(t);i.a},b0ad:function(n,o,e){"use strict";(function(n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var t=e("c7ed"),i=e("7eca"),u=function(){e.e("uview-ui/components/u-loadmore/u-loadmore").then(function(){return resolve(e("4191"))}.bind(null,e)).catch(e.oe)},a=function(){e.e("uview-ui/components/u-empty/u-empty").then(function(){return resolve(e("547d"))}.bind(null,e)).catch(e.oe)},c={data:function(){return{height:"",loadingType:"more",list:[],loaded:!1,iconColor:"red",color:"red",page:1,limit:10}},components:{empty:a,uniLoadMore:u},onLoad:function(){(0,i.userinfo)({}).then((function(n){var o=n.data;console.log(o,"123456")})),this.getCouponList()},onShow:function(){},onReachBottom:function(){this.getCouponList()},onReady:function(){var o=this;n.getSystemInfo({success:function(e){var t=n.createSelectorQuery();t.select(".scroll-wrap").boundingClientRect(),t.exec((function(n){o.height=e.windowHeight-n[0].top+"px"})),console.log(o.height)},fail:function(n){}})},methods:{navTo:function(o){n.navigateTo({url:o,fail:function(){n.switchTab({url:o})}})},getCouponList:function(){var n=this;"noMore"!=n.loadingType&&"loading"!=n.loadingType&&(n.loadingType="loading",(0,t.getCouponList)({page:n.page,limit:n.limit}).then((function(o){console.log(o),n.list=n.list.concat(o.data),n.page++,n.limit==o.data.length?n.loadingType="more":n.loadingType="noMore",n.loaded=!0})))},lq:function(o){o.used||(0,t.setCoupons)({couponId:o.id}).then((function(e){console.log(e),n.showToast({title:"领取成功",duration:2e3}),o.used=1}))}}};o.default=c}).call(this,e("543d")["default"])},b657:function(n,o,e){},fead:function(n,o,e){"use strict";(function(n){e("856e");t(e("66fd"));var o=t(e("1a26"));function t(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("543d")["createPage"])}},[["fead","common/runtime","common/vendor"]]]);