1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/coupon/index"],{4538:function(t,n,e){"use strict";var o=e("ed3f"),r=e.n(o);r.a},"6e5e":function(t,n,e){"use strict";var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("d220")),u={mixins:[r.default],components:{navbar:function(){Promise.all([e.e("common/vendor"),e.e("components/navbar/navbar")]).then(function(){return resolve(e("2445"))}.bind(null,e)).catch(e.oe)},authorize:function(){e.e("components/authorize/authorize").then(function(){return resolve(e("5841"))}.bind(null,e)).catch(e.oe)}},data:function(){return{screenHeight:0,isAuthShow:!1,scrollNum:0,downOption:{auto:!1},upOption:{use:!0,auto:!1,isLock:!1,isBoth:!0,page:{num:0,size:10,time:null},noMoreSize:3,offset:80,bgColor:"transparent",textColor:"gray",textLoading:"加载中 ...",textNoMore:"-- END --"},result:[]}},onPageScroll:function(t){this.scrollNum=t.scrollTop},onShow:function(){var t=this;this.$store.dispatch("usersStatus").then((function(){t.isAuthShow=!1,t.downCallback()})).catch((function(){t.isAuthShow=!0,t.mescroll.showEmpty()}))},methods:{downCallback:function(){var t=this;setTimeout((function(){t.mescroll.resetUpScroll()}),200)},triggerDownScroll:function(){this.mescroll.triggerDownScroll()},onReceive:function(t){var n=this;this.$utils.in_array(this.result[t].is_receive,[1,2])||this.$http.getCouponList({id:this.result[t].id}).then((function(e){e.status,n.$utils.msg(e.info),n.result[t].is_receive=e.data})).catch((function(t){n.$utils.msg("网络出错,请检查是否已连接")}))},upCallback:function(t){var n=this;this.$http.getCouponLoad({page:t.num}).then((function(e){n.mescroll.endByPage(e.data.list.length,e.data.total),1==e.status?(1==t.num&&(n.result=[]),n.result=n.result.concat(e.data.list)):-1==e.status&&n.mescroll.endErr()})).catch((function(t){n.mescroll.endErr()}))}}};n.default=u},"7f9c":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var o={navbar:function(){return Promise.all([e.e("common/vendor"),e.e("components/navbar/navbar")]).then(e.bind(null,"2445"))},mescrollBody:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(e.bind(null,"adc6"))},authorize:function(){return e.e("components/authorize/authorize").then(e.bind(null,"5841"))}},r=function(){var t=this.$createElement;this._self._c},u=[]},d2e8:function(t,n,e){"use strict";e.r(n);var o=e("7f9c"),r=e("f28f");for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("4538");var i=e("f0c5"),c=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"499cfe40",null,!1,o["a"],void 0);n["default"]=c.exports},e9ba:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("dc53");o(e("66fd"));var r=o(e("d2e8"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},ed3f:function(t,n,e){},f28f:function(t,n,e){"use strict";e.r(n);var o=e("6e5e"),r=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a}},[["e9ba","common/runtime","common/vendor"]]]);
|