bztang-admin/addons/yun_shop/static/app/js/chunk-41069450.6d5690bd.js

1 line
6.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41069450"],{"0ab08":function(t,e,a){"use strict";a("528d")},"50ba":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#teamPerformance .rationList[data-v-ea88236c]{padding:0;margin:0}#teamPerformance .rationList li[data-v-ea88236c]{margin-bottom:.5rem}#teamPerformance .rationList li .detail[data-v-ea88236c]{background:#fff}#teamPerformance .rationList li .header[data-v-ea88236c]{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-ea88236c]{-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-ea88236c]:first-child{color:#8c8c8c}#teamPerformance .rationList li .header p span[data-v-ea88236c]{line-height:1.75rem}#teamPerformance .rationList li .header p .number[data-v-ea88236c]{font-size:16px}#teamPerformance .rationList li .header p .order_number[data-v-ea88236c]{padding:0 8px;font-size:12px}#teamPerformance .rationList li .list_box[data-v-ea88236c]{padding:0 .625rem}#teamPerformance .rationList li .list[data-v-ea88236c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:18px}#teamPerformance .rationList li .list p[data-v-ea88236c]{-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-ea88236c],#teamPerformance .rationList li .list p[data-v-ea88236c]{-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-ea88236c]{-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-ea88236c]{-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-ea88236c]{-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-ea88236c] .van-tabs__line{z-index:0}",""]),t.exports=e},"528d":function(t,e,a){var i=a("50ba");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("4bcadef9",i,!0,{sourceMap:!1,shadowMode:!1})},5782: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",{attrs:{id:"teamPerformance"}},[a("c-title",{attrs:{hide:!1,text:t.headTitle}}),t.is_show?a("van-tabs",{on:{change:t.handleChange},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{name:"team"}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v("团队业绩")])]),a("van-tab",{attrs:{name:"people"}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v("个人业绩")])])],1):t._e(),a("div",{staticClass:"content"},[a("ul",{staticClass:"rationList"},t._l(t.recordsList,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"detail"},[a("div",{staticClass:"header"},[a("p",{staticClass:"month"},[a("span",[t._v("订单编号")]),a("span",{staticClass:"order_number"},[t._v(t._s(e.order_sn))])]),a("p",{staticClass:"month"},[a("span",[t._v("订单金额")]),a("span",{staticClass:"number"},[t._v(t._s(e.price))])]),a("p",{staticClass:"month"},[a("span",[t._v("商品数量")]),a("span",{staticClass:"number"},[t._v(t._s(e.goods_total))])])]),a("div",{staticClass:"list_box"},t._l(e.has_many_order_goods,(function(e,i){return a("div",{key:i,staticClass:"list"},[a("div",{staticClass:"info"},[a("img",{attrs:{src:e.thumb,alt:"商品图片"}}),a("span",[t._v(t._s(e.title))])]),a("p",{staticClass:"price"},[t._v(t._s(e.price))]),a("p",[t._v(t._s(e.total))])])})),0)])])})),0)])],1)},s=[],n=(a("e7e5"),a("d399")),o=(a("99af"),a("6968")),r=a("ac0d"),l={mixins:[r["a"]],data:function(){return{recordsList:[],activeName:"team",api:"plugin.team-dividend.api.results.getList",is_show:!1,headTitle:"团队业绩",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initData(),this.getData()},methods:{initData:function(){this.recordsList=[],this.page=1,this.total_page=0,this.isLoadMore=!0},handleChange:function(){"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 t=this;$http.get(this.api,{},"...").then((function(e){1===e.result?(t.isLoadMore=!0,"people"===t.activeName?(t.recordsList=e.data.data,t.total_page=e.data.last_page):(t.is_show=e.data.is_show,t.recordsList=e.data.data.data,t.total_page=e.data.data.last_page)):Object(n["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(this.api,{page:this.page},"加载中...").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;"people"===t.activeName?t.recordsList=t.recordsList.concat(a):t.recordsList=t.recordsList.concat(a.data)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})))}},components:{cTitle:o["a"]}},c=l,d=c,m=(a("0ab08"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"ea88236c",null);e["default"]=p.exports},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(){}}}}}]);