bztang-admin/addons/yun_shop/static/app/js/chunk-15b9de4e.ad1ed47d.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15b9de4e"],{"50c2":function(t,e,i){"use strict";i("ea2f")},a977:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"allowanceAchievement"}},[i("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:"业绩统计"}}),i("div",{staticClass:"topbox"}),i("div",{staticClass:"contenbox"},[i("div",{staticClass:"contenLeft"},[i("div",{staticClass:"contenLeft_top"},[t._v(t._s(t.avatarInfo.amounts))]),i("div",{staticClass:"contenLeft_bottom"},[t._v("团队业绩")])]),i("div",{staticClass:"line"}),i("div",{staticClass:"contenRight"},[i("div",{staticClass:"contenLeft_top",on:{click:t.goteam}},[t._v(t._s(t.avatarInfo.team_nums)),i("span",[t._v("人")])]),i("div",{staticClass:"contenLeft_bottom"},[t._v("团队人数")])])]),i("div",{staticClass:"listBox"},t._l(t.list,(function(e,o){return i("div",{key:o,staticClass:"lis_box"},[i("div",{staticClass:"lis"},[e.belongs_to_member?i("div",{staticClass:"img"},[i("img",{attrs:{src:e.belongs_to_member.avatar_image,alt:""}})]):t._e(),i("div",{staticClass:"no_listData"},[i("div",{staticClass:"listData",on:{click:function(i){return t.tapGetMoreGood(e,o)}}},[i("div",{staticClass:"listTop"},[e.belongs_to_member?i("div",{staticClass:"name"},[t._v(t._s(e.belongs_to_member.nickname))]):t._e(),i("div",{staticClass:"order"},[t._v("订单号:"+t._s(e.order_sn))])]),i("div",{staticClass:"listBottom"},[e.belongs_to_agency?i("div",{staticClass:"grade"},[t._v(t._s(e.belongs_to_agency.has_one_level.name))]):t._e()]),i("div",{staticClass:"listBottom_right"},[i("div",{staticClass:"order"},[t._v(" 订单金额:"),i("span",{staticClass:"price"},[t._v("¥"+t._s(e.amounts))])]),i("div",{staticClass:"date"},[t._v(t._s(e.created_at))])])]),i("div",{staticClass:"selectBtn",class:e.goodsShow?"iconRever":"",on:{click:function(i){return i.stopPropagation(),t.tapGetMoreGood(e,o)}}},[e.goodsShow?t._e():i("i",{staticClass:"iconfont icon-member-left"}),e.goodsShow?i("i",{staticClass:"iconfont icon-member-left"}):t._e()])])]),e.goodsShow?i("div",{staticClass:"seleBox",class:[e.moreShow?"":"moreGoodsSHow"]},[t._l(e.order_goods,(function(e,o){return i("div",{key:o,staticClass:"seleBoxList"},[i("div",{staticClass:"goodImg"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"seleList"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),i("div",{staticClass:"price"},[t._v(" 订单金额:"),i("span",{staticClass:"num"},[t._v(t._s(e.payment_amount))])])])])})),e.order_goods.length>2&&!e.moreShow?i("div",{staticClass:"moreGoods",on:{click:function(i){return t.showGoodTap(e,o)}}},[t._v(" 查看更多 "),i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e()],2):t._e()])})),0)],1)},a=[],s=(i("e7e5"),i("d399")),l=(i("99af"),i("ac0d")),n={mixins:[l["a"]],data:function(){return{avatarInfo:{},list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getData()},methods:{showGoodTap:function(t,e){t.moreShow||this.$set(this.list[e],"moreShow",!0)},goteam:function(){this.$router.push(this.fun.getUrl("allowanceTeam",{}))},tapGetMoreGood:function(t,e){t.goodsShow?this.$set(this.list[e],"goodsShow",!1):this.$set(this.list[e],"goodsShow",!0)},getData:function(){var t=this;$http.post("plugin.agency-subsidy.frontend.controllers.performance.index",{page:this.page},"加载中...").then((function(e){if(1==e.result){t.avatarInfo=e.data.info;for(var i=0;i<e.data.list.data.length;i++)e.data.list.data[i].goodsShow=!1;t.list=e.data.list.data,t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0)}else Object(s["a"])(e.msg)}))},getMoreData:function(){var t=this;if(t.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={page:this.page};$http.get("plugin.agency-subsidy.frontend.controllers.performance.index",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){for(var i=0;i<e.data.list.data.length;i++)e.data.list.data[i].goodsShow=!1;var o=e.data.list.data;t.list=t.list.concat(o)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}}}},r=n,f=(i("50c2"),i("2877")),c=Object(f["a"])(r,o,a,!1,null,"60f643fa",null);e["default"]=c.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var o=document.documentElement,a=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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(){}}}},ea2f:function(t,e,i){var o=i("f77a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("2a4504bc",o,!0,{sourceMap:!1,shadowMode:!1})},f77a:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".moreGoodsSHow[data-v-60f643fa]{max-height:7.43rem}.topbox[data-v-60f643fa]{width:100%;height:3.75rem;background-color:#ee2e2b}.listBox[data-v-60f643fa]{padding:0 .94rem;background-color:#fff}.listBox .lis[data-v-60f643fa]:last-child{border-bottom:none}.listBox .seleBox[data-v-60f643fa]{padding:.63rem;overflow:hidden;background-color:#fff;-webkit-transition:.3s;transition:.3s;position:relative}.listBox .seleBox .moreGoods[data-v-60f643fa]{font-size:.69rem;color:#666;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;bottom:.45rem}.listBox .seleBox .moreGoods[data-v-60f643fa],.listBox .seleBox .seleBoxList[data-v-60f643fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}.listBox .seleBox .seleBoxList[data-v-60f643fa]{margin-bottom:.75rem}.listBox .seleBox .seleBoxList .seleList[data-v-60f643fa]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.75rem}.listBox .seleBox .seleBoxList .seleList .price[data-v-60f643fa]{font-size:.69rem;color:#666}.listBox .seleBox .seleBoxList .seleList .price .num[data-v-60f643fa]{font-size:.69rem;color:#f15353}.listBox .seleBox .seleBoxList .seleList .title[data-v-60f643fa]{text-align:left}.listBox .seleBox .seleBoxList .goodImg[data-v-60f643fa]{width:2.38rem;height:2.38rem;border-radius:.13rem;margin-right:.44rem}.listBox .seleBox .seleBoxList .goodImg img[data-v-60f643fa]{width:100%;height:100%;border-radius:.13rem}.listBox .lis[data-v-60f643fa]{border-bottom:1px solid #ebebeb;padding:.84rem 0;background:#fff;padding-left:.5rem}.listBox .lis[data-v-60f643fa],.listBox .lis .no_listData[data-v-60f643fa]{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}.listBox .lis .no_listData[data-v-60f643fa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.listBox .lis .no_listData .selectBtn[data-v-60f643fa]{color:#666;margin:0 .5rem}.listBox .lis .iconRever[data-v-60f643fa]{-webkit-transform:rotate(270deg)!important;transform:rotate(270deg)!important}.listBox .lis .listData[data-v-60f643fa]{-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.listBox .lis .listData[data-v-60f643fa],.listBox .lis .listData .listTop[data-v-60f643fa]{-webkit-box-flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.listBox .lis .listData .listTop[data-v-60f643fa]{-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.listBox .lis .listData .listTop .name[data-v-60f643fa]{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.listBox .lis .listData .listTop .order[data-v-60f643fa]{font-size:.69rem}.listBox .lis .listData .listBottom[data-v-60f643fa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:.3rem 0}.listBox .lis .listData .listBottom .grade[data-v-60f643fa]{color:#666;font-size:.63rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.listBox .lis .listData .listBottom_right[data-v-60f643fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;font-size:.63rem}.listBox .lis .listData .listBottom_right .order[data-v-60f643fa]{font-size:.63rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-right:.6rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listBox .lis .listData .listBottom_right .order .price[data-v-60f643fa]{color:#f15353}.listBox .lis .listData .listBottom_right .date[data-v-60f643fa]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:#666;font-size:.63rem}.listBox .lis .img[data-v-60f643fa]{width:1.88rem;height:1.88rem;background-color:#f05152;border-radius:100%;margin-right:.34rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.listBox .lis .img img[data-v-60f643fa]{width:100%;height:100%;border-radius:100%}.contenbox[data-v-60f643fa]{width:22.19rem;height:4.53rem;background-color:#fff;border-radius:.31rem;margin:0 auto;margin-top:-1.17rem;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;margin-bottom:.63rem}.contenbox .contenLeft[data-v-60f643fa],.contenbox .contenRight[data-v-60f643fa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.contenbox .contenLeft_top[data-v-60f643fa]{font-size:.88rem;color:#f15353;margin-bottom:.7rem}.contenbox .contenLeft_top span[data-v-60f643fa]{color:#414141}.contenbox .contenLeft_bottom[data-v-60f643fa]{font-size:.75rem;color:#666}.contenbox .line[data-v-60f643fa]{width:.03rem;height:2.44rem;background-color:#e9e9e9}",""]),t.exports=e}}]);