pages-team-achievement-team-achievement.a906ddb5.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-team-achievement-team-achievement"],{1427:function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t._API_InviteCode=t._API_Examine=t._API_ExamineList_Down=t._API_ExamineList_Invite=t._API_TeamInviteNoActive=t._API_TeamInviteActive=t._API_TeamAchievement=t._API_TeamNewList_Month=t._API_TeamNewList_Day=t._API_TeamList_Down=t._API_TeamList_Direct=t._API_TeamPerData=t._API_TeamChart=void 0;var a=n(i("cacb")),o=function(e){return a.default.get("/app/chart?type=1",e)};t._API_TeamChart=o;var r=function(e){return a.default.get("/team/card_data",e)};t._API_TeamPerData=r;var l=function(e){return a.default.get("/team/list?type=0",e)};t._API_TeamList_Direct=l;var c=function(e){return a.default.get("/team/list?type=1",e)};t._API_TeamList_Down=c;var s=function(e){return a.default.get("/team/add_list?type=0",e)};t._API_TeamNewList_Day=s;var d=function(e){return a.default.get("/team/add_list?type=1",e)};t._API_TeamNewList_Month=d;var b=function(e){return a.default.get("/team/money",e)};t._API_TeamAchievement=b;var f=function(e){return a.default.get("/team/invite?type=0",e)};t._API_TeamInviteActive=f;var w=function(e){return a.default.get("/team/invite?type=1",e)};t._API_TeamInviteNoActive=w;var u=function(e){return a.default.get("/team/examine_list?type=0",e)};t._API_ExamineList_Invite=u;var k=function(e){return a.default.get("/team/examine_list?type=1",e)};t._API_ExamineList_Down=k;var x=function(e){return a.default.get("/team/examine",e)};t._API_Examine=x;var m=function(e){return a.default.get("/team/invite_code",e)};t._API_InviteCode=m},"29cb":function(e,t,i){"use strict";var n=i("8bbb"),a=i.n(n);a.a},"653d":function(e,t,i){"use strict";i.r(t);var n=i("dd73"),a=i("d627");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("29cb");var r,l=i("f0c5"),c=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"63d4a194",null,!1,n["a"],r);t["default"]=c.exports},"8bbb":function(e,t,i){var n=i("95b1");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("4e4da7e5",n,!0,{sourceMap:!1,shadowMode:!1})},"95b1":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-63d4a194]{margin-top:%?10?%}.app-item uni-input[data-v-63d4a194], .app-item uni-picker[data-v-63d4a194], .app-item uni-textarea[data-v-63d4a194]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-63d4a194]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-63d4a194]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-63d4a194]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-63d4a194]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-63d4a194]{color:#fff;background:#f76454}.small-btn[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-63d4a194]{color:#999;border-color:#999}.login-btn[data-v-63d4a194]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-63d4a194]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-63d4a194]{margin-right:%?20?%}.border-right[data-v-63d4a194]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-63d4a194]{margin-right:%?6?%}.position-center[data-v-63d4a194]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-63d4a194]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-63d4a194]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-63d4a194]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-63d4a194]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-63d4a194]{color:#f76454}.swiper-nav[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-63d4a194]{color:#f76454}.swiper-nav .moveBar[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-63d4a194]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-63d4a194]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-63d4a194]{width:100%;height:100%}.article-header[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-63d4a194]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-63d4a194]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-63d4a194]{color:#f76454}.article-footer[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-63d4a194]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-63d4a194]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-63d4a194]{color:#f76454}\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.team-achievement[data-v-63d4a194]{height:100%;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#f2f2f2}.team-achievement .content[data-v-63d4a194]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative;box-sizing:border-box}.team-achievement .content[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.team-achievement .content .chooser[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;background:#fff}.team-achievement .content .chooser .picker[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?84?%}.team-achievement .content .total[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?90?%;padding:%?30?%;font-size:%?32?%;margin-top:%?10?%;background:#fff;box-sizing:border-box;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.team-achievement .content .total .num[data-v-63d4a194]{color:#f76454}.team-achievement .content .scroll[data-v-63d4a194]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;margin-top:%?10?%}.team-achievement .content .scroll uni-scroll-view .item[data-v-63d4a194]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;background:#fff;padding:%?10?% %?30?%;box-sizing:border-box;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.team-achievement .content .scroll uni-scroll-view .item .avatar[data-v-63d4a194]{width:%?100?%;height:%?100?%;border-radius:50%}.team-achievement .content .scroll uni-scroll-view .item .nickname[data-v-63d4a194]{max-width:%?300?%}',""]),e.exports=t},c689:function(e,t,i){"use strict";var n=i("4ea4");i("99af"),i("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("2909")),o=i("1427"),r=n(i("9fee")),l=n(i("1378")),c=n(i("c2b1c")),s=n(i("e89c")),d={components:{WPicker:r.default,swiperStatus:l.default,customReachBottom:s.default,pulldownRefresher:c.default},data:function(){return{title:"团队业绩",typeList:[{label:"全部代理",value:"全部代理"},{label:"销售经理",value:"销售经理"},{label:"销售主管",value:"销售主管"}],timeList:[{label:"本日业绩",value:"本日业绩"},{label:"本周业绩",value:"本周业绩"},{label:"本月业绩",value:"本月业绩"}],choosed:{type:0,time:0},total:0,list:[],page:1,scrollViewHeight:0,requesting:!1}},watch:{choosed:{deep:!0,handler:function(){this.list=[],this.pulldownrefresh()}}},mounted:function(){var e=this;this.request(),this.$offset(".scroll").then((function(t){e.scrollViewHeight=t.height}))},methods:{request:function(e){var t=this;return new Promise((function(i){t.page&&(!e&&uni.showLoading({mask:!0}),t.requesting=!0,(0,o._API_TeamAchievement)({type:t.choosed.type,time:t.choosed.time,page:t.page}).then((function(i){t.total=i.data.money,!e&&(t.list=[]),t.list=[].concat((0,a.default)(t.list),(0,a.default)(i.data.list)),i.data.list.length<+i.data.size?t.page=0:t.page++})).catch((function(){t.page=-1,t.list=[]})).finally((function(){i(),t.requesting=!1})))}))},pulldownrefresh:function(){var e=this;this.page=1,this.request().then((function(){e.$refs.pulldownRefresher.pullup()}))},scrolltolower:function(){!this.requesting&&this.request("loadmore")},choosePicker1:function(){this.$refs.Selector1.show()},choosePicker2:function(){this.$refs.Selector2.show()},onConfirm1:function(e){this.choosed.type=e.defaultVal[0]},onConfirm2:function(e){this.choosed.time=e.defaultVal[0]}}};t.default=d},d627:function(e,t,i){"use strict";i.r(t);var n=i("c689"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},dd73:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={wPicker:i("9fee").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"team-achievement"},[i("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),i("w-picker",{ref:"Selector1",attrs:{mode:"selector",defaultVal:"全部代理",themeColor:"#F76454",selectList:e.typeList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm1.apply(void 0,arguments)}}}),i("w-picker",{ref:"Selector2",attrs:{mode:"selector",defaultVal:"本日业绩",themeColor:"#F76454",selectList:e.timeList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm2.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"chooser"},[i("v-uni-view",{staticClass:"picker",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.choosePicker1.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"icon-right"},[e._v(e._s(e.typeList[e.choosed.type].label))]),i("v-uni-text",{staticClass:"cuIcon-unfold"})],1),i("v-uni-view",{staticClass:"picker",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.choosePicker2.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"icon-right"},[e._v(e._s(e.timeList[e.choosed.time].label))]),i("v-uni-text",{staticClass:"cuIcon-unfold"})],1)],1),i("v-uni-view",{staticClass:"total"},[i("v-uni-text",{staticClass:"text"},[e._v("业绩合计")]),i("v-uni-text",{staticClass:"num"},[e._v("¥"+e._s(e._f("numDot")(e.total)))])],1),i("v-uni-view",{staticClass:"scroll"},[i("pulldown-refresher",{ref:"pulldownRefresher",on:{pulldownRefresh:function(t){arguments[0]=t=e.$handleEvent(t),e.pulldownrefresh.apply(void 0,arguments)}}},[i("v-uni-scroll-view",{style:{height:e.scrollViewHeight+"px"},attrs:{"scroll-y":!0},on:{scrolltolower:function(t){arguments[0]=t=e.$handleEvent(t),e.scrolltolower.apply(void 0,arguments)}}},[e._l(e.list,(function(t,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-image",{staticClass:"avatar",attrs:{src:t.avatar}}),i("v-uni-view",{staticClass:"nickname ellipsis"},[e._v(e._s(t.nickname))]),i("v-uni-view",{staticClass:"level-name"},[i("v-uni-text",{staticClass:"cuIcon-crownfill"}),e._v(e._s(t.level))],1),i("v-uni-view",{staticClass:"money"},[e._v("¥"+e._s(e._f("numDot")(t.money)))])],1)})),e.list.length?i("custom-reach-bottom",{attrs:{nomore:0===e.page}}):i("swiper-status",{attrs:{page:e.page,unit:"团队成员"}})],2)],1)],1)],1)],1)},o=[]}}]);