1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59e482ba"],{"4f2a":function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,".service_center .store_address[data-v-6661ae3b]{padding:.625rem .938rem;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;background-color:#fff}.service_center .store_address .address[data-v-6661ae3b]{padding:.2rem .5rem;margin-right:.5rem;font-size:12px;font-weight:700;color:#636363;background-color:#e4e4e4;border-radius:.3rem}.service_center .store_address .active[data-v-6661ae3b]{color:#f15353;background:rgba(241,83,83,.29)}.service_center .title[data-v-6661ae3b]{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;margin:1rem;font-weight:700}.service_center .title .num[data-v-6661ae3b]{color:#f15353}.service_center .list[data-v-6661ae3b]{padding-bottom:.8rem}.service_center .list .item[data-v-6661ae3b]{margin:.8rem;background-color:#fff;border-radius:.8rem}.service_center .list .info[data-v-6661ae3b]{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}.service_center .list .info .name[data-v-6661ae3b]{margin-left:.5rem}.service_center .list .info .img_box[data-v-6661ae3b],.service_center .list .info .img_box img[data-v-6661ae3b]{width:1.88rem;height:1.88rem;border-radius:50%}.service_center .list .date[data-v-6661ae3b]{padding:0 2rem}.service_center .list .date .row[data-v-6661ae3b]{-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}.service_center .list .date .row[data-v-6661ae3b],.service_center .list .date .total[data-v-6661ae3b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.service_center .list .date .total[data-v-6661ae3b]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-bottom:1.5rem}.service_center .list .date .total .count[data-v-6661ae3b]{margin-bottom:.5rem;color:#f15353;font-size:20px}.service_center .list .date .total .amount[data-v-6661ae3b]{margin-bottom:.5rem;color:#2a96f3;font-size:20px}",""]),t.exports=e},5730:function(t,e,i){"use strict";i("eb99")},7189:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"service_center"},[i("c-title",{attrs:{hide:!1,text:"店商联盟"}}),i("div",{staticClass:"store_address"},t._l(t.regionsList,(function(e,s){return i("span",{key:s,staticClass:"address",class:{active:e.district_id==t.district_id},on:{click:function(i){return t.handTab(e)}}},[t._v(t._s(e.city_name)+"-"+t._s(e.district_name))])})),0),i("div",{staticClass:"title"},[i("div",[t._v("联盟店数量:"),i("span",{staticClass:"num"},[t._v(t._s(t.store_num))])]),i("div",[t._v("总业绩:"),i("span",{staticClass:"num"},[t._v(t._s(t.store_amount))])])]),i("div",{staticClass:"list"},t._l(t.listData,(function(e,s){return i("div",{key:s,staticClass:"item"},[i("div",{staticClass:"info"},[i("div",{staticClass:"img_box"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("span",{staticClass:"name"},[t._v(t._s(e.store_name))])]),i("div",{staticClass:"date"},[i("div",{staticClass:"row"},[i("div",{staticClass:"total"},[i("span",{staticClass:"count"},[t._v(t._s(e.store_price))]),i("span",[t._v("店总销售额")])]),i("div",{staticClass:"total"},[i("span",{staticClass:"count"},[t._v(t._s(e.today_price))]),i("span",[t._v("当天销售额")])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"total"},[i("span",{staticClass:"amount"},[t._v(t._s(e.this_month_price))]),i("span",[t._v("当月销售额")])]),i("div",{staticClass:"total"},[i("span",{staticClass:"amount"},[t._v(t._s(e.last_month_pirce))]),i("span",[t._v("上月销售额")])])])])])})),0)],1)},a=[],n=(i("e7e5"),i("d399")),o=(i("99af"),i("ac0d")),r={mixins:[o["a"]],data:function(){return{regionsList:[],district_id:0,listData:[],page:1,isLoadMore:!0,total_page:0,store_num:"",store_amount:""}},created:function(){window.addEventListener("scroll",this.handleScroll),this.getRegionsList()},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getRegionsList:function(){var t=this;$http.get("plugin.store-business-alliance.frontend.index.get-regions",{}).then((function(e){1==e.result?(t.regionsList=e.data,t.district_id=t.regionsList[0].district_id,t.store_num=t.regionsList[0].store_num,t.store_amount=t.regionsList[0].store_amount,t.getDate()):Object(n["a"])(e.msg)})).catch((function(t){}))},handTab:function(t){t.district_id!=this.district_id&&(this.district_id=t.district_id,this.store_num=t.store_num,this.store_amount=t.store_amount,this.getDate())},getDate:function(){var t=this;$http.get("plugin.store-business-alliance.frontend.index.get-regions-store",{district_id:this.district_id}).then((function(e){if(1!=e.result)return Object(n["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;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.store-business-alliance.frontend.index.get-regions-store",{page:this.page,district_id:this.district_id}).then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.data;t.listData=t.listData.concat(i)}else t.page=t.page-1,t.isLoadMore=!1})))}}},c=r,l=c,d=(i("5730"),i("2877")),u=Object(d["a"])(l,s,a,!1,null,"6661ae3b",null);e["default"]=u.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var s=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 s&&s.scrollTop?t=s.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&s.clientHeight?Math.min(a.clientHeight,s.clientHeight):Math.max(a.clientHeight,s.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,s.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(){}}}},eb99:function(t,e,i){var s=i("4f2a");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=i("499e").default;a("20cb012a",s,!0,{sourceMap:!1,shadowMode:!1})}}]); |