| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-nearby-nearby"],{"06ea":function(e,t,n){var i=n("883d").default,a=n("4db6").default;n("aa9c"),n("e838"),n("7a76"),n("c9b5"),n("8f71"),n("bf0f");var o={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},s="https://apis.map.qq.com/ws/",r=s+"place/v1/suggestion",c={location2query:function(e){if("string"==typeof e)return e;for(var t="",n=0;n<e.length;n++){var i=e[n];t&&(t+=";"),i.location&&(t=t+i.location.lat+","+i.location.lng),i.latitude&&i.longitude&&(t=t+i.latitude+","+i.longitude)}return t},rad:function(e){return e*Math.PI/180},getEndLocation:function(e){for(var t=e.split(";"),n=[],i=0;i<t.length;i++)n.push({lat:parseFloat(t[i].split(",")[0]),lng:parseFloat(t[i].split(",")[1])});return n},getDistance:function(e,t,n,i){var a=this.rad(e),o=this.rad(n),s=a-o,r=this.rad(t)-this.rad(i),c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(s/2),2)+Math.cos(a)*Math.cos(o)*Math.pow(Math.sin(r/2),2)));return c*=6378136.49,c=Math.round(1e4*c)/1e4,parseFloat(c.toFixed(0))},getWXLocation:function(e,t,n){wx.getLocation({type:"gcj02",success:e,fail:t,complete:n})},getLocationParam:function(e){if("string"==typeof e){var t=e.split(",");e=2===t.length?{latitude:e.split(",")[0],longitude:e.split(",")[1]}:{}}return e},polyfillParam:function(e){e.success=e.success||function(){},e.fail=e.fail||function(){},e.complete=e.complete||function(){}},checkParamKeyEmpty:function(e,t){if(!e[t]){var n=this.buildErrorConfig(o.PARAM_ERR,o.PARAM_ERR_MSG+t+"参数格式有误");return e.fail(n),e.complete(n),!0}return!1},checkKeyword:function(e){return!this.checkParamKeyEmpty(e,"keyword")},checkLocation:function(e){var t=this.getLocationParam(e.location);if(!t||!t.latitude||!t.longitude){var n=this.buildErrorConfig(o.PARAM_ERR,o.PARAM_ERR_MSG+" location参数格式有误");return e.fail(n),e.complete(n),!1}return!0},buildErrorConfig:function(e,t){return{status:e,message:t}},handleData:function(e,t,n){if("search"===n){for(var i=t.data,a=[],o=0;o<i.length;o++)a.push({id:i[o].id||null,title:i[o].title||null,latitude:i[o].location&&i[o].location.lat||null,longitude:i[o].location&&i[o].location.lng||null,address:i[o].address||null,category:i[o].category||null,tel:i[o].tel||null,adcode:i[o].ad_info&&i[o].ad_info.adcode||null,city:i[o].ad_info&&i[o].ad_info.city||null,district:i[o].ad_info&&i[o].ad_info.district||null,province:i[o].ad_info&&i[o].ad_info.province||null});e.success(t,{searchResult:i,searchSimplify:a})}else if("suggest"===n){var s=t.data,r=[];for(o=0;o<s.length;o++)r.push({adcode:s[o].adcode||null,address:s[o].address||null,category:s[o].category||null,city:s[o].city||null,district:s[o].district||null,id:s[o].id||null,latitude:s[o].location&&s[o].location.lat||null,longitude:s[o].location&&s[o].location.lng||null,province:s[o].province||null,title:s[o].title||null,type:s[o].type||null});e.success(t,{suggestResult:s,suggestSimplify:r})}else if("reverseGeocoder"===n){var c=t.result,u={address:c.address||null,latitude:c.location&&c.location.lat||null,longitude:c.location&&c.location.lng||null,adcode:c.ad_info&&c.ad_info.adcode||null,city:c.address_component&&c.address_component.city||null,district:c.address_component&&c.address_component.district||null,nation:c.address_component&&c.address_component.nation||null,province:c.address_component&&c.address_component.province||null,street:c.address_component&&c.address_component.street||null,street_number:c.address_component&&c.address_component.street_number||null,recommend:c.formatted_addresses&&c.formatted_addresses.recommend||null,rough:c.formatted_addresses&&c.formatted_addresses.rough||null};if(c.pois){var l=c.pois,d=[];for(o=0;o<l.length;o++)d.push({id:l[o].id||null,title:l[o].title||null,latitude:l[o].location&&l[o].location.lat||null,longitude:l[o].location&&l[o].location.lng||null,address:l[o].address||null,category:l[o].category||null,adcode:l[o].ad_info&&l[o].ad_info.adcode||null,city:l[o].ad_info&&l[o].ad_info.city||null,district:l[o].ad_info&&l[o].ad_info.district||null,province:l[o].ad_info&&l[o].ad_info.province||null});e.success(t,{reverseGeocoderResult:c,reverseGeocoderSimplify:u,pois:l,poisSimplify:d})}else e.success(t,{reverseGeocoderResult:c,reverseGeocoderSimplify:u})}else if("geocoder"===n){var f=t.result,m={title:f.title||null,latitude:f.location&&f.location.lat||null,longitude:f.location&&f.location.lng||null,adcode:f.ad_info&&f.ad_info.adcode||null,province:f.address_components&&f.address_components.province||null,city:f.address_components&&f.address_components.city||null,district:f.address_components&&f.address_components.district||null,street:f.address_components&&f.address_components.street||null,street_number:f.address_components&&f.address_components.street_number||null,level:f.level||null};e.success(t,{geocoderResult:f,geocoderSimplify:m})}else if("getCityList"===n){var p=t.result[0],g=t.result[1],v=t.result[2];e.success(t,{provinceResult:p,cityResult:g,districtResult:v})}else if("getDistrictByCityId"===n){var h=t.result[0];e.success(t,h)}else if("calculateDistance"===n){var y=t.result.elements,b=[];for(o=0;o<y.length;o++)b.push(y[o].distance);e.success(t,{calculateDistanceResult:y,distance:b})}else e.success(t)},buildWxRequestConfig:function(e,t,n){var i=this;return t.header={"content-type":"application/json"},t.method="GET",t.success=function(t){var a=t.data;0===a.status?i.handleData(e,a,n):e.fail(a)},t.fail=function(t){t.statusCode=o.WX_ERR_CODE,e.fail(i.buildErrorConfig(o.WX_ERR_CODE,t.errMsg))},t.complete=function(t){var n=+t.statusCode;switch(n){case o.WX_ERR_CODE:e.complete(i.buildErrorConfig(o.WX_ERR_CODE,t.errMsg));break;case o.WX_OK_CODE:var a=t.data;0===a.status?e.complete(a):e.complete(i.buildErrorConfig(a.status,a.message));break;default:e.complete(i.buildErrorConfig(o.SYSTEM_ERR,o.SYSTEM_ERR_MSG))}},t},locationProcess:function(e,t,n,i){var a=this;if(n=n||function(t){t.statusCode=o.WX_ERR_CODE,e.fail(a.buildErrorConfig(o.WX_ERR_CODE,t.errMsg))},i=i||function(t){t.statusCode==o.WX_ERR_CODE&&e.complete(a.buildErrorConfig(o.WX_ERR_CODE,t.errMsg))},e.location){if(a.checkLocation(e)){var s=c.getLocationParam(e.location);t(s)}}else a.getWXLocation(t,n,i)}},u=function(){"use strict";function e(t){if(i(this,e),!t.key)throw Error("key值不能为空");this.key=t.key}return a(e,[{key:"search",value:function(e){if(e=e||{},c.polyfillParam(e),c.checkKeyword(e)){var t={keyword:e.keyword,orderby:e.orderby||"_distance",page_size:e.page_size||10,page_index:e.page_index||1,output:"json",key:this.key};e.address_format&&(t.address_format=e.address_format),e.filter&&(t.filter=e.filter);var n=e.distance||"1000",i=e.auto_extend||1,a=null,o=null;e.region&&(a=e.region),e.rectangle&&(o=e.rectangle);c.locationProcess(e,(function(s){t.boundary=a&&!o?"region("+a+","+i+","+s.latitude+","+s.longitude+")":o&&!a?"rectangle("+o+")":"nearby("+s.latitude+","+s.longitude+","+n+","+i+")",wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/place/v1/search",data:t},"search"))}))}}},{key:"getSuggestion",value:function(e){if(e=e||{},c.polyfillParam(e),c.checkKeyword(e)){var t={keyword:e.keyword,region:e.region||"全国",region_fix:e.region_fix||0,policy:e.policy||0,page_size:e.page_size||10,page_index:e.page_index||1,get_subpois:e.get_subpois||0,output:"json",key:this.key};if(e.address_format&&(t.address_format=e.address_format),e.filter&&(t.filter=e.filter),e.location){c.locationProcess(e,(function(n){t.location=n.latitude+","+n.longitude,wx.request(c.buildWxRequestConfig(e,{url:r,data:t},"suggest"))}))}else wx.request(c.buildWxRequestConfig(e,{url:r,data:t},"suggest"))}}},{key:"reverseGeocoder",value:function(e){e=e||{},c.polyfillParam(e);var t={coord_type:e.coord_type||5,get_poi:e.get_poi||0,output:"json",key:this.key};e.poi_options&&(t.poi_options=e.poi_options);c.locationProcess(e,(function(n){t.location=n.latitude+","+n.longitude,wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:t},"reverseGeocoder"))}))}},{key:"geocoder",value:function(e){if(e=e||{},c.polyfillParam(e),!c.checkParamKeyEmpty(e,"address")){var t={address:e.address,output:"json",key:this.key};e.region&&(t.region=e.region),wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:t},"geocoder"))}}},{key:"getCityList",value:function(e){e=e||{},c.polyfillParam(e);var t={output:"json",key:this.key};wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/district/v1/list",data:t},"getCityList"))}},{key:"getDistrictByCityId",value:function(e){if(e=e||{},c.polyfillParam(e),!c.checkParamKeyEmpty(e,"id")){var t={id:e.id||"",output:"json",key:this.key};wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/district/v1/getchildren",data:t},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(e){if(e=e||{},c.polyfillParam(e),!c.checkParamKeyEmpty(e,"to")){var t={mode:e.mode||"walking",to:c.location2query(e.to),output:"json",key:this.key};if(e.from&&(e.location=e.from),"straight"==t.mode){var n=function(n){for(var i=c.getEndLocation(t.to),a={message:"query ok",result:{elements:[]},status:0},o=0;o<i.length;o++)a.result.elements.push({distance:c.getDistance(n.latitude,n.longitude,i[o].lat,i[o].lng),duration:0,from:{lat:n.latitude,lng:n.longitude},to:{lat:i[o].lat,lng:i[o].lng}});var s=a.result.elements,r=[];for(o=0;o<s.length;o++)r.push(s[o].distance);return e.success(a,{calculateResult:s,distanceResult:r})};c.locationProcess(e,n)}else{n=function(n){t.from=n.latitude+","+n.longitude,wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/distance/v1/",data:t},"calculateDistance"))};c.locationProcess(e,n)}}}}]),e}();e.exports=u},1320:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uSearch:n("eec2").default,uEmpty:n("143b").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"nearby"},[n("v-uni-view",{staticClass:"select_box"},[n("v-uni-picker",{attrs:{value:e.typeIndex,range:e.typeList},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeType.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"sel_left"},[e._v(e._s(e.typeList[e.typeIndex]?e.typeList[e.typeIndex]:"全部")),n("v-uni-image",{staticClass:"xiaimg",attrs:{src:e.BASE_IMG_URL+"newxia.png",mode:"scaleToFill"}})],1)],1),n("v-uni-picker",{attrs:{value:e.nearIndex,range:e.nearList,"range-key":"name"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeNear.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"sel_left"},[e._v(e._s(e.nearList[e.nearIndex]?e.nearList[e.nearIndex].name:"附近")),n("v-uni-image",{staticClass:"xiaimg",attrs:{src:e.BASE_IMG_URL+"newxia.png",mode:"scaleToFill"}})],1)],1)],1),n("v-uni-view",{staticClass:"map_show",style:{height:e.isFullScreen?e.mapHeight:"400rpx"}},[n("v-uni-map",{staticStyle:{width:"750rpx"},style:{height:e.isFullScreen?e.mapHeight:"400rpx"},attrs:{latitude:e.latitude,longitude:e.longitude,markers:e.covers},on:{markertap:function(t){arguments[0]=t=e.$handleEvent(t),e.changeLiInfo.apply(void 0,arguments)}}})],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.isFullScreen,expression:"isFullScreen"}],staticClass:"kehu-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isFullScreen=!1}}},[e._v("查看详情")]),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!e.isFullScreen,expression:"!isFullScreen"}],staticClass:"position"},[n("v-uni-view",{staticClass:"xiawarp",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isFullScreen=!0}}},[n("v-uni-image",{staticClass:"xiaimg",attrs:{src:e.BASE_IMG_URL+"xia_a.png",mode:"scaleToFill"}})],1),n("v-uni-view",{staticClass:"map_rim"},[n("v-uni-view",[e._v("[当前位置]"+e._s(e.address))]),n("v-uni-image",{staticClass:"weizhiimg",attrs:{src:e.BASE_IMG_URL+"ydw.png",mode:"scaleToFill"}})],1),n("v-uni-view",{staticStyle:{padding:"24rpx 30rpx"}},[n("u-search",{attrs:{placeholder:"请输入搜索关键词"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.searchName.apply(void 0,arguments)}}})],1),n("v-uni-scroll-view",{staticClass:"scroll",style:{height:e.height},attrs:{"scroll-y":"true"}},[e.showList?n("v-uni-view",{staticStyle:{"padding-bottom":"calc(env(safe-area-inset-bottom) / 2)"}},[e._l(e.list,(function(t,i){return n("v-uni-view",{key:i,staticClass:"map_group"},[n("v-uni-view",{staticClass:"name_li"},[n("v-uni-view",{staticClass:"name"},[e._v(e._s(t.name)),t.owner_staff_id>0?n("v-uni-text",{staticStyle:{color:"#008EFF","font-size":"22rpx","margin-left":"10rpx"}},[e._v("归属人("+e._s(t.owner_staff.name)+")")]):e._e()],1),t.follow?n("v-uni-view",{staticClass:"status"},[e._v(e._s(t.follow))]):e._e()],1),n("v-uni-view",{staticClass:"text"},[e._v("距离"+e._s(t.juli)+" | "+e._s(t.address_detail?t.address_detail:""))]),n("v-uni-view",{staticClass:"text"},[e._v("跟进时间:"+e._s(t.next_time))]),n("v-uni-view",{staticClass:"bntlist"},[n("v-uni-view",{staticClass:"anniu luxian",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.lookMap(t)}}},[e._v("查看路线")]),t.owner_staff_id>0?n("v-uni-view",{staticClass:"anniu",staticStyle:{color:"#008EFF"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.toMore(t.id)}}},[e._v("查看详情")]):n("v-uni-view",{staticClass:"anniu lingqu",staticStyle:{color:"#008EFF"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.toGroupCompany(t)}}},[e._v("领取")])],1)],1)})),0==e.list.length?n("u-empty",{attrs:{text:"暂无更多"}}):e._e()],2):n("v-uni-view",[n("v-uni-view",{staticClass:"backlist",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.backList.apply(void 0,arguments)}}},[e._v("返回列表")]),n("v-uni-view",{staticClass:"map_group"},[n("v-uni-view",{staticClass:"name_li"},[n("v-uni-view",{staticClass:"name"},[e._v(e._s(e.liInfo.name)),e.item.owner_staff_id>0?n("v-uni-text",{staticStyle:{color:"#008EFF","font-size":"22rpx","margin-left":"10rpx"}},[e._v("归属人("+e._s(e.item.owner_staff.name)+")")]):e._e()],1),e.liInfo.follow?n("v-uni-view",{staticClass:"status"},[e._v(e._s(e.liInfo.follow))]):e._e()],1),n("v-uni-view",{staticClass:"text"},[e._v("距离"+e._s(e.liInfo.juli)+" | "+e._s(e.liInfo.address_detail?e.liInfo.address_detail:""))]),n("v-uni-view",{staticClass:"text"},[e._v("跟进时间:"+e._s(e.liInfo.next_time))]),n("v-uni-view",{staticClass:"bntlist"},[n("v-uni-view",{staticClass:"anniu luxian",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.lookMap(e.liInfo)}}},[e._v("查看路线")]),e.liInfo.owner_staff_id>0?n("v-uni-view",{staticClass:"anniu",staticStyle:{color:"#008EFF"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toMore(e.liInfo.id)}}},[e._v("查看详情")]):n("v-uni-view",{staticClass:"anniu lingqu",staticStyle:{color:"#008EFF"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toGroupCompany(e.liInfo)}}},[e._v("领取")])],1)],1)],1)],1)],1)],1)},o=[]},"17d7":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.select_box[data-v-e579c44c]{display:flex;justify-content:space-around;align-items:center;height:%?110?%;background:#fff;padding:0 %?20?%;position:relative}.select_box .sel_left[data-v-e579c44c]{display:flex;justify-content:space-between;align-items:center;padding:0 %?20?%;width:%?300?%;height:%?80?%;border-radius:%?25?%;font-size:%?24?%;color:#333;background:#f5f5f5}.select_box .sel_left .xiaimg[data-v-e579c44c]{width:%?20?%;height:%?30?%}.mask[data-v-e579c44c]{position:absolute;width:%?750?%;top:%?110?%;bottom:0;background:rgba(0,0,0,.5);z-index:9}.mask .maskbox[data-v-e579c44c]{position:absolute;left:0;top:0;width:%?750?%;background:#fff}.mask .maskbox .leftbox[data-v-e579c44c]{padding:%?30?%}.mask .maskbox .leftbox .leftli[data-v-e579c44c]{padding:%?20?%;border-bottom:%?1?% solid #ccc;font-size:%?24?%;color:#333}.mask .maskbox .leftbox .leftli_active[data-v-e579c44c]{color:#008eff;border-bottom:%?1?% solid #008eff}.mask .maskbox .maskbtnli[data-v-e579c44c]{width:%?750?%;display:flex;justify-content:space-around;align-items:center;padding:%?20?% 0 %?30?%}.mask .maskbox .maskbtnli .maskbtn[data-v-e579c44c]{width:%?300?%;height:%?60?%;border-radius:%?30?%;line-height:%?60?%;text-align:center;font-size:%?24?%;color:#fff}.mask .maskbox .maskbtnli .sure[data-v-e579c44c]{background:#008eff}.mask .maskbox .maskbtnli .reset[data-v-e579c44c]{background:#008eff}.nearby .map_show[data-v-e579c44c]{width:%?750?%;height:%?400?%}.nearby .kehu-btn[data-v-e579c44c]{width:%?750?%;height:%?100?%;padding-bottom:calc(env(safe-area-inset-bottom) / 2);background:#fff;border-top:%?1?% solid #ccc;font-size:%?26?%;color:#666;text-align:center;line-height:%?100?%;color:#008eff}.nearby .scroll[data-v-e579c44c]{background:#fff}.nearby .scroll .backlist[data-v-e579c44c]{font-size:%?24?%;color:#008eff;padding:%?20?%}.nearby .scroll .map_group[data-v-e579c44c]{background-color:#fff;padding:%?30?%;border-bottom:%?1?% solid #ccc}.nearby .scroll .map_group .name_li[data-v-e579c44c]{display:flex;justify-content:space-between;align-items:center}.nearby .scroll .map_group .name_li .name[data-v-e579c44c]{font-size:%?32?%;color:#333}.nearby .scroll .map_group .name_li .status[data-v-e579c44c]{font-size:%?24?%;color:#fff;padding:%?5?% %?8?%;border-radius:%?10?%;background:#008eff}.nearby .scroll .map_group .text[data-v-e579c44c]{font-size:%?24?%;color:#666;margin:%?15?% 0}.nearby .scroll .map_group .bntlist[data-v-e579c44c]{display:flex;justify-content:space-around;align-items:center}.nearby .scroll .map_group .bntlist .anniu[data-v-e579c44c]{width:%?240?%;height:%?60?%;border-radius:%?30?%;font-size:%?26?%;color:#fff;text-align:center;line-height:%?60?%;background:#fff;border:1px solid #008eff}.nearby .scroll .map_group .bntlist .luxian[data-v-e579c44c]{background:#008eff;border:1px solid #008eff}.nearby .scroll .map_group .bntlist .lingqu[data-v-e579c44c]{background:#fff;border:1px solid #008eff}.nearby .xiawarp[data-v-e579c44c]{background:#fff;padding:%?10?% 0;text-align:center}.nearby .xiawarp .xiaimg[data-v-e579c44c]{width:%?30?%;height:%?30?%}.nearby .map_rim[data-v-e579c44c]{display:flex;padding:0 %?20?%;height:%?80?%;line-height:%?80?%;background-color:#fff;justify-content:space-between;align-items:center;font-size:%?24?%;color:#333;border:%?1?% solid #eaeaea}.nearby .map_rim .weizhiimg[data-v-e579c44c]{width:%?30?%;height:%?30?%}',""]),e.exports=t},"2a66":function(e,t,n){var i=n("8bed");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("75dbc8c2",i,!0,{sourceMap:!1,shadowMode:!1})},"30ba":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c223"),n("bf0f"),n("2797"),n("aa9c"),n("5ef2"),n("64aa");var a,o=i(n("39d8")),s=n("3a07"),r=i(n("f09b")),c=n("af8c"),u=n("391e"),l=n("88e1"),d=n("e360"),f={components:{uniTabbar:r.default},data:function(){return{BASE_IMG_URL:s.BASE_IMG_URL,tipNumber:null,latitude:"",longitude:"",covers:[],typeList:["全部客户","我的客户","下属负责的客户"],typeIndex:null,nearList:[{id:0,name:"附近1KM",num:1},{id:1,name:"附近3KM",num:3},{id:2,name:"附近5KM",num:5},{id:3,name:"附近10KM",num:10},{id:4,name:"附近30KM",num:30},{id:5,name:"附近200KM",num:200},{id:6,name:"附近400KM",num:400},{id:7,name:"附近600KM",num:600},{id:8,name:"附近800KM",num:800},{id:9,name:"全部",num:1e6}],nearIndex:2,showMask:!1,maskType:1,address:"",list:[],showList:!0,liInfo:{},liId:"",isFullScreen:!0,name:"",otherArr:[],height:"calc(100vh - env(safe-area-inset-bottom) - 822rpx)",mapHeight:"400rpx"}},onLoad:function(){var e=this;uni.getSystemInfo({success:function(t){var n=750/t.screenWidth,i=t.windowHeight*n-200;e.mapHeight=i+"rpx";var a=t.windowHeight*n-750;e.height=a+"rpx"}}),this.getKey()},onShow:function(){},methods:{getKey:function(){var e=this;(0,d.netMapKey)().then((function(t){t.data.map_key?(a=n("06ea"),new a({key:t.data.map_key}),e.getAddressinfo()):uni.showToast({title:"请在后台配置地图key",icon:"none"})}))},getTip:function(){var e=this;(0,l.netAgentList)().then((function(t){e.tipNumber=t.data.total,uni.setStorageSync("token",t.data.userinfo.token),uni.setStorageSync("roleType",t.data.userinfo.role_type),uni.setStorageSync("rules",t.data.userinfo.rules)}))},searchName:function(e){this.name=e,this.getKehuList()},getAddressinfo:function(){var e=this;uni.getLocation({type:"wgs84",isHighAccuracy:!0,altitude:!0,success:function(t){var n;e.longitude=t.longitude,e.latitude=t.latitude;var i=[{id:0,latitude:t.latitude,longitude:t.longitude,iconPath:"../../static/selfweizhi.png",width:20,height:20,label:(n={content:"自己所在位置",bgColor:"#fff",fontSize:12},(0,o.default)(n,"bgColor","#008EFF"),(0,o.default)(n,"color","#fff"),(0,o.default)(n,"padding",5),(0,o.default)(n,"textAlign","center"),(0,o.default)(n,"borderRadius",10),n)}];e.covers=i,e.getKehuList(),e.$jsonp("https://apis.map.qq.com/ws/geocoder/v1",{key:key,output:"jsonp",location:"".concat(t.latitude,",").concat(t.longitude),get_poi:"1"}).then((function(t){e.address=t.result.address_component.province+t.result.address_component.city+t.result.formatted_addresses.rough}))},fail:function(e){"getLocation:fail auth deny"==e.errMsg&&uni.showToast({title:"请允许使用位置信息",icon:"none"})}})},getKehuList:function(){var e=this,t={lng:this.longitude,lat:this.latitude,type:this.typeIndex,name:this.name,distance:this.nearList[this.nearIndex]?this.nearList[this.nearIndex].num:""};(0,c.netNearKehuList)(t).then((function(t){e.list=t.data,e.handleCover(t.data)}))},handleCover:function(e){var t=this;e.forEach((function(e,n){3==e.type&&t.otherArr.push(e.id);var i=[];i=i.concat(t.covers),i.push({id:e.id,latitude:e.lat,longitude:e.lng,iconPath:0==e.type?"../../static/selfweizhi.png":1==e.type?"../../static/weizhi.png":2==e.type?"../../static/greenweizhi.png":"../../static/otherweizhi.png",width:20,height:20,label:{content:e.name,fontSize:12,bgColor:0==e.type?"#008EFF":1==e.type?"#03aa96":2==e.type?"#2cee99":"#fe1212",color:"#fff",padding:5,textAlign:"center",borderRadius:10}}),t.covers=i}))},changeLiInfo:function(e){var t=this,n=e.detail.markerId;0!=n&&-1==this.otherArr.indexOf(n)&&(this.isFullScreen=!1,this.showList=!1,this.list.forEach((function(e){e.id==n&&(t.liInfo=e)})))},backList:function(){this.showList=!0},showAll:function(){this.showMask=!0,this.maskType=1},changeType:function(e){this.typeIndex=e.detail.value,this.getKehuList()},changeNear:function(e){this.nearIndex=e.detail.value,this.getKehuList()},lookMap:function(e){uni.openLocation({latitude:Number(e.lat),longitude:Number(e.lng),success:function(e){console.log(e)},fail:function(e){console.log(e)}})},toMore:function(e){uni.navigateTo({url:"/pages/index/groupCompany/groupCompany?id="+e+"&type=1"})},toGroupCompany:function(e){var t=this;uni.showModal({title:"是否确定领取公池客户",content:"领取后长时间未跟进,客户将自动转为公共客户",success:function(n){n.confirm&&(0,u.netReceiveKehu)({customer_id:e.id}).then((function(n){uni.showToast({title:n.msg,icon:"none"}),setTimeout((function(){t.getKehuList();var n=e.id,i=t.list;i.forEach((function(e){e.id==n&&(t.liInfo=e)}))}),2e3)}))}})}}};t.default=f},3744:function(e,t,n){"use strict";var i=n("9535"),a=n.n(i);a.a},"391e":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.daibanKehuFollow=function(e){return(0,i.myRequest)("record/getcustomerList",e)},t.netAddComment=function(e){return(0,i.myRequest)("record/addComment",e)},t.netAddCost=function(e){return(0,i.myRequest)("consume/addConsume",e)},t.netAddFollowRecords=function(e){return(0,i.myRequest)("record/createRecord",e)},t.netAddLianxiren=function(e){return(0,i.myRequest)("contacts/addContacts",e)},t.netAddPayment=function(e){return(0,i.myRequest)("receivables/addReceivables",e)},t.netAddPlan=function(e){return(0,i.myRequest)("receivables_plan/addPlan",e)},t.netAddkehu=function(e){return(0,i.myRequest)("customer/addCustomer",e)},t.netCancelExamine=function(e){return(0,i.myRequest)("contract/cancel",e)},t.netCheckName=function(e){return(0,i.myRequest)("customer/selectName",e)},t.netConcatDetailInfo=function(e){return(0,i.myRequest)("contacts/getDetail",e)},t.netContact=function(e){return(0,i.myRequest)("contacts/getSelectList",e)},t.netContactFileList=function(e){return(0,i.myRequest)("contacts/getFilesList",e)},t.netContactList=function(e){return(0,i.myRequest)("contacts/getList",e)},t.netContinueIsFollow=function(e){return(0,i.myRequest)("record/record_add",e)},t.netContractDetail=function(e){return(0,i.myRequest)("contract/getDetail",e)},t.netContractFileList=function(e){return(0,i.myRequest)("contract/getFilesList",e)},t.netContractList=function(e){return(0,i.myRequest)("contract/getCustomerContacts",e)},t.netContractNum=function(){return(0,i.myRequest)("contract/getContractNumber")},t.netContractProduct=function(e){return(0,i.myRequest)("product/getSelectList",e)},t.netCostDetail=function(e){return(0,i.myRequest)("consume/getDetail",e)},t.netCostList=function(e){return(0,i.myRequest)("consume/getList",e)},t.netCreateContract=function(e){return(0,i.myRequest)("contract/addContract",e)},t.netCrmContractList=function(e){return(0,i.myRequest)("contract/getList",e)},t.netDelContact=function(e){return(0,i.myRequest)("contacts/delContacts",e)},t.netEditContactInfo=function(e){return(0,i.myRequest)("contacts/editContacts",e)},t.netEditContract=function(e){return(0,i.myRequest)("contract/editContract",e)},t.netEditCost=function(e){return(0,i.myRequest)("consume/editConsume",e)},t.netEditFileName=function(e){return(0,i.myRequest)("file/editName",e)},t.netEditKehu=function(e){return(0,i.myRequest)("customer/editCustomer",e)},t.netEditPaymentInfo=function(e){return(0,i.myRequest)("receivables/editReceivables",e)},t.netExamine=function(e){return(0,i.myRequest)("examine_record/examine",e)},t.netFollowRecordDetail=function(e){return(0,i.myRequest)("record/getRecordDetail",e)},t.netGetBriefdata=function(e){return(0,i.myRequest)("index/briefing",e)},t.netGetBumenList=function(e){return(0,i.myRequest)("achievement/getDepartmentList",e)},t.netGetCommentList=function(e){return(0,i.myRequest)("record/commentList",e)},t.netGetDefaultMoney=function(e){return(0,i.myRequest)("achievement/getAchievementDetail",e)},t.netGetDefaultSelfDetail=function(e){return(0,i.myRequest)("achievement/getMyAchievementDetail",e)},t.netGetDepTargetlist=function(e){return(0,i.myRequest)("achievement/getStaffList",e)},t.netGetGongsiList=function(e){return(0,i.myRequest)("achievement/getCompanyAchievement",e)},t.netGetOthersReceivable=function(){return(0,i.myRequest)("statistics/staffReceivablesStatistics")},t.netGetRecordDetail=function(e){return(0,i.myRequest)("achievement/getRecordsDetail",e)},t.netGetRecordList=function(e){return(0,i.myRequest)("achievement/editRecords",e)},t.netGetTargetSelect=function(){return(0,i.myRequest)("achievement/getDepartment")},t.netGetTealList=function(e){return(0,i.myRequest)("achievement/getTeamList",e)},t.netGetreceivableStaff=function(){return(0,i.myRequest)("statistics/receivablesStatistics")},t.netKehuDetail=function(e){return(0,i.myRequest)("customer/customerDetail",e)},t.netKehuFileList=function(e){return(0,i.myRequest)("customer/getFilesList",e)},t.netKehuFollow=function(e){return(0,i.myRequest)("record/getList",e)},t.netKehuList=function(e){return(0,i.myRequest)("customer/getList",e)},t.netKeyCollect=function(e){return(0,i.myRequest)("customer/collect",e)},t.netLianxiren=function(e){return(0,i.myRequest)("contacts/getSelectList",e)},t.netOperationList=function(e){return(0,i.myRequest)("operation/getList",e)},t.netPaymentApproval=function(e){return(0,i.myRequest)("examine_record/getList",e)},t.netPaymentCancel=function(e){return(0,i.myRequest)("receivables/cancel",e)},t.netPaymentDetail=function(e){return(0,i.myRequest)("receivables/getDetail",e)},t.netPaymentList=function(e){return(0,i.myRequest)("receivables/getList",e)},t.netPaymentNum=function(e){return(0,i.myRequest)("receivables_plan/getSelectList",e)},t.netPaymentNumber=function(){return(0,i.myRequest)("receivables/getReceivablesNumber")},t.netPlanListf=function(e){return(0,i.myRequest)("receivables_plan/getList",e)},t.netPrevCustomer=function(e){return(0,i.myRequest)("customer/getSelectList",e)},t.netProductClass=function(e){return(0,i.myRequest)("product/getProducttypeList",e)},t.netProductDetail=function(e){return(0,i.myRequest)("product/getProductDetail",e)},t.netQueryData=function(e){return(0,i.myRequest)("index/search",e)},t.netReceiveKehu=function(e){return(0,i.myRequest)("customer/receive",e)},t.netRemoveColect=function(e){return(0,i.myRequest)("customer/cancelCollect",e)},t.netRemoveSeas=function(e){return(0,i.myRequest)("customer/moveSeas",e)},t.netSearchStaffList=function(e){return(0,i.myRequest)("customer/getSearchStaffList",e)},t.netSelect=function(){return(0,i.myRequest)("common/selectOption")},t.netSelectContract=function(e){return(0,i.myRequest)("contract/getSelectList",e)},t.netSetMymubiao=function(e){return(0,i.myRequest)("achievement/staffEditAchievement",e)},t.netSetTargetMoney=function(e){return(0,i.myRequest)("achievement/addAchievement",e)},t.netStaffList=function(e){return(0,i.myRequest)("common/getSelectStaff",e)},t.netSubordList=function(e){return(0,i.myRequest)("customer/getLowerCustomer",e)},t.netTransKehu=function(e){return(0,i.myRequest)("customer/transfer",e)},t.netTurnoverList=function(e){return(0,i.myRequest)("index/contractRanding",e)};var i=n("3a07")},"4a84":function(e,t,n){"use strict";n.r(t);var i=n("1320"),a=n("6e9d");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("f775"),n("cdde");var s=n("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"e579c44c",null,!1,i["a"],void 0);t["default"]=r.exports},"4db6":function(e,t,n){n("6a54");var i=n("8bcf");function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,i(a.key),a)}}e.exports=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"56c9":function(e,t,n){n("9e15"),n("884b"),n("01a2"),n("e39c"),n("bf0f"),n("7a76"),n("c9b5"),n("64aa");var i=n("bdbb")["default"];e.exports=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"5d16":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("64aa"),n("dc8a");n("88e1");var i=n("3a07"),a={props:{tipNumber:{type:Number,default:0}},data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,tablist:[{pagePath:"/pages/index/index",iconPath:i.BASE_IMG_URL+"tab1.png",selectedIconPath:i.BASE_IMG_URL+"tab1_a.png",text:"首页",isTip:!0,num:0},{pagePath:"/pagesA/crm/customerManagement/customerManagement",iconPath:i.BASE_IMG_URL+"tab2.png",selectedIconPath:i.BASE_IMG_URL+"tab2_a.png",text:"客户",isTip:!0,num:0},{pagePath:"/pages/news/news",iconPath:i.BASE_IMG_URL+"tab3.png",selectedIconPath:i.BASE_IMG_URL+"tab3_a.png",text:"消息",isTip:!0,num:this.tipNumber},{pagePath:"/pages/profile/profile",iconPath:i.BASE_IMG_URL+"tab4.png",selectedIconPath:i.BASE_IMG_URL+"tab4_a.png",text:"我的",isTip:!0,num:0}]}},computed:{currentPath:function(){var e=getCurrentPages(),t=this.queryObj?this.queryObj:{},n=null;if(e.length&&(n=e[e.length-1].route),Object.keys(t).length){var i="";for(var a in t)i+="?"+a+"="+t[a]+"&";return i=i.substring(0,i.length-1),"/"+n+i}return"/"+n}},created:function(){},methods:{switchTabbar:function(e){uni.redirectTo({url:e,fail:function(e){console.log(e)}})}}};t.default=a},"6ac7":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.block-height[data-v-4dd1c2b3]{width:%?750?%;height:%?150?%}.tab-warp[data-v-4dd1c2b3]{width:%?750?%;height:calc(%?100?% + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2);background:#fff;border-top:%?1?% solid #eee;position:fixed;left:0;bottom:0}.tab-warp .tab-box[data-v-4dd1c2b3]{width:100%;height:calc(%?100?% + env(safe-area-inset-bottom) / 2);display:flex;align-items:center;justify-content:space-around}.tab-warp .tab-box .tab-li[data-v-4dd1c2b3]{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;position:relative}.tab-warp .tab-box .tab-li .tabimg[data-v-4dd1c2b3]{width:%?50?%;height:%?50?%}.tab-warp .tab-box .tab-li .tab-text[data-v-4dd1c2b3]{font-size:%?20?%}.tab-warp .tab-box .tab-li .tab-number[data-v-4dd1c2b3]{font-size:%?24?%;color:#fff;background:#f43f3b;width:%?40?%;height:%?40?%;border-radius:50%;text-align:center;line-height:%?40?%;position:absolute;right:%?30?%;top:0}',""]),e.exports=t},"6e9d":function(e,t,n){"use strict";n.r(t);var i=n("30ba"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"85ff":function(e,t,n){"use strict";n.r(t);var i=n("5d16"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"883d":function(e,t,n){n("7a76"),n("c9b5"),e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"88e1":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.netAddClues=function(e){return(0,i.myRequest)("leads/addLeads",e)},t.netAddCluesPool=function(e){return(0,i.myRequest)("leadspool/addLeads",e)},t.netAgentList=function(e){return(0,i.myRequest)("message/getInfo",e)},t.netAllDistriCluesPool=function(e){return(0,i.myRequest)("leadspool/transfer",e)},t.netCluesDetail=function(e){return(0,i.myRequest)("leads/getDetail",e)},t.netCluesFiles=function(e){return(0,i.myRequest)("leads/getFilesList",e)},t.netCluesList=function(e){return(0,i.myRequest)("leads/getList",e)},t.netCluesPoolDetail=function(e){return(0,i.myRequest)("leadspool/getDetail",e)},t.netCluesPoolFiles=function(e){return(0,i.myRequest)("leadspool/getFilesList",e)},t.netCluesPoolList=function(e){return(0,i.myRequest)("leadspool/getList",e)},t.netDelClues=function(e){return(0,i.myRequest)("leads/delLeads",e)},t.netDelCluesPool=function(e){return(0,i.myRequest)("leadspool/delLeads",e)},t.netEditClues=function(e){return(0,i.myRequest)("leads/editLeads",e)},t.netEditCluesPool=function(e){return(0,i.myRequest)("leadspool/editLeads",e)},t.netGetNopageClueslist=function(e){return(0,i.myRequest)("leads/getSelectList",e)},t.netMessageList=function(e){return(0,i.myRequest)("message/getList",e)},t.netNoticeDetail=function(e){return(0,i.myRequest)("notice/getDetail",e)},t.netNoticeList=function(e){return(0,i.myRequest)("notice/getList",e)},t.netReceiveCluesPool=function(e){return(0,i.myRequest)("leadspool/achieve",e)};var i=n("3a07")},"8bcf":function(e,t,n){var i=n("bdbb")["default"],a=n("56c9");e.exports=function(e){var t=a(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"8bed":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,"uni-page-body[data-v-e579c44c]{background:#fff}body.?%PAGE?%[data-v-e579c44c]{background:#fff}",""]),e.exports=t},9535:function(e,t,n){var i=n("6ac7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("2f51df3e",i,!0,{sourceMap:!1,shadowMode:!1})},aa54:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:"block-height"}),n("v-uni-view",{staticClass:"tab-warp"},[n("v-uni-view",{staticClass:"tab-box"},e._l(e.tablist,(function(t,i){return n("v-uni-view",{key:i,staticClass:"tab-li",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.switchTabbar(t.pagePath)}}},[n("v-uni-image",{staticClass:"tabimg",attrs:{src:e.currentPath==t.pagePath?t.selectedIconPath:t.iconPath,mode:"scaleToFill"}}),n("v-uni-view",{staticClass:"tab-text"},[e._v(e._s(t.text))]),t.num>0?n("v-uni-view",{staticClass:"tab-number"},[e._v(e._s(t.num))]):e._e()],1)})),1)],1)],1)},a=[]},cdde:function(e,t,n){"use strict";var i=n("d8ff"),a=n.n(i);a.a},d8ff:function(e,t,n){var i=n("17d7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("67b34bd7",i,!0,{sourceMap:!1,shadowMode:!1})},f09b:function(e,t,n){"use strict";n.r(t);var i=n("aa54"),a=n("85ff");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("3744");var s=n("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"4dd1c2b3",null,!1,i["a"],void 0);t["default"]=r.exports},f775:function(e,t,n){"use strict";var i=n("2a66"),a=n.n(i);a.a}}]);
|