13a27606 by zhangmeng

新数据

1 parent 682aad45
...@@ -278,4 +278,40 @@ li.el-select-dropdown__item { ...@@ -278,4 +278,40 @@ li.el-select-dropdown__item {
278 @media (max-width: 800px) { 278 @media (max-width: 800px) {
279 .box{width: 96%} 279 .box{width: 96%}
280 } 280 }
281
282 .hz-tag{
283 border-radius: 13px;
284 height: 25px;
285 line-height: 25px;
286 font-size: 12px;
287 font-weight: 400;
288 padding: 0 15px;
289 }
290 .tag1{
291 background: rgba(50, 177, 108, 0.2);
292 color:rgba(50, 177, 108, 1);
293 }
294 .tag2{
295 background-color: rgba(243, 152, 0, 0.2);
296 color: #F39800;
297 }
298 .tag3{
299 background-color: rgba(0, 160, 233, 0.2);
300 color: #00A0E9;
301 }
302 .tag4{
303 background-color: rgba(247, 64, 166, 0.2);
304 color: #F740A6;
305 }
306 .hz-row{
307 font-size: 14px;
308 font-weight: 400;
309 color: #929AA0;
310 margin-bottom: 16px;
311
312 }
313 .sign{
314 color: #493CEB;
315 }
316
281 </style> 317 </style>
......
...@@ -404,6 +404,12 @@ export const constantRoutes = [ ...@@ -404,6 +404,12 @@ export const constantRoutes = [
404 meta: { title: 'Makeup Appointment' } 404 meta: { title: 'Makeup Appointment' }
405 }, 405 },
406 { 406 {
407 path: 'makeUp/:cptId/:id',
408 component: () => import('@/viewsPc/booking/makeUpDetail'),
409 name: 'makeUpDetail',
410 meta: { title: 'Makeup Appointment' }
411 },
412 {
407 path: 'photography/:cptId', 413 path: 'photography/:cptId',
408 component: () => import('@/viewsPc/booking/photography'), 414 component: () => import('@/viewsPc/booking/photography'),
409 name: 'photography', 415 name: 'photography',
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <div class="box"> 3 <div class="banner">
4 <el-card class="mt30"></el-card> 4 <img src="@/assets/booking/hz_text.png">
5 </div>
6 <div class="box">
7 <div class="searchBar">
8 <el-input :placeholder="language==0?'请输入关键字搜索':'Search'" v-model="query.name" class="no-border">
9 </el-input>
10 <el-button size="large" type="primary" class="btn-lineG" icon="search" @click="getList">
11 {{ language==0?'搜索':'Search' }}</el-button>
12 </div>
13 </div>
14 <div class="box" v-loading="loading">
15 <el-row style="width: 100%" :gutter="20">
16 <el-col :span="8" v-for="(h,index) in list" class="mb20" @click="goDetail(h)">
17 <el-card style="position: relative;">
18 <img class="w100 hz-img" :src="fillImgUrl(h.photos?.split(',')[0])"/>
19 <div class="yuyue">
20 30 个时间段可预约
21 </div>
22 <div class="hz-text">MANGO美妆工作室</div>
23 <el-row style="width: 100%;margin-bottom: 10px" :gutter="5" justify='space-between'>
24 <div class="hz-tag tag1">专业团体</div>
25 <div class="hz-tag tag2">金牌化妆师</div>
26 <div class="hz-tag tag3">大牌化妆品</div>
27 <div class="hz-tag tag4">连锁</div>
28 </el-row>
29 <div class="hz-row">
30 <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><LocationFilled /></el-icon>
31 成立 <span class="sign">6</span>年 |
32 <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><LocationFilled /></el-icon><span class="sign">12</span>名化妆师
33 </div>
34 <div class="hz-row">
35 <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><LocationFilled /></el-icon>
36 1535652837
37 </div>
38 <div class="hz-row">
39 <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><LocationFilled /></el-icon>
40 {{h.address}}
41 </div>
42 <div style="text-align: center">
43 <el-button class="btn-lineG w200px" round type="primary" size="large">{{ language==0?'立即预约':'Select' }}</el-button>
44 </div>
45 </el-card>
46 </el-col>
47 </el-row>
5 48
6 </div> 49 <!-- <el-card v-for="(h,index) in list" class="mb20" @click="goDetail(h)">-->
50 <!-- &lt;!&ndash; 酒店列表&ndash;&gt;-->
51 <!-- <el-row class="hotel" align="middle" :gutter="20">-->
52 <!-- <el-col :span="6">-->
53 <!-- <img class="w100" :src="fillImgUrl(h.photos?.split(',')[0])"/>-->
54 <!-- </el-col>-->
55 <!-- <el-col :span="10">-->
56 <!-- <h3 class="esp">{{h.name}}</h3>-->
57 <!-- <div class="starBox">-->
58 <!-- <img v-for="i in Number(h.starLevel||0)" src="@/assets/booking/star.png">-->
59 <!-- </div>-->
60 <!-- <div class="tagbox">-->
61 <!-- <span v-for="(t,index) in h.label?.split(',')" v-show="index<4">{{t}}</span>-->
62 <!-- <a v-show="h.label?.split(',').length>4">{{ language==0?'更多':'MORE' }} ></a>-->
63 <!-- </div>-->
64 <!-- <p class="esp addr">-->
65 <!-- <el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><LocationFilled /></el-icon>-->
66 <!-- {{h.address}}-->
67 <!-- </p>-->
68 <!-- </el-col>-->
69 <!-- <el-col :span="8" class="text-right">-->
70 <!-- <div class="price">¥<span>{{ h.price }}</span><i v-if="language==0"></i></div>-->
71 <!-- <el-button class="btn-lineG w200px" round type="primary" size="large">{{ language==0?'立即预约':'Select' }}</el-button>-->
72 <!-- </el-col>-->
73 <!-- </el-row>-->
74 <!-- </el-card>-->
75 <el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description="" />
76 <div style="height: 50px"></div>
77 </div>
7 78
8 </div> 79 </div>
9 </template> 80 </template>
10 81
11 <script setup> 82 <script setup>
83 import {onMounted} from "@vue/runtime-core"
84 import * as booking from "@/apiPc/booking"
85 import {useRouter,useRoute} from "vue-router";
86 import {useStorage} from "@vueuse/core/index";
87 const router = useRouter()
88 const route = useRoute()
89 const language= useStorage('language',0)
90 const query = ref({
91 name:''
92 })
93 const cptId = ref('')
94 const list = ref([])
95 const loading = ref(false)
96 onMounted(()=>{
97 query.value.activityId = route.params.cptId
98 getList()
99 })
12 100
101 function getList() {
102 loading.value = true
103 booking.getHotelList(query.value).then(res=>{
104 list.value = res.rows
105 loading.value = false
106 }).catch(e=>{
107 loading.value = false
108 })
109 }
110 function goDetail(item) {
111 router.push({
112 name:'makeUpDetail',
113 params:{
114 id:item.id,
115 },
116 query:{
117 id:item.id
118 }
119
120 })
121 }
13 </script> 122 </script>
14 123
15 <style scoped> 124 <style scoped lang="scss">
125 .hotel{
126 h3{margin: 0 0 20px;}
127 img.w100{object-fit: cover;aspect-ratio: 16/9}
128 .addr{font-size: 16px;color: #929AA0;font-weight: 400;}
129 .price{margin: 0 0 25px;
130 color: #FF8124;font-size: 18px;
131 span{font-size: 24px;margin: 0 8px;font-family: 'DINAlternate-Bold';font-weight: 600;}
132 i{font-style: normal;color: #929AA0;}
133 }
134 }
135 .banner{height: 140px;background-size: cover;text-align: center;
136 background: url("@/assets/booking/hz_bg.png") center;display: flex;align-items: center;
137 justify-content: center;
138 img{display: block;margin:-30px auto 0;width: auto;}
139 }
140 .searchBar{position: relative;top: -30px;
141 background: #FFFFFF;display: flex;padding: 20px;
142 border-radius: 10px;}
143 .no-border{border: none;background: #F5F7F9;
144 :deep(.el-input__wrapper){border: none;box-shadow: none;background: #F5F7F9;}
145 }
146 .starBox{
147 img{display: inline-block;margin-right: 4px}
148 }
149 .hz-img{
150 height: 218px;
151 width: 100%;
152 border-radius: 2px;
153 border: 0;
154 margin-bottom: 20px;
155 }
156
157 .yuyue{
158 width: 150px;
159 height: 30px;
160 background: #000000;
161 border-radius: 20px 0px 0px 2px;
162 padding-left: 15px;
163 opacity: 0.45;
164 color: #fff;
165 font-size: 14px;
166 line-height: 30px;
167 position: absolute;
168 top: 207px;
169 right:21px;
170 }
171
172 .hz-text{
173 font-size: 20px;
174 font-weight: 500;
175 color: #000;
176 margin-bottom: 8px;
177 }
178
179 //.hz-tag{
180 // border-radius: 13px;
181 // height: 25px;
182 // line-height: 25px;
183 // font-size: 12px;
184 // font-weight: 400;
185 // padding: 0 15px;
186 //}
187 //.tag1{
188 // background: rgba(50, 177, 108, 0.2);
189 // color:rgba(50, 177, 108, 1);
190 //}
191 //.tag2{
192 // background-color: rgba(243, 152, 0, 0.2);
193 // color: #F39800;
194 //}
195 //.tag3{
196 // background-color: rgba(0, 160, 233, 0.2);
197 // color: #00A0E9;
198 //}
199 //.tag4{
200 // background-color: rgba(247, 64, 166, 0.2);
201 // color: #F740A6;
202 //}
203 //
204 //.hz-row{
205 // font-size: 14px;
206 // font-weight: 400;
207 // color: #929AA0;
208 // margin-bottom: 16px;
209 // .sign{
210 // color: #493CEB;
211 // }
212 //}
213
16 214
215 //.tagbox{margin: 15px 0;
216 // a{color: #AFB5B9;font-size: 12px;}
217 // span{border-radius: 13px;font-size: 12px;padding: 4px 10px;margin-right:10px;font-weight: 400;}
218 // span:nth-child(4n){background: rgba(50, 177, 108, 0.2);color: rgba(50, 177, 108, 1);}
219 // span:nth-child(4n+1){background:rgba(243, 152, 0, 0.2);color: rgba(243, 152, 0, 1);}
220 // span:nth-child(4n+2){background: rgba(0, 160, 233, 0.2);color: rgba(0, 160, 233, 1);}
221 // span:nth-child(4n+3){background: rgba(247, 64, 166, 0.2);color:rgba(247, 64, 166, 1);}
222 //}
17 </style> 223 </style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!