bztang-admin/addons/yun_shop/static/app/js/chunk-49cf435c.690bcd96.js

1 line
4.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49cf435c"],{"41e1":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".consensus-activity-fomo[data-v-810e6556]{padding:.625rem .75rem}.consensus-activity-fomo .around[data-v-810e6556]{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;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.consensus-activity-fomo .bold[data-v-810e6556]{font-weight:700}.consensus-activity-fomo .c-6E6E79[data-v-810e6556]{color:#6e6e79}.consensus-activity-fomo .column[data-v-810e6556]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.consensus-activity-fomo .title[data-v-810e6556]{font-size:.875rem;font-weight:700;color:#00001c;text-align:left;margin-bottom:.9063rem}.consensus-activity-fomo .box[data-v-810e6556]{background:#fff;border-radius:.625rem;padding:.9375rem .625rem}",""]),t.exports=e},9681:function(t,e,i){var a=i("41e1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("128e22e6",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=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 a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},cdde:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"consensus-activity-fomo"},[i("c-title",{attrs:{text:"Fomo加权分红"}}),t._l(t.list,(function(e){return i("div",{key:e.id,staticClass:"box"},[i("p",{staticClass:"title"},[t._v(t._s(e.has_one_activity.activity_name)+"【"+t._s(e.has_one_activity.activity_sn)+"】")]),i("div",{staticClass:"around"},[i("div",{staticClass:"column"},[i("span",{staticClass:"c-6E6E79"},[t._v("个人参与额")]),i("span",{staticClass:"bold"},[t._v(t._s(e.yuan_value))])]),i("div",{staticClass:"column"},[i("span",{staticClass:"c-6E6E79"},[t._v("当期总额")]),i("span",{staticClass:"bold"},[t._v(t._s(e.current_issue_total))])]),i("div",{staticClass:"column"},[i("span",{staticClass:"c-6E6E79"},[t._v("奖励数量")]),i("span",{staticClass:"bold"},[t._v(t._s(e.reward_value))])])])])}))],2)},o=[],s=(i("99af"),i("ac0d")),n={mixins:[s["a"]],data:function(){return{list:[],total_page:1,isLoadMore:!0,page:1}},activated:function(){this.getData()},methods:{getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;this.getData(t)}},getData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;$http.get("plugin.wise-yuan-trade.frontend.my.fomo-weighted-dividend-log",{page:e},"").then((function(i){if(t.isLoadMore=!0,i.result){var a=i.data;t.list=1==e?a.data:t.list.concat(a.data),t.count=a.count,t.total_page=a.last_page,t.page=a.current_page}else t.$toast(i.msg)}))}}},c=n,l=(i("dd27"),i("2877")),r=Object(l["a"])(c,a,o,!1,null,"810e6556",null);e["default"]=r.exports},dd27:function(t,e,i){"use strict";i("9681")}}]);