1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e3d04d1"],{"0608":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".consensus-activity-record[data-v-5517b502]{padding:.7813rem}.consensus-activity-record .status-current[data-v-5517b502]{background:#feeded!important;color:#f15353!important}.consensus-activity-record .box-item[data-v-5517b502]{background:#fff;margin-bottom:.625rem;border-radius:.625rem;padding:.9375rem .75rem}.consensus-activity-record .line[data-v-5517b502]{width:100%;height:1px;background:#f0f0f1;margin:.6875rem 0}.consensus-activity-record .time[data-v-5517b502]{text-align:left;color:#aaaab3;font-size:.75rem;margin-top:.3438rem}.consensus-activity-record .count[data-v-5517b502]{text-align:left;font-size:.8125rem;font-weight:400;color:#00001c}.consensus-activity-record .status[data-v-5517b502]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:1.0938rem;background:#f0f0f1;border-radius:.25rem;color:#3b3b4a;padding:.2813rem .625rem}.consensus-activity-record .title[data-v-5517b502]{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;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;text-align:left}",""]),t.exports=e},"2b0e":function(t,e,a){"use strict";a("af63")},"4fd8":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:"consensus-activity-record"},[a("c-title",{attrs:{text:"活动记录"}}),a("div",{staticClass:"box"},t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"box-item"},[a("div",{staticClass:"title"},[a("p",{staticStyle:{"font-size":"0.9375rem","font-weight":"bold"}},[t._v(t._s(e.has_one_activity.activity_name)+"【"+t._s(e.has_one_activity.activity_sn)+"】")]),a("span",{staticClass:"status",class:1==e.has_one_activity.status?"status-current":""},[t._v(t._s(e.has_one_activity.status_name))])]),a("div",{staticClass:"line"}),a("p",{staticClass:"count"},[t._v("存储数量:"+t._s(e.total_yuan))]),a("p",{staticClass:"time"},[t._v("时间:"+t._s(e.has_one_activity.start_date)+"-"+t._s(e.has_one_activity.finish_date))])])})),0)],1)},s=[],n=(a("99af"),a("ac0d")),o={mixins:[n["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.consensus-activity.sign-record",{page:e},"").then((function(a){if(t.isLoadMore=!0,a.result){var i=a.data;t.list=1==e?i.data:t.list.concat(i.data),t.total_page=i.last_page,t.page=i.current_page}else t.$toast(a.msg)}))}}},c=o,r=(a("2b0e"),a("2877")),l=Object(r["a"])(c,i,s,!1,null,"5517b502",null);e["default"]=l.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,s=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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},af63:function(t,e,a){var i=a("0608");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("56678e9a",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |