bztang-admin/addons/yun_shop/static/app/js/chunk-33c587ca.c2df1229.js

1 line
4.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33c587ca"],{6531:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("c-title",{attrs:{hide:!1,text:"中奖纪录"}}),o("div",{staticClass:"title"},[t._v(t._s(t.activity_name))]),o("div",{staticClass:"content"},[o("ul",t._l(t.recordsList,(function(e,a){return o("li",{key:a,staticClass:"good"},[o("div",{staticClass:"left"},[o("img",{attrs:{src:e.prize_thumb,alt:"图片"}})]),o("div",{staticClass:"right"},[0!=e.point?o("span",{staticClass:"name"},[t._v(" "+t._s(e.point+t.point_word)+" ")]):0!=e.love?o("span",{staticClass:"name"},[t._v(" "+t._s(e.love+t.love_word)+" ")]):0!=e.amount?o("span",{staticClass:"name"},[t._v(" "+t._s(e.amount+t.amount_word)+" ")]):e.has_one_coupon?o("span",{staticClass:"name"},[t._v(" "+t._s(e.has_one_coupon.name)+"(优惠券) ")]):t._e(),o("span",{staticClass:"time"},[t._v(t._s(e.created_at))])])])})),0)])],1)},i=[],n=(o("e7e5"),o("d399")),s=(o("99af"),o("6968")),r=o("ac0d"),l={mixins:[r["a"]],data:function(){return{recordsList:[],activity_name:"",lotteryId:"",amount_word:"",love_word:"",point_word:"",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.lotteryId=this.$route.query.lotteryId,this.initData(),this.getData()},methods:{initData:function(){this.activity_name="",this.recordsList=[],this.page=1,this.total_page=0,this.isLoadMore=!0},getData:function(){var t=this;$http.get("plugin.lucky-draw.frontend.draw.getMyRecord",{lotteryId:this.lotteryId}," ").then((function(e){1===e.result?(t.amount_word=e.data.amount_word,t.love_word=e.data.love_word,t.point_word=e.data.point_word,t.isLoadMore=!0,t.page=1,t.activity_name=e.data.activity_name,t.total_page=e.data.my_record.last_page,t.total_page||(t.total_page=0),t.recordsList=e.data.my_record.data):Object(n["a"])(e.msg)}),(function(t){Object(n["a"])(t)})).catch((function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.lucky-draw.frontend.draw.getMyRecord",{page:t.page,lotteryId:this.lotteryId},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var o=e.data.my_record.data;t.recordsList=t.recordsList.concat(o)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){Object(n["a"])(t)})))}},components:{cTitle:s["a"]}},c=l,d=c,u=(o("83a9"),o("2877")),p=Object(u["a"])(d,a,i,!1,null,"09936025",null);e["default"]=p.exports},"83a9":function(t,e,o){"use strict";o("8b1e")},"8b1e":function(t,e,o){var a=o("be98");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("499e").default;i("2f9ab382",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var a=document.documentElement,i=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 a&&a.scrollTop?t=a.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(i.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(){}}}},be98:function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".title[data-v-09936025]{font-size:15px;font-weight:700;margin:1rem auto}.content .good[data-v-09936025]{margin:1rem;padding:.5rem;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:7px}.content .good .left[data-v-09936025]{-webkit-box-flex:0;-webkit-flex:0 0 5rem;-ms-flex:0 0 5rem;flex:0 0 5rem}.content .good .right[data-v-09936025]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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;text-align:left;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.content .good .name[data-v-09936025]{padding-top:5px}.content .good .time[data-v-09936025]{padding-bottom:5px}.content .good img[data-v-09936025]{width:4rem;height:4rem}.content .good span[data-v-09936025]{line-height:1rem}",""]),t.exports=e}}]);