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
36 KiB
1 lines
36 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-nearby-nearby"],{"06d2":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,"uni-page-body[data-v-73dc3a71]{background:#fff}body.?%PAGE?%[data-v-73dc3a71]{background:#fff}",""]),e.exports=t},"128c":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=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)},o=[]},"1f02":function(e,t,n){var i=n("06d2");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("02bb4f21",i,!0,{sourceMap:!1,shadowMode:!1})},2502:function(e,t,n){"use strict";n.r(t);var i=n("5841"),a=n("9bcd7");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("3df4"),n("b200");var s,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"73dc3a71",null,!1,i["a"],s);t["default"]=c.exports},"3a32":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.select_box[data-v-73dc3a71]{display:flex;justify-content:space-around;align-items:center;height:%?110?%;background:#fff;padding:0 %?20?%;position:relative}.select_box .sel_left[data-v-73dc3a71]{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-73dc3a71]{width:%?20?%;height:%?30?%}.mask[data-v-73dc3a71]{position:absolute;width:%?750?%;top:%?110?%;bottom:0;background:rgba(0,0,0,.5);z-index:9}.mask .maskbox[data-v-73dc3a71]{position:absolute;left:0;top:0;width:%?750?%;background:#fff}.mask .maskbox .leftbox[data-v-73dc3a71]{padding:%?30?%}.mask .maskbox .leftbox .leftli[data-v-73dc3a71]{padding:%?20?%;border-bottom:%?1?% solid #ccc;font-size:%?24?%;color:#333}.mask .maskbox .leftbox .leftli_active[data-v-73dc3a71]{color:#008eff;border-bottom:%?1?% solid #008eff}.mask .maskbox .maskbtnli[data-v-73dc3a71]{width:%?750?%;display:flex;justify-content:space-around;align-items:center;padding:%?20?% 0 %?30?%}.mask .maskbox .maskbtnli .maskbtn[data-v-73dc3a71]{width:%?300?%;height:%?60?%;border-radius:%?30?%;line-height:%?60?%;text-align:center;font-size:%?24?%;color:#fff}.mask .maskbox .maskbtnli .sure[data-v-73dc3a71]{background:#008eff}.mask .maskbox .maskbtnli .reset[data-v-73dc3a71]{background:#008eff}.nearby .map_show[data-v-73dc3a71]{width:%?750?%;height:%?400?%}.nearby .kehu-btn[data-v-73dc3a71]{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-73dc3a71]{background:#fff}.nearby .scroll .backlist[data-v-73dc3a71]{font-size:%?24?%;color:#008eff;padding:%?20?%}.nearby .scroll .map_group[data-v-73dc3a71]{background-color:#fff;padding:%?30?%;border-bottom:%?1?% solid #ccc}.nearby .scroll .map_group .name_li[data-v-73dc3a71]{display:flex;justify-content:space-between;align-items:center}.nearby .scroll .map_group .name_li .name[data-v-73dc3a71]{font-size:%?32?%;color:#333}.nearby .scroll .map_group .name_li .status[data-v-73dc3a71]{font-size:%?24?%;color:#fff;padding:%?5?% %?8?%;border-radius:%?10?%;background:#008eff}.nearby .scroll .map_group .text[data-v-73dc3a71]{font-size:%?24?%;color:#666;margin:%?15?% 0}.nearby .scroll .map_group .bntlist[data-v-73dc3a71]{display:flex;justify-content:space-around;align-items:center}.nearby .scroll .map_group .bntlist .anniu[data-v-73dc3a71]{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-73dc3a71]{background:#008eff;border:1px solid #008eff}.nearby .scroll .map_group .bntlist .lingqu[data-v-73dc3a71]{background:#fff;border:1px solid #008eff}.nearby .xiawarp[data-v-73dc3a71]{background:#fff;padding:%?10?% 0;text-align:center}.nearby .xiawarp .xiaimg[data-v-73dc3a71]{width:%?30?%;height:%?30?%}.nearby .map_rim[data-v-73dc3a71]{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-73dc3a71]{width:%?30?%;height:%?30?%}',""]),e.exports=t},"3df4":function(e,t,n){"use strict";var i=n("1f02"),a=n.n(i);a.a},"4f22":function(e,t,n){n("4de4"),n("acd8"),n("ac1f"),n("1276");var i=n("970b"),a=n("5bc3"),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/search",c=s+"place/v1/suggestion",u=s+"geocoder/v1/",l=s+"district/v1/list",d=s+"district/v1/getchildren",f=s+"distance/v1/",m=6378136.49,g={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*=m,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 g=t.result[0],p=t.result[1],v=t.result[2];e.success(t,{provinceResult:g,cityResult:p,districtResult:v})}else if("getDistrictByCityId"===n){var h=t.result[0];e.success(t,h)}else if("calculateDistance"===n){var y=t.result.elements,_=[];for(o=0;o<y.length;o++)_.push(y[o].distance);e.success(t,{calculateDistanceResult:y,distance:_})}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=g.getLocationParam(e.location);t(s)}}else a.getWXLocation(t,n,i)}},p=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){var t=this;if(e=e||{},g.polyfillParam(e),g.checkKeyword(e)){var n={keyword:e.keyword,orderby:e.orderby||"_distance",page_size:e.page_size||10,page_index:e.page_index||1,output:"json",key:t.key};e.address_format&&(n.address_format=e.address_format),e.filter&&(n.filter=e.filter);var i=e.distance||"1000",a=e.auto_extend||1,o=null,s=null;e.region&&(o=e.region),e.rectangle&&(s=e.rectangle);var c=function(t){n.boundary=o&&!s?"region("+o+","+a+","+t.latitude+","+t.longitude+")":s&&!o?"rectangle("+s+")":"nearby("+t.latitude+","+t.longitude+","+i+","+a+")",wx.request(g.buildWxRequestConfig(e,{url:r,data:n},"search"))};g.locationProcess(e,c)}}},{key:"getSuggestion",value:function(e){var t=this;if(e=e||{},g.polyfillParam(e),g.checkKeyword(e)){var n={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:t.key};if(e.address_format&&(n.address_format=e.address_format),e.filter&&(n.filter=e.filter),e.location){var i=function(t){n.location=t.latitude+","+t.longitude,wx.request(g.buildWxRequestConfig(e,{url:c,data:n},"suggest"))};g.locationProcess(e,i)}else wx.request(g.buildWxRequestConfig(e,{url:c,data:n},"suggest"))}}},{key:"reverseGeocoder",value:function(e){var t=this;e=e||{},g.polyfillParam(e);var n={coord_type:e.coord_type||5,get_poi:e.get_poi||0,output:"json",key:t.key};e.poi_options&&(n.poi_options=e.poi_options);var i=function(t){n.location=t.latitude+","+t.longitude,wx.request(g.buildWxRequestConfig(e,{url:u,data:n},"reverseGeocoder"))};g.locationProcess(e,i)}},{key:"geocoder",value:function(e){var t=this;if(e=e||{},g.polyfillParam(e),!g.checkParamKeyEmpty(e,"address")){var n={address:e.address,output:"json",key:t.key};e.region&&(n.region=e.region),wx.request(g.buildWxRequestConfig(e,{url:u,data:n},"geocoder"))}}},{key:"getCityList",value:function(e){var t=this;e=e||{},g.polyfillParam(e);var n={output:"json",key:t.key};wx.request(g.buildWxRequestConfig(e,{url:l,data:n},"getCityList"))}},{key:"getDistrictByCityId",value:function(e){var t=this;if(e=e||{},g.polyfillParam(e),!g.checkParamKeyEmpty(e,"id")){var n={id:e.id||"",output:"json",key:t.key};wx.request(g.buildWxRequestConfig(e,{url:d,data:n},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(e){var t=this;if(e=e||{},g.polyfillParam(e),!g.checkParamKeyEmpty(e,"to")){var n={mode:e.mode||"walking",to:g.location2query(e.to),output:"json",key:t.key};if(e.from&&(e.location=e.from),"straight"==n.mode){var i=function(t){for(var i=g.getEndLocation(n.to),a={message:"query ok",result:{elements:[]},status:0},o=0;o<i.length;o++)a.result.elements.push({distance:g.getDistance(t.latitude,t.longitude,i[o].lat,i[o].lng),duration:0,from:{lat:t.latitude,lng:t.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})};g.locationProcess(e,i)}else{i=function(t){n.from=t.latitude+","+t.longitude,wx.request(g.buildWxRequestConfig(e,{url:f,data:n},"calculateDistance"))};g.locationProcess(e,i)}}}}]),e}();e.exports=p},"553d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.netKehuList=a,t.netAddkehu=o,t.netSelect=s,t.netSearchStaffList=r,t.netPrevCustomer=c,t.netLianxiren=u,t.netSelectContract=l,t.netCheckName=d,t.netAddFollowRecords=f,t.netContinueIsFollow=m,t.netFollowRecordDetail=g,t.netAddComment=p,t.netGetCommentList=v,t.netStaffList=h,t.netKehuDetail=y,t.netKehuFollow=_,t.daibanKehuFollow=b,t.netAddLianxiren=R,t.netCreateContract=w,t.netContractNum=C,t.netRemoveSeas=x,t.netReceiveKehu=k,t.netTransKehu=q,t.netKeyCollect=L,t.netRemoveColect=E,t.netEditKehu=S,t.netContactList=M,t.netContact=P,t.netContractList=I,t.netKehuFileList=A,t.netConcatDetailInfo=D,t.netContactFileList=F,t.netOperationList=G,t.netEditContactInfo=K,t.netDelContact=T,t.netEditFileName=j,t.netContractDetail=z,t.netPlanListf=O,t.netAddPlan=N,t.netPaymentNum=W,t.netAddPayment=B,t.netPaymentList=U,t.netPaymentNumber=$,t.netPaymentDetail=X,t.netPaymentApproval=H,t.netContractFileList=Y,t.netExamine=J,t.netCancelExamine=Q,t.netEditContract=V,t.netPaymentCancel=Z,t.netEditPaymentInfo=ee,t.netCrmContractList=te,t.netContractProduct=ne,t.netProductClass=ie,t.netProductDetail=ae,t.netAddCost=oe,t.netCostList=se,t.netCostDetail=re,t.netEditCost=ce,t.netSubordList=ue,t.netGetBriefdata=le,t.netTurnoverList=de,t.netGetreceivableStaff=fe,t.netGetOthersReceivable=me,t.netGetTargetSelect=ge,t.netGetDepTargetlist=pe,t.netGetDefaultSelfDetail=ve,t.netSetMymubiao=he,t.netGetRecordList=ye,t.netGetRecordDetail=_e,t.netGetBumenList=be,t.netGetTealList=Re,t.netGetGongsiList=we,t.netSetTargetMoney=Ce,t.netGetDefaultMoney=xe,t.netQueryData=ke;var i=n("2345");function a(e){return(0,i.myRequest)("customer/getList",e)}function o(e){return(0,i.myRequest)("customer/addCustomer",e)}function s(){return(0,i.myRequest)("common/selectOption")}function r(e){return(0,i.myRequest)("customer/getSearchStaffList",e)}function c(e){return(0,i.myRequest)("customer/getSelectList",e)}function u(e){return(0,i.myRequest)("contacts/getSelectList",e)}function l(e){return(0,i.myRequest)("contract/getSelectList",e)}function d(e){return(0,i.myRequest)("customer/selectName",e)}function f(e){return(0,i.myRequest)("record/createRecord",e)}function m(e){return(0,i.myRequest)("record/record_add",e)}function g(e){return(0,i.myRequest)("record/getRecordDetail",e)}function p(e){return(0,i.myRequest)("record/addComment",e)}function v(e){return(0,i.myRequest)("record/commentList",e)}function h(e){return(0,i.myRequest)("common/getSelectStaff",e)}function y(e){return(0,i.myRequest)("customer/customerDetail",e)}function _(e){return(0,i.myRequest)("record/getList",e)}function b(e){return(0,i.myRequest)("record/getcustomerList",e)}function R(e){return(0,i.myRequest)("contacts/addContacts",e)}function w(e){return(0,i.myRequest)("contract/addContract",e)}function C(){return(0,i.myRequest)("contract/getContractNumber")}function x(e){return(0,i.myRequest)("customer/moveSeas",e)}function k(e){return(0,i.myRequest)("customer/receive",e)}function q(e){return(0,i.myRequest)("customer/transfer",e)}function L(e){return(0,i.myRequest)("customer/collect",e)}function E(e){return(0,i.myRequest)("customer/cancelCollect",e)}function S(e){return(0,i.myRequest)("customer/editCustomer",e)}function M(e){return(0,i.myRequest)("contacts/getList",e)}function P(e){return(0,i.myRequest)("contacts/getSelectList",e)}function I(e){return(0,i.myRequest)("contract/getCustomerContacts",e)}function A(e){return(0,i.myRequest)("customer/getFilesList",e)}function D(e){return(0,i.myRequest)("contacts/getDetail",e)}function F(e){return(0,i.myRequest)("contacts/getFilesList",e)}function G(e){return(0,i.myRequest)("operation/getList",e)}function K(e){return(0,i.myRequest)("contacts/editContacts",e)}function T(e){return(0,i.myRequest)("contacts/delContacts",e)}function j(e){return(0,i.myRequest)("file/editName",e)}function z(e){return(0,i.myRequest)("contract/getDetail",e)}function O(e){return(0,i.myRequest)("receivables_plan/getList",e)}function N(e){return(0,i.myRequest)("receivables_plan/addPlan",e)}function W(e){return(0,i.myRequest)("receivables_plan/getSelectList",e)}function B(e){return(0,i.myRequest)("receivables/addReceivables",e)}function U(e){return(0,i.myRequest)("receivables/getList",e)}function $(){return(0,i.myRequest)("receivables/getReceivablesNumber")}function X(e){return(0,i.myRequest)("receivables/getDetail",e)}function H(e){return(0,i.myRequest)("examine_record/getList",e)}function Y(e){return(0,i.myRequest)("contract/getFilesList",e)}function J(e){return(0,i.myRequest)("examine_record/examine",e)}function Q(e){return(0,i.myRequest)("contract/cancel",e)}function V(e){return(0,i.myRequest)("contract/editContract",e)}function Z(e){return(0,i.myRequest)("receivables/cancel",e)}function ee(e){return(0,i.myRequest)("receivables/editReceivables",e)}function te(e){return(0,i.myRequest)("contract/getList",e)}function ne(e){return(0,i.myRequest)("product/getSelectList",e)}function ie(e){return(0,i.myRequest)("product/getProducttypeList",e)}function ae(e){return(0,i.myRequest)("product/getProductDetail",e)}function oe(e){return(0,i.myRequest)("consume/addConsume",e)}function se(e){return(0,i.myRequest)("consume/getList",e)}function re(e){return(0,i.myRequest)("consume/getDetail",e)}function ce(e){return(0,i.myRequest)("consume/editConsume",e)}function ue(e){return(0,i.myRequest)("customer/getLowerCustomer",e)}function le(e){return(0,i.myRequest)("index/briefing",e)}function de(e){return(0,i.myRequest)("index/contractRanding",e)}function fe(){return(0,i.myRequest)("statistics/receivablesStatistics")}function me(){return(0,i.myRequest)("statistics/staffReceivablesStatistics")}function ge(){return(0,i.myRequest)("achievement/getDepartment")}function pe(e){return(0,i.myRequest)("achievement/getStaffList",e)}function ve(e){return(0,i.myRequest)("achievement/getMyAchievementDetail",e)}function he(e){return(0,i.myRequest)("achievement/staffEditAchievement",e)}function ye(e){return(0,i.myRequest)("achievement/editRecords",e)}function _e(e){return(0,i.myRequest)("achievement/getRecordsDetail",e)}function be(e){return(0,i.myRequest)("achievement/getDepartmentList",e)}function Re(e){return(0,i.myRequest)("achievement/getTeamList",e)}function we(e){return(0,i.myRequest)("achievement/getCompanyAchievement",e)}function Ce(e){return(0,i.myRequest)("achievement/addAchievement",e)}function xe(e){return(0,i.myRequest)("achievement/getAchievementDetail",e)}function ke(e){return(0,i.myRequest)("index/search",e)}},5841: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("f3af").default,uEmpty:n("58b3").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=[]},"5b2a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.netCluesList=a,t.netGetNopageClueslist=o,t.netAddClues=s,t.netCluesDetail=r,t.netEditClues=c,t.netDelClues=u,t.netCluesFiles=l,t.netCluesPoolList=d,t.netAddCluesPool=f,t.netCluesPoolDetail=m,t.netEditCluesPool=g,t.netDelCluesPool=p,t.netCluesPoolFiles=v,t.netReceiveCluesPool=h,t.netAllDistriCluesPool=y,t.netMessageList=_,t.netAgentList=b,t.netNoticeList=R,t.netNoticeDetail=w;var i=n("2345");function a(e){return(0,i.myRequest)("leads/getList",e)}function o(e){return(0,i.myRequest)("leads/getSelectList",e)}function s(e){return(0,i.myRequest)("leads/addLeads",e)}function r(e){return(0,i.myRequest)("leads/getDetail",e)}function c(e){return(0,i.myRequest)("leads/editLeads",e)}function u(e){return(0,i.myRequest)("leads/delLeads",e)}function l(e){return(0,i.myRequest)("leads/getFilesList",e)}function d(e){return(0,i.myRequest)("leadspool/getList",e)}function f(e){return(0,i.myRequest)("leadspool/addLeads",e)}function m(e){return(0,i.myRequest)("leadspool/getDetail",e)}function g(e){return(0,i.myRequest)("leadspool/editLeads",e)}function p(e){return(0,i.myRequest)("leadspool/delLeads",e)}function v(e){return(0,i.myRequest)("leadspool/getFilesList",e)}function h(e){return(0,i.myRequest)("leadspool/achieve",e)}function y(e){return(0,i.myRequest)("leadspool/transfer",e)}function _(e){return(0,i.myRequest)("message/getList",e)}function b(e){return(0,i.myRequest)("message/getInfo",e)}function R(e){return(0,i.myRequest)("notice/getList",e)}function w(e){return(0,i.myRequest)("notice/getDetail",e)}},"5bc3":function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}e.exports=i},7991:function(e,t,n){"use strict";var i=n("f8ab"),a=n.n(i);a.a},8601:function(e,t,n){"use strict";n.r(t);var i=n("128c"),a=n("af34");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("7991");var s,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"07299ad7",null,!1,i["a"],s);t["default"]=c.exports},"8af3":function(e,t,n){"use strict";n("a9e3"),n("b64b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("5b2a");var i=n("2345"),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},"970b":function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n},"9bcd7":function(e,t,n){"use strict";n.r(t);var i=n("ef46"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},accc:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.block-height[data-v-07299ad7]{width:%?750?%;height:%?150?%}.tab-warp[data-v-07299ad7]{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-07299ad7]{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-07299ad7]{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-07299ad7]{width:%?50?%;height:%?50?%}.tab-warp .tab-box .tab-li .tab-text[data-v-07299ad7]{font-size:%?20?%}.tab-warp .tab-box .tab-li .tab-number[data-v-07299ad7]{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},af34:function(e,t,n){"use strict";n.r(t);var i=n("8af3"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},b200:function(e,t,n){"use strict";var i=n("f713"),a=n.n(i);a.a},ef46:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("a9e3"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=i(n("ade3")),s=n("2345"),r=i(n("8601")),c=n("aa66"),u=n("553d"),l=n("5b2a"),d=n("f8c1"),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("4f22"),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},f713:function(e,t,n){var i=n("3a32");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("86c87972",i,!0,{sourceMap:!1,shadowMode:!1})},f8ab:function(e,t,n){var i=n("accc");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("0a8e8ba9",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|