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
13 KiB

5 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["dynamic/pages/technician/detail"],{"0d66":function(t,e,i){"use strict";var n=i("fe13"),a=i.n(n);a.a},1293:function(t,e,i){"use strict";i.r(e);var n=i("740b"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"562f":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("7043");n(i("3240"));var a=n(i("5703"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},5703:function(t,e,i){"use strict";i.r(e);var n=i("e5dc"),a=i("1293");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("0d66");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},"740b":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("7eb4")),o=n(i("ee10")),r=n(i("7ca3")),s=i("8f59");function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){(0,r.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={data:function(){return{iconType:{1:"icon-kefuwu",2:"iconjishifuwu",3:"iconkeyuyue"},textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"},options:{},detail:{},videoNavHeight:"15px",showText:!1,loading:!0,param:{page:1},list:{data:[]},serviceList:[],videoContexts:null,isPlay:!1,scrollTop:0,pageScrollTop:0,showComment:!1,inputFocus:!1,subForm:{text:""},rule:[{name:"text",checkType:"isNotNull",errorMsg:"请输入评论内容",regType:2}],popupInfo:{},lockTap:!1}},computed:(0,s.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},location:function(t){return t.user.location},isGzhLogin:function(t){return t.user.isGzhLogin},carList:function(t){return t.order.carList}}),onLoad:function(t){this.$util.showLoading(),this.options=t,this.param.dynamic_id=t.id,this.$util.showLoading(),this.initIndex()},onUnload:function(){this.isPlay&&this.videoContexts.pause()},onPageScroll:function(t){var e=t.scrollTop;this.pageScrollTop=e},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:u(u(u({},(0,s.mapActions)(["getConfigInfo","getUserInfo","getCarList","getServiceCoachList"])),(0,s.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,o.default)(a.default.mark((function i(){var n,o,r,s,c,u;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],o=e.options.pid,r=void 0===o?0:o,e.isGzhLogin,s=e.userInfo.id,c=void 0===s?0:s,!r||c){i.next=7;break}return i.next=7,e.getUserInfo();case 7:if(e.configInfo.id&&!n){i.next=10;break}return i.next=10,e.getConfigInfo();case 10:return i.next=12,e.getDetail();case 12:return i.next=14,e.getList();case 14:u=e.configInfo.navBarHeight,e.videoNavHeight=1*u+15+"px",e.$util.setNavigationBarColor({bg:e.primaryColor});case 17:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getDetail:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var i,n,o,r,s,c,u,l,d;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.options.id,n=t.location,n