(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/couponList"],{"01ab":function(n,t,e){"use strict";e.r(t);var o=e("a8a7"),i=e("437a");for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);e("9f9e");var u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},"437a":function(n,t,e){"use strict";e.r(t);var o=e("e1ef"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=i.a},"4f56":function(n,t,e){},"737b":function(n,t,e){"use strict";(function(n,t){var o=e("4ea4");e("12d5");o(e("66fd"));var i=o(e("01ab"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"9f9e":function(n,t,e){"use strict";var o=e("4f56"),i=e.n(o);i.a},a8a7:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var o={uniLoadMore:function(){return e.e("components/uni-load-more/uni-load-more").then(e.bind(null,"bfdb"))}},i=function(){var n=this.$createElement,t=(this._self._c,!0===this.loaded&&0===this.list.length),e=0==this.list.length&&this.loaded;this.$mp.data=Object.assign({},{$root:{g0:t,g1:e}})},a=[]},e1ef:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("d31e"),i=e("36af"),a={data:function(){return{height:"",loadingType:"more",list:[],loaded:!1,iconColor:"red",color:"red",page:1,limit:10}},components:{empty:function(){e.e("uview-ui/components/u-empty/u-empty").then(function(){return resolve(e("e5d5"))}.bind(null,e)).catch(e.oe)},uniLoadMore:function(){e.e("uview-ui/components/u-loadmore/u-loadmore").then(function(){return resolve(e("9a86"))}.bind(null,e)).catch(e.oe)}},onLoad:function(){(0,i.userinfo)({}).then((function(n){var t=n.data;console.log(t,"123456")})),this.getCouponList()},onShow:function(){},onReachBottom:function(){this.getCouponList()},onReady:function(){var t=this;n.getSystemInfo({success:function(e){var o=n.createSelectorQuery();o.select(".scroll-wrap").boundingClientRect(),o.exec((function(n){t.height=e.windowHeight-n[0].top+"px"})),console.log(t.height)},fail:function(n){}})},methods:{navTo:function(t){n.navigateTo({url:t,fail:function(){n.switchTab({url:t})}})},getCouponList:function(){var n=this;"noMore"!=n.loadingType&&"loading"!=n.loadingType&&(n.loadingType="loading",(0,o.getCouponList)({page:n.page,limit:n.limit}).then((function(t){console.log(t),n.list=n.list.concat(t.data),n.page++,n.limit==t.data.length?n.loadingType="more":n.loadingType="noMore",n.loaded=!0})))},lq:function(t){t.used||(0,o.setCoupons)({couponId:t.id}).then((function(e){console.log(e),n.showToast({title:"领取成功",duration:2e3}),t.used=1}))}}};t.default=a}).call(this,e("543d")["default"])}},[["737b","common/runtime","common/vendor"]]]);