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
6.3 KiB
1 lines
6.3 KiB
(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(){var i,o,a,c,u;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.detail.is_work,o=void 0===i?0:i,o){n.next=4;break}return e.$util.showToast({title:"该".concat(e.$t("action.attendantName"),"未上班")}),n.abrupt("return");case 4:if(a=e.serviceList[t].id,c=e.options.id,!e.lockTap){n.next=8;break}return n.abrupt("return");case 8:return e.lockTap=!0,n.prev=9,n.next=12,e.$api.order.addCar({service_id:a,coach_id:c,num:1,is_top:1,coach_service:1});case 12:e.lockTap=!1,u="/user/pages/order?id=".concat(c,"&ser_id=").concat(a),e.$util.goUrl({url:u}),n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](9),e.lockTap=!1;case 20:case"end":return n.stop()}}),n,null,[[9,17]])})))()},toShowHide:function(t){this.detail[t]=!this.detail[t]},toComment:function(){this.$refs.technician_list_popup.toShowPopup(this.detail,"message")},toPreviewImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.detail[e];"work_img"==e&&(n=[n]),this.$util.previewImage({current:n[t],urls:n})},goStoreMerchant:function(){var t=this.detail,e=t.store_id,n=t.admin_id,i=e?"/shopstore/pages/detail?id=".concat(e):"/user/pages/merchant-info?id=".concat(n);this.$util.goUrl({url:i})}})};e.default=l}).call(this,n("df3c")["default"])},"25bd":function(t,e,n){"use strict";n.r(e);var i=n("1feb"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"51e6":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.detail.id?t.detail.banner.length:null),i=t.detail.id?t.$t("action.attendantName"):null,r=t.detail.id&&!t.detail.showText?t.detail.text.substring(0,1e5):null,o=t.detail.id?t.serviceList.length:null;t._isMounted||(t.e0=function(e){return e.stopPropagation(),t.$util.goUrl({url:"/shopstore/pages/service?id="+t.options.id})}),t.$mp.data=Object.assign({},{$root:{g0:n,m0:i,g1:r,g2:o}})},r=[]},8793:function(t,e,n){},"8af7":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7043");i(n("3240"));var r=i(n("1711"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["8af7","common/runtime","common/vendor"]]]); |