1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ce5be606"],{"13db":function(t,e,i){var a=i("e806");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("54dfc9cd",a,!0,{sourceMap:!1,shadowMode:!1})},84102:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"appointment-search"}},[a("div",{staticClass:"search_box",style:{width:3==t.fun.getPhoneEnv()?"375px":""}},[a("ul",{staticClass:"search"},[a("li",{staticClass:"left"},[a("span",[t._v(t._s(t.appointmentLang.project)+"列表")])]),a("li",{staticClass:"right"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],attrs:{type:"text",title:"搜索",placeholder:"搜索"+t.appointmentLang.project},domProps:{value:t.name},on:{keypress:t.enterSearch,input:function(e){e.target.composing||(t.name=e.target.value)}}}),a("i",{staticClass:"iconfont icon-sousuo",on:{click:function(e){return t.search(1)}}})])]),a("div",{staticClass:"box"},[a("div",{staticClass:"box-left",class:[t.show1?"activeColour":""],on:{click:t.showClass}},[a("span",[t._v(t._s(t.category.name||"全部"))]),a("i",{staticClass:"iconfont icon-member-bottom",staticStyle:{"vertical-align":"middle"}})]),a("div",{staticStyle:{flex:"1"},on:{click:t.evaluateBtn}},[a("div",{staticClass:"box-right"},[a("span",{class:[t.show1?"":"activeColour"]},[t._v("评价")]),a("div",{staticClass:"icon-box"},[a("i",{staticClass:"iconfont icon-member-top",class:[t.show1?"":"asc"==t.sort?"activeColour":""]}),a("i",{staticClass:"iconfont icon-member-bottom",class:[t.show1?"":"desc"==t.sort?"activeColour":""]})])])]),a("van-popup",{staticStyle:{transform:"translateX(-50%)",left:"50%"},attrs:{closeable:"","close-icon":"close",position:"top"},model:{value:t.show1,callback:function(e){t.show1=e},expression:"show1"}},[a("div",{staticClass:"popup-box"},[a("div",{staticStyle:{margin:"0.3rem 0.5rem"},on:{click:function(e){return t.selectionBtn("")}}},[a("p",[t._v("全部")])]),t._l(t.CategoryList,(function(e,i){return a("div",{key:i,staticStyle:{margin:"0.3rem 0.5rem"},on:{click:function(i){return t.selectionBtn(e)}}},[a("p",[t._v(t._s(e.name))])])}))],2)])],1)]),a("div",{staticStyle:{height:"5rem"}}),a("div",{staticClass:"list"},t._l(t.commentList,(function(e,i){return a("div",{key:i,staticClass:"list-item",on:{click:function(i){return t.goProjectDetails(e.id)}}},[a("div",{staticClass:"item-left"},[a("img",{attrs:{src:e.thumb,alt:""}})]),a("div",{staticClass:"item-right"},[a("p",{staticClass:"title",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(t._s(e.title))]),a("div",{staticClass:"talk"},[a("i",{staticClass:"iconfont icon-liaotian"}),a("span",[t._v(t._s(e.comment_num||0))])])])])})),0),a("div",{staticStyle:{height:"4rem"}}),a("div",{staticClass:"appointment-bottom",style:{width:3==t.fun.getPhoneEnv()?"375px":""}},[a("div",{staticClass:"item"},[a("router-link",{attrs:{to:t.fun.getUrl("Appointment")}},[a("img",{attrs:{src:i("9102"),alt:""}}),a("p",[t._v("首页")])])],1),a("div",{staticClass:"item active"},[a("router-link",{attrs:{to:t.fun.getUrl("ProjectList")}},[a("img",{attrs:{src:i("d81a"),alt:""}}),a("p",[t._v(t._s(t.appointmentLang.project))])])],1),a("div",{staticClass:"item"},[a("router-link",{attrs:{to:t.fun.getUrl("AppointmentMine")}},[a("img",{attrs:{src:i("a7a1"),alt:""}}),a("p",[t._v("我的")])])],1)])])},o=[],s=(i("e7e5"),i("d399")),n=(i("ac1f"),i("841c"),i("b0c0"),i("4e82"),i("99af"),i("1276"),i("d3b7"),i("25f0"),i("e9c4"),i("6968")),c=i("ac0d"),r={mixins:[c["a"]],data:function(){return{show1:!1,sort:"asc",category:{},name:"",point:{},city:"",isLoadMore:!0,page:1,total_page:0,titleInfo:"",commentList:[],CategoryList:[]}},activated:function(){var t=this;this.init(),this.fun.getLocation().then((function(e){t.point=e.point,t.address=e.title,t.city=e.city,t.search()})).catch((function(t){})),this.getCategoryList()},computed:{appointmentLang:function(){return this.$store.state.shopLanguage.appointment?this.$store.state.shopLanguage.appointment:{worker:"技师",project:"项目",service:"服务"}}},methods:{init:function(){this.category={},this.name="",this.sort="asc",this.show1=!1,this.page=1,this.isLoadMore=!0,this.total_page=0,this.commentList=[]},getCategoryList:function(){var t=this;$http.post("plugin.appointment.frontend.project-category.get-list",{},"获取中").then((function(e){1===e.result?t.CategoryList=e.data:t.$dialog.alert({message:e.msg})})).catch((function(t){}))},selectionBtn:function(t){t.name?this.category=t:this.category={},this.page=1,this.isLoadMore=!0,this.total_page=0,this.search(),this.show1=!1},goProjectDetails:function(t){this.$router.push(this.fun.getUrl("ProjectDetails",{project_id:t}))},enterSearch:function(t){13===t.keyCode&&(t.preventDefault(),this.page=1,this.isLoadMore=!0,this.total_page=0,this.search())},search:function(t){var e=this;t&&(this.page=t,this.isLoadMore=!0,this.total_page=0),$http.post("plugin.appointment.frontend.project.get-list",{lng:this.point.lng,lat:this.point.lat,city_name:this.city,sort:this.sort,category_id:this.category.id,name:this.name,page:this.page},"获取中").then((function(t){e.fun.setWXTitle(e.appointmentLang.project+"详情"),1===t.result?(e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.commentList=t.data.data):e.$dialog.alert({message:t.msg})})).catch((function(t){}))},showClass:function(){this.show1?this.show1=!1:this.show1=!0},evaluateBtn:function(){"asc"==this.sort?this.sort="desc":this.sort="asc",this.show1=!1,this.page=1,this.isLoadMore=!0,this.total_page=0,this.search()},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.post("plugin.appointment.frontend.project.get-list",{lng:this.point.lng,lat:this.point.lat,city_name:this.city,sort:this.sort,category_id:this.category.id,name:this.name,page:this.page},"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.commentList=t.commentList.concat(i)}),(function(t){})))},getLocation:function(){var t=this,e=new AMap.Map("iCenter");function i(e){var i=e.position.toString().split(",");t.point={lat:i[1],lng:i[0]},t.address=e.formattedAddress,t.title=e.formattedAddress,t.city=t.fun.isTextEmpty(e.addressComponent.city)?e.addressComponent.province:e.addressComponent.city;var a={address:e.formattedAddress,city:t.city,title:e.formattedAddress,point:t.point};t.$store.commit("updateLocation",a),t.$store.commit("setLocation",a),window.localStorage.setItem("myLocation",JSON.stringify(a)),s["a"].clear(),t.search()}function a(t){Object(s["a"])("定位失败")}s["a"].loading({message:"正在定位",forbidClick:!0}),e.plugin("AMap.Geolocation",(function(){var t=new AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4,maximumAge:0,convert:!0,showButton:!0,buttonPosition:"LB",buttonOffset:new AMap.Pixel(10,20),showMarker:!0,showCircle:!0,panToLocation:!0,zoomToAccuracy:!0});e.addControl(t),t.getCurrentPosition(),AMap.event.addListener(t,"complete",i),AMap.event.addListener(t,"error",a)}))}},components:{cTitle:n["a"]}},l=r,d=l,p=(i("9f09"),i("2877")),f=Object(p["a"])(d,a,o,!1,null,"3caf23e4",null);e["default"]=f.exports},9102:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAz5JREFUeNrsWk9IFGEUn1k3QuyQEVSXiA5hSBDMElr4p8MWIUGkhISH6NDBSxJRgYcMSrBC6pLQQQqkIkq6SKCHIghi2/WyB6FDRAiVRHUoJNKm38sn2Or3zYy92ZlZvgc/3rL7fd/7/Zz33nzzObbrulYlW8qqcDMCk27p0i9s2xYPks/nt8HdBA7xV0+B05lM5p10rNKeYi/7QlggxB2AewDUlvz0FeiEyPFECoQwWug8cEVTCr+BXmAAQt3ECIS4dXB3gHafUx4DJyDye+wFQtwOuCfAzoBTp4AjEPlGUmBKuN4Ow+VWIc7iOTleQ8xEriDX20WGyqipHOfP91ZoOkvtEmE1dSmeohC3Hm4EaNMMK3L6veU52zmNd2nmjAFdmPMtshQF0XpOSZ24+0Djojgy/tzIv6msjVO2PpIUReAO7pQ1iiHzwDmIGfRY5wzcVaBKMeQHd9hHZUlRECIi/UReM+wzcAyknvn8Y+2Hewhs1AwboHsm1pwPTSCIbOBdSVbHl+5/IPI+YLpv5fthRjNsgnc/X8RrEAR2w016iLsLNAUVx3VJc5p4DZVR7EnmIleDWLAL7jZQrVjnF9ADkreE7qfdcDeANYohs8ApxBv5rxRFIHrauE47fw2fj0AHgr0U3jTsg6PGslkzjJ5QziL2XGCBCLCJC79ZE+AVcBQBPoTxLAcOW+BGgQbNsBfc0D75rkEsvIebhU7cENASljiuS1q7hWOprHmB8l/O3jVYKBRo4HNNvf0EuhF8uJxP5hBwEo5qfK2mLlsdx8l5XcFrGnHT3CXLKo6v5jB32WnFkGrm7pmiexUL0FV1EOh1VOcrHNthLpYf7ik/5zS8+88iwEzUh0jMIcucPLn7vdFPLG3FMRA5x7saTzPnokagEWgEGoFGoBFYwZYW2unTOnTMVyvEiw6JxyR2T2khQpethf8kSRqdol2IS4rWhZBddaYGyygwjHdR3DgJHA9BoMiaIk0G3W4InXTUUh91BLXZxVOyuHRRS4qQudEbgWartqJ18ttKcbIGSYEHGSZFkyCwmGA9RT8C+xIssM9TIG7YtCOhd8ymEiSMuLYz93/MNu9sG4FGYKT2R4ABAGSzOml4pcm1AAAAAElFTkSuQmCC"},"9f09":function(t,e,i){"use strict";i("13db")},a7a1:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAttJREFUeNrsmcFLG0EUxndLihRKa8+C57R4EJJaPIrszZKznmPanARD/4N6Egs9JZqc41n0FkqOoibQg7SeC55rRRBRSL8pz8s6s/t2O9mdXWfgY2C683y/zHszb6buaDRy8tyeODlvFtACWsB0W8E/4LquNuODweA1umVoAZqBJumfLqBTqA/tlsvln7r+pv9UcB8MaAAEWBHdJrTEnHIAfQLomfGAgPuA7is0EXHqDbQGyG2dgFpzEHCf0bViwDk0p0U2tDVtK0gr19Lk18e4KzmWEKWc+x6wcr+gPeg+x8T3FWg6IFxn4+Skn6eg6RffVMBdQw2oDWfvfD/KOrpVaAt6JglXYfN96iFKR8EPBdwiwA5D5s+j+yaBFO1N1CNkHJvMsmK8EQYnGn3TiGg70UpmQZFz7Qg22jSHYztxwBnJ2J4/50JW8Y42IY7txAEnJWNxKpIzpm1bbOsGvJCMFWPYKTJtJw54KhmrYPtnn7H0bYVpO3HAvmRsmg5xbltVVDV9EwB3FeNbdIiHrd48VTNRbCdbbMPJfcXdL6hUKwSUav/uiJgTuVR7dMV27q9L2s5BcmhDg6mN/73V2ycLDSs5Sw9J3HZAObet25+xvKr57or5ezZMs409RPNYbBvdChFzSsTvy5R9/oOcZf+vbWgOAmoOXRXyoCnoacqAt9A51IM6gD2OtckA7AW6JrRieBR2oTpAL9mABCd+obmMpJpYRU9AcnfRZobgHPK1ycrB4XAoPj7K6Kb5rlQqHYftolXFZHF12YF+pwzxCqop3nCqFK6BgJ4C7i1i/MqEZcIeIR6KTySQHuegn5KM7ZgCRwX9FUVTqO+PslQ7l4zVEBbPTXGafKlxfJflYM95+OQnYv0Ehk3fZHocwI4jf9MUBr8YHpGd0BCl2q6bwXTr+uvSoE2m7j9PMlCq1dn3QSpcvYysZPe+DrXXJftkYQEtoAW0gBHbXwEGAKPzSTtZ4fcyAAAAAElFTkSuQmCC"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},d81a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAArhJREFUeNrsmk1oE0EUx2d2t0lMxRZpE91iK3oWQSi9iSdbqlfvrRfpwQ/QevIoHoy5ePPQ2ksPvfUgVEWK9qD0IpQi+AHiV6PdFIohwcR0d/yPHaWWSNbNhIzlDfwzCTt5vN/svDdvkuVCCLaTm8V2eCNAAjS8OWEGlaZcju4CdBVyt10uQ9ndo5+vyQ/Fu/uPopuEjv2jL8+hs7CzpOxcR3cZSmwbl4NuQrfbR3J1MyQPk0UBeAVdps6w09B96C3UG3HCP0CHoCHoXp2x4wC8pWuJjocY0w8dbgCOqe9KGwOafAoNmAox5iO0Im94A4AlZeO9Jp+0JZmn0DTiRzo4Bn2PYEN+Z0zZmFY2G25hY7DWIBlvd6BVaBGOBb8uIEGkVZKJh/SjIpMMbKxusWGppSptnVNx+UdDDHItWfQv7QEcmq11QTk618jMqwl7pmAP1gKkfZAACZAA/49aNFSeX5xIorsBDUMxnU4Gawt7fO9hawEV3MXmrDOn9XeQiWA4KCwz8U1WWlF/BuGM7+phVscRbdGjDdBfmXGDwgs9c1V8zeyeM+YkGVlpAK5dW8x9XWKium5UFo1rjzvhmwOIuvEVYqeii40n+xiPdZkVg07vqOevPTkgyjmZcCKSWYwnXGZ3nzBvH2R2IrDTg1TJEKCppdrPxFfxmI4Y5PGUeYB+fr4jyM/rCefUSWZ1HTdqo+8O8o87tU2W9wgvJaNicB/qD53nByY2ikYBvuRtnRvaNvrYXrM2elQy1fLCec//MueKMk4TUf9U5ZunCTt9Cu9ts5IMj6erTt8I7YMESIAESIAESIAESIBGnAcHcUx697v+LywnGXea4mRQfNMSwCG25W9l/9MMLVGTAT0Dffd0AmYMBMzoBMxCl9jmg3AtXnNt68qXbKhzKj3STIAESIDNbD8EGAB5hM0EjqyNwwAAAABJRU5ErkJggg=="},e806:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".appointment-bottom[data-v-3caf23e4]{position:fixed;bottom:0;background-color:#fff;text-align:center;width:100%;padding:.3rem 0}.appointment-bottom[data-v-3caf23e4],.appointment-bottom .item[data-v-3caf23e4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.appointment-bottom .item[data-v-3caf23e4]{-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;color:#ccc}.appointment-bottom .item img[data-v-3caf23e4]{width:1.5rem;height:1.5rem}.appointment-bottom .active[data-v-3caf23e4]{color:#f49f19}.search_box[data-v-3caf23e4]{position:fixed;width:100%}.search_box .search[data-v-3caf23e4]{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:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .875rem;z-index:99;margin:auto;background:#fff;text-align:center;height:2.75rem;line-height:2.75rem}.search_box .search img[data-v-3caf23e4]{width:10%;float:left;max-height:2.5rem}.search_box .search .left[data-v-3caf23e4]{font-size:18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-weight:700}.search_box .search .left i[data-v-3caf23e4]{color:#999;font-size:1rem}.search_box .search .left span[data-v-3caf23e4]{display:block;margin:0 .25rem;max-width:5.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#000}.search_box .search .left i[data-v-3caf23e4]:last-child{font-size:1.125rem}.search_box .search .right[data-v-3caf23e4]{width:14.375rem;height:1.875rem;background:#f5f5f5;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;line-height:1.875rem;border-radius:1rem;padding:0 .625rem;font-size:14px}.search_box .search .right i[data-v-3caf23e4]{font-size:1.125rem;color:#999;margin-right:.375rem}.search_box .search .right input[data-v-3caf23e4]{border:none;width:100%}.popup-box[data-v-3caf23e4]{width:100%;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:1rem}.popup-box p[data-v-3caf23e4]{padding:.1rem .5rem;display:inline-block;background-color:#fff2e6;color:#f4a82e;border-radius:1.094rem}.box[data-v-3caf23e4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:#fff;line-height:1.5rem;position:relative}.box-left[data-v-3caf23e4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.activeColour[data-v-3caf23e4]{color:#ffa300}.box-right[data-v-3caf23e4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:0 auto;width:3.5rem;color:#ccc}.box-right[data-v-3caf23e4],.icon-box[data-v-3caf23e4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.icon-box[data-v-3caf23e4]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:-.2rem}.icon-member-top[data-v-3caf23e4]{height:.5rem}.list[data-v-3caf23e4]{background:#fff}.list-item[data-v-3caf23e4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem}.item-left[data-v-3caf23e4]{-webkit-box-flex:0;-webkit-flex:0 0 5rem;-ms-flex:0 0 5rem;flex:0 0 5rem;height:5rem;margin-right:.2rem}.item-left img[data-v-3caf23e4]{width:100%;height:100%;border-radius:.375rem}.item-right[data-v-3caf23e4]{padding:.3rem;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;text-align:left;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.item-right .title[data-v-3caf23e4]{font-weight:700;font-size:16px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2}.item-right .talk[data-v-3caf23e4]{color:#ccc}",""]),t.exports=e}}]); |