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
18 KiB
1 line
18 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-technician"],{"002b":function(t,e,n){"use strict";n.r(e);var i=n("fb12"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"3c50":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223"),n("bd06");var a=i(n("5de6")),c=i(n("9b1b")),o=i(n("2634")),r=i(n("2fdc")),s=n("8f59"),u=i(n("cf61")),l=i(n("ea26")),d=i(n("a0e3")),f=i(n("ba2d")),p={components:{tabbar:l.default,technicianListItem:d.default,technicianListPopup:f.default},data:function(){return{isLoad:!1,options:{},loading:!0,lockTap:!1}},computed:(0,s.mapState)({pageActive:function(t){return t.technician.pageActive},haveOperItem:function(t){return t.technician.haveOperItem},cityId:function(t){return t.technician.cityId},cityIndex:function(t){return t.technician.cityIndex},cityList:function(t){return t.technician.cityList},activeIndex:function(t){return t.technician.activeIndex},tabList:function(t){return t.technician.tabList},param:function(t){return t.technician.param},list:function(t){return t.technician.list},primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},loginType:function(t){return t.user.loginType},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location},isGzhLogin:function(t){return t.user.isGzhLogin},haveShieldOper:function(t){return t.user.haveShieldOper}}),onLoad:function(t){var e=this;return(0,r.default)((0,o.default)().mark((function n(){var i,a,c,r,s,u,l,d,f,p,h,v;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.options=t,i=t.pid,a=void 0===i?0:i,c=t.city_id,r=void 0===c?0:c,s=t.coach_id,u=void 0===s?0:s,l=t.coach_name,d=void 0===l?"":l,f=e.$util.deepCopy(e.param),f.coach_id=u,f.coach_name=d,e.updateTechnicianItem({key:"param",val:f}),u&&e.updateTechnicianItem({key:"cityId",val:r}),uni.setNavigationBarTitle({title:e.$t("action.attendantName")}),p=e.list.data,h=void 0===p?[]:p,v=0==h.length||h[0].city_id!=e.cityId,!e.pageActive||u&&a||v){n.next=15;break}return e.isLoad=!0,e.loading=!1,e.$util.hideAll(),n.abrupt("return");case 15:return n.next=17,e.initIndex();case 17:case"end":return n.stop()}}),n)})))()},onShow:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$jweixin.isWechat()){e.next=4;break}return e.next=3,t.$jweixin.initJssdk();case 3:t.toAppShare();case 4:(2==t.haveShieldOper||t.haveOperItem)&&(t.initIndex(),t.updateUserItem({key:"haveShieldOper",val:0}),t.updateTechnicianItem({key:"haveOperItem",val:!1}));case 5:case"end":return e.stop()}}),e)})))()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.loading=!0,this.getList(this.param.page+1))},onShareAppMessage:function(t){var e=this.userInfo.id,n=void 0===e?0:e,i="/pages/technician?pid=".concat(n);return this.$util.log(i),{title:"",imageUrl:"",path:i}},methods:(0,c.default)((0,c.default)((0,c.default)({},(0,s.mapActions)(["getConfigInfo","getUserInfo","getCityList","getServiceCoachList"])),(0,s.mapMutations)(["updateUserItem","updateTechnicianItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)((0,o.default)().mark((function n(){var i,a,c,r,s,u;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.toAppShare();case 5:if(a=e.options.pid,c=void 0===a?0:a,r=e.isGzhLogin,s=e.userInfo.id,u=void 0===s?0:s,c&&!u&&(r?setTimeout((function(){e.getUserInfo()}),1e3):e.getUserInfo()),e.configInfo.id&&!i){n.next=12;break}return n.next=12,e.getConfigInfo();case 12:return n.next=14,e.getLi
|