1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5638fa76","chunk-2d0d83d6","chunk-7a488808"],{2463:function(t,e,a){var i=a("a6b4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("cde347d4",i,!0,{sourceMap:!1,shadowMode:!1})},"258f":function(t,e,a){"use strict";a("725c")},2889:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".right[data-v-13b232d8] .van-button{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.goods-content[data-v-13b232d8]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.consult[data-v-13b232d8]{color:#929191;margin-bottom:.5rem}.box[data-v-13b232d8]{background-color:#fff;margin-top:1rem}.box[data-v-13b232d8],.goods-info[data-v-13b232d8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.goods-info[data-v-13b232d8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.5rem;-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;-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline}.price[data-v-13b232d8]{color:#f14e4e}",""]),t.exports=e},"360e":function(t,e,a){var i=a("8e36");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("2f09f9be",i,!0,{sourceMap:!1,shadowMode:!1})},"3e91":function(t,e,a){"use strict";a("b0c0"),a("99af");var i=a("ac0d"),s=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,s=e.data;a?(t.listData=s.list.data,t.last_page=s.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,s=a.msg,r=a.data;t.isLoadMore=!0,i?(t.page=e,t.listData=t.listData.concat(r.list.data)):t.$toast(s)}))}}},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:s["default"]}}},"45bc6":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:"detail"},[a("c-title",{attrs:{hide:!1,text:t.text}}),a("header",{staticClass:"header"},[a("div",[a("van-image",{attrs:{round:"",width:"2.5rem",height:"2.5rem",src:t.form.avatar_image}}),"office"==t.lawyer_type?a("div",{staticClass:"office-status"},[t._v(t._s(1==t.form.status?"经营":"休息"))]):t._e()],1),a("div",{staticClass:"header-info"},[a("div",{staticClass:"header-name"},[t._v(t._s(t.lawyerInfo.name)+" ")]),"lawyer"==t.lawyer_type?a("ul",{staticClass:"header-domain-wrapper"},t._l(t.domain_nickName,(function(e){return a("li",{key:e.id,staticClass:"header-domain-item"},[t._v(t._s(e.title))])})),0):t._e(),"lawyer"==t.lawyer_type?a("div",{staticClass:"header-num"},[t._v("咨询次数:"+t._s(t.lawyerInfo.consult_time))]):t._e(),"office"==t.lawyer_type?a("div",{staticClass:"header-tel"},[t._v("电话:"+t._s(t.lawyerInfo.tel))]):t._e(),"office"==t.lawyer_type?a("div",{staticClass:"header-address"},[t._v("地址:"+t._s(t.address))]):t._e()])]),a("main",{staticClass:"main"},[a("div",{staticClass:"main-box"}),"lawyer"==t.lawyer_type?a("div",{staticClass:"desc"},[a("div",{staticClass:"title"},[t._v("律师基本信息")]),a("ul",{staticClass:"desc-content"},[a("li",{staticClass:"basic-info"},[a("span",{staticClass:"key"},[t._v("性别:")]),a("span",{staticClass:"value"},[t._v(t._s("1"==t.lawyerInfo.gender?"男":"女"))])]),a("li",{staticClass:"basic-info"},[a("span",{staticClass:"key"},[t._v("职业年限:")]),a("span",{staticClass:"value"},[t._v(t._s(t.lawyerInfo.year)+"年")])]),a("li",{staticClass:"basic-info"},[a("span",{staticClass:"key"},[t._v("职称:")]),a("span",{staticClass:"value"},[t._v(t._s(t.lawyerInfo.title))])]),a("li",{staticClass:"basic-info",on:{click:t.link}},[a("span",{staticClass:"key"},[t._v("所属律所:")]),a("span",{staticClass:"value"},[t._v(t._s(t.lawfirmName))])]),a("li",{staticClass:"basic-info"},[a("span",{staticClass:"key"},[t._v("服务区域:")]),a("span",{staticClass:"value"},[t._v(t._s(t.lawyerInfo.show_address))])]),a("li",{staticClass:"basic-info"},[a("span",{staticClass:"key"},[t._v("执业证号:")]),a("span",{staticClass:"value"},[t._v(t._s(t.lawyerInfo.number))])]),a("li",{staticClass:"basic-info"},[a("div",{staticClass:"key photo"},[t._v("执业照片:")]),a("van-image",{attrs:{width:"7.5rem",height:"7.5rem",src:t.lawyerInfo.number_thumb_image}})],1)])]):t._e(),a("div",{staticClass:"desc"},[a("div",{staticClass:"title"},[t._v("简介")]),a("div",{staticClass:"desc-content"},[t._v(t._s(t.lawyerInfo.introduction))])]),"office"==t.lawyer_type?[a("div",{staticClass:"desc"},[a("div",{staticClass:"title"},[t._v("资质")]),a("van-image",{attrs:{width:"7.5rem",height:"7.5rem",src:t.lawyerInfo.thumb_image}})],1),a("div",{staticClass:"lawyer"},[a("div",{staticClass:"title"},[t._v("律师")]),a("keep-alive",[a("lawyerPlatform",{attrs:{request:!1,lawyers:t.lawyerInfo.lawyers,lawfirmName:t.lawyerInfo.name}})],1)],1)]:t._e(),"lawyer"==t.lawyer_type?a("div",{staticClass:"lawyer-serve"},[a("div",{staticClass:"title"},[t._v("服务")]),a("keep-alive",[a("lawyerServe",{attrs:{listServe:t.listServe},on:{consult:t.consultHandle}})],1)],1):t._e()],2)],1)},s=[],r=(a("4056"),a("44bf")),l=(a("b0c0"),a("4de4"),a("d3b7"),a("159b"),a("fbd6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"serve"},t._l(t.listServe,(function(e){return a("div",{key:e.id,staticClass:"box",on:{click:function(a){return t.pay(e)}}},[a("van-image",{staticClass:"goods-img",attrs:{width:"6.5rem",height:"6.5rem",src:e.goods.thumb}}),a("div",{staticClass:"goods-info"},[a("div",{staticClass:"goods-title"},[t._v(t._s(e.goods.title))]),a("div",{staticClass:"goods-content"},[a("div",{staticClass:"left"},[a("div",{staticClass:"consult"},[t._v(t._s(0==e.consult_type?"电话咨询":"在线咨询"))]),a("div",{staticClass:"price"},[t._v("¥"+t._s(e.amount))])]),a("div",{staticClass:"right"},[a("van-button",{attrs:{color:"#daa032",size:"small"}},[t._v("立即咨询")])],1)])])],1)})),0)},n=[],d=a("3e91"),c={mixins:[d["a"]],props:{listServe:{type:Array}},methods:{pay:function(t){this.$emit("consult",t)}},components:{VanImage:r["a"]}},f=c,m=(a("258f"),a("2877")),b=Object(m["a"])(f,o,n,!1,null,"13b232d8",null),p=b.exports,u={data:function(){return{text:"",lawyer_type:"",order_type:"",httpUrl:"",lawyerId:"",listServe:[],domain_nickName:[],lawyerInfo:{},lawfirmName:"",address:"",form:{avatar:"",status:1,introduction:"",thumb_image:"",address:""},streetId:"",areaId:"",cityId:"",provinceId:"",streetName:"",id:""}},methods:{consultHandle:function(t){var e=this,a=t.amount,i=t.consult_type,s=t.goods_id,r=t.service_day,l={service_day:r,goods_id:s,l_id:this.lawyerInfo.id,price:a,service_type:0==i?1:2,l_name:this.lawyerInfo.name,lf_id:this.lawyerInfo.lf_id,lf_name:this.lawyerInfo.lawyer_firm.name,lf_province_name:this.lawyerInfo.lawyer_firm.lf_province_name,lf_city_name:this.lawyerInfo.lawyer_firm.lf_city_name,lf_area_name:this.lawyerInfo.lawyer_firm.lf_area_name,lf_street_name:this.lawyerInfo.lawyer_firm.lf_street_name,lf_address_detail:this.lawyerInfo.lawyer_firm.address_detail};$http.post("plugin.lawyer-platform.frontend.controllers.create",l).then((function(t){if(1==t.result){var a=t.data.order_ids;e.$router.push(e.fun.getUrl("orderpay",{order_ids:a}))}else e.$toast(t.msg)}))},link:function(){this.text="律所详情",this.$router.push(this.fun.getUrl("lawyerDetail",{id:this.lawyerInfo.lf_id},{order_type:"office"}))},getData:function(){var t=this,e="lawyer"==this.lawyer_type?"plugin.lawyer-platform.frontend.controllers.lawyer.getDetail":"plugin.lawyer-platform.frontend.controllers.lawyer-firm.getDetail";$http.post(e,{id:this.id}).then((function(e){if(1==e.result){var a=e.data.detail;if(t.lawyerInfo=a,t.domain_nickName=a.category_data,"office"==t.lawyer_type){t.areaId=a.address.area,t.cityId=a.address.city,t.provinceId=a.address.province,t.form.avatar_image=a.logo_image,t.streetId=a.address.stree;var i=JSON.parse(localStorage.getItem("province")),s=JSON.parse(localStorage.getItem("city")),r=JSON.parse(localStorage.getItem("district")),l=i.filter((function(e){return e.id==t.provinceId})),o=s.filter((function(e){return e.id==t.cityId})),n=r.filter((function(e){return e.id==t.areaId}));t.address=l[0].areaname+o[0].areaname+n[0].areaname,t.getStreet()}else t.lawfirmName=a.lawyer_firm.name,t.listServe=a.goods,t.form.avatar_image=a.avatar_image;t.form.status=a.status}}))},getStreet:function(){var t=this;$http.get("member.memberAddress.street",{district_id:this.areaId}).then((function(e){1!==e.result||t.fun.isTextEmpty(e.data)||(t.streetId&&e.data.forEach((function(e){e.id==t.streetId&&(t.streetName=e.areaname)})),!t.fun.isTextEmpty(e.data)&&e.data.length>0&&(t.address+=t.streetName))})).catch((function(e){t.strShow=!1}))}},activated:function(){0!==document.documentElement.scrollTop&&document.documentElement.scrollTo(0,0),this.lawyer_type=this.$route.query.order_type,this.id=this.$route.params.id,"office"==this.$route.query.order_type?(this.text="律所详情",this.httpUrl="plugin.lawyer-platform.frontend.controllers.lawyer-firm.getLawyerList",this.lawyerId=this.$route.params.id):this.text="律师详情",this.getData()},components:{VanImage:r["a"],lawyerPlatform:l["default"],lawyerServe:p}},y=u,v=(a("5df8"),Object(m["a"])(y,i,s,!1,null,"46f8b924",null));e["default"]=v.exports},"5df8":function(t,e,a){"use strict";a("360e")},"725c":function(t,e,a){var i=a("2889");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0c63d7bc",i,!0,{sourceMap:!1,shadowMode:!1})},"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},"8e36":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".lawyer-serve[data-v-46f8b924]{padding:1rem}.office-status[data-v-46f8b924]{border:1px solid grey;padding:.1rem .8rem;margin-top:.6rem}.header-domain-wrapper[data-v-46f8b924]{margin-top:.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.header-domain-wrapper .header-domain-item[data-v-46f8b924]{padding:.2rem .3rem;text-align:center;border-radius:2px;border:1px solid grey;font-size:.5rem;margin:.2rem}.detail[data-v-46f8b924]{background-color:#fff}.detail .photo[data-v-46f8b924]{margin-bottom:.5rem}.detail .basic-info[data-v-46f8b924]{margin:.5rem 0}.detail .key[data-v-46f8b924]{color:#6b6b6b}.detail .value[data-v-46f8b924]{color:#1f1f1f}.title[data-v-46f8b924]{color:#282828;margin-bottom:.8rem}.main .desc[data-v-46f8b924]{padding:1rem 1rem 0;overflow:hidden}.main .desc[data-v-46f8b924],.main .lawyer[data-v-46f8b924],.main .title[data-v-46f8b924]{text-align:left}.main .lawyer[data-v-46f8b924]{margin-bottom:1.8rem;overflow:hidden}.main .lawyer .title[data-v-46f8b924]{margin-left:1rem}.main .desc-content[data-v-46f8b924]{color:#6b6b6b}.header[data-v-46f8b924]{padding:1rem;background-color:#f5d377}.header[data-v-46f8b924],.header-info[data-v-46f8b924]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.header-info[data-v-46f8b924]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline;margin-left:.5rem}.header-info .header-name[data-v-46f8b924]{font-size:1rem}.header-info .header-address[data-v-46f8b924],.header-info .header-tel[data-v-46f8b924]{margin-top:.8rem;color:#3f3f3f;font-size:.8rem}",""]),t.exports=e},a4e7:function(t,e,a){"use strict";a("2463")},a6b4:function(t,e,a){var i=a("24fb");e=i(!1),e.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=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=document.documentElement,s=document.body,r={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},fbd6: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:"lawyer-platform"},[t._l(t.listData,(function(e,i){return a("div",{key:i,staticClass:"lawyer"},[a("img",{attrs:{src:e.avatar_image},on:{click:function(a){return t.to(e.id)}}}),a("div",{staticClass:"info"},[a("div",{staticClass:"flex between"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),a("div",{staticClass:"title"},[a("div",{staticClass:"lawyer-title mr-1"},[t._v(t._s(e.title))])])]),a("div",{staticClass:"lawyer-detail"},[a("span",{staticClass:"life"},[t._v("职业"+t._s(e.year)+"年")]),t._l(e.category_data,(function(e,i){return a("span",{key:i,staticClass:"domain-nickName"},[t._v(t._s(e.title))])}))],2),a("div",{staticClass:"footer"},[a("div",{staticClass:"c-6b6b6b lawfirm"},[t._v(" "+t._s(e.city_name)+" | "),a("span",[t.lawfirmName?[t._v(t._s(t.lawfirmName))]:[t._v(" "+t._s(e.lawyer_firm?e.lawyer_firm.name:"")+" ")]],2)]),e.distance?a("div",{staticClass:"footer-distance"},[t._v(t._s(e.distance))]):t._e()])])])})),a("yz-blank",{attrs:{datas:t.listData}})],2)},s=[],r=a("3e91"),l={mixins:[r["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"}))}}},o=l,n=(a("a4e7"),a("2877")),d=Object(n["a"])(o,i,s,!1,null,"5b182ab8",null);e["default"]=d.exports}}]); |