You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
15 KiB
1 lines
15 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-level"],{"0576":function(e,t,i){"use strict";i.r(t);var n=i("d51a"),a=i("e93b");for(var l in a)["default"].indexOf(l)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(l);i("e8e6");var s=i("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"545189d4",null,!1,n["a"],void 0);t["default"]=r.exports},4041:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-545189d4]{background:#19212c}body.?%PAGE?%[data-v-545189d4]{background:#19212c}.pages-technician-level .image-container[data-v-545189d4]{width:%?750?%;height:%?504?%}.pages-technician-level .image-container .swiper-item[data-v-545189d4]{width:%?750?%;height:%?504?%}.pages-technician-level .image-container .swiper-item .level-line-info[data-v-545189d4]{height:%?120?%}.pages-technician-level .image-container .swiper-item .level-line-info .icon-level-line[data-v-545189d4]{top:%?30?%;left:0;font-size:%?94?%;z-index:-1}.pages-technician-level .image-container .swiper-item .level-line-info .list-item[data-v-545189d4]{width:33.33%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag .tag-lg[data-v-545189d4]{width:16px;height:16px;border-radius:50%;background:hsla(0,0%,100%,.3)}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag .tag-lg .tag-md[data-v-545189d4]{width:10px;height:10px;border-radius:50%;background:hsla(0,0%,100%,.7)}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag.left[data-v-545189d4],\n.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag.right[data-v-545189d4]{margin-top:%?48?%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag.center[data-v-545189d4]{margin-top:%?4?%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag.center .tag-lg[data-v-545189d4]{width:26px;height:26px;border-radius:50%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag.center .tag-lg .tag-md[data-v-545189d4]{width:18px;height:18px;border-radius:50%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-tag.center .tag-lg .tag-md .tag-sm[data-v-545189d4]{width:14px;height:14px;border-radius:50%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .line-text[data-v-545189d4]{font-size:%?20?%;color:#e5f4f5}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .text-tag[data-v-545189d4]{margin-top:%?16?%;min-width:%?70?%;height:%?38?%;padding:%?4?%;border-radius:%?8?%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .text-tag .square-tag[data-v-545189d4]{top:%?-4?%;left:50%;margin-left:%?-8?%;width:%?16?%;height:%?16?%;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .text-tag .square-tag .square-mini[data-v-545189d4]{width:%?8?%;height:%?8?%}.pages-technician-level .image-container .swiper-item .level-line-info .list-item .text-tag .tag-text[data-v-545189d4]{font-size:%?20?%;height:%?30?%;border-radius:%?6?%}.pages-technician-level .count-list[data-v-545189d4]{white-space:nowrap;width:%?710?%;height:%?160?%;background:hsla(0,0%,100%,.05);border-radius:%?16?%}.pages-technician-level .count-list .list-item[data-v-545189d4]{display:inline-block;width:30%;margin-top:%?34?%}.pages-technician-level .count-list .list-item .num[data-v-545189d4]{font-size:%?38?%}.pages-technician-level .count-list .list-item .text[data-v-545189d4]{font-size:%?22?%;color:#7e8da3;margin-top:%?5?%}.pages-technician-level .rule-list[data-v-545189d4]{white-space:nowrap;width:%?670?%;background:hsla(0,0%,100%,.05);border-radius:%?16?%}.pages-technician-level .rule-list .list-item[data-v-545189d4]{display:inline-block;font-size:%?26?%}.pages-technician-level .rule-list .list-item .title[data-v-545189d4]{width:%?190?%;height:%?108?%;color:#e5ebf5}.pages-technician-level .rule-list .list-item .text[data-v-545189d4]{width:%?190?%;height:%?95?%;color:#7e8da3}.pages-technician-level .iconshuyi_shuoming[data-v-545189d4]{font-size:%?34?%}',""]),e.exports=t},"7ab7":function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("fd3c"),i("aa9c"),i("c223"),i("bd06");var a=n(i("9b1b")),l=n(i("2634")),s=n(i("2fdc")),r=i("8f59"),c={components:{},data:function(){return{isLoad:!1,options:{},currentIndex:0,curLevelInd:0,levelList:[],countList:[{key:"coach_price",text:"本期业绩"},{key:"coach_integral",text:"本期积分"},{key:"coach_add_balance",text:"本期加钟率",unit:"%"},{key:"coach_time_long",text:"本期服务时长(分钟)"},{key:"online_time",text:"本期在线时长(小时)"}],ruleList:[],unitArr:[],coach_level:{}}},computed:(0,r.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},userInfo:function(e){return e.user.userInfo},location:function(e){return e.user.location}}),onLoad:function(e){var t=this;return(0,s.default)((0,l.default)().mark((function e(){return(0,l.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$util.showLoading(),e.next=3,t.initIndex();case 3:t.isLoad=!0;case 4:case"end":return e.stop()}}),e)})))()},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,r.mapActions)(["getUserInfo"])),(0,r.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var e=arguments,t=this;return(0,s.default)((0,l.default)().mark((function i(){var n,a,s,r,c,o,d,u,v,m,p,f;return(0,l.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.length>0&&void 0!==e[0]&&e[0],n||!t.$jweixin.isWechat()){i.next=5;break}return i.next=4,t.$jweixin.initJssdk();case 4:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 5:return t.$util.setNavigationBarColor({bg:t.primaryColor}),i.next=8,t.$api.technician.coachLevel();case 8:a=i.sent,s=a.coach_level,r=a.level_list,c=a.coach_level_show,o=void 0===c?1:c,r.map((function(e){var t=e.data,i=t.differ_time_long,n=t.differ_online_time,a=t.differ_price,l=t.differ_add_price,s=t.differ_integral,r=[];(i||n||a||l||s)&&(r=["还差"],i&&r.push("".concat(i,"分钟服务时长")),n&&r.push("".concat(n,"小时在线时长")),a&&r.push("".concat(a,"业绩")),l&&r.push("".concat(l,"元加钟订单额")),s&&r.push("".concat(s,"积分")),r.push("可升级")),e.data.differ_text=r})),d=[["等级"],["最低业绩"],["加钟率"],["服务时长"],["在线时长"],["积分"]],u=["title","price","add_balance","time_long","online_time","integral"],v=["","","%","分钟","小时",""],1==o&&(d.push(["分成比例"]),u.push("balance"),v.push("%")),u.map((function(e,t){r.map((function(i){var n="time_long"===e?"".concat(i.lower,"至").concat(i[e]):i[e];d[t].push(n)}))})),m=s.id,p=void 0===m?0:m,f=r.findIndex((function(e){return e.id==p})),t.currentIndex=f,t.curLevelInd=f,t.ruleList=d,t.levelList=r,t.unitArr=v,t.coach_level=s,t.isLoad=!0,t.$util.hideAll();case 26:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},swiperChange:function(e){this.currentIndex=e.detail.current}})};t.default=c},d51a:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isLoad?i("v-uni-view",{staticClass:"pages-technician-level"},[e.levelList&&e.levelList.length>0?i("v-uni-swiper",{staticClass:"image-container",attrs:{"indicator-dots":!1,current:e.currentIndex},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.swiperChange.apply(void 0,arguments)}}},e._l(e.levelList,(function(t,n){return i("v-uni-swiper-item",{key:n,staticClass:"swiper-item"},[i("v-uni-view",{staticClass:"level-line-info flex-center mt-lg ml-md mr-md rel"},[i("v-uni-view",{staticClass:"space-lg"}),i("i",{staticClass:"iconfont icon-level-line icon-font-color abs",style:{backgroundImage:"-webkit-linear-gradient(0deg, #000 0%, "+e.primaryColor+" 50%, #000 100%)"}}),e._l(3,(function(a,l){return i("v-uni-view",{key:l,staticClass:"list-item flex-center flex-column"},[0==l&&n>0||1==l||2==l&&n!=e.levelList.length-1?i("v-uni-view",{staticClass:"line-tag",class:[{left:0==l},{center:1==l},{right:2==l}]},[i("v-uni-view",{staticClass:"tag-lg flex-center"},[i("v-uni-view",{staticClass:"tag-md flex-center"},[1==l?i("v-uni-view",{staticClass:"tag-sm flex-center",style:{background:e.primaryColor}}):e._e()],1)],1)],1):e._e(),0==l&&n>0||2==l&&n!=e.levelList.length-1?i("v-uni-view",{staticClass:"line-text mt-sm"},[e._v(e._s(0==l?e.levelList[n-1].title:e.levelList[n+1].title))]):e._e(),1===l?i("v-uni-view",{staticClass:"text-tag flex-center mt-sm rel",style:{background:e.primaryColor}},[i("v-uni-view",{staticClass:"square-tag flex-center abs",style:{background:e.primaryColor,background:"linear-gradient(-45deg, transparent 12rpx,"+e.primaryColor+" 0)"}},[i("v-uni-view",{staticClass:"square-mini fill-base"})],1),i("v-uni-view",{staticClass:"tag-text fill-base flex-center pl-sm pr-sm",style:{color:e.primaryColor}},[e._v(e._s(t.title))])],1):e._e()],1)}))],2),i("v-uni-view",{staticClass:"technician-level pd-lg ml-md mr-md mt-md rel",style:{border:"1rpx solid "+e.primaryColor}},[i("i",{staticClass:"iconfont icon-level-icon icon-font-color abs",style:{left:"60rpx",backgroundImage:"-webkit-linear-gradient(0deg, #000 36%, "+e.primaryColor+" 100%)"}}),i("v-uni-image",{staticClass:"level-icon-img abs",attrs:{mode:"aspectFill",src:"https://lbqny.migugu.com/admin/anmo/technician/level-icon.png"}}),i("v-uni-view",{staticClass:"space-md"}),i("v-uni-view",{staticClass:"flex-y-baseline level-title text-bold"},[e._v(e._s(t.title)),i("v-uni-view",{staticClass:"ml-sm f-desc"},[e._v(e._s(n<e.curLevelInd?"已解锁":n==e.curLevelInd?"当前等级":"未解锁"))])],1),i("v-uni-view",{staticStyle:{height:"55rpx"}}),i("v-uni-view",{staticClass:"level-line radius rel"},[i("v-uni-view",{staticClass:"level-line cur radius abs",style:{width:"35%",background:e.primaryColor}})],1),i("v-uni-view",{staticStyle:{height:"25rpx"}}),i("v-uni-view",{staticClass:"flex-between f-paragraph c-base text-bold"},[i("v-uni-view",[e._v(e._s(t.data.title))]),i("v-uni-view",[e._v(e._s(t.data.next_level_title))])],1),i("v-uni-view",{staticClass:"flex-warp f-icontext mt-sm"},e._l(t.data.differ_text,(function(n,a){return i("v-uni-text",{key:a},[e._v(e._s(a<2||a==t.data.differ_text.length-1?n:"、"+n))])})),1)],1)],1)})),1):e._e(),e.coach_level.id?i("v-uni-scroll-view",{staticClass:"count-list mt-lg ml-md mr-md",attrs:{"scroll-x":!0}},e._l(e.countList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"list-item flex-column"},[i("v-uni-view",{staticClass:"flex-center num text-bold",style:{color:e.primaryColor}},[e._v(e._s(e.coach_level[t.key])+e._s(t.unit||""))]),i("v-uni-view",{staticClass:"flex-center text"},[e._v(e._s(t.text))])],1)})),1):e._e(),i("v-uni-view",{staticClass:"flex-y-center ml-md pt-lg pb-lg f-title c-base",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$refs.show_rule_item.open()}}},[i("v-uni-view",{staticClass:"text-bold"},[e._v("规则说明")]),i("i",{staticClass:"iconfont iconshuyi_shuoming ml-sm"})],1),e.ruleList&&e.ruleList.length>0?i("v-uni-scroll-view",{staticClass:"rule-list flex-column ml-md mr-md pl-md pr-md",attrs:{"scroll-x":!0}},e._l(e.ruleList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"list-item flex-warp"},e._l(t,(function(t,a){return i("v-uni-view",{key:a,staticClass:"flex-center",class:[{title:0==a},{text:a>0}],style:{borderTop:0!==a?"1rpx solid #19212C":""}},[e._v(e._s(1==n&&a>0?"¥":"")+e._s(t)+e._s(a>0?e.unitArr[n]:""))])})),1)})),1):e._e(),i("v-uni-view",{staticClass:"space-footer"}),i("uni-popup",{ref:"show_rule_item",attrs:{type:"center",maskClick:!1}},[i("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[i("v-uni-view",{staticClass:"title"},[e._v("规则说明")]),i("v-uni-view",{staticClass:"f-desc c-title mt-lg"},[e._v("在折算周期(T)内,"+e._s(e.$t("action.attendantName"))+"完成以下维度的考核指标后,"+e._s(e.$t("action.attendantName"))+"可以在T+1个周期按照该等级算提成比例,例如折算周期为每月,"+e._s(e.$t("action.attendantName"))+"在这个月内完成了多少,会在月底30号系统核算,满足某个等级标准之后,会在下一个月的1号生效"),i("v-uni-view",{staticClass:"mt-sm flex-1"},[e._v("最低业绩:"+e._s(e.$t("action.attendantName"))+"服务的所有服务订单和加钟订单,不包含车费。")]),i("v-uni-view",{staticClass:"mt-sm flex-1"},[e._v("加钟率:加钟订单金额/最低业绩")]),i("v-uni-view",{staticClass:"mt-sm flex-1"},[e._v("服务时长:"+e._s(e.$t("action.attendantName"))+"接单服务的时间")]),i("v-uni-view",{staticClass:"mt-sm flex-1"},[e._v("在线时长:"+e._s(e.$t("action.attendantName"))+"在线工作的时间")]),i("v-uni-view",{staticClass:"mt-sm flex-1"},[e._v("积分:若储值返佣设置勾选了返积分,则"+e._s(e.$t("action.attendantName"))+"邀请用户充值将获得积分,积分和金额按照1:1比例换算")])],1),i("v-uni-view",{staticClass:"button"},[i("v-uni-view",{staticClass:"item-child c-base",style:{background:e.primaryColor,color:"#fff"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$refs.show_rule_item.close()}}},[e._v("知道了")])],1)],1)],1)],1):e._e()},a=[]},e8e6:function(e,t,i){"use strict";var n=i("eeda"),a=i.n(n);a.a},e93b:function(e,t,i){"use strict";i.r(t);var n=i("7ab7"),a=i.n(n);for(var l in n)["default"].indexOf(l)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(l);t["default"]=a.a},eeda:function(e,t,i){var n=i("4041");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("967d").default;a("fbeb7e5a",n,!0,{sourceMap:!1,shadowMode:!1})}}]); |