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 line
6.3 KiB
1 line
6.3 KiB
8 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/technician-info"],{"164c":function(t,e,n){"use strict";var i=n("8793"),r=n.n(i);r.a},1711:function(t,e,n){"use strict";n.r(e);var i=n("51e6"),r=n("25bd");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("164c");var a=n("828b"),c=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},"1feb":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("7eb4")),o=i(n("ee10")),a=i(n("7ca3")),c=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{serviceListItem:function(){n.e("components/service-list-item").then(function(){return resolve(n("e693"))}.bind(null,n)).catch(n.oe)},technicianListPopup:function(){n.e("components/technician-list-popup").then(function(){return resolve(n("ba2d"))}.bind(null,n)).catch(n.oe)}},data:function(){return{options:{},textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"},ftList:[{icon:"icon-kzj",text:"实名认证"},{icon:"icon-kpk",text:"爽约包赔"},{icon:"icon-sybp",text:"超时秒退"},{icon:"icon-kzz",text:"资质证书"}],detail:{},serviceList:[],loading:!0}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.options=t,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},methods:s(s(s({},(0,c.mapActions)(["getConfigInfo","getUserInfo"])),(0,c.mapMutations)(["updateTechnicianItem","updateUserItem"])),{},{initIndex:function(){var e=this;return(0,o.default)(r.default.mark((function n(){return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.getDetail();case 2:return e.$util.setNavigationBarColor({bg:e.primaryColor}),t.setNavigationBarTitle({title:e.$t("action.attendantName")+"详情"}),n.next=6,e.getList();case 6:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},getDetail:function(){var t=this;return(0,o.default)(r.default.mark((function e(){var n,i,o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.options.id,e.next=3,t.$api.service.coachInfo({id:n});case 3:i=e.sent,i.banner=i.video?[{jump_type:"video",img:i.work_img,jump_url:i.video}]:[{img:i.work_img}],o=i.text.length>42,i.have_show_text=o,i.showText=!o,t.detail=i;case 9:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this;return(0,o.default)(r.default.mark((function e(){var n,i,o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.options.id,e.next=3,t.$api.service.coachServiceList({coach_id:n});case 3:i=e.sent,o=i.data,t.serviceList=o,t.loading=!1,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},toShield:function(){var t=this;return(0,o.default)(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.options.id,e.next=3,t.$api.mine.shieldCoachAdd({type:2,coach_id:n});case 3:t.updateUserItem({key:"haveShieldOper",val:2}),t.$util.back(),setTimeout((function(){t.$util.goUrl({url:1,openType:"navigateBack"})}),1e3);case 6:case"end":return e.stop()}}),e)})))()},toOrder:function(t){var e=this;return(0,o.default)(r.default.mark((function n()
|