1 line
6.0 KiB
JavaScript
1 line
6.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f185f30"],{1080:function(e,t,i){"use strict";i("756c")},"756c":function(e,t,i){var a=i("a9cc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var c=i("499e").default;c("33e2cd92",a,!0,{sourceMap:!1,shadowMode:!1})},8455:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"redeem-code-history"},[i("c-title",{attrs:{text:"兑换码历史记录"}}),i("div",{staticClass:"box"},[i("span",{class:0==e.active?"current":"",on:{click:function(t){return e.change(0)}}},[e._v("已兑换")]),i("span",{class:1==e.active?"current":"",on:{click:function(t){return e.change(1)}}},[e._v("已转赠")]),i("span",{class:2==e.active?"current":"",on:{click:function(t){return e.change(2)}}},[e._v("已过期")]),i("span",{class:7==e.active?"current":"",on:{click:function(t){return e.change(7)}}},[e._v("未激活")]),i("span",{class:8==e.active?"current":"",on:{click:function(t){return e.change(8)}}},[e._v("已冻结")]),i("span",{class:6==e.active?"current":"",on:{click:function(t){return e.change(6)}}},[e._v("已作废")])]),i("div",{staticClass:"list"},e._l(e.list,(function(t){return i("div",{key:t.id,staticClass:"list-item"},[i("div",{staticClass:"left"},[i("span",{staticClass:"tips"},[e._v(e._s(1==t.type?"商品兑换":"身份兑换"))]),i("div",[i("p",{staticClass:"name"},[e._v(e._s(t.name))]),0==e.active?i("p",{staticClass:"time"},[e._v(e._s(t.event_time)+"兑换")]):1==e.active?i("p",{staticClass:"time"},[e._v(e._s(t.event_time)+"转赠给【"+e._s(t.tranfer_member)+"】")]):2==e.active?i("p",{staticClass:"time"},[e._v(e._s(t.event_time)+"过期")]):6==e.active?i("p",{staticClass:"time"},[e._v(e._s(t.event_time)+"作废")]):e._e()])]),i("div",{staticClass:"right"},[i("div",{staticClass:"line"}),i("span",[e._v(e._s(0==e.active?"已兑换":1==e.active?"已转赠":2==e.active?"已过期":7==e.active?"未激活":8==e.active?"已冻结":"已作废"))])])])})),0)],1)},c=[],s=i("c7eb"),r=i("1da1"),n=(i("99af"),i("ac0d")),o={mixins:[n["a"]],data:function(){return{active:0,list:[],isLoadMore:!0,current_page:1,last_page:1}},activated:function(){this.isLoadMore=!0,this.getData({page:1,search:{status:3}})},methods:{change:function(e){this.active=e;var t=0==e?3:1==e?5:2==e?4:e;this.getData({page:1,search:{status:t}})},getData:function(e){var t=this;return Object(r["a"])(Object(s["a"])().mark((function i(){var a,c,r,n,o,l,d;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,$http.post("plugin.exchange-code.api.record.list",e);case 2:a=i.sent,c=a.result,r=a.data,n=r.data,o=r.current_page,l=r.last_page,d=a.msg,t.isLoadMore=!0,c?(t.current_page=o,t.last_page=l,t.list=1==o?n||[]:t.list.concat(n)):t.$toast(d);case 11:case"end":return i.stop()}}),i)})))()},getMoreData:function(){if(!(this.current_page>=this.last_page)){this.isLoadMore=!1;var e={page:this.current_page+1,search:{status:this.active+3}};this.getData(e)}}}},l=o,d=(i("1080"),i("2877")),m=Object(d["a"])(l,a,c,!1,null,"b3e94bcc",null);t["default"]=m.exports},a9cc:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'[data-v-b3e94bcc] .van-tabs__nav{background:none}.redeem-code-history .box[data-v-b3e94bcc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1rem 0 1.0625rem 1.8125rem}.redeem-code-history .box span[data-v-b3e94bcc]{margin-right:1.375rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.redeem-code-history .current[data-v-b3e94bcc]{color:var(--themeBaseColor);position:relative}.redeem-code-history .current[data-v-b3e94bcc]:after{content:"";position:absolute;bottom:-.25rem;left:-.3125rem;height:.125rem;width:calc(100% + .625rem);background:var(--themeBaseColor)}.redeem-code-history .time[data-v-b3e94bcc]{color:#979797;font-size:.625rem;text-align:left;margin:.1rem 0 .2rem}.redeem-code-history .name[data-v-b3e94bcc]{color:#333;font-size:.8125rem;text-align:left}.redeem-code-history .left[data-v-b3e94bcc]{position:relative;padding:1.3rem .9375rem .437rem .625rem}.redeem-code-history .tips[data-v-b3e94bcc]{position:absolute;left:0;top:0;font-size:.625rem;color:#8c5b00;padding:.1rem .2813rem .21em .31rem;border-radius:0 0 .4rem 0;white-space:nowrap;background:#fdd845}.redeem-code-history .right[data-v-b3e94bcc]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.75rem .625rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-size:.625rem;color:var(--themeBaseColor)}.redeem-code-history .line[data-v-b3e94bcc]{position:absolute;width:3px;left:0;height:2.75rem;border-left:1px dotted #afafaf}.redeem-code-history .list-item[data-v-b3e94bcc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;border-radius:.5625rem;overflow:hidden;background:#fff;margin-bottom:.625rem;opacity:.7}.redeem-code-history .list[data-v-b3e94bcc]{padding:.7rem .625rem 1rem}',""]),e.exports=t},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var a=document.documentElement,c=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return a&&a.scrollTop?e=a.scrollTop:c&&(e=c.scrollTop),e},getClientHeight:function(){var e=0;return e=c.clientHeight&&a.clientHeight?Math.min(c.clientHeight,a.clientHeight):Math.max(c.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(c.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]); |