1 line
6.7 KiB
JavaScript
1 line
6.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-737a8048"],{8362: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_center"},[a("c-title",{attrs:{hide:!1,text:"店商联盟"}}),a("div",{staticClass:"title"},[a("div",[t._v("服务中心数量:"),a("span",{staticClass:"num"},[t._v(t._s(t.teams_all.all_regions))])]),a("div",[t._v("总业绩:"),a("span",{staticClass:"num"},[t._v(t._s(t.teams_all.all_price))])])]),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.has_one_member.avatar_image,alt:""}})]),a("div",{staticClass:"name"},[a("span",[t._v(t._s(e.has_one_member.nickname))]),e.level_name?a("span",{staticClass:"level"},[t._v(t._s(e.level_name))]):t._e()])]),a("div",{staticClass:"date"},[a("div",{staticClass:"row"},[a("div",{staticClass:"total"},[a("span",{staticClass:"count"},[t._v(t._s(e.store_amount))]),a("span",[t._v("区域总销售额")])]),a("div",{staticClass:"total"},[a("span",{staticClass:"count"},[t._v(t._s(e.today_amount))]),a("span",[t._v("当天销售额")])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"total"},[a("span",{staticClass:"amount"},[t._v(t._s(e.this_month_amount))]),a("span",[t._v("当月销售额")])]),a("div",{staticClass:"total"},[a("span",{staticClass:"amount"},[t._v(t._s(e.last_month_amount))]),a("span",[t._v("上月销售额")])])])]),a("div",{staticClass:"storeNum",on:{click:function(a){return t.goStore(e)}}},[a("van-cell",{attrs:{"is-link":""},scopedSlots:t._u([{key:"title",fn:function(){return[a("span",[t._v("联盟店数量:")]),a("span",{staticClass:"num"},[t._v(t._s(e.store_num))])]},proxy:!0}],null,!0)})],1)])})),0)],1)},s=[],n=a("c7eb"),o=a("1da1"),l=(a("e7e5"),a("d399")),r=(a("14d9"),a("99af"),a("ac0d")),c={mixins:[r["a"]],data:function(){return{page:1,isLoadMore:!0,total_page:0,listData:[],teams_all:{}}},created:function(){this.getDate(),window.addEventListener("scroll",this.handleScroll)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{goStore:function(t){t.store_num<=0||this.$router.push(this.fun.getUrl("leagueOperatingStore",{},{child_uid:t.member_id}))},getDate:function(){var t=this;$http.get("plugin.store-business-alliance.frontend.index.get-team-area",{}).then((function(e){if(1!=e.result)return Object(l["a"])(e.msg);t.listData=e.data.teams_list.data,t.teams_all=e.data.teams_all,t.isLoadMore=!0,t.total_page=e.data.teams_list.last_page,t.total_page||(t.total_page=0)})).catch((function(t){}))},getMoreData:function(){var t=this;return Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["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-area",{page:t.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.teams_list.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,m=d,f=(a("9cca"),a("2877")),u=Object(f["a"])(m,i,s,!1,null,"69fd53c4",null);e["default"]=u.exports},"9cca":function(t,e,a){"use strict";a("ace5")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,s=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: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(){}}}},ace5:function(t,e,a){var i=a("d380");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("1e67a970",i,!0,{sourceMap:!1,shadowMode:!1})},d380:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".operating_center .title[data-v-69fd53c4]{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:0 1rem 1rem 1rem;font-weight:700}.item .storeNum .num[data-v-69fd53c4],.operating_center .title .num[data-v-69fd53c4]{color:#f15353}.list .item[data-v-69fd53c4]{margin:.8rem;background-color:#fff;border-radius:.8rem}.list .item .storeNum[data-v-69fd53c4]{margin:0 .813rem;text-align:left;color:#333;font-weight:700;border-top:.031rem solid #f1f1f1}.list .info[data-v-69fd53c4]{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 .img_box[data-v-69fd53c4]{background-color:#deb887}.list .info .img_box[data-v-69fd53c4],.list .info .img_box img[data-v-69fd53c4]{width:1.88rem;height:1.88rem;border-radius:50%}.list .info .name[data-v-69fd53c4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:.5rem;font-size:12px;text-align:left}.list .info .name .level[data-v-69fd53c4]{margin-top:.3rem;padding:.1rem .5rem;font-size:11px;color:#f15353;background:rgba(241,83,83,.29);border-radius:.625rem}.list .date[data-v-69fd53c4]{padding:0 2rem}.list .date .row[data-v-69fd53c4]{-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-69fd53c4],.list .date .total[data-v-69fd53c4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.list .date .total[data-v-69fd53c4]{-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-69fd53c4]{margin-bottom:.5rem;color:#f15353;font-size:20px}.list .date .total .amount[data-v-69fd53c4]{margin-bottom:.5rem;color:#2a96f3;font-size:20px}[data-v-69fd53c4] .van-cell{padding:10px 0}",""]),t.exports=e}}]); |