coupon.js 3.1 KB

12
  1. require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/coupon"],{794:function(t,n,e){"use strict";(function(t,n){var o=e(4);e(26);o(e(25));var i=o(e(795));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},795:function(t,n,e){"use strict";e.r(n);var o=e(796),i=e(798);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e(800);var u,c=e(34),s=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"47287ee1",null,!1,o["components"],u);s.options.__file="pages_company/coupon.vue",n["default"]=s.exports},796:function(t,n,e){"use strict";e.r(n);var o=e(797);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},797:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return u})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return o}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,0==t.couponsList.length&&t.page>1);t.$mp.data=Object.assign({},{$root:{g0:e}})},a=!1,u=[];i._withStripped=!0},798:function(t,n,e){"use strict";e.r(n);var o=e(799),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},799:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(314),i=function(){e.e("components/Loading").then(function(){return resolve(e(1069))}.bind(null,e)).catch(e.oe)},a={name:"getCoupon",components:{Loading:i},props:{},data:function(){return{cateId:0,cates:[],page:1,limit:10,couponsList:[],loading:!1,loadend:!1}},onLoad:function(t){var n={dictLabel:"全部",dictValue:0};this.cates.push(n),this.cates=this.cates.concat(this.utils.getDict("storeProductPackageCate"))},mounted:function(){},onShow:function(){this.getCompanyCouponIssueList()},onReachBottom:function(){!this.loading&&this.getCompanyCouponIssueList()},methods:{choseCate:function(t){this.cateId=t.dictValue,this.couponsList=[],this.loading=!1,this.loadend=!1,this.page=1,this.getCompanyCouponIssueList()},show:function(n){t.navigateTo({url:"./couponDetails?id="+n.id+"&type=1"})},getCompanyCouponIssueList:function(){var t=this;if(!this.loading&&!this.loadend){this.loading=!0;var n={couponType:1,page:this.page,pageSize:this.limit,cateId:this.cateId};(0,o.getCompanyCouponIssueList)(n).then((function(n){t.loading=!1,t.couponsList.push.apply(t.couponsList,n.data.list),t.loadend=n.data.list.length<t.limit,t.page=t.page+1}))}}}};n.default=a}).call(this,e(2)["default"])},800:function(t,n,e){"use strict";e.r(n);var o=e(801),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},801:function(t,n,e){}},[[794,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_company/coupon.js.map