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
7.3 KiB
1 lines
7.3 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-stored-choose-technician"],{"2f92":function(t,i,n){var a=n("c86c");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.dynamic-follow .list-item .iconfont[data-v-5b44f394]{font-size:%?40?%}.dynamic-follow .list-item .avatar[data-v-5b44f394]{width:%?90?%;height:%?90?%}.dynamic-follow .list-item .text[data-v-5b44f394]{color:#4d4d4d;margin-top:%?6?%}.dynamic-follow .list-item .iconjuli[data-v-5b44f394]{font-size:%?26?%}',""]),t.exports=i},"68ab":function(t,i,n){"use strict";n.r(i);var a=n("b91e"),e=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(o);i["default"]=e.a},"8d85":function(t,i,n){"use strict";var a=n("d3e6"),e=n.n(a);e.a},9979:function(t,i,n){"use strict";n.r(i);var a=n("d2b8"),e=n("68ab");for(var o in e)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(o);n("8d85");var s=n("828b"),c=Object(s["a"])(e["default"],a["b"],a["c"],!1,null,"5b44f394",null,!1,a["a"],void 0);i["default"]=c.exports},b91e:function(t,i,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n("c223");var e=a(n("2634")),o=a(n("2fdc")),s=a(n("9b1b")),c=n("8f59"),r={data:function(){return{coach_info:{},loading:!0,param:{page:1},list:{data:[]},lockTap:!1}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location}}),onLoad:function(){var t=this.$util.getPage(-1),i=t.coach_info,n=void 0===i?{}:i;this.coach_info=n,this.$util.setNavigationBarColor({bg:this.primaryColor}),uni.setNavigationBarTitle({title:"选择"+this.$t("action.attendantName")}),this.$util.showLoading(),this.initIndex()},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,s.default)((0,s.default)({},(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,i=this;return(0,o.default)((0,e.default)().mark((function n(){var a;return(0,e.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!i.$jweixin.isWechat()){n.next=5;break}return n.next=4,i.$jweixin.initJssdk();case 4:i.$jweixin.wxReady((function(){i.$jweixin.hideOptionMenu()}));case 5:i.getList();case 6:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.activeIndex=t,this.param.status=t,this.getList()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,o.default)((0,e.default)().mark((function i(){var n,a,o,s,c,r,l,d,u,f,h,p,v,m,g,x,w,b,_,y,C,$,k,j;return(0,e.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.list,a=t.param,o=t.location,o.lat){i.next=22;break}if(!t.$jweixin.isWechat()){i.next=21;break}return t.$util.showLoading(),i.next=6,t.$jweixin.wxReady2();case 6:return i.next=8,t.$jweixin.getWxLocation();case 8:if(s=i.sent,c=s.latitude,r=void 0===c?0:c,l=s.longitude,d=void 0===l?0:l,o={lng:d,lat:r,address:"定位失败",province:"",city:"",district:""},!r||!d){i.next=21;break}return u="".concat(r,",").concat(d),i.next=18,t.$api.base.getMapInfo({location:u});case 18:f=i.sent,h=JSON.parse(f),p=h.status,v=h.result,0==p&&(m=v.address,g=v.address_component,x=g.province,w=g.city,b=g.district,o={lng:d,lat:r,address:m,province:x,city:w,district:b});case 21:t.updateUserItem({key:"location",val:o});case 22:return _=o,y=_.lat,C=void 0===y?0:y,$=_.lng,k=void 0===$?0:$,a.lat=C,a.lng=k,i.next=27,t.$api.mine.coachList(a);case 27:j=i.sent,1==t.param.page||(j.data=n.data.concat(j.data)),t.list=j,t.loading=!1,t.$util.hideAll();case 31:case"end":return i.stop()}}),i)})))()},toSearch:function(t){this.param.coach_name=t,this.getList(1)},toCheck:function(t){var i=this.list.data[t];this.coach_info=i},submit:function(){var t=this,i=this.coach_info.id,n=void 0===i?0:i;n?(this.$util.getPage(-1).coach_info=this.coach_info,setTimeout((function(){t.$util.goUrl({url:1,openType:"navigateBack"})}),1e3)):this.$util.showToast({title:"请选择".concat(this.$t("action.attendantName"))})}})};i.default=r},d2b8:function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{staticClass:"dynamic-follow"},[n("fixed",[n("v-uni-view",[n("search",{attrs:{type:"input",padding:30,radius:0,backgroundColor:"#fff",placeholder:"请输入"+t.$t("action.attendantName")+"姓名"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.toSearch.apply(void 0,arguments)}}})],1)],1),t._l(t.list.data,(function(i,a){return n("v-uni-view",{key:a,staticClass:"list-item flex-center mt-md ml-md mr-md",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toCheck(a)}}},[n("i",{staticClass:"iconfont mr-md",class:[{"icon-xuanze":t.coach_info.id!=i.id},{"icon-radio-fill":t.coach_info.id==i.id}],style:{color:t.coach_info.id==i.id?t.primaryColor:"#BEC3CE"}}),n("v-uni-view",{staticClass:"flex-1 flex-center fill-base pd-lg radius-16"},[n("v-uni-image",{staticClass:"avatar radius",attrs:{mode:"aspectFill",src:i.work_img}}),n("v-uni-view",{staticClass:"flex-1 flex-between ml-md"},[n("v-uni-view",{staticClass:"f-title c-black text-bold max-200 ellipsis"},[t._v(t._s(i.coach_name))]),n("v-uni-view",{staticClass:"flex-center f-desc c-black"},[n("i",{staticClass:"iconfont iconjuli",style:{color:t.primaryColor}}),t._v(t._s(i.distance))])],1)],1)],1)})),t.loading?n("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?n("abnor"):t._e(),n("v-uni-view",{staticClass:"space-max-footer"}),n("fix-bottom-button",{attrs:{text:[{text:"确定选择",type:"confirm"}],bgColor:"#fff"},on:{confirm:function(i){arguments[0]=i=t.$handleEvent(i),t.submit.apply(void 0,arguments)}}})],2)},e=[]},d3e6:function(t,i,n){var a=n("2f92");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var e=n("967d").default;e("60838342",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |