bztang-admin/addons/yun_shop/static/app/js/chunk-d4577270.d88f3133.js

1 line
7.8 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4577270"],{5782:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"teamPerformance"}},[a("c-title",{attrs:{hide:!1,text:e.headTitle}}),e.is_show?a("van-tabs",{on:{change:e.handleChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{name:"team"}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v("团队业绩")])]),a("van-tab",{attrs:{name:"people"}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v("个人业绩")])])],1):e._e(),a("div",{staticClass:"content"},[a("ul",{staticClass:"rationList"},e._l(e.recordsList,(function(t,i){return a("li",{key:i},[a("div",{staticClass:"detail",on:{click:function(t){return e.memberShow(i)}}},[a("div",{staticClass:"header"},[a("p",{staticClass:"month"},[a("span",[e._v("订单编号")]),a("span",{staticClass:"order_number"},[e._v(e._s(t.order_sn))])]),a("p",{staticClass:"month"},[a("span",[e._v("订单金额")]),a("span",{staticClass:"number"},[e._v(e._s(t.price))])]),a("p",{staticClass:"month"},[a("span",[e._v("商品数量")]),a("span",{staticClass:"number"},[e._v(e._s(t.goods_total))])])]),a("div",{staticClass:"list_box"},e._l(t.has_many_order_goods,(function(t,i){return a("div",{key:i,staticClass:"list"},[a("div",{staticClass:"info"},[a("img",{attrs:{src:t.thumb,alt:"商品图片"}}),a("span",[e._v(e._s(t.title))])]),a("p",{staticClass:"price"},[e._v(e._s(t.price))]),a("p",[e._v(e._s(t.total))])])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:e.is_show_member===i,expression:"is_show_member === i "}],staticClass:"member-show"},[a("div",[a("img",{staticStyle:{width:"3rem",height:"3rem"},attrs:{src:t.belongs_to_member.avatar?t.belongs_to_member.avatar:"",alt:""}})]),a("div",{staticClass:"member-info"},[a("div",{staticClass:"name"},[e._v(e._s(t.belongs_to_member.username?t.belongs_to_member.username:""))]),a("div",{staticClass:"vx"},[e._v("微信号:"+e._s(t.belongs_to_member.yz_member.wechat?t.belongs_to_member.yz_member.wechat:"暂无微信号"))])])])])])})),0)])],1)},s=[],o=(a("e7e5"),a("d399")),r=(a("99af"),a("6968")),n=a("ac0d"),l={mixins:[n["a"]],data:function(){return{recordsList:[],activeName:"team",api:"plugin.team-dividend.api.results.getList",is_show:!1,headTitle:"团队业绩",is_show_member:null,is_show_team_buyer:!1,isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initData(),this.getData()},methods:{memberShow:function(e){this.is_show_member==e?this.is_show_member=null:this.is_show_member=e},initData:function(){this.recordsList=[],this.is_show_team_buyer=!1,this.page=1,this.total_page=0,this.isLoadMore=!0},handleChange:function(){this.is_show_member=null,"people"===this.activeName?(this.headTitle="个人业绩",this.api="plugin.team-dividend.api.results.getMyOrder"):(this.headTitle="团队业绩",this.api="plugin.team-dividend.api.results.getList"),this.initData(),this.getData()},getData:function(){var e=this;$http.get(this.api,{},"...").then((function(t){1===t.result?(e.isLoadMore=!0,"people"===e.activeName?(e.recordsList=t.data.data.data,e.is_show_team_buyer=t.data.is_show_team_buyer,e.total_page=t.data.data.last_page):(e.is_show=t.data.is_show,e.recordsList=t.data.data.data,e.is_show_team_buyer=t.data.is_show_team_buyer,e.total_page=t.data.data.last_page)):Object(o["a"])(t.msg)})).catch((function(e){}))},getMoreData:function(){var e=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(this.api,{page:this.page},"加载中...").then((function(t){if(e.isLoadMore=!0,1===t.result){var a=t.data.data.data;e.activeName,e.recordsList=e.recordsList.concat(a)}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){})))}},components:{cTitle:r["a"]}},m=l,c=m,d=(a("7522"),a("2877")),f=Object(d["a"])(c,i,s,!1,null,"9ff746e0",null);t["default"]=f.exports},7522:function(e,t,a){"use strict";a("f168")},ac0d:function(e,t,a){"use strict";a.d(t,"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 e=0;return i&&i.scrollTop?e=i.scrollTop:s&&(e=s.scrollTop),e},getClientHeight:function(){var e=0;return e=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(s.scrollHeight,i.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(){}}}},f0b5:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#teamPerformance .rationList[data-v-9ff746e0]{padding:0;margin:0}#teamPerformance .rationList li[data-v-9ff746e0]{margin-bottom:.5rem}#teamPerformance .rationList li .detail[data-v-9ff746e0]{background:#fff}#teamPerformance .rationList li .detail .member-show[data-v-9ff746e0]{border-top:.0625rem solid #ebebeb;padding:.5rem 1rem;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}#teamPerformance .rationList li .detail .member-show .member-info[data-v-9ff746e0]{text-align:left;margin-left:.5rem;font-size:14px}#teamPerformance .rationList li .header[data-v-9ff746e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem 0;border-bottom:.0625rem solid #ebebeb}#teamPerformance .rationList li .header p[data-v-9ff746e0]{-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}#teamPerformance .rationList li .header p span[data-v-9ff746e0]:first-child{color:#8c8c8c}#teamPerformance .rationList li .header p span[data-v-9ff746e0]{line-height:1.75rem}#teamPerformance .rationList li .header p .number[data-v-9ff746e0]{font-size:16px}#teamPerformance .rationList li .header p .order_number[data-v-9ff746e0]{padding:0 8px;font-size:12px}#teamPerformance .rationList li .list_box[data-v-9ff746e0]{padding:0 .625rem}#teamPerformance .rationList li .list[data-v-9ff746e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:18px}#teamPerformance .rationList li .list p[data-v-9ff746e0]{-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#teamPerformance .rationList li .info[data-v-9ff746e0],#teamPerformance .rationList li .list p[data-v-9ff746e0]{-webkit-box-flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#teamPerformance .rationList li .info[data-v-9ff746e0]{-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center;padding:.5rem 0;background:#fff;font-size:14px}#teamPerformance .rationList li .info img[data-v-9ff746e0]{-webkit-box-flex:0;-webkit-flex:0 0 1.875rem;-ms-flex:0 0 1.875rem;flex:0 0 1.875rem;width:1.875rem;height:1.875rem;border-radius:1rem;margin-right:.5rem}#teamPerformance .rationList li .info span[data-v-9ff746e0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;max-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#teamPerformance[data-v-9ff746e0] .van-tabs__line{z-index:0}",""]),e.exports=t},f168:function(e,t,a){var i=a("f0b5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("4ca9ee0c",i,!0,{sourceMap:!1,shadowMode:!1})}}]);