1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-572061b8","chunk-2d0d83d6","chunk-7a488808"],{2463:function(t,a,e){var i=e("a6b4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("499e").default;r("cde347d4",i,!0,{sourceMap:!1,shadowMode:!1})},"3e91":function(t,a,e){"use strict";e("b0c0"),e("99af");var i=e("ac0d"),r=e("eb17");a["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,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.initdata();var e={};this.lawyerId&&"lawyerSearch"!==this.$route.name&&(e.id=this.lawyerId),a&&(e={id:this.lawyerId,name:a}),"lawyerSearch"==this.$route.name&&("距离"!==this.text&&(e.distance_type="由近到远"==this.text?1:2,e.lng=this.myLocation.point.lng,e.lat=this.myLocation.point.lat),e.category_id=this.lawyerId),"lawyerConsult"==this.$route.name&&(e.goods_type=this.$route.params.consult_type),$http.post(this.httpUrl,e,"正在加载中...").then((function(a){var e=a.result,i=a.msg,r=a.data;e?(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 a=this.page+1,e={page:a};"lawyerConsult"==this.$route.name&&(e.goods_type=this.$route.params.consult_type),$http.post(this.httpUrl,e,"正在加载更多数据中...").then((function(e){var i=e.result,r=e.msg,o=e.data;t.isLoadMore=!0,i?(t.page=a,t.listData=t.listData.concat(o.list.data)):t.$toast(r)}))}}},watch:{search:function(t){var a=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout((function(){a.getdata(t)}),300)},lawyers:function(t){t&&t.length>0&&(this.listData=t)},immediate:!0},components:{yzBlank:r["default"]}}},"56be":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".isPc[data-v-d1a9ce24]{max-width:375px}.btn[data-v-d1a9ce24]{position:absolute;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-d1a9ce24] .van-button--normal{width:100%;border-radius:.3571rem}.van-search__content[data-v-d1a9ce24]{border-radius:1rem!important}.list[data-v-d1a9ce24]{background-color:#fff;padding-bottom:1rem;position:relative;height:100vh;overflow-y:auto}.text-left[data-v-d1a9ce24]{text-align:left}.flex[data-v-d1a9ce24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.between[data-v-d1a9ce24]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mr-1[data-v-d1a9ce24]{margin-right:1rem}.life[data-v-d1a9ce24]{margin-right:.325rem}.c-6b6b6b[data-v-d1a9ce24],.life[data-v-d1a9ce24]{color:#6b6b6b}.domain-nickName[data-v-d1a9ce24]{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}img[data-v-d1a9ce24]{margin:0;width:3rem;height:3rem;border-radius:100px;-o-object-fit:cover;object-fit:cover;border:1px solid #fff;margin-right:.6428rem}.item[data-v-d1a9ce24],.lawyer[data-v-d1a9ce24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:.714rem;margin-top:1.3571rem}.lawyer-title[data-v-d1a9ce24]{color:#daa032;font-size:.857rem}.lawyer-detail[data-v-d1a9ce24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#searchList[data-v-d1a9ce24]{background-color:#fff}.warpper[data-v-d1a9ce24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding:1rem}.current[data-v-d1a9ce24],.name[data-v-d1a9ce24]{width:4.285rem;height:1.5714rem;line-height:1.5714rem;border-radius:2px;border:1px solid #bdbdbd;text-align:center;margin:.2rem}.current[data-v-d1a9ce24]{border:1px solid #f5b435;color:#f5b435}",""]),t.exports=a},"79db":function(t,a,e){t.exports=e.p+"static/app/img/empty-image-search.ef236a93.png"},"8b63":function(t,a,e){"use strict";e("aab4")},a4e7:function(t,a,e){"use strict";e("2463")},a6b4:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".name[data-v-5b182ab8]{font-size:1rem}.footer-distance[data-v-5b182ab8]{margin-left:3rem;font-size:.75rem}.lawyer-platform[data-v-5b182ab8]{background-color:#fff;padding:.94rem}.lawyer-platform .lawyer[data-v-5b182ab8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:1.8rem}.btn[data-v-5b182ab8]{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-5b182ab8] .van-button--normal{width:100%;border-radius:.3571rem}.mr-1[data-v-5b182ab8]{margin-right:1rem}.life[data-v-5b182ab8]{margin-top:.94rem;margin-right:.25rem;color:#6b6b6b}.lawfirm[data-v-5b182ab8],.life[data-v-5b182ab8]{font-size:.75rem}.lawfirm[data-v-5b182ab8]{margin-right:.3rem}.domain-nickName[data-v-5b182ab8]{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-5b182ab8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.between[data-v-5b182ab8]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[data-v-5b182ab8] .van-tabs__line{background-color:#daa032}[data-v-5b182ab8] .van-tab--active{color:#daa032!important}.operators[data-v-5b182ab8]{background-color:#fff;height:100%;padding-bottom:5rem}.info[data-v-5b182ab8]{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-5b182ab8],.contact-way[data-v-5b182ab8]{color:#6b6b6b}.contact-way[data-v-5b182ab8]{font-size:.8rem}.title[data-v-5b182ab8]{text-align:right}.lawyer-title[data-v-5b182ab8]{color:#daa032;font-size:.75rem}div.item[data-v-5b182ab8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:.714rem;margin-top:1.3571rem}img[data-v-5b182ab8]{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-5b182ab8]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.footer[data-v-5b182ab8],.lawyer-detail[data-v-5b182ab8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.footer[data-v-5b182ab8]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-right:1rem}",""]),t.exports=a},aab4:function(t,a,e){var i=e("56be");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("499e").default;r("b549d0ac",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,a,e){"use strict";e.d(a,"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(){}}}},e973:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"list",class:{isPc:t.fun.isPc()}},[e("c-title",{attrs:{hide:!1,text:"律所管理"}}),e("van-search",{attrs:{placeholder:"请输入搜索关键词"},model:{value:t.search,callback:function(a){t.search=a},expression:"search"}}),e("lawyerPlatform",{attrs:{httpUrl:t.httpUrl,search:t.search,lawyerId:t.lawyerId}}),e("div",{staticClass:"btn",style:t.fun.isPc()?"width:375px":"width:100%"},[e("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("邀请律师")])],1)],1)},r=[],o=(e("e7e5"),e("d399")),s=(e("ac1f"),e("5319"),e("fbd6")),l={components:{lawyerPlatform:s["default"]},data:function(){return{httpUrl:"plugin.lawyer-platform.frontend.controllers.lawyer-firm.getLawyerList",lawyerId:"",search:""}},mounted:function(){},computed:{type_link:function(){var t=window.location.href,a=localStorage.getItem("uid");return t=t.replace("".concat(this.$route.path),"applyFor?apply_for=lawYerManagement&share=lawYerManagement&merchant_member_id="+a),t=t.replace("?i","&i"),t}},methods:{handle:function(){this.$router.push(this.fun.getUrl("lawyerPlatformApplyFor",{},{apply_for:"lawYerManagement"}))},onCopy:function(){Object(o["a"])({message:"复制成功",position:"bottom",duration:5e3})}}},n=l,d=(e("8b63"),e("2877")),c=Object(d["a"])(n,i,r,!1,null,"d1a9ce24",null);a["default"]=c.exports},fbd6:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"lawyer-platform"},[t._l(t.listData,(function(a,i){return e("div",{key:i,staticClass:"lawyer"},[e("img",{attrs:{src:a.avatar_image},on:{click:function(e){return t.to(a.id)}}}),e("div",{staticClass:"info"},[e("div",{staticClass:"flex between"},[e("span",{staticClass:"name"},[t._v(t._s(a.name))]),e("div",{staticClass:"title"},[e("div",{staticClass:"lawyer-title mr-1"},[t._v(t._s(a.title))])])]),e("div",{staticClass:"lawyer-detail"},[e("span",{staticClass:"life"},[t._v("职业"+t._s(a.year)+"年")]),t._l(a.category_data,(function(a,i){return e("span",{key:i,staticClass:"domain-nickName"},[t._v(t._s(a.title))])}))],2),e("div",{staticClass:"footer"},[e("div",{staticClass:"c-6b6b6b lawfirm"},[t._v(" "+t._s(a.city_name)+" | "),e("span",[t.lawfirmName?[t._v(t._s(t.lawfirmName))]:[t._v(" "+t._s(a.lawyer_firm?a.lawyer_firm.name:"")+" ")]],2)]),a.distance?e("div",{staticClass:"footer-distance"},[t._v(t._s(a.distance))]):t._e()])])])})),e("yz-blank",{attrs:{datas:t.listData}})],2)},r=[],o=e("3e91"),s={mixins:[o["a"]],props:{search:String,httpUrl:{type:String,default:"plugin.lawyer-platform.frontend.controllers.merchant.getLawyer"},lawyers:{type:Array,default:function(){return[]}},request:{type:Boolean,default:!0},lawyerId:{type:String,default:""},lawfirmName:{type:String,default:""}},methods:{to:function(t){this.$router.push(this.fun.getUrl("lawyerDetail",{id:t},{order_type:"lawyer"}))}}},l=s,n=(e("a4e7"),e("2877")),d=Object(n["a"])(l,i,r,!1,null,"5b182ab8",null);a["default"]=d.exports}}]); |