1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78e75268"],{3956:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"[data-v-33e304f7] .van-cell{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin:.5rem 0;border-radius:.3125rem}[data-v-33e304f7] .van-tabs__nav{background-color:unset!important}[data-v-33e304f7] .van-cell-group{margin-top:.625rem;background-color:unset;padding:0 .5rem}.sign-in-subscribe-active-value[data-v-33e304f7]{padding-bottom:1rem}.sign-in-subscribe-active-value .time[data-v-33e304f7]{color:#989898}.sign-in-subscribe-active-value .value-class[data-v-33e304f7]{color:#080808;font-size:.75rem}.sign-in-subscribe-active-value .header[data-v-33e304f7]{padding:.5rem;color:#fff}.sign-in-subscribe-active-value .box[data-v-33e304f7]{position:relative;background-color:#ffad57;border-radius:.625rem;padding-top:1.3125rem;padding-left:1rem;padding-bottom:4.3125rem}.sign-in-subscribe-active-value .value[data-v-33e304f7]{margin-top:.375rem;font-size:1.125rem}.sign-in-subscribe-active-value .left[data-v-33e304f7]{text-align:left}.sign-in-subscribe-active-value .tips[data-v-33e304f7]{position:absolute;bottom:0;left:0;right:0;background-color:hsla(0,0%,100%,.3);padding:.5625rem}",""]),t.exports=e},"61d9":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sign-in-subscribe-active-value"},[a("c-title",{attrs:{text:t.custom_name+"明细"}}),a("div",{staticClass:"header"},[a("div",{staticClass:"box"},[a("p",{staticClass:"left"},[t._v("当前"+t._s(t.custom_name))]),a("p",{staticClass:"left value"},[t._v(t._s(t.signMember.usable))]),t.validity&&0!==t.validity.length?a("div",{staticClass:"tips left"},[t._v("您有"+t._s(t.validity.wait_repaid)+t._s(t.custom_name)+"将于"+t._s(t.validity.validity_date)+"过期")]):t._e()])]),a("van-tabs",{attrs:{"title-active-color":"#F15353"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"明细记录"}})],1),t.list&&0!=t.list.length?[a("van-cell-group",t._l(t.list,(function(e,i){return a("van-cell",{key:i,attrs:{"title-style":"text-align:left;font-size: .75rem;","value-class":"value-class"},scopedSlots:t._u([{key:"title",fn:function(){return[a("span",[t._v(t._s(e.source_name))]),a("p",{staticClass:"time"},[t._v(t._s(e.created_at))])]},proxy:!0},{key:"default",fn:function(){return[a("span",[t._v(t._s(e.change_value))]),e.has_one_order?a("p",{staticClass:"order-id"},[t._v(t._s(e.has_one_order.order_sn)+" ")]):t._e()]},proxy:!0}],null,!0)})})),1)]:a("van-empty",{attrs:{description:"暂无记录"}})],2)},n=[],s=a("c7eb"),r=a("1da1"),c=(a("99af"),a("ac0d")),o={mixins:[c["a"]],data:function(){return{active:0,list:[],validity:null,signMember:{},isLoadMore:!0,current_page:1,last_page:1}},activated:function(){this.initData(),this.getData()},methods:{initData:function(){this.list=[],this.isLoadMore=!0,this.current_page=1,this.last_page=1},getData:function(){var t=this;return Object(r["a"])(Object(s["a"])().mark((function e(){var a,i,n,r,c,o,l,u;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.sign-buy.frontend.asset-record.active-value");case 2:if(a=e.sent,i=a.result,n=a.msg,r=a.data,c=r.validity,o=r.signMember,l=r.record,u=r.custom_name,0!=i){e.next=12;break}return e.abrupt("return",t.$toast(n));case 12:t.list=l.data,t.current_page=l.current_page,t.last_page=l.last_page,t.validity=c,t.signMember=o,t.custom_name=u;case 18:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;return Object(r["a"])(Object(s["a"])().mark((function e(){var a,i,n,r,c;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isLoadMore=!1,!(t.current_page>=t.last_page)){e.next=3;break}return e.abrupt("return");case 3:return a=t.current_page+1,e.next=6,$http.get("plugin.sign-buy.frontend.asset-record.active-value-record",{page:a});case 6:if(i=e.sent,n=i.result,r=i.msg,c=i.data,0!=n){e.next=12;break}return e.abrupt("return",t.$toast(r));case 12:t.list=t.list.concat(c.data),t.current_page=c.current_page,t.last_page=c.last_page;case 15:case"end":return e.stop()}}),e)})))()}}},l=o,u=(a("e9e9"),a("2877")),d=Object(u["a"])(l,i,n,!1,null,"33e304f7",null);e["default"]=d.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,n=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b58b:function(t,e,a){var i=a("3956");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("33833ec0",i,!0,{sourceMap:!1,shadowMode:!1})},e9e9:function(t,e,a){"use strict";a("b58b")}}]); |