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.4 KiB
1 lines
2.4 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/mineCoupons/mineCoupons"],{"0070":function(t,e,n){"use strict";var i=n("81df"),o=n.n(i);o.a},"01f0":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("524d"),o=getApp(),a={data:function(){return{businType:["未使用","已使用"],tabbarIndex:0,imageUrl:o.globalData.imgUrl,productList:[],pageNum:1,pageSize:10,isNoMoreData:!1,loadingText:""}},onPageScroll:function(t){},onLoad:function(){this.getUserCouponList(1)},onReachBottom:function(){this.getUserCouponList()},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 o=this.pageNum,a={pageNum:o,status:e,pageSize:this.pageSize};(0,i.getUserCouponList)(a).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?++o:o,n.productList=n.productList.concat(e.return_data.list)):(n.productList=[],t.hideLoading())}))}}};e.default=a}).call(this,n("543d")["default"])},"491e":function(t,e,n){"use strict";(function(t){n("185d");i(n("66fd"));var e=i(n("6a9d"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"6a9d":function(t,e,n){"use strict";n.r(e);var i=n("b089"),o=n("c5fb");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("0070");var u,r=n("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);e["default"]=s.exports},"81df":function(t,e,n){},b089:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement;t._self._c},a=[]},c5fb:function(t,e,n){"use strict";n.r(e);var i=n("01f0"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a}},[["491e","common/runtime","common/vendor"]]]); |