chunk-e3498606.c42d5965.js 8.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e3498606"],{"1bbf":function(t,e,a){"use strict";a.r(e);var i,r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("div",{staticClass:"myMedal"},[i("div",{staticClass:"font38 fontw700 colorfff"},[t._v(" 我的成就 "),i("span",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"font24 fontw500 colorfff"},[t._v("今日新增1枚勋章")])]),i("div",{staticClass:"font24 lineHeight80"},[t._v("记录我的营销数字化点点滴滴")]),t.myMedal.length?[t._l(t.myMedal,(function(e,a){return[i("div",{key:a,staticClass:"myMedal-list flex-row align-center flex-wrap mt40"},t._l(e.list,(function(e){return i("div",{key:e.id,staticClass:"medal-item",on:{click:function(a){return t.viewMedal(e,"my")}}},[i("img",{attrs:{src:e.path,width:"100%",height:"100%",alt:""}})])})),0)]}))]:[t._m(0),i("div",{staticClass:"myMedal-list flex-row align-center flex-wrap mt40"}),i("div",{staticClass:"myMedal-list flex-row align-center flex-wrap mt100"})]],2),i("div",{staticClass:"medal-series"},[t._m(1),t._l(t.medalObj,(function(e,a){return[i("div",{key:a,staticClass:"medal-tips flex-row align-center justify-center"},[i("div",{staticClass:"left-arrow"}),i("span",{staticClass:"tips-name color999"},[t._v(t._s(t.getTypeTitle(a)))]),i("div",{staticClass:"right-arrow"})]),i("div",{staticClass:"medal-series-list flex-row flex-wrap align-center"},t._l(e,(function(r,n){return i("div",{key:e.id,staticClass:"medal-series-item",on:{click:function(e){return t.viewMedal(r)}}},[r.next?i("div",{staticClass:"tips-msg",style:t.getStyle(r,n,a)},[t._v(" "+t._s(r.next)+" "),i("div",{staticClass:"b-arrow",style:t.getArrowStyle(r,n,a)})]):t._e(),i("img",{attrs:{src:r.path,width:"100%",height:"100%",alt:""}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!r.is_obtain,expression:"!child.is_obtain"}],staticClass:"mask_d"})])})),0)]}))],2),i("van-overlay",{attrs:{show:t.show}},[i("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"block flex-column align-center justify-center"},[i("div",{staticClass:"block-medal"},[i("img",{attrs:{src:t.detail.path,width:"100%",height:"100%",alt:""}})]),t.detail.is_obtain?t._e():[i("div",{staticClass:"block-none flex-row align-center justify-center"},[i("div",{staticClass:"left-arrow"}),i("span",{staticClass:"tips-name color999 font24"},[t._v("暂未获得")]),i("div",{staticClass:"right-arrow"})])],i("div",{staticClass:"font34 color333 block-tips"},[t._v(t._s(t.detail.content))]),t.detail.is_obtain?[i("van-button",{directives:[{name:"show",rawName:"v-show",value:!t.detail.is_wear,expression:"!detail.is_wear"}],staticClass:"v-button",attrs:{loading:t.uloading,round:"",type:"info"},on:{click:function(e){return t.setMedalWear(t.detail.id)}}},[t._v("佩戴勋章")]),i("van-button",{directives:[{name:"show",rawName:"v-show",value:t.detail.is_wear,expression:"detail.is_wear"}],staticClass:"v-button",attrs:{disabled:t.detail.is_wear,round:"",type:"info"}},[t._v("已佩戴勋章")])]:t._e(),i("img",{staticClass:"close",attrs:{src:a("81d3"),width:"37px",height:"37px",alt:""},on:{click:function(e){t.show=!1}}})],2)])])],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex-column align-center justify-center mt40"},[a("span",{staticClass:"font34 fontw700"},[t._v("暂未获得成就")]),a("span",{staticClass:"font28 mt20 color999"},[t._v("下滑查看全部成就")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"medal-title flex-row align-center justify-center"},[a("span",{staticClass:"font38 color999"},[t._v("· 数字化勋章体系 ·")])])}],s=(a("e7e5"),a("d399")),l=a("fc11"),o=(a("66b9"),a("b650")),c=(a("f1dc"),a("6e47")),d=(a("b0c0"),a("a434"),a("92e2")),u={components:(i={},Object(l["a"])(i,c["a"].name,c["a"]),Object(l["a"])(i,o["a"].name,o["a"]),i),data:function(){return{uloading:!1,loading:!1,show:!1,medalObj:{},myMedal:[],detail:{}}},mounted:function(){this.getMedalList()},methods:{viewMedal:function(t,e){"my"==e?this.getDetail(t.medal_id):this.getDetail(t.id)},getStyle:function(t,e,a){switch(a){case"clue":var i={};return i=0==e?{left:"-20%"}:3==e?{left:"-168%"}:{transform:"translateX(-50%)"},i["background-color"]="rgba(255, 235, 216, 0.49)",i["color"]="rgba(255, 191, 133, 1)",i;case"sign":var r={};return r=0==e?{left:"-20%"}:3==e?{left:"-80%"}:{transform:"translateX(-50%)"},r["background-color"]="rgba(255, 175, 175, 0.28)",r["color"]="#F3A3A6",r;case"comment":var n={};return n=0==e?{left:"-20%"}:3==e?{left:"-80%"}:{transform:"translateX(-50%)"},n["background-color"]="rgba(228, 187, 255, 0.41)",n["color"]="#C997F9",n;case"visit_log":var s={};return s=0==e?{left:"-20%"}:3==e?{left:"-80%"}:{transform:"translateX(-50%)"},s["background-color"]="rgba(213,252,255,0.28)",s["color"]="#71F3FD",s;default:var l={};return l=0==e?{left:"-20%"}:3==e?{left:"-80%"}:{transform:"translateX(-50%)"},l["background-color"]="rgba(190, 236, 255, 0.42)",l["color"]="rgba(109, 211, 254, 1)",l}},getArrowStyle:function(t,e,a){switch(a){case"clue":var i={};return 0==e?i={left:"25%"}:3==e&&(i={left:"80%"}),i["border-top-color"]="rgba(255, 235, 216, 0.49)",i;case"sign":var r={};return 0==e?r={left:"35%"}:3==e&&(r={left:"70%"}),r["border-top-color"]="rgba(255, 175, 175, 0.28)",r;case"comment":var n={};return 0==e?n={left:"35%"}:3==e&&(n={left:"70%"}),n["border-top-color"]="rgba(228, 187, 255, 0.41)",n;case"visit_log":var s={};return 0==e?s={left:"35%"}:3==e&&(s={left:"70%"}),s["border-top-color"]="rgba(213,252,255,0.28)",s;default:var l={};return 0==e?l={left:"35%"}:3==e&&(l={left:"70%"}),l["border-top-color"]="rgba(190, 236, 255, 0.42)",l}},getTypeTitle:function(t){switch(t){case"clue":return"品牌触达";case"sign":return"系统使用";case"comment":return"答疑解惑";case"class":return"能力提升";case"visit_log":return"客户维护"}},getRemarkStyle:function(t,e,a){switch(a){case"clue":case"visit_log":return"medal-text2 bottom17";case"class":return"medal-text2 bottom15";default:return"medal-text2"}},getMedalList:function(){var t=this;Object(d["e"])({}).then((function(e){t.loading=!0,t.medalObj=e.data.data.all;var a=e.data.data.my;a.length>0&&t.handleMyMedal(a)}))},handleMyMedal:function(t){t.length>4?(this.myMedal.push({list:t.splice(0,4)}),this.handleMyMedal(t)):this.myMedal.push({list:t})},getDetail:function(t){var e=this;Object(d["c"])({id:t}).then((function(t){e.detail=t.data.data,e.show=!0}))},setMedalWear:function(t){var e=this;this.uloading=!0,Object(d["d"])({id:t}).then((function(t){e.uloading=!1,0==t.data.code&&(Object(s["a"])({message:"佩戴成功!"}),e.show=!1)})).catch((function(t){e.uloading=!1}))}}},f=u,m=(a("e8bc"),a("2877")),v=Object(m["a"])(f,r,n,!1,null,"896e17bc",null);e["default"]=v.exports},"66b9":function(t,e,a){"use strict";a("68ef"),a("9d70"),a("3743"),a("e3b3"),a("bc1b")},"81d3":function(t,e,a){t.exports=a.p+"img/caseclose.cbb7e5d8.png"},"92e2":function(t,e,a){"use strict";a.d(e,"f",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"e",(function(){return s})),a.d(e,"c",(function(){return l})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return c})),a.d(e,"g",(function(){return d}));var i=a("b775");function r(t){return Object(i["a"])({url:"/api/profile/company",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/api/talkskill/credits_info",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/api/medal/index",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/api/medal/read",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/api/medal/wear",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/api/talkskill/contribution",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/api/train/credits_info",method:"post",data:t})}},a434:function(t,e,a){"use strict";var i=a("23e7"),r=a("da84"),n=a("23cb"),s=a("5926"),l=a("07fa"),o=a("7b0b"),c=a("65f0"),d=a("8418"),u=a("1dde"),f=u("splice"),m=r.TypeError,v=Math.max,b=Math.min,h=9007199254740991,g="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var a,i,r,u,f,p,w=o(this),_=l(w),y=n(t,_),C=arguments.length;if(0===C?a=i=0:1===C?(a=0,i=_-y):(a=C-2,i=b(v(s(e),0),_-y)),_+a-i>h)throw m(g);for(r=c(w,i),u=0;u<i;u++)f=y+u,f in w&&d(r,u,w[f]);if(r.length=i,a<i){for(u=y;u<_-i;u++)f=u+i,p=u+a,f in w?w[p]=w[f]:delete w[p];for(u=_;u>_-i+a;u--)delete w[u-1]}else if(a>i)for(u=_-i;u>y;u--)f=u+i-1,p=u+a-1,f in w?w[p]=w[f]:delete w[p];for(u=0;u<a;u++)w[u+y]=arguments[u+2];return w.length=_-i+a,r}})},bdab:function(t,e,a){},e8bc:function(t,e,a){"use strict";a("bdab")},f1dc:function(t,e,a){"use strict";a("68ef"),a("a71a")}}]);