| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/coupon/list"],{"170b":function(t,n,e){"use strict";var i,o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.$util.isEmpty(t.list.data)),i=t.__map(t.list.data,(function(n,e){var i=t._f("formatTime")(n.deadline,"YYYY-MM-DD");return{$orig:t.__get_orig(n),f0:i}})),o=t.$util.isEmpty(t.list.data);t.$mp.data=Object.assign({},{$root:{g0:e,l0:i,g1:o}})},u=[];e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}))},"5dbf":function(t,n,e){"use strict";e.r(n);var i=e("170b"),o=e("ff8c");for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("c82d");var r,a=e("f0c5"),s=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"3252966a",null,!1,i["a"],r);n["default"]=s.exports},"87cb":function(t,n,e){"use strict";(function(t){e("6cdc"),e("921b");i(e("66fd"));var n=i(e("5dbf"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"9bda":function(t,n,e){},c82d:function(t,n,e){"use strict";var i=e("9bda"),o=e.n(i);o.a},f59e:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("a34a")),o=e("1b62"),u=e("34f9");function r(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,i,o,u,r){try{var a=t[u](r),s=a.value}catch(c){return void e(c)}a.done?n(s):Promise.resolve(s).then(i,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(i,o){var u=t.apply(n,e);function r(t){a(u,i,o,r,s,"next",t)}function s(t){a(u,i,o,r,s,"throw",t)}r(void 0)}))}}var c=function(){return e.e("components/plugin/tabs").then(e.bind(null,"f58d"))},f=function(){return e.e("components/app-wrapper-empty").then(e.bind(null,"c078"))},l={name:"tabs",components:{AppTabs:c,AppWrapperEmpty:f},mixins:[o.list],data:function(){return{constant:this.$constant,tabIndex:0,tabs:[{name:"未使用"},{name:"使用记录"},{name:"已过期"}]}},onPullDownRefresh:function(){this.resetList(),this._list().then((function(n){t.stopPullDownRefresh()}))},onReachBottom:function(){1==this.list.moreData?this._list().then((function(n){t.stopPullDownRefresh()})):t.stopPullDownRefresh()},onLoad:function(){},methods:{init:function(){var t=s(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this._list();case 1:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),_list:function(){var t=this;return(0,u.getList)({status:this.tabIndex}).then((function(n){console.log(n),t.completes(n)}))},change:function(t){if(this.tabIndex==t.index)return!1;this.tabIndex=t.index,this.resetList(),this._list()},goUserFn:function(){alert("跳转到哪?")}}};n.default=l}).call(this,e("543d")["default"])},ff8c:function(t,n,e){"use strict";e.r(n);var i=e("f59e"),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a}},[["87cb","common/runtime","common/vendor"]]]);
|