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 line
2.5 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/mineCoupons/mineCoupons"],{"053e":function(t,e,n){"use strict";n.r(e);var a=n("f3c1"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"086d":function(t,e,n){"use strict";n.r(e);var a=n("a694"),i=n("053e");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("7600");var u,r=n("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],u);e["default"]=s.exports},"56ab":function(t,e,n){"use strict";(function(t){n("eba6");a(n("66fd"));var e=a(n("086d"));function a(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 a=n("5d1a"),i=n.n(a);i.a},a694:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=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 a=n("b528"),i=getApp(),o={data:function(){return{businType:["未使用","已使用"],tabbarIndex:0,imageUrl:i.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 i=this.pageNum,o={pageNum:i,status:e,pageSize:this.pageSize};(0,a.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.productList=n.productList.concat(e.return_data.list),e.return_data.total==n.pageNum*n.pageSize&&(n.isNoMoreData=!0),n.pageNum=e.return_data.list.length==n.pageSize?++i:i):(n.productList=[],t.hideLoading())}))}}};e.default=o}).call(this,n("543d")["default"])}},[["56ab","common/runtime","common/vendor"]]]);