You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.5 KiB
1 lines
2.5 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/mineCoupons/mineCoupons"],{"053e":function(t,e,n){"use strict";n.r(e);var i=n("f3c1"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"086d":function(t,e,n){"use strict";n.r(e);var i=n("b87f"),a=n("053e");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("7600");var u,r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);e["default"]=s.exports},"56ab":function(t,e,n){"use strict";(function(t){n("eba6");i(n("66fd"));var e=i(n("086d"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"5d1a":function(t,e,n){},7600:function(t,e,n){"use strict";var i=n("5d1a"),a=n.n(i);a.a},b87f:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},f3c1:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("b528"),a=getApp(),o={data:function(){return{businType:["未使用","已使用"],tabbarIndex:0,imageUrl:a.globalData.imgUrl,productList:[],pageNum:1,pageSize:10,isNoMoreData:!1,loadingText:""}},onPageScroll:function(t){},onLoad:function(){this.getUserCouponList(1)},onReachBottom:function(){0===this.tabbarIndex?this.getUserCouponList(1):1===this.tabbarIndex&&this.getUserCouponList(2)},methods:{showType:function(t){this.tabbarIndex=t,0===this.tabbarIndex?(this.pageNum=1,this.productList=[],this.isNoMoreData=!1,this.getUserCouponList(1)):1===this.tabbarIndex&&(this.pageNum=1,this.productList=[],this.isNoMoreData=!1,this.getUserCouponList(2))},jumpMineCou:function(e){t.navigateTo({url:"../../goods/coupon-details/coupon-details?id="+e})},getUserCouponList:function(e){var n=this;if(t.showLoading({title:"加载中..."}),this.isNoMoreData)return t.hideLoading(),this.loadingText="到底了",!1;var a=this.pageNum,o={pageNum:a,status:e,pageSize:this.pageSize};(0,i.getUserCouponList)(o).then((function(e){"000000"==e.return_code&&""!=e.return_data.list?(t.hideLoading(),n.isNoMoreData=e.return_data.list.length!=n.pageSize,n.pageNum=e.return_data.list.length==n.pageSize?++a:a,n.productList=n.productList.concat(e.return_data.list)):(n.productList=[],t.hideLoading())}))}}};e.default=o}).call(this,n("543d")["default"])}},[["56ab","common/runtime","common/vendor"]]]); |