| 1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/order/coupon"],{"09d5":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement,n=(this._self._c,0==this.couponsList.length&&this.page>1);this.$mp.data=Object.assign({},{$root:{g0:n}})},i=[]},"2a50":function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("584a");o(e("3240"));var i=o(e("6adf7"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"4bea":function(t,n,e){"use strict";e.r(n);var o=e("96d0"),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},"6adf7":function(t,n,e){"use strict";e.r(n);var o=e("09d5"),i=e("4bea");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("eb2c");var u=e("828b"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"192e963f",null,!1,o["a"],void 0);n["default"]=s.exports},"96d0":function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("7ca3")),a=e("a678"),u={name:"getCoupon",components:{Loading:function(){e.e("components/Loading").then(function(){return resolve(e("86fa"))}.bind(null,e)).catch(e.oe)}},props:{},data:function(){return(0,i.default)({searchKey:null,limit:10,couponsList:[],loading:!1,loadend:!1,page:1},"limit",10)},onLoad:function(t){},mounted:function(){},onShow:function(){this.getCompanyCouponIssueList()},onReachBottom:function(){!this.loading&&this.getCompanyCouponIssueList()},methods:{goSearch:function(t){this.searchKey=t.detail.value,this.page=1,this.couponsList=[],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=null;n=null!=this.searchKey?{couponPrice:this.searchKey,page:this.page,pageSize:this.limit,couponType:2}:{page:this.page,pageSize:this.limit,couponType:2},(0,a.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=u}).call(this,e("df3c")["default"])},eb2c:function(t,n,e){"use strict";var o=e("eedc"),i=e.n(o);i.a},eedc:function(t,n,e){}},[["2a50","common/runtime","common/vendor"]]]);
|