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.
shangmenanmo/unpackage/dist/build/web/static/js/dynamic-pages-technician-de...

1 line
40 KiB

8 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dynamic-pages-technician-detail"],{1293:function(t,i,e){"use strict";e.r(i);var a=e("2691"),n=e.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);i["default"]=n.a},"222b":function(t,i,e){var a=e("419e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("967d").default;n("e3ff6606",a,!0,{sourceMap:!1,shadowMode:!1})},2691:function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("c223"),e("5c47"),e("fd3c"),e("dd2b"),e("aa9c"),e("4626"),e("bd06"),e("5ac7");var n=a(e("2634")),s=a(e("2fdc")),o=a(e("9b1b")),c=e("8f59"),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,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},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 i=t.scrollTop;this.pageScrollTop=i},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.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:(0,o.default)((0,o.default)((0,o.default)({},(0,c.mapActions)(["getConfigInfo","getUserInfo","getCarList","getServiceCoachList"])),(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,i=this;return(0,s.default)((0,n.default)().mark((function e(){var a,s,o,c,l,r;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],s=i.options.pid,o=void 0===s?0:s,c=i.isGzhLogin,l=i.userInfo.id,r=void 0===l?0:l,o&&!r&&(c?setTimeout((function(){i.getUserInfo()}),1e3):i.getUserInfo()),i.configInfo.id&&!a){e.next=8;break}return e.next=8,i.getConfigInfo();case 8:return e.next=10,i.getDetail();case 10:return e.next=12,i.getList();case 12:if(i.configInfo.navBarHeight,a||!i.$jweixin.isWechat()){e.next=17;break}return e.next=16,i.$jweixin.initJssdk();case 16:i.$jweixin.wxReady((function(){i.$jweixin.hideOptionMenu()}));case 17:i.$util.setNavigationBarColor({bg:i.primaryColor});case 18:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getDetail:function(){var t=this;return(0,s.default)((0,n.default)().mark((function i(){var e,a,s,o,c,l,r,d,u,p,v,m,f,h,g,w,x,b,y,_,C,k,$,T;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e=t.options.id,a=t.location,a.lat){i.next=23;break}if(!t.$jweixin.isWechat()){i.next=22;break}return t.$util.showLoading(),i.next=7,t.$jweixin.wxReady2();case 7:return i.next=9,t.$jweixin.getWxLocation();case 9:if(s=i.sent,o=s.latitude,c=void 0===o?0:o,l=s.longitude,r=void 0===l?0:l,a={lng:r,lat:c,address:"定位失败",province:"",city:"",district:""},!c||!r){i.next=22;break}return d="".concat(c,",").concat(r),i.next=19,t.$api.base.getMapInfo({location:d});case 19:u=i.sent,p=JSON.parse(u),v=p.status,m=p.result,0==v&&(f=m.address,h=m.address_component,g=h.province,w=h.city,x=h.district,a={lng:r,lat:c,address:f,province:g,city:w,district:x});case 22:t.updateUserIt