1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-796a6c03","chunk-2d0d83d6"],{"36be":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".isPc[data-v-24d0f828]{max-width:375px}.name[data-v-24d0f828]{font-size:1.1428rem}.btn[data-v-24d0f828]{position:fixed;width:100%;bottom:0;background-color:#fff;-webkit-box-shadow:0 -2px 7px 0 hsla(0,0%,83.5%,.59);box-shadow:0 -2px 7px 0 hsla(0,0%,83.5%,.59);padding:.5714rem 1.7857rem}.btn[data-v-24d0f828] .van-button--normal{width:100%;border-radius:.3571rem}.mr-1[data-v-24d0f828]{margin-right:1rem}.life[data-v-24d0f828]{margin-right:.325rem;color:#6b6b6b}.domain-nickName[data-v-24d0f828]{padding:.25rem .4rem;margin:.625rem .315rem;border:1px solid #f5b435;border-radius:2px;text-align:center;color:#f5b435;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:.63rem;border-radius:.125rem}.flex[data-v-24d0f828]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.between[data-v-24d0f828]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[data-v-24d0f828] .van-tabs__line{background-color:#daa032}[data-v-24d0f828] .van-tab--active{color:#daa032!important}.operators[data-v-24d0f828]{position:relative;background-color:#fff;height:100%;padding-bottom:5rem}.info[data-v-24d0f828]{text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.c-6b6b6b[data-v-24d0f828],.contact-way[data-v-24d0f828]{color:#6b6b6b}.contact-way[data-v-24d0f828]{font-size:.8rem}.lawyer-title[data-v-24d0f828]{color:#daa032;font-size:.857rem}.lawyer[data-v-24d0f828],div.item[data-v-24d0f828]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.3571rem}.lawyer[data-v-24d0f828],div.item[data-v-24d0f828]{margin-left:.714rem}img[data-v-24d0f828]{margin:0;width:3rem;height:3rem;border-radius:100px;-o-object-fit:cover;object-fit:cover;border:1px solid #fff;margin-right:.328rem}.lawyer-detail[data-v-24d0f828]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}",""]),t.exports=e},"3e91":function(t,e,a){"use strict";a("b0c0"),a("99af");var i=a("ac0d"),r=a("eb17");e["a"]={mixins:[i["a"]],data:function(){return{listData:[],isLoadMore:!0,page:1,last_page:1}},activated:function(){var t=JSON.parse(localStorage.getItem("myLocation"));if(t&&(this.myLocation=t),this.lawyerId=this.$route.params.id,"lawyerSearch"==this.$route.name&&(this.lawyerId=this.$route.query.id),0==this.request)return!1;this.httpUrl&&this.getdata()},methods:{initdata:function(){this.page=1,this.listData=[]},getdata:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.initdata();var a={};this.lawyerId&&"lawyerSearch"!==this.$route.name&&(a.id=this.lawyerId),e&&(a={id:this.lawyerId,name:e}),"lawyerSearch"==this.$route.name&&("距离"!==this.text&&(a.distance_type="由近到远"==this.text?1:2,a.lng=this.myLocation.point.lng,a.lat=this.myLocation.point.lat),a.category_id=this.lawyerId),"lawyerConsult"==this.$route.name&&(a.goods_type=this.$route.params.consult_type),$http.post(this.httpUrl,a,"正在加载中...").then((function(e){var a=e.result,i=e.msg,r=e.data;a?(t.listData=r.list.data,t.last_page=r.list.last_page):t.$toast(i)}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.last_page)){var e=this.page+1,a={page:e};"lawyerConsult"==this.$route.name&&(a.goods_type=this.$route.params.consult_type),$http.post(this.httpUrl,a,"正在加载更多数据中...").then((function(a){var i=a.result,r=a.msg,o=a.data;t.isLoadMore=!0,i?(t.page=e,t.listData=t.listData.concat(o.list.data)):t.$toast(r)}))}}},watch:{search:function(t){var e=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout((function(){e.getdata(t)}),300)},lawyers:function(t){t&&t.length>0&&(this.listData=t)},immediate:!0},components:{yzBlank:r["default"]}}},7148:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".name[data-v-dd88723c]{font-size:1rem}.footer-distance[data-v-dd88723c]{margin-left:3rem;font-size:.75rem}.lawyer-platform[data-v-dd88723c]{background-color:#fff;padding:.94rem}.lawyer-platform .lawyer[data-v-dd88723c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:1.8rem}.btn[data-v-dd88723c]{position:fixed;width:100vw;bottom:0;background-color:#fff;-webkit-box-shadow:0 -2px 7px 0 hsla(0,0%,83.5%,.59);box-shadow:0 -2px 7px 0 hsla(0,0%,83.5%,.59);padding:.5714rem 1.7857rem}.btn[data-v-dd88723c] .van-button--normal{width:100%;border-radius:.3571rem}.mr-1[data-v-dd88723c]{margin-right:1rem}.life[data-v-dd88723c]{margin-top:.94rem;margin-right:.25rem;color:#6b6b6b}.lawfirm[data-v-dd88723c],.life[data-v-dd88723c]{font-size:.75rem}.lawfirm[data-v-dd88723c]{margin-right:.3rem}.domain-nickName[data-v-dd88723c]{padding:.25rem .4rem;margin:.625rem .315rem;border:1px solid #f5b435;border-radius:2px;text-align:center;color:#f5b435;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:.63rem;border-radius:.125rem}.flex[data-v-dd88723c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.between[data-v-dd88723c]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[data-v-dd88723c] .van-tabs__line{background-color:#daa032}[data-v-dd88723c] .van-tab--active{color:#daa032!important}.operators[data-v-dd88723c]{background-color:#fff;height:100%;padding-bottom:5rem}.info[data-v-dd88723c]{width:100%;text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.c-6b6b6b[data-v-dd88723c],.contact-way[data-v-dd88723c]{color:#6b6b6b}.contact-way[data-v-dd88723c]{font-size:.8rem}.title[data-v-dd88723c]{text-align:right}.lawyer-title[data-v-dd88723c]{color:#daa032;font-size:.75rem}div.item[data-v-dd88723c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:.714rem;margin-top:1.3571rem}img[data-v-dd88723c]{margin:0;width:3rem;height:3rem;border-radius:100px;-o-object-fit:cover;object-fit:cover;border:1px solid #fff;margin-right:.328rem}.lawyer-detail[data-v-dd88723c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}",""]),t.exports=e},"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},"7c29":function(t,e,a){"use strict";a("e8c1")},"9d73":function(t,e,a){var i=a("36be");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("079994e3",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,r=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:r&&(t=r.scrollTop),t},getClientHeight:function(){var t=0;return t=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(r.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},cc72:function(t,e,a){"use strict";a("9d73")},e18d:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"operators",class:{isPc:t.fun.isPc()}},[a("c-title",{attrs:{hide:!1,text:"运营商"}}),a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"律所",name:"lawfirmPlatform"}}),a("van-tab",{attrs:{title:"律师",name:"lawyerPlatform"}}),a("van-tab",{attrs:{title:"企业",name:"enterprise"}})],1),a("keep-alive",[a(t.active,{tag:"components"})],1),a("div",{staticClass:"btn"},[a("van-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.type_link,expression:"type_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],attrs:{color:"#daa032"},on:{click:function(t){t.stopPropagation()}}},[t._v("邀请"+t._s(t.type_nickName))])],1)],1)},r=[],o=(a("e7e5"),a("d399")),d=(a("ac1f"),a("5319"),a("d3b7"),a("3ca3"),a("ddb0"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lawfirm-platform"},[t._l(t.listData,(function(e,i){return a("div",{key:i,staticClass:"item"},[a("img",{attrs:{src:e.logo_image,alt:""}}),a("div",{staticClass:"info"},[a("div",{staticClass:"name"},[t._v(t._s(e.name))]),a("div",{staticClass:"contact-way"},[t._v(t._s(e.tel)+" | "+t._s(e.show_address))])])])})),a("yz-blank",{attrs:{datas:t.listData}})],2)}),n=[],l=a("3e91"),s={mixins:[l["a"]],data:function(){return{httpUrl:"plugin.lawyer-platform.frontend.controllers.merchant.getLawyerFirm"}}},c=s,f=(a("7c29"),a("2877")),m=Object(f["a"])(c,d,n,!1,null,"dd88723c",null),p=m.exports,b={data:function(){return{active:"lawfirmPlatform"}},computed:{type_nickName:function(){return"lawfirmPlatform"==this.active?"律所":"lawyerPlatform"==this.active?"律师":"企业"},type_link:function(){var t=window.location.href,e=localStorage.getItem("uid");return t="lawfirmPlatform"==this.active?t.replace("lawyer_platform/operators","applyFor?apply_for=lawOffice&share=lawOffice&merchant_member_id="+e):"lawyerPlatform"==this.active?t.replace("lawyer_platform/operators","applyFor?apply_for=lawYerManagement&share=lawYerManagement&merchant_member_id="+e):t.replace("lawyer_platform/operators","lawyer_platform/enterpriseAdd?share=enterprise&merchant_member_id="+e),t=t.replace("?i","&i"),t}},methods:{onCopy:function(){Object(o["a"])({message:"复制成功",position:"bottom",duration:5e3})}},components:{lawfirmPlatform:p,lawyerPlatform:function(){return a.e("chunk-7a488808").then(a.bind(null,"fbd6"))},enterprise:function(){return a.e("chunk-3816938e").then(a.bind(null,"2783"))}}},u=b,h=(a("cc72"),Object(f["a"])(u,i,r,!1,null,"24d0f828",null));e["default"]=h.exports},e8c1:function(t,e,a){var i=a("7148");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("6cb93328",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |