1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4215a72a"],{"0a8e":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",{attrs:{id:"liveAuthorization_extension"}},[a("c-title",{attrs:{hide:!1,text:"直播授权码"}}),a("div",{staticClass:"head"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.avatar,alt:""}})]),a("div",{staticClass:"name"},[t._v(t._s(t.nickname))])]),a("div",{staticClass:"amounts"},[a("div",{staticStyle:{"font-size":"1.13rem",color:"#202020"}},[t._v("累计金额")]),a("div",{staticStyle:{"font-size":"1.13rem",color:"#f14e4e"}},[t._v("¥"+t._s(t.money))])]),a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"收益记录"}})],1),a("div",{staticClass:"lisbox"},t._l(t.info,(function(e,i){return a("div",{key:i,staticClass:"list"},[a("div",{staticClass:"time"},[t._v(t._s(e.buy_time))]),a("div",[t._v("+"+t._s(e.money))])])})),0)],1)},o=[],n=(a("99af"),a("6968")),s=a("ac0d"),l={components:{cTitle:n["a"]},mixins:[s["a"]],data:function(){return{isLoadMore:!0,page:1,total_page:0,info:[],money:0,avatar:"",nickname:""}},activated:function(){this.getData()},methods:{getData:function(){var t=this;$http.get("plugin.room.frontend.code.get-code-profit",{},"加载中").then((function(e){1==e.result&&(t.info=e.data.data,t.money=e.data.money,t.nickname=e.data.nickname,t.avatar=e.data.avatar,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0))}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1;var e={page:1};t.page>=t.total_page?t.loading=!0:(t.page=t.page+1,e.page=t.page,$http.get("plugin.room.frontend.code.codeDetail",e,"加载中").then((function(e){if(t.isLoadMore=!0,t.loading=!1,1!==e.result)return t.page=t.page-1,t.loading=!0,void(t.isLoadMore=!1);var a=e.data.data;t.info=t.info.concat(a)}),(function(t){})))}}},r=l,c=r,d=(a("552d"),a("2877")),f=Object(d["a"])(c,i,o,!1,null,"338da343",null);e["default"]=f.exports},"0bfc":function(t,e,a){var i=a("5eba");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("45944272",i,!0,{sourceMap:!1,shadowMode:!1})},"552d":function(t,e,a){"use strict";a("0bfc")},"5eba":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".lisbox[data-v-338da343]{padding:0 .81rem;background:#fff}.list[data-v-338da343]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.56rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#fff;border-bottom:.06rem solid #ebebeb}.list[data-v-338da343]:last-child{border-bottom:none}.amounts[data-v-338da343]{width:100%;height:3.06rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .97rem;border-bottom:1px solid #ebebeb;background-color:#fff}.amounts[data-v-338da343],.head[data-v-338da343]{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}.head[data-v-338da343]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding-left:1.56rem;width:23.44rem;height:7.06rem;background-color:#ee2e2b}.head .img[data-v-338da343]{width:2.88rem;height:2.88rem;background-color:#000;border-radius:50%;margin-right:.63rem}.head .img img[data-v-338da343]{width:100%;height:100%;border-radius:100%}.head .name[data-v-338da343]{font-size:1rem;color:#fff}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=document.body,n={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}}}]); |