544fb414 by 华明祺

no message

1 parent a236278d
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
13 </el-button> 13 </el-button>
14 </div> 14 </div>
15 </div> 15 </div>
16 16
17 <div v-loading="loading" class="box"> 17 <div v-loading="loading" class="box">
18 <el-row :gutter="20"> 18 <el-row :gutter="20">
19 <el-col v-for="(h,index) in list" :lg="24" :md="24" :sm="24" :xl="24" :xs="24" class="mb20"> 19 <el-col v-for="(h,index) in list" :lg="24" :md="24" :sm="24" :xl="24" :xs="24" class="mb20">
20 <el-card @click="goDetail(h)"> 20 <el-card>
21 <!-- 酒店列表--> 21 <!-- 酒店列表-->
22 <el-row :gutter="20" align="middle" class="hotel"> 22 <el-row :gutter="20" align="middle" class="hotel">
23 <el-col :lg="6" :md="6"> 23 <el-col :lg="6" :md="6">
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
45 <div class="price">{{ language == 0 ? '¥' : '$' }}<span>{{ h.price }}</span> 45 <div class="price">{{ language == 0 ? '¥' : '$' }}<span>{{ h.price }}</span>
46 <i v-if="language==0"></i> 46 <i v-if="language==0"></i>
47 </div> 47 </div>
48 <el-button class="w200px blackBtn" round type="primary">{{ language == 0 ? '立即预订' : 'Select' }} 48 <el-button @click="goDetail(h)" class="w200px blackBtn" round type="primary">
49 {{ language == 0 ? '立即预订' : 'Select' }}
49 </el-button> 50 </el-button>
50 </el-col> 51 </el-col>
51 </el-row> 52 </el-row>
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
55 <el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description=""/> 56 <el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description=""/>
56 <div style="height: 50px"></div> 57 <div style="height: 50px"></div>
57 </div> 58 </div>
58 59
59 </div> 60 </div>
60 </template> 61 </template>
61 62
...@@ -94,7 +95,7 @@ function getList() { ...@@ -94,7 +95,7 @@ function getList() {
94 list.value = res.rows 95 list.value = res.rows
95 loading.value = false 96 loading.value = false
96 console.log(list.value) 97 console.log(list.value)
97 98
98 }).catch(e => { 99 }).catch(e => {
99 loading.value = false 100 loading.value = false
100 }) 101 })
...@@ -105,7 +106,7 @@ function goDetail(item) { ...@@ -105,7 +106,7 @@ function goDetail(item) {
105 useStore.setVisitor() 106 useStore.setVisitor()
106 return 107 return
107 } 108 }
108 109
109 router.push({ 110 router.push({
110 name: 'hotelDetail', 111 name: 'hotelDetail',
111 params: { 112 params: {
...@@ -115,7 +116,7 @@ function goDetail(item) { ...@@ -115,7 +116,7 @@ function goDetail(item) {
115 id: item.id 116 id: item.id
116 } 117 }
117 }) 118 })
118 119
119 // if (item.meeting == '1') { 120 // if (item.meeting == '1') {
120 // ElMessageBox.confirm(item.meetText, '', { 121 // ElMessageBox.confirm(item.meetText, '', {
121 // cancelButtonText: language.value == 1 ? 'Close ' : '关闭', 122 // cancelButtonText: language.value == 1 ? 'Close ' : '关闭',
...@@ -152,37 +153,37 @@ function goDetail(item) { ...@@ -152,37 +153,37 @@ function goDetail(item) {
152 h3 { 153 h3 {
153 margin: 0 0 10px; 154 margin: 0 0 10px;
154 } 155 }
155 156
156 img.w100 { 157 img.w100 {
157 object-fit: cover; 158 object-fit: cover;
158 aspect-ratio: 16/9 159 aspect-ratio: 16/9
159 } 160 }
160 161
161 .addr { 162 .addr {
162 font-size: 14px; 163 font-size: 14px;
163 color: #929AA0; 164 color: #929AA0;
164 font-weight: 400; 165 font-weight: 400;
165 margin: 0 0 10px; 166 margin: 0 0 10px;
166 } 167 }
167 168
168 .price { 169 .price {
169 margin: 0 0 8px; 170 margin: 0 0 8px;
170 color: #FF8124; 171 color: #FF8124;
171 font-size: 18px; 172 font-size: 18px;
172 173
173 span { 174 span {
174 font-size: 36px; 175 font-size: 36px;
175 margin: 0 8px; 176 margin: 0 8px;
176 font-family: 'DINAlternate-Bold'; 177 font-family: 'DINAlternate-Bold';
177 font-weight: 600; 178 font-weight: 600;
178 } 179 }
179 180
180 i { 181 i {
181 font-style: normal; 182 font-style: normal;
182 color: #929AA0; 183 color: #929AA0;
183 } 184 }
184 } 185 }
185 186
186 .blackBtn { 187 .blackBtn {
187 background: #000; 188 background: #000;
188 border: #000; 189 border: #000;
...@@ -197,7 +198,7 @@ function goDetail(item) { ...@@ -197,7 +198,7 @@ function goDetail(item) {
197 display: flex; 198 display: flex;
198 align-items: center; 199 align-items: center;
199 justify-content: center; 200 justify-content: center;
200 201
201 img { 202 img {
202 display: block; 203 display: block;
203 margin: -30px auto 0; 204 margin: -30px auto 0;
...@@ -217,7 +218,7 @@ function goDetail(item) { ...@@ -217,7 +218,7 @@ function goDetail(item) {
217 .no-border { 218 .no-border {
218 border: none; 219 border: none;
219 background: #F5F7F9; 220 background: #F5F7F9;
220 221
221 :deep(.el-input__wrapper) { 222 :deep(.el-input__wrapper) {
222 border: none; 223 border: none;
223 box-shadow: none; 224 box-shadow: none;
...@@ -229,12 +230,12 @@ function goDetail(item) { ...@@ -229,12 +230,12 @@ function goDetail(item) {
229 width: 100%; 230 width: 100%;
230 height: 100%; 231 height: 100%;
231 position: relative; 232 position: relative;
232 233
233 img { 234 img {
234 width: 100%; 235 width: 100%;
235 height: 100%; 236 height: 100%;
236 } 237 }
237 238
238 .starBox { 239 .starBox {
239 position: absolute; 240 position: absolute;
240 bottom: 0; 241 bottom: 0;
...@@ -249,7 +250,7 @@ function goDetail(item) { ...@@ -249,7 +250,7 @@ function goDetail(item) {
249 250
250 .starBox { 251 .starBox {
251 border-radius: 14px 0 0 0; 252 border-radius: 14px 0 0 0;
252 253
253 img { 254 img {
254 display: inline-block; 255 display: inline-block;
255 margin-right: 4px; 256 margin-right: 4px;
...@@ -259,12 +260,12 @@ function goDetail(item) { ...@@ -259,12 +260,12 @@ function goDetail(item) {
259 260
260 .tagbox { 261 .tagbox {
261 margin: 10px 0; 262 margin: 10px 0;
262 263
263 a { 264 a {
264 color: #AFB5B9; 265 color: #AFB5B9;
265 font-size: 12px; 266 font-size: 12px;
266 } 267 }
267 268
268 span { 269 span {
269 border-radius: 13px; 270 border-radius: 13px;
270 font-size: 12px; 271 font-size: 12px;
...@@ -272,22 +273,22 @@ function goDetail(item) { ...@@ -272,22 +273,22 @@ function goDetail(item) {
272 margin-right: 10px; 273 margin-right: 10px;
273 font-weight: 400; 274 font-weight: 400;
274 } 275 }
275 276
276 span:nth-child(4n) { 277 span:nth-child(4n) {
277 background: rgba(50, 177, 108, 0.2); 278 background: rgba(50, 177, 108, 0.2);
278 color: rgba(50, 177, 108, 1); 279 color: rgba(50, 177, 108, 1);
279 } 280 }
280 281
281 span:nth-child(4n+1) { 282 span:nth-child(4n+1) {
282 background: rgba(243, 152, 0, 0.2); 283 background: rgba(243, 152, 0, 0.2);
283 color: rgba(243, 152, 0, 1); 284 color: rgba(243, 152, 0, 1);
284 } 285 }
285 286
286 span:nth-child(4n+2) { 287 span:nth-child(4n+2) {
287 background: rgba(0, 160, 233, 0.2); 288 background: rgba(0, 160, 233, 0.2);
288 color: rgba(0, 160, 233, 1); 289 color: rgba(0, 160, 233, 1);
289 } 290 }
290 291
291 span:nth-child(4n+3) { 292 span:nth-child(4n+3) {
292 background: rgba(247, 64, 166, 0.2); 293 background: rgba(247, 64, 166, 0.2);
293 color: rgba(247, 64, 166, 1); 294 color: rgba(247, 64, 166, 1);
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
44 <!-- <el-col :sm="12" :lg="4" :xs="12">--> 44 <!-- <el-col :sm="12" :lg="4" :xs="12">-->
45 <!-- <div class="item" @click="goAround"><img src="@/assets/dance/btn06.png">Around Activity</div>--> 45 <!-- <div class="item" @click="goAround"><img src="@/assets/dance/btn06.png">Around Activity</div>-->
46 <!-- </el-col>--> 46 <!-- </el-col>-->
47 47
48 <!-- <el-col :sm="12" :lg="4" :xs="12">--> 48 <!-- <el-col :sm="12" :lg="4" :xs="12">-->
49 <!-- <div class="item" @click="liveClick"><img src="@/assets/dance/btn05.png">live streaming</div>--> 49 <!-- <div class="item" @click="liveClick"><img src="@/assets/dance/btn05.png">live streaming</div>-->
50 <!-- </el-col>--> 50 <!-- </el-col>-->
...@@ -57,14 +57,10 @@ ...@@ -57,14 +57,10 @@
57 </template> 57 </template>
58 58
59 <script setup> 59 <script setup>
60 import {useRouter} from "vue-router";
61
62 const router = useRouter()
63 import OrderRemark from '@/viewsPc/components/orderRemark' 60 import OrderRemark from '@/viewsPc/components/orderRemark'
64 import AffixInvitation from '@/viewsPc/match/components/affix-invitation' 61 import AffixInvitation from '@/viewsPc/match/components/affix-invitation'
65 import MediaRegister from '@/viewsPc/components/mediaRegister.vue' 62 import MediaRegister from '@/viewsPc/components/mediaRegister.vue'
66 63 import {useRouter} from "vue-router";
67 const {proxy} = getCurrentInstance()
68 import {useStorage} from "@vueuse/core/index"; 64 import {useStorage} from "@vueuse/core/index";
69 import {ElMessage} from "element-plus"; 65 import {ElMessage} from "element-plus";
70 import {getCurrentInstance} from "@vue/runtime-core"; 66 import {getCurrentInstance} from "@vue/runtime-core";
...@@ -73,6 +69,11 @@ import {getBaseInfoByActiveId} from "@/apiPc/booking"; ...@@ -73,6 +69,11 @@ import {getBaseInfoByActiveId} from "@/apiPc/booking";
73 import * as match from "@/apiPc/match"; 69 import * as match from "@/apiPc/match";
74 import useUserStore from "@/store/modules/user"; 70 import useUserStore from "@/store/modules/user";
75 71
72
73 const router = useRouter()
74 const {proxy} = getCurrentInstance()
75 const useStore = useUserStore()
76
76 const emit = defineEmits(['pickUp']) 77 const emit = defineEmits(['pickUp'])
77 78
78 const props = defineProps({ 79 const props = defineProps({
...@@ -100,7 +101,7 @@ watch(matchId, (val) => { ...@@ -100,7 +101,7 @@ watch(matchId, (val) => {
100 console.log(err) 101 console.log(err)
101 form.value = null 102 form.value = null
102 }) 103 })
103 104
104 match.getInfoByCptId({cptId: props.matchId}).then((res) => { 105 match.getInfoByCptId({cptId: props.matchId}).then((res) => {
105 liveData.value = res.data || {} 106 liveData.value = res.data || {}
106 }) 107 })
...@@ -109,9 +110,9 @@ watch(matchId, (val) => { ...@@ -109,9 +110,9 @@ watch(matchId, (val) => {
109 110
110 const liveClick = () => { 111 const liveClick = () => {
111 if (liveData.value.videoStatus == "1") { 112 if (liveData.value.videoStatus == "1") {
112 113
113 if (language.value == 0) { 114 if (language.value == 0) {
114 115
115 window.open(liveData.value.videoUrlCn) 116 window.open(liveData.value.videoUrlCn)
116 } else { 117 } else {
117 window.open(liveData.value.videoUrlEn) 118 window.open(liveData.value.videoUrlEn)
...@@ -135,7 +136,7 @@ onMounted(() => { ...@@ -135,7 +136,7 @@ onMounted(() => {
135 136
136 function building() { 137 function building() {
137 ElMessage.warning(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.') 138 ElMessage.warning(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.')
138 139
139 } 140 }
140 141
141 function applyInvitation() { 142 function applyInvitation() {
...@@ -146,8 +147,6 @@ function applyInvitation() { ...@@ -146,8 +147,6 @@ function applyInvitation() {
146 proxy.$refs['dialogInvitationRef'].open(obj) 147 proxy.$refs['dialogInvitationRef'].open(obj)
147 } 148 }
148 149
149 const user = useUserStore().user
150
151 function goMedia() { 150 function goMedia() {
152 // proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' : 'Not yet open') 151 // proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' : 'Not yet open')
153 // return; 152 // return;
...@@ -156,14 +155,15 @@ function goMedia() { ...@@ -156,14 +155,15 @@ function goMedia() {
156 return 155 return
157 } 156 }
158 //如果没登录 157 //如果没登录
159 if (!user) { 158 if (!useStore.user) {
160 ElMessage({ 159 // ElMessage({
161 type: 'warning', 160 // type: 'warning',
162 message: language.value == 0 ? '请先登录' : 'Please login first', 161 // message: language.value == 0 ? '请先登录' : 'Please login first',
163 }) 162 // })
163 useStore.setVisitor()
164 return 164 return
165 } 165 }
166 166
167 proxy.$refs['mediaRegisterRef'].open({cptId: matchId.value}) 167 proxy.$refs['mediaRegisterRef'].open({cptId: matchId.value})
168 } 168 }
169 169
...@@ -172,7 +172,7 @@ function popRemark(type) { ...@@ -172,7 +172,7 @@ function popRemark(type) {
172 building() 172 building()
173 return 173 return
174 } 174 }
175 175
176 if (type == '0') { 176 if (type == '0') {
177 // ElMessage.warning('The visa invitation letter application will be available soon. Thank you for your patience.') 177 // ElMessage.warning('The visa invitation letter application will be available soon. Thank you for your patience.')
178 // return; 178 // return;
...@@ -185,20 +185,21 @@ function popRemark(type) { ...@@ -185,20 +185,21 @@ function popRemark(type) {
185 building() 185 building()
186 return 186 return
187 } 187 }
188 188
189 if (!user) { 189 if (!useStore.user) {
190 ElMessage({ 190 // ElMessage({
191 type: 'warning', 191 // type: 'warning',
192 message: language.value == 0 ? '请先登录' : 'Please login first', 192 // message: language.value == 0 ? '请先登录' : 'Please login first',
193 }) 193 // })
194 useStore.setVisitor()
194 return 195 return
195 } 196 }
196 197
197 applyInvitation() 198 applyInvitation()
198 return 199 return
199 } 200 }
200 } 201 }
201 202
202 if ((form.value.isJdView == 0 && type == '1') 203 if ((form.value.isJdView == 0 && type == '1')
203 || (form.value.isCarView == 0 && type == '2') 204 || (form.value.isCarView == 0 && type == '2')
204 || (form.value.isFoodView == 0 && type == '3') 205 || (form.value.isFoodView == 0 && type == '3')
...@@ -209,13 +210,13 @@ function popRemark(type) { ...@@ -209,13 +210,13 @@ function popRemark(type) {
209 building() 210 building()
210 return 211 return
211 } 212 }
212 213
213 if (type == '2') { 214 if (type == '2') {
214 emit("pickUp") 215 emit("pickUp")
215 return; 216 return;
216 } 217 }
217 218
218 219
219 const params = { 220 const params = {
220 matchId: props.matchId, 221 matchId: props.matchId,
221 title: language.value == 0 ? '预订说明' : 'Booking Instructions', 222 title: language.value == 0 ? '预订说明' : 'Booking Instructions',
...@@ -223,7 +224,7 @@ function popRemark(type) { ...@@ -223,7 +224,7 @@ function popRemark(type) {
223 cptName: props.cptName 224 cptName: props.cptName
224 } 225 }
225 proxy.$refs['orderRemarkRef'].open(params) 226 proxy.$refs['orderRemarkRef'].open(params)
226 227
227 // goBooking(type) 228 // goBooking(type)
228 } 229 }
229 230
...@@ -231,7 +232,7 @@ function goBooking(n, f) { ...@@ -231,7 +232,7 @@ function goBooking(n, f) {
231 switch (n) { 232 switch (n) {
232 case 10: 233 case 10:
233 // 票务 234 // 票务
234 235
235 // router.push({ 236 // router.push({
236 // path: `/booking/ticket/${props.matchId}`, 237 // path: `/booking/ticket/${props.matchId}`,
237 // params: {id:props.matchId}, 238 // params: {id:props.matchId},
...@@ -289,7 +290,7 @@ function goBooking(n, f) { ...@@ -289,7 +290,7 @@ function goBooking(n, f) {
289 background-size: 100% 100%; 290 background-size: 100% 100%;
290 border-radius: 15px; 291 border-radius: 15px;
291 gap: 10px; 292 gap: 10px;
292 293
293 img { 294 img {
294 object-fit: contain; 295 object-fit: contain;
295 width: 75px; 296 width: 75px;
...@@ -302,19 +303,19 @@ function goBooking(n, f) { ...@@ -302,19 +303,19 @@ function goBooking(n, f) {
302 text-align: center; 303 text-align: center;
303 text-transform: uppercase; 304 text-transform: uppercase;
304 height: 100%; 305 height: 100%;
305 306
306 img { 307 img {
307 position: relative; 308 position: relative;
308 transition: all 0.2s; 309 transition: all 0.2s;
309 } 310 }
310 311
311 &:hover { 312 &:hover {
312 box-shadow: 0 0 10px #eee; 313 box-shadow: 0 0 10px #eee;
313 314
314 img { 315 img {
315 transform: rotateY(180deg); 316 transform: rotateY(180deg);
316 } 317 }
317 318
318 p { 319 p {
319 color: #000; 320 color: #000;
320 } 321 }
...@@ -330,7 +331,7 @@ function goBooking(n, f) { ...@@ -330,7 +331,7 @@ function goBooking(n, f) {
330 height: auto !important; 331 height: auto !important;
331 padding: 15px 0; 332 padding: 15px 0;
332 margin: 10px 0; 333 margin: 10px 0;
333 334
334 img { 335 img {
335 width: 50px; 336 width: 50px;
336 height: 50px 337 height: 50px
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!