1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32f5dc24"],{"04ce":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"operating_store"},[a("c-title",{attrs:{hide:!1,text:"店商联盟"}}),a("div",{staticClass:"list"},t._l(t.listData,(function(e,i){return a("div",{key:i,staticClass:"item"},[a("div",{staticClass:"info"},[a("div",{staticClass:"img_box"},[a("img",{attrs:{src:e.thumb,alt:""}})]),a("span",{staticClass:"name"},[t._v(t._s(e.store_name))])]),a("div",{staticClass:"date"},[a("div",{staticClass:"row"},[a("div",{staticClass:"total"},[a("span",{staticClass:"count"},[t._v(t._s(e.store_price))]),a("span",[t._v("店总销售额")])]),a("div",{staticClass:"total"},[a("span",{staticClass:"count"},[t._v(t._s(e.today_price))]),a("span",[t._v("当天销售额")])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"total"},[a("span",{staticClass:"amount"},[t._v(t._s(e.this_month_price))]),a("span",[t._v("当月销售额")])]),a("div",{staticClass:"total"},[a("span",{staticClass:"amount"},[t._v(t._s(e.last_month_pirce))]),a("span",[t._v("上月销售额")])])])])])})),0)],1)},s=[],o=a("c7eb"),n=a("1da1"),l=(a("e7e5"),a("d399")),r=(a("99af"),a("ac0d")),c={mixins:[r["a"]],data:function(){return{page:1,isLoadMore:!0,total_page:0,listData:[]}},created:function(){this.getDate(),window.addEventListener("scroll",this.handleScroll)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getDate:function(){var t=this;$http.get("plugin.store-business-alliance.frontend.index.get-team-store",{child_uid:this.$route.query.child_uid}).then((function(e){if(1!=e.result)return Object(l["a"])(e.msg);t.listData=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)})).catch((function(t){}))},getMoreData:function(){var t=this;return Object(n["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isLoadMore=!1,!(t.page>=t.total_page)){e.next=5;break}return e.abrupt("return");case 5:t.page+=1,$http.get("plugin.store-business-alliance.frontend.index.get-team-store",{page:t.page,child_uid:t.$route.query.child_uid}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}));case 7:case"end":return e.stop()}}),e)})))()}}},d=c,f=d,u=(a("0b41"),a("2877")),p=Object(u["a"])(f,i,s,!1,null,"feaf5a40",null);e["default"]=p.exports},"0b41":function(t,e,a){"use strict";a("ddfd")},"765e":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list .item[data-v-feaf5a40]{margin:.8rem;background-color:#fff;border-radius:.8rem}.list .info[data-v-feaf5a40]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:1rem}.list .info .name[data-v-feaf5a40]{margin-left:.5rem}.list .info .img_box[data-v-feaf5a40]{background-color:#deb887}.list .info .img_box[data-v-feaf5a40],.list .info .img_box img[data-v-feaf5a40]{width:1.88rem;height:1.88rem;border-radius:50%}.list .date[data-v-feaf5a40]{padding:0 2rem}.list .date .row[data-v-feaf5a40]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#666;font-size:12px;font-weight:700}.list .date .row[data-v-feaf5a40],.list .date .total[data-v-feaf5a40]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.list .date .total[data-v-feaf5a40]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-bottom:1.5rem}.list .date .total .count[data-v-feaf5a40]{margin-bottom:.5rem;color:#f15353;font-size:20px}.list .date .total .amount[data-v-feaf5a40]{margin-bottom:.5rem;color:#2a96f3;font-size:20px}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,s=document.body,o={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},ddfd:function(t,e,a){var i=a("765e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0c763fd0",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |