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.
 
 
 
 
high-mini/unpackage/dist/build/mp-weixin/pages/user/mineCoupons/mineCoupons.js

1 lines
2.7 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/mineCoupons/mineCoupons"],{"053e":function(t,e,a){"use strict";a.r(e);var i=a("f3c1"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"086d":function(t,e,a){"use strict";a.r(e);var i=a("ad6b"),n=a("053e");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("7600");var s,u=a("f0c5"),r=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);e["default"]=r.exports},"56ab":function(t,e,a){"use strict";(function(t){a("eba6");i(a("66fd"));var e=i(a("086d"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},"5d1a":function(t,e,a){},7600:function(t,e,a){"use strict";var i=a("5d1a"),n=a.n(i);n.a},ad6b:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement;t._self._c},o=[]},f3c1:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("b528"),n=getApp(),o={data:function(){return{businType:["未使用","已使用","已过期"],tabbarIndex:0,imageUrl:n.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):2===this.tabbarIndex&&this.getUserCouponList(0)},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)):2===this.tabbarIndex&&(this.pageNum=1,this.productList=[],this.isNoMoreData=!1,this.getUserCouponList(0))},jumpMineCou:function(e){t.navigateTo({url:"../../goods/coupon-details/coupon-details?id="+e})},getUserCouponList:function(e){var a=this;if(t.showLoading({title:"加载中..."}),this.isNoMoreData)return t.hideLoading(),this.loadingText="到底了",!1;var n=this.pageNum,o={pageNum:n,status:e,pageSize:this.pageSize};(0,i.getUserCouponList)(o).then((function(e){"000000"==e.return_code&&""!=e.return_data.list?(t.hideLoading(),a.isNoMoreData=e.return_data.list.length!=a.pageSize,a.productList=a.productList.concat(e.return_data.list),e.return_data.total==a.pageNum*a.pageSize&&(a.isNoMoreData=!0),a.pageNum=e.return_data.list.length==a.pageSize?++n:n):(a.productList=[],t.hideLoading())}))}}};e.default=o}).call(this,a("543d")["default"])}},[["56ab","common/runtime","common/vendor"]]]);