1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/coupon/index"],{5275:function(e,t,n){"use strict";n.r(t);var r=n("95b0"),i=n("5eeb");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("755d");var a=n("f0c5"),s=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"22396426",null,!1,r["a"],void 0);t["default"]=s.exports},"5eeb":function(e,t,n){"use strict";n.r(t);var r=n("7450"),i=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=i.a},7450:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("bb78"),i={data:function(){return{active:1,open:999,status:"more",query:{currentPage:1,pageSize:10,status:1,setMealId:JSON.parse(e.getStorageSync("userInfo")).setMealId,userId:JSON.parse(e.getStorageSync("userInfo")).userId},list:[]}},filters:{filterUseTime:function(e){return 0==e.useType?"无限制":1==e.useType?e.useStartTime+"-"+e.useEndTime+"可使用":2==e.useType?"每周"+e.day:3==e.useType?"每月"+e.day+"日":void 0},filterTime:function(e){return 1==e.validType?"永久有效":e.validStartTime+"-"+e.validEndTime},filterType:function(e,t){return 1==e?"无使用限制":2==e?"使用期至"+t.useEndTime:3==e?"每周"+t.day+"可用":4==e?"每月"+t.day+"可用":void 0},filterType1:function(e,t){return 1==e?"有效期:无限制":2==e?"有效期:"+t.validStartTime+"-"+t.validEndTime:void 0}},methods:{handleOpen:function(e,t){e===this[t]?this[t]=999:this[t]=e},handleTab:function(e){this.query.status=e,this.list=[],this.status="more",this.query.currentPage=1,this.getWhetherCoupon()},loadMore:function(){this.getWhetherCoupon()},getWhetherCoupon:function(){var e=this;this.status="loading",(0,r.getWhetherCoupon)(this.query).then((function(t){"Success"==t.state&&(e.list=e.list.concat(t.content.records),e.list.length>=t.content.total?e.status="noMore":e.status="more",e.query.currentPage++)}))}},created:function(){var t=JSON.parse(e.getStorageSync("userInfo"));this.query.userId=t.userId,this.query.setMealId=t.setMealId}};t.default=i}).call(this,n("543d")["default"])},"755d":function(e,t,n){"use strict";var r=n("781e"),i=n.n(r);i.a},"781e":function(e,t,n){},8057:function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("b7d7");r(n("66fd"));var i=r(n("5275"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"95b0":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var r={zsList:function(){return n.e("components/zs-list/index").then(n.bind(null,"7636"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.list,(function(t,n){var r=e.__get_orig(t),i=e._f("filterType")(t.useType,t),u=e._f("filterType1")(t.validType,t);return{$orig:r,f0:i,f1:u}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},u=[]}},[["8057","common/runtime","common/vendor"]]]);
|