-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path194.865e69a5.js
2 lines (2 loc) · 2.22 KB
/
194.865e69a5.js
1
2
"use strict";(self["webpackChunkcroffle_frontend"]=self["webpackChunkcroffle_frontend"]||[]).push([[194],{5485:function(e,a,c){c.r(a),c.d(a,{default:function(){return M}});var s=c(3396),r=c(9242),l=c(7139);const i={class:"container"},t={class:"recommend"},n=(0,s._)("header",{class:"page-title"},"인기 카페",-1),_=(0,s._)("div",{class:"guide"},"좋아요, 평점이 높은 크로플 카페를 공유해요!",-1),d={class:"select__wrapper"},o=(0,s._)("option",{value:"liked"},"좋아요 순",-1),f=(0,s._)("option",{value:"review"},"평점순",-1),u=[o,f],m={class:"card__wrapper--column"},p={class:"card__addr"},v={class:"card__wrapper--row"},w={class:"card__ic"},h=["src"],g={class:"card__ic"},k=["src"],D={class:"card__ic"},C=(0,s._)("i",{class:"fas fa-star fa-1x"},null,-1);function z(e,a,c,o,f,z){return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",t,[n,_,(0,s._)("div",d,[(0,s.wy)((0,s._)("select",{"onUpdate:modelValue":a[0]||(a[0]=e=>f.filter=e),onChange:a[1]||(a[1]=e=>z.recommendCafe(this.filter))},u,544),[[r.bM,f.filter]])]),(0,s._)("div",m,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(f.cafeData,(e=>((0,s.wg)(),(0,s.iD)("div",{key:e,class:"recommend__card"},[(0,s._)("div",null,[(0,s._)("span",{onClick:a[2]||(a[2]=(...e)=>z.showDetail&&z.showDetail(...e)),class:"card__name"},(0,l.zw)(e.name),1),(0,s._)("span",p,(0,l.zw)(e.roadaddr),1)]),(0,s._)("div",v,[(0,s._)("div",w,[(0,s._)("img",{src:f.ic__like},null,8,h),(0,s._)("span",null,(0,l.zw)(e.liked_count),1)]),(0,s._)("div",g,[(0,s._)("img",{src:f.ic__rate},null,8,k),(0,s._)("span",null,(0,l.zw)(e.review_count),1)]),(0,s._)("div",D,[C,(0,s._)("span",null,(0,l.zw)(e.rate),1)])])])))),128))])])])}var b=c.p+"img/review.6399ad6b.svg",y=c.p+"img/heart.103e0f89.svg",$=c(6265),H=c.n($),x={data(){return{ic__rate:b,ic__like:y,filter:"liked",cafeData:[]}},created(){let e=!0;this.$store.commit("isHeaderActive",e),this.recommendCafe(this.filter)},methods:{async recommendCafe(e){try{console.log("추천 게시판");const{data:a}=await H().get(` http://34.64.32.174:8080/cafe/recommend?filter=${e}`);console.log(a),this.cafeData=a.data}catch(a){console.log(a.message)}},showDetail(){this.$router.push("/cafe/17")}}},A=c(89);const K=(0,A.Z)(x,[["render",z]]);var M=K}}]);
//# sourceMappingURL=194.865e69a5.js.map