bztang-admin/addons/yun_shop/static/app/js/chunk-c2f91286.154b7f33.js

1 line
5.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2f91286"],{"3bce":function(t,e,i){var a=i("926c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("46c20d0e",a,!0,{sourceMap:!1,shadowMode:!1})},"926c":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".user-info[data-v-71b7f7c6]{width:100%;height:6.6563rem;background-color:#ee2e2b;overflow:hidden}.head-portrait[data-v-71b7f7c6]{float:left;margin:1.6rem 0 0 1rem;width:2.875rem;height:2.875rem;overflow:hidden;border-radius:50%;background:pink}.head-portrait img[data-v-71b7f7c6]{width:100%;height:100%;border-radius:50%}.name[data-v-71b7f7c6]{margin:1.6rem 0 0 .5rem;float:left;font-size:16px;color:#fff}.cumulative[data-v-71b7f7c6]{padding-left:.9375rem;height:2.8125rem;line-height:2.8125rem;background:#fff;text-align:left}.left-text[data-v-71b7f7c6]{padding-right:10px;color:#333}.price[data-v-71b7f7c6]{color:#f14e4e}.list[data-v-71b7f7c6]{margin-top:10px;background:#fff}.income[data-v-71b7f7c6]{width:100%;height:2.75rem;line-height:2.75rem;border-bottom:1px solid #ebebeb}.income span[data-v-71b7f7c6]{display:inline-block;line-height:2.45rem;color:#ee2e2b;border-bottom:3px solid #ee2e2b}.info-item[data-v-71b7f7c6]{padding:.8rem 0;margin:0 1rem;border-bottom:1px solid #ebebeb;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}.right-price[data-v-71b7f7c6]{text-align:right;font-size:16px;color:#f15353}.color-text[data-v-71b7f7c6]{color:#8c8c8c;text-align:left;white-space:nowrap}.top-distance[data-v-71b7f7c6]{margin-top:5px;text-align:left}.right-mar[data-v-71b7f7c6]{margin-right:.8rem}",""]),t.exports=e},a070f:function(t,e,i){"use strict";i("3bce")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=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: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(){}}}},e498: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",[i("c-title",{attrs:{hide:!1,text:"门店消费卡收入明细"}}),i("div",{staticClass:"user-info"},[i("div",{staticClass:"head-portrait"},[i("img",{attrs:{src:t.userInfo.avatar,alt:""}})]),i("div",{staticClass:"name"},[t._v(t._s(t.userInfo.nickname))])]),i("div",{staticClass:"cumulative"},[i("span",{staticClass:"left-text"},[t._v("累计金额")]),i("span",{staticClass:"price"},[t._v("¥ "+t._s(t.userInfo.amount))])]),i("div",{staticClass:"list"},[t._m(0),t._l(t.detailLst,(function(e){return i("div",{key:e.id,staticClass:"info-item"},[i("div",{staticClass:"left-info"},[i("p",{staticClass:"color-text"},[t._v("会员ID: "+t._s(e.uid))]),i("p",{staticClass:"top-distance right-mar"},[t._v(t._s(e.card_name))])]),i("div",{staticClass:"right-info"},[i("p",{staticClass:"right-price"},[t._v("¥ "+t._s(e.amount))]),i("p",{staticClass:"color-text top-distance"},[t._v(t._s(e.created_at))])])])}))],2),t.incomeStata?i("div",{staticStyle:{"margin-top":"20px",color:"#666"}},[t._v("还没有收入明细哦")]):t._e(),t.incomeStata?t._e():i("div",[t.incomeStata||t.noneMore||t.isLoadMore||!t.activatedStatus?t._e():i("div",{staticStyle:{width:"100%",height:"40px","line-height":"40px","text-align":"center"},on:{click:t.getMoreData}},[t._v(" "+t._s(t.$i18n.t("加载更多"))+" ")]),t.incomeStata||!t.noneMore||t.isLoadMore?t._e():i("div",{staticStyle:{width:"100%",height:"80px","line-height":"40px","text-align":"center"}},[t._v(" "+t._s(t.$i18n.t("没有更多了"))+" ")])])],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"income"},[i("span",[t._v("收入明细")])])}],n=(i("99af"),i("6968")),s=i("ac0d"),r={mixins:[s["a"]],data:function(){return{page:1,userInfo:{},detailLst:[],incomeStata:!1,isLoadMore:!0,total_page:0,activatedStatus:!1}},activated:function(){this.activatedStatus=!1,this.isLoadMore=!0,this.noneMore=!1,this.incomeStata=!1,this.getComsume(this.page)},methods:{getComsume:function(t){var e=this;$http.get("plugin.store-card.Frontend.Modules.Income.Controllers.records.index",{page:t}).then((function(t){1===t.result?(e.userInfo=t.data.base_data,e.detailLst=t.data.page_list.data,0==e.detailLst.length&&(e.incomeStata=!0)):Toast(t.msg)}))},getMoreData:function(){var t=this,e=this;e.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.store-card.Frontend.Modules.Income.Controllers.records.index",{page:this.page},"加载中").then((function(i){if(e.isLoadMore=!0,1!==i.result)return e.page=e.page-1,void(e.isLoadMore=!1);var a=i.data.page_list.data;e.detailLst=e.detailLst.concat(a),t.noneMore=!0}),(function(t){})))}},components:{cTitle:n["a"]}},c=r,l=(i("a070f"),i("2877")),d=Object(l["a"])(c,a,o,!1,null,"71b7f7c6",null);e["default"]=d.exports}}]);