bztang-admin/addons/yun_shop/static/app/js/chunk-5ac5d20e.59c34447.js

1 line
4.7 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ac5d20e"],{"26c9":function(e,t,o){"use strict";o("8b8e")},"328b":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"shopsLove"},[o("van-sticky",[o("van-tabs",{attrs:{"title-active-color":"var(--themeBaseColor)","title-inactive-color":"#454545","line-width":"15px",color:"var(--themeBaseColor)"},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[o("van-tab",{attrs:{title:"支出"}})],1)],1),o("div",{staticClass:"love-list"},e._l(e.recordList,(function(t,a){return o("block",{key:a},[o("div",{staticClass:"love-item"},[o("div",{staticClass:"love-head flex-a-c flex-j-sb"},[o("h3",[e._v(e._s(t.value_type_name))]),o("p",[e._v(e._s(t.change_value))])]),o("div",{staticClass:"love-content flex-a-c flex-j-sb"},[o("h4",[e._v(e._s(t.created_at))]),t.has_one_recipient?o("div",{staticClass:"user-info flex-a-c"},[o("span",[e._v("受转人:")]),o("img",{attrs:{src:t.has_one_recipient&&t.has_one_recipient.avatar_image}}),o("p",[e._v(e._s(t.has_one_recipient&&t.has_one_recipient.username))])]):e._e()])])])})),1),o("div",{staticClass:"mb50"})],1)},i=[],n=o("2909"),l=(o("99af"),o("ac0d")),s={name:"",components:{},mixins:[l["a"]],data:function(){return{active:0,page:1,isLoadMore:!0,total_page:0,recordList:[]}},computed:{},watch:{},methods:{getRecordList:function(){var e=this,t={page:this.page,basic_info:1};$http.post("plugin.love-poundage-dividend.frontend.love-account-detail.get-list",t,"加载中..").then((function(t){if(1==t.result){var o=t.data,a=t.basic_info,i=o.data.data;e.isLoadMore=!0,e.total_page=o.data.last_page,e.total_page||(e.page=0),e.fun.setWXTitle("".concat(a.love,"帐目明细")),e.loveName=a.love,e.recordList=i}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var t={page:this.page};$http.post("plugin.love-poundage-dividend.frontend.love-account-detail.get-list",t,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var o,a=t.data,i=null===(o=a.data)||void 0===o?void 0:o.data;e.recordList=[].concat(Object(n["a"])(e.recordList),Object(n["a"])(i))}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){}))}}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){this.page=1,this.getRecordList()}},c=s,r=c,d=(o("26c9"),o("2877")),v=Object(d["a"])(r,a,i,!1,null,"37d853e6",null);t["default"]=v.exports},"3e56":function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,".shopsLove[data-v-37d853e6] .van-tabs__line{bottom:20px}.mb50[data-v-37d853e6]{height:50px;clear:both}.love-list[data-v-37d853e6]{margin:12px 12px 0 12px}.love-list .love-item[data-v-37d853e6]{padding:12px;border-radius:4px;background-color:#fff;margin:0 0 10px 0}.love-list .love-item .love-head h3[data-v-37d853e6]{font-size:15px;font-weight:400;color:#333}.love-list .love-item .love-head p[data-v-37d853e6]{font-size:15px;font-weight:700;color:#fe5e56}.love-list .love-item .love-content[data-v-37d853e6]{padding:12px 0 0 0}.love-list .love-item .love-content .user-info span[data-v-37d853e6],.love-list .love-item .love-content h4[data-v-37d853e6]{font-size:12px;font-weight:400;color:#999}.love-list .love-item .love-content .user-info img[data-v-37d853e6]{width:20px;height:20px;display:block;border-radius:50%;margin:0 4px}.love-list .love-item .love-content .user-info p[data-v-37d853e6]{font-size:12px;color:#333}",""]),e.exports=t},"8b8e":function(e,t,o){var a=o("3e56");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=o("499e").default;i("458327ca",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,o){"use strict";o.d(t,"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 e=0;return a&&a.scrollTop?e=a.scrollTop:i&&(e=i.scrollTop),e},getClientHeight:function(){var e=0;return e=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(i.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]);