1 line
7.0 KiB
JavaScript
1 line
7.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26b22a06"],{7028:function(t,e,a){"use strict";a("b860")},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(){}}}},b860:function(t,e,a){var i=a("eb4a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("6bc8ea58",i,!0,{sourceMap:!1,shadowMode:!1})},e033: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:"bonus-dividend"}},[a("c-title",{attrs:{hide:!1,text:t.plugin_name}}),a("header",{staticClass:"header"},[a("div",{staticClass:"header-left"},[a("img",{staticClass:"photo",attrs:{src:t.avatar_image}}),a("span",{staticClass:"nick-name"},[t._v(t._s(t.username))])]),a("div",{staticClass:"header-right",on:{click:t.Exchange}},[t._v("兑换权益")])]),a("main",{staticClass:"main"},[a("article",{staticClass:"next-total-price"},[a("h4",{staticClass:"c-202020"},[t._v("下月奖金池累计金额")]),a("p",{staticClass:"c-f15353"},[t._v("¥"+t._s(t.top_info.bonus_pool_accumulate_amount))])]),a("article",{staticClass:"share-dividend"},[a("div",{staticClass:"share-dividend-left"},[a("h4",{staticClass:"c-f15353"},[t._v(t._s(t.top_info.dividend_equity)+"%")]),a("p",{staticClass:"mt-1"},[t._v("可分红权益值")])]),a("div",{staticClass:"share-dividend-right"},[a("h4",{staticClass:"c-f15353"},[t._v(t._s(t.top_info.expect_dividend_amount))]),a("p",{staticClass:"mt-1"},[t._v("下月预计分红金额")])])]),a("p",{staticClass:"hint c-f15353"},[t._v("提示:每月"+t._s(t.top_info.settlement_time)+"号结算上个月的分红")])]),a("footer",{staticClass:"footer"},[a("van-tabs",{on:{click:t.HandlerRecord},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"分红记录",name:"share_record"}}),a("van-tab",{attrs:{title:"兑换记录",name:"exchange_record"}})],1),"share_record"==t.active?t._l(t.share_record.data,(function(e){return a("van-cell",{key:e.id,scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticClass:"cell-title-left"},[a("p",{staticClass:"c-202020"},[t._v("分红ID:"+t._s(e.id))]),a("p",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])])]},proxy:!0},{key:"default",fn:function(){return[a("div",{staticClass:"c-f15353"},[t._v("¥"+t._s(e.dividend_amount))])]},proxy:!0}],null,!0)})})):t._e(),"exchange_record"==t.active?t._l(t.exchange_record.data,(function(e){return a("van-cell",{key:e.id,scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticClass:"cell-title-left"},[a("p",{staticClass:"c-202020"},[t._v("权益兑换ID:"+t._s(e.id))]),a("p",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])])]},proxy:!0},{key:"default",fn:function(){return[a("div",{staticClass:"cell-title-right"},[a("p",{staticClass:"c-f15353"},[t._v("+"+t._s(e.dividend_equity)+"%")]),a("p",{staticClass:"c-666"},[t._v(t._s(e.love)+"爱心值兑换")])])]},proxy:!0}],null,!0)})})):t._e()],2)],1)},n=[],s=(a("99af"),a("ac0d")),c={data:function(){return{active:"share_record",top_info:{},avatar_image:"",username:"",share_record:{},exchange_record:{},isLoadMore:!1,plugin_name:""}},mixins:[s["a"]],activated:function(){this.init(),this.getData()},methods:{init:function(){this.isLoadMore=!1},HandlerRecord:function(){this.getData()},getData:function(){var t=this,e="share_record"==this.active?1:2;$http.post("plugin.zhp-bonus-pool.frontend.reward-log.get-reward-list",{log_type:e},"").then((function(e){t.isLoadMore=!0,1==e.result&&(t.plugin_name=e.data.plugin_name,t.top_info=e.data.top_info,t.avatar_image=e.data.top_info.memberInfo.avatar_image,t.username=e.data.top_info.memberInfo.username,t[t.active]=e.data.list)})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this[this.active].current_page>=this[this.active].last_page)){var e="share_record"==this.active?1:2;$http.post("plugin.zhp-bonus-pool.frontend.reward-log.get-reward-list",{log_type:e,page:this[this.active].current_page+1},"").then((function(e){t.isLoadMore=!0,1==e.result&&(t[t.active].data=t[t.active].data.concat(e.data.list.data),t[t.active].current_page=e.data.list.last_page)})).catch((function(t){}))}},Exchange:function(){this.$router.push(this.fun.getUrl("Exchange",{settlement_time:this.top_info.settlement_time}))}}},o=c,r=(a("7028"),a("2877")),d=Object(r["a"])(o,i,n,!1,null,"63af64c4",null);e["default"]=d.exports},eb4a:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#bonus-dividend .header[data-v-63af64c4]{width:100%;height:8rem;background-color:#ee2e2b;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:2rem 1rem 0 2rem}#bonus-dividend .header[data-v-63af64c4],#bonus-dividend .header-left[data-v-63af64c4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#bonus-dividend .header img[data-v-63af64c4]{margin:0}#bonus-dividend .header-right[data-v-63af64c4]{width:5rem;height:2rem;line-height:2rem;text-align:center;color:#ee2e2b;background-color:#fff;border-radius:1rem}#bonus-dividend .nick-name[data-v-63af64c4]{margin-left:1rem;color:#fff}#bonus-dividend .photo[data-v-63af64c4]{width:3rem;height:3rem;border-radius:100px}#bonus-dividend .c-f15353[data-v-63af64c4]{color:#f15353}#bonus-dividend .c-202020[data-v-63af64c4]{color:#202020}#bonus-dividend .mt-1[data-v-63af64c4]{margin-top:1rem}#bonus-dividend .c-666[data-v-63af64c4]{color:#666}.main .next-total-price[data-v-63af64c4]{border-bottom:1px solid #ebebeb;padding:1rem}.main .next-total-price[data-v-63af64c4],.main .share-dividend[data-v-63af64c4]{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;background-color:#fff}.main .share-dividend[data-v-63af64c4]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:1rem 4rem}.main .hint[data-v-63af64c4]{padding:1rem;text-align:left}.footer .cell-title-left[data-v-63af64c4]{text-align:left;width:12rem}.footer .time[data-v-63af64c4]{color:#666}.footer .cell-title-right[data-v-63af64c4]{text-align:right}",""]),t.exports=e}}]); |