Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
544fb414
authored
2025-07-16 18:07:08 +0800
by
华明祺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
a236278d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
19 deletions
src/viewsPc/booking/hotel.vue
src/viewsPc/components/homeQuick.vue
src/viewsPc/booking/hotel.vue
View file @
544fb41
...
...
@@ -17,7 +17,7 @@
<div
v-loading=
"loading"
class=
"box"
>
<el-row
:gutter=
"20"
>
<el-col
v-for=
"(h,index) in list"
:lg=
"24"
:md=
"24"
:sm=
"24"
:xl=
"24"
:xs=
"24"
class=
"mb20"
>
<el-card
@
click=
"goDetail(h)"
>
<el-card>
<!-- 酒店列表-->
<el-row
:gutter=
"20"
align=
"middle"
class=
"hotel"
>
<el-col
:lg=
"6"
:md=
"6"
>
...
...
@@ -45,7 +45,8 @@
<div
class=
"price"
>
{{
language
==
0
?
'¥'
:
'$'
}}
<span>
{{
h
.
price
}}
</span>
<i
v-if=
"language==0"
>
起
</i>
</div>
<el-button
class=
"w200px blackBtn"
round
type=
"primary"
>
{{
language
==
0
?
'立即预订'
:
'Select'
}}
⇀
<el-button
@
click=
"goDetail(h)"
class=
"w200px blackBtn"
round
type=
"primary"
>
{{
language
==
0
?
'立即预订'
:
'Select'
}}
⇀
</el-button>
</el-col>
</el-row>
...
...
src/viewsPc/components/homeQuick.vue
View file @
544fb41
...
...
@@ -57,14 +57,10 @@
</
template
>
<
script
setup
>
import
{
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
()
import
OrderRemark
from
'@/viewsPc/components/orderRemark'
import
AffixInvitation
from
'@/viewsPc/match/components/affix-invitation'
import
MediaRegister
from
'@/viewsPc/components/mediaRegister.vue'
const
{
proxy
}
=
getCurrentInstance
()
import
{
useRouter
}
from
"vue-router"
;
import
{
useStorage
}
from
"@vueuse/core/index"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
getCurrentInstance
}
from
"@vue/runtime-core"
;
...
...
@@ -73,6 +69,11 @@ import {getBaseInfoByActiveId} from "@/apiPc/booking";
import
*
as
match
from
"@/apiPc/match"
;
import
useUserStore
from
"@/store/modules/user"
;
const
router
=
useRouter
()
const
{
proxy
}
=
getCurrentInstance
()
const
useStore
=
useUserStore
()
const
emit
=
defineEmits
([
'pickUp'
])
const
props
=
defineProps
({
...
...
@@ -146,8 +147,6 @@ function applyInvitation() {
proxy
.
$refs
[
'dialogInvitationRef'
].
open
(
obj
)
}
const
user
=
useUserStore
().
user
function
goMedia
()
{
// proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' : 'Not yet open')
// return;
...
...
@@ -156,11 +155,12 @@ function goMedia() {
return
}
//如果没登录
if
(
!
user
)
{
ElMessage
({
type
:
'warning'
,
message
:
language
.
value
==
0
?
'请先登录'
:
'Please login first'
,
})
if
(
!
useStore
.
user
)
{
// ElMessage({
// type: 'warning',
// message: language.value == 0 ? '请先登录' : 'Please login first',
// })
useStore
.
setVisitor
()
return
}
...
...
@@ -186,11 +186,12 @@ function popRemark(type) {
return
}
if
(
!
user
)
{
ElMessage
({
type
:
'warning'
,
message
:
language
.
value
==
0
?
'请先登录'
:
'Please login first'
,
})
if
(
!
useStore
.
user
)
{
// ElMessage({
// type: 'warning',
// message: language.value == 0 ? '请先登录' : 'Please login first',
// })
useStore
.
setVisitor
()
return
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment