bztang-admin/addons/yun_shop/static/app/js/chunk-c2da6c14.26805b09.js

1 line
4.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2da6c14"],{"406c":function(t,e,o){var i=o("7f0c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=o("499e").default;a("1a618d2c",i,!0,{sourceMap:!1,shadowMode:!1})},"427b":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"couponLog"}},[o("c-title",{attrs:{hide:!1,text:"使用记录"}}),o("div",{staticClass:"log-list"},t._l(t.list,(function(e){return o("div",{key:e.id,staticClass:"list"},[o("div",{staticClass:"list-top flexjc"},[o("div",[t._v(t._s(1==e.type?t.pageConfig.name+"会员赠送":"购物抵扣"))]),o("div",{staticClass:"size12 color-red"},[t._v(t._s(1==e.type?"+":"-")+t._s(e.amount))])]),o("div",{staticClass:"list-bottom flexjc"},[o("div",{staticClass:"size12"},[t._v(t._s(1==e.type&&e.has_one_order?"":e.has_one_order.order_sn))]),o("div",{staticClass:"size12 color-999"},[t._v(t._s(e.created_at))])])])})),0)],1)},a=[],n=(o("99af"),o("ac0d")),s={mixins:[n["a"]],data:function(){return{pageConfig:{},list:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getData()},components:{},computed:{},methods:{getData:function(){var t=this;$http.get("plugin.universal-card.api.home.getConsumeCouponLog",{},"").then((function(e){1==e.result&&(t.pageConfig=e.data.set,t.list=e.data.list.data,t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0))})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.universal-card.api.home.getConsumeCouponLog",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var o=e.data.list.data;t.list=t.list.concat(o)}else t.page=t.page-1,t.isLoadMore=!1})))}}},l=s,c=(o("f1b5"),o("2877")),r=Object(c["a"])(l,i,a,!1,null,"4d8431f3",null);e["default"]=r.exports},"7f0c":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'#couponLog .log-list[data-v-4d8431f3]{background:#fff;padding:0 .875rem}#couponLog .log-list .list[data-v-4d8431f3]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;padding:.5rem 0;height:3.5rem;position:relative}#couponLog .log-list .list[data-v-4d8431f3],#couponLog .log-list .list .flexjc[data-v-4d8431f3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#couponLog .log-list .list .flexjc[data-v-4d8431f3]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#couponLog .log-list .list .size12[data-v-4d8431f3]{font-size:12px}#couponLog .log-list .list .color-red[data-v-4d8431f3]{color:#ff4949}#couponLog .log-list .list .color-999[data-v-4d8431f3]{color:#999}#couponLog .log-list .list[data-v-4d8431f3]:after{height:1px;position:absolute;z-index:0;bottom:0;left:0;content:"";width:100%;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#ececec),color-stop(0,transparent));background-image:-webkit-linear-gradient(bottom,#ececec 50%,transparent 0);background-image:linear-gradient(0deg,#ececec 50%,transparent 0)}',""]),t.exports=e},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var i=document.documentElement,a=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:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&i.clientHeight?Math.min(a.clientHeight,i.clientHeight):Math.max(a.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(a.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(){}}}},f1b5:function(t,e,o){"use strict";o("406c")}}]);