酒店接口对接 bug修改
This commit is contained in:
@@ -104,9 +104,9 @@
|
||||
import { getWeatherApi } from '@/api/home'
|
||||
import { getSpotListApi } from '@/api/sentiment'
|
||||
import { getHotelListApi } from '@/api/hotel'
|
||||
|
||||
|
||||
import pubSub from 'pubsub-js'
|
||||
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
let currentDate = ref('')
|
||||
@@ -146,7 +146,9 @@
|
||||
const handleBack = () => {
|
||||
router.push('/home')
|
||||
}
|
||||
|
||||
const handleCommand = (item, type) => {
|
||||
|
||||
current.value = ''
|
||||
if (type === 'hotel') {
|
||||
otherRightLabel.value = '其他场馆'
|
||||
@@ -167,8 +169,10 @@
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// 点击导航
|
||||
const handleNav = (item) => {
|
||||
console.log(item,'测试一下 ')
|
||||
if (isSkip.value) {
|
||||
router.push(item.path)
|
||||
} else {
|
||||
@@ -326,6 +330,7 @@
|
||||
navLeft.value = hotelRes.data.slice(0, 3)
|
||||
otherLeftNav.value = hotelRes.data.slice(3, hotelRes.data.length - 1)
|
||||
let venueRes = await getHotelListApi({ hotelStadiumType: 2 })
|
||||
console.log(venueRes,'venueRes')
|
||||
navRight.value = venueRes.data.slice(0, 3)
|
||||
otherRightNav.value = venueRes.data.slice(3, venueRes.data.length - 1)
|
||||
pubSub.publish('hotelChange', hotelRes.data[0])
|
||||
@@ -424,13 +429,13 @@
|
||||
&-item {
|
||||
cursor: pointer;
|
||||
margin-left: vh(-16);
|
||||
width: vw(210);
|
||||
min-width: vw(210);
|
||||
height: vh(56);
|
||||
line-height: vh(46);
|
||||
font-weight: 600;
|
||||
font-size: vw(28);
|
||||
text-align: center;
|
||||
padding: 0 vw(30);
|
||||
padding: 0 vw(50);
|
||||
color: rgba(208, 236, 255, 0.9);
|
||||
background-size: 100% 100%;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
Reference in New Issue
Block a user