1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12f6a403","chunk-2d0d83d6"],{"4b0aa":function(t,e,i){"use strict";i("794a")},"5c50":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#winners_list[data-v-4166d39e]{background:#fff}#winners_list .title[data-v-4166d39e]{height:2.375rem;line-height:2.375rem;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:#f2f2f2;padding:0 .875rem}#winners_list .list[data-v-4166d39e]{padding:0 .875rem;background:#fff}#winners_list .list .list-child[data-v-4166d39e]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 0;text-align:left}#winners_list .list .list-child[data-v-4166d39e],#winners_list .list .list-child .member[data-v-4166d39e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#winners_list .list .list-child .member[data-v-4166d39e]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:16px;color:#000;font-weight:700;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}#winners_list .list .list-child .member img[data-v-4166d39e]{width:2.25rem;height:2.25rem;border-radius:50%;overflow:hidden;margin:0;margin-right:.875rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-o-object-fit:contain;object-fit:contain;background-color:#fac337}#winners_list .list .list-child .member .name[data-v-4166d39e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#winners_list .list .list-child .good-img[data-v-4166d39e]{width:2.875rem;height:2.875rem;border-radius:.375rem;-o-object-fit:contain;object-fit:contain;background-color:#fac337}",""]),t.exports=e},"794a":function(t,e,i){var a=i("5c50");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("1a495e1e",a,!0,{sourceMap:!1,shadowMode:!1})},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=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 a&&a.scrollTop?t=a.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},f246: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",{attrs:{id:"winners_list"}},[i("c-title",{attrs:{hide:!1,text:"中奖名单"}}),t._m(0),i("div",{staticClass:"list"},[t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"list-child"},[i("div",{staticClass:"member"},[i("img",{attrs:{src:e.avatar,alt:""}}),i("div",{staticClass:"name"},[t._v(t._s(e.nickname))])]),i("img",{staticClass:"good-img",attrs:{src:e.thumb,alt:""}})])})),t.fun.isTextEmpty(t.list)?i("yz-blank",{attrs:{data:t.list,text:"暂无中奖数据",isBtn:!1}}):t._e()],2)],1)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title"},[i("div",[t._v("中奖会员")]),i("div",[t._v("奖品")])])}],s=(i("e7e5"),i("d399")),l=(i("99af"),i("ac0d")),o=i("eb17"),r={mixins:[l["a"]],data:function(){return{list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getData()},components:{yzBlank:o["default"]},computed:{},methods:{getData:function(){var t=this;$http.get("plugin.luck-draw.frontend.index.getPrize",{activity_id:this.$route.params.id},"加载中").then((function(e){1===e.result?(t.list=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)):Object(s["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if(t.isLoadMore=!1,"1"!=t.active&&!(this.page>=this.total_page)){var e={activity_id:t.$route.params.id};this.page=this.page+1,e.page=this.page,$http.get("plugin.luck-draw.frontend.index.getPrize",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.data;t.list=t.list.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}}}},c=r,d=(i("4b0aa"),i("2877")),f=Object(d["a"])(c,a,n,!1,null,"4166d39e",null);e["default"]=f.exports}}]); |