票务
Showing
2 changed files
with
53 additions
and
42 deletions
| 1 | <template> | 1 | <template> |
| 2 | <div v-if="language == 0" class="itemBox"> | 2 | <div v-if="language == 0" class="itemBox"> |
| 3 | <el-row :gutter="20"> | 3 | <el-row :gutter="20"> |
| 4 | <el-col :sm="12" :lg="8" :xs="12"> | 4 | <el-col :lg="8" :sm="12" :xs="12"> |
| 5 | <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">酒店预订</div> | 5 | <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">酒店预订</div> |
| 6 | </el-col> | 6 | </el-col> |
| 7 | <el-col :sm="12" :lg="8" :xs="12"> | 7 | <el-col :lg="8" :sm="12" :xs="12"> |
| 8 | <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn02.png">车辆预订</div> | 8 | <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn02.png">车辆预订</div> |
| 9 | </el-col> | 9 | </el-col> |
| 10 | <!-- <el-col :sm="12" :lg="8" :xs="12">--> | 10 | <!-- <el-col :sm="12" :lg="8" :xs="12">--> |
| 11 | <!-- <div class="item" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">餐饮预订</div>--> | 11 | <!-- <div class="item" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">餐饮预订</div>--> |
| 12 | <!-- </el-col>--> | 12 | <!-- </el-col>--> |
| 13 | <el-col :sm="12" :lg="8" :xs="12"> | 13 | <el-col :lg="8" :sm="12" :xs="12"> |
| 14 | <div class="item" @click="popRemark(8)"><img src="@/assets/dance/btn08.png">旅游服务</div> | 14 | <div class="item" @click="popRemark(8)"><img src="@/assets/dance/btn08.png">旅游服务</div> |
| 15 | </el-col> | 15 | </el-col> |
| 16 | <el-col :sm="12" :lg="8" :xs="12"> | 16 | <el-col :lg="8" :sm="12" :xs="12"> |
| 17 | <div class="item" @click="popRemark(0)"><img src="@/assets/dance/btn04.png">票务预订</div> | 17 | <div class="item" @click="popRemark(0)"><img src="@/assets/dance/btn04.png">票务预订</div> |
| 18 | </el-col> | 18 | </el-col> |
| 19 | <el-col :sm="12" :lg="8" :xs="12"> | 19 | <el-col :lg="8" :sm="12" :xs="12"> |
| 20 | <div class="item" @click="popRemark(4)"><img src="@/assets/dance/btn05.png">化妆预约</div> | 20 | <div class="item" @click="popRemark(4)"><img src="@/assets/dance/btn05.png">化妆预约</div> |
| 21 | </el-col> | 21 | </el-col> |
| 22 | <el-col :sm="12" :lg="8" :xs="12"> | 22 | <el-col :lg="8" :sm="12" :xs="12"> |
| 23 | <div class="item" @click="popRemark(5)"><img src="@/assets/dance/btn06.png">拍照预约</div> | 23 | <div class="item" @click="popRemark(5)"><img src="@/assets/dance/btn06.png">拍照预约</div> |
| 24 | </el-col> | 24 | </el-col> |
| 25 | </el-row> | 25 | </el-row> |
| 26 | </div> | 26 | </div> |
| 27 | <div v-else class="itemBox_en"> | 27 | <div v-else class="itemBox_en"> |
| 28 | <el-row :gutter="20"> | 28 | <el-row :gutter="20"> |
| 29 | <el-col :sm="12" :lg="8" :xs="12"> | 29 | <el-col :lg="8" :sm="12" :xs="12"> |
| 30 | <div class="item_en" @click="popRemark(1)"><img src="@/assets/dance/btn01.png"> | 30 | <div class="item_en" @click="popRemark(1)"><img src="@/assets/dance/btn01.png"> |
| 31 | <p>HOTEL RESERVATION</p> | 31 | <p>HOTEL RESERVATION</p> |
| 32 | </div> | 32 | </div> |
| 33 | </el-col> | 33 | </el-col> |
| 34 | <el-col :sm="12" :lg="8" :xs="12"> | 34 | <el-col :lg="8" :sm="12" :xs="12"> |
| 35 | <div class="item_en" @click="popRemark(2)"><img src="@/assets/dance/btn02.png"> | 35 | <div class="item_en" @click="popRemark(2)"><img src="@/assets/dance/btn02.png"> |
| 36 | <p>TRANSPORTATION RESERVATION</p> | 36 | <p>TRANSPORTATION RESERVATION</p> |
| 37 | </div> | 37 | </div> |
| 38 | </el-col> | 38 | </el-col> |
| 39 | <!-- <el-col :sm="12" :lg="8" :xs="12">--> | 39 | <!-- <el-col :sm="12" :lg="8" :xs="12">--> |
| 40 | <!-- <div class="item_en" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">--> | 40 | <!-- <div class="item_en" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">--> |
| 41 | <!-- <p>DINING RESERVATION</p>--> | 41 | <!-- <p>DINING RESERVATION</p>--> |
| 42 | <!-- </div>--> | 42 | <!-- </div>--> |
| 43 | <!-- </el-col>--> | 43 | <!-- </el-col>--> |
| 44 | <el-col :sm="12" :lg="8" :xs="12"> | 44 | <el-col :lg="8" :sm="12" :xs="12"> |
| 45 | <div class="item_en" @click="popRemark(8)"><img src="@/assets/dance/btn08.png"> | 45 | <div class="item_en" @click="popRemark(8)"><img src="@/assets/dance/btn08.png"> |
| 46 | <p>TRAVEL SERVICE</p> | 46 | <p>TRAVEL SERVICE</p> |
| 47 | </div> | 47 | </div> |
| 48 | </el-col> | 48 | </el-col> |
| 49 | <el-col :sm="12" :lg="8" :xs="12"> | 49 | <el-col :lg="8" :sm="12" :xs="12"> |
| 50 | <div class="item_en" @click="popRemark(0)"> | 50 | <div class="item_en" @click="popRemark(0)"> |
| 51 | <img src="@/assets/dance/btn04.png"> | 51 | <img src="@/assets/dance/btn04.png"> |
| 52 | <p>TICKET BOOKING</p> | 52 | <p>TICKET BOOKING</p> |
| 53 | </div> | 53 | </div> |
| 54 | </el-col> | 54 | </el-col> |
| 55 | <el-col :sm="12" :lg="8" :xs="12"> | 55 | <el-col :lg="8" :sm="12" :xs="12"> |
| 56 | <div class="item_en" @click="popRemark(4)"><img src="@/assets/dance/btn05.png"> | 56 | <div class="item_en" @click="popRemark(4)"><img src="@/assets/dance/btn05.png"> |
| 57 | <p>MAKEUP APPOINTMENT</p> | 57 | <p>MAKEUP APPOINTMENT</p> |
| 58 | </div> | 58 | </div> |
| 59 | </el-col> | 59 | </el-col> |
| 60 | <el-col :sm="12" :lg="8" :xs="12"> | 60 | <el-col :lg="8" :sm="12" :xs="12"> |
| 61 | <div class="item_en" @click="popRemark(5)"><img src="@/assets/dance/btn06.png"> | 61 | <div class="item_en" @click="popRemark(5)"><img src="@/assets/dance/btn06.png"> |
| 62 | <p>PHOTOGRAPHY APPOINTMENT</p> | 62 | <p>PHOTOGRAPHY APPOINTMENT</p> |
| 63 | </div> | 63 | </div> |
| ... | @@ -114,7 +114,6 @@ onMounted(() => { | ... | @@ -114,7 +114,6 @@ onMounted(() => { |
| 114 | 114 | ||
| 115 | function building() { | 115 | function building() { |
| 116 | ElMessage.warning(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.') | 116 | ElMessage.warning(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.') |
| 117 | return | ||
| 118 | } | 117 | } |
| 119 | 118 | ||
| 120 | function popRemark(type) { | 119 | function popRemark(type) { |
| ... | @@ -180,7 +179,7 @@ function goBooking(n) { | ... | @@ -180,7 +179,7 @@ function goBooking(n) { |
| 180 | } | 179 | } |
| 181 | </script> | 180 | </script> |
| 182 | 181 | ||
| 183 | <style scoped lang="scss"> | 182 | <style lang="scss" scoped> |
| 184 | .itemBox { | 183 | .itemBox { |
| 185 | padding: 20px 40px; | 184 | padding: 20px 40px; |
| 186 | } | 185 | } |
| ... | @@ -248,9 +247,16 @@ function goBooking(n) { | ... | @@ -248,9 +247,16 @@ function goBooking(n) { |
| 248 | } | 247 | } |
| 249 | 248 | ||
| 250 | @media screen and (max-width: 768px) { | 249 | @media screen and (max-width: 768px) { |
| 251 | .itemBox,.itemBox_en{padding: 0 20px 20px} | 250 | .itemBox, .itemBox_en { |
| 252 | .item{font-size: 16px; | 251 | padding: 0 20px 20px |
| 253 | img{width: 50px;height: 50px} | 252 | } |
| 253 | .item { | ||
| 254 | font-size: 16px; | ||
| 255 | |||
| 256 | img { | ||
| 257 | width: 50px; | ||
| 258 | height: 50px | ||
| 259 | } | ||
| 254 | } | 260 | } |
| 255 | } | 261 | } |
| 256 | </style> | 262 | </style> | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <el-dialog :title="title" v-model="show" width="400px" @close="close"> | 2 | <el-dialog v-model="show" :title="title" destroy-on-close width="400px" @close="close"> |
| 3 | <div> | 3 | <div> |
| 4 | <h2 class="text-warning text-center" v-if="cptName">{{cptName}}</h2> | 4 | <h2 v-if="cptName" class="text-warning text-center">{{ cptName }}</h2> |
| 5 | 5 | ||
| 6 | <div v-if="type==1" class="plr20" v-html="form.reserveDes"></div> | 6 | <div v-if="type==1" class="plr20" v-html="form.reserveDes" /> |
| 7 | <div v-if="type==2" class="plr20" v-html="form.reserveDesCar"></div> | 7 | <div v-if="type==2" class="plr20" v-html="form.reserveDesCar" /> |
| 8 | <div v-if="type==3" class="plr20" v-html="form.reserveDesFood"></div> | 8 | <div v-if="type==3" class="plr20" v-html="form.reserveDesFood" /> |
| 9 | <div v-if="type==4" class="plr20" v-html="form.reserveDesMeal"></div> | 9 | <div v-if="type==4" class="plr20" v-html="form.reserveDesMeal" /> |
| 10 | <div v-if="type==5" class="plr20" v-html="form.reserveDesPhoto"></div> | 10 | <div v-if="type==5" class="plr20" v-html="form.reserveDesPhoto" /> |
| 11 | <div v-if="type==0" class="plr20" v-html="form.reserveDesTitck"></div> | 11 | <div v-if="type==0" class="plr20" v-html="form.reserveDesTitck" /> |
| 12 | <div v-if="type==8" class="plr20" v-html="form.reserveDesTravel"></div> | 12 | <div v-if="type==8" class="plr20" v-html="form.reserveDesScenic" /> |
| 13 | </div> | 13 | </div> |
| 14 | <template #footer> | 14 | <template #footer> |
| 15 | <div class="dialog-footer text-center"> | 15 | <div class="dialog-footer text-center"> |
| 16 | <el-button type="primary" class="btn-lineG w200px" round @click="ok">{{language==0?'确定':'Confirm'}}</el-button> | 16 | <el-button class="btn-lineG w200px" round type="primary" @click="ok">{{ language == 0 ? '确定' : 'Confirm' }} |
| 17 | </el-button> | ||
| 17 | </div> | 18 | </div> |
| 18 | </template> | 19 | </template> |
| 19 | </el-dialog> | 20 | </el-dialog> |
| 20 | </template> | 21 | </template> |
| 21 | 22 | ||
| 22 | <script setup> | 23 | <script setup> |
| 23 | import {getBaseInfoByActiveId} from "@/apiPc/booking"; | 24 | import { getBaseInfoByActiveId } from '@/apiPc/booking' |
| 24 | import {getCurrentInstance} from "@vue/runtime-core"; | 25 | import { getCurrentInstance } from '@vue/runtime-core' |
| 25 | import {useStorage} from "@vueuse/core/index"; | 26 | import { useStorage } from '@vueuse/core/index' |
| 26 | const emit = defineEmits([ 'submit']) | 27 | |
| 27 | const {proxy} = getCurrentInstance() | 28 | const emit = defineEmits(['submit']) |
| 28 | const language= useStorage('language',0) | 29 | const { proxy } = getCurrentInstance() |
| 29 | import useUserStore from "@/store/modules/user"; | 30 | const language = useStorage('language', 0) |
| 31 | import useUserStore from '@/store/modules/user' | ||
| 32 | |||
| 30 | const user = useUserStore().user | 33 | const user = useUserStore().user |
| 31 | const title = ref('') | 34 | const title = ref('') |
| 32 | const cptName = ref('') | 35 | const cptName = ref('') |
| ... | @@ -48,16 +51,18 @@ defineExpose({ | ... | @@ -48,16 +51,18 @@ defineExpose({ |
| 48 | 51 | ||
| 49 | function getData() { | 52 | function getData() { |
| 50 | console.log(matchId) | 53 | console.log(matchId) |
| 51 | getBaseInfoByActiveId(matchId).then(res=>{ | 54 | getBaseInfoByActiveId(matchId).then(res => { |
| 52 | form.value = res.data || {} | 55 | form.value = res.data || {} |
| 53 | console.log(form.value) | 56 | console.log(form.value) |
| 54 | }).catch(err=>{ | 57 | }).catch(err => { |
| 55 | console.log(err) | 58 | console.log(err) |
| 56 | }) | 59 | }) |
| 57 | } | 60 | } |
| 61 | |||
| 58 | function close() { | 62 | function close() { |
| 59 | show.value = false | 63 | show.value = false |
| 60 | } | 64 | } |
| 65 | |||
| 61 | function ok() { | 66 | function ok() { |
| 62 | // type | 67 | // type |
| 63 | show.value = false | 68 | show.value = false |
| ... | @@ -70,6 +75,6 @@ function ok() { | ... | @@ -70,6 +75,6 @@ function ok() { |
| 70 | } | 75 | } |
| 71 | </script> | 76 | </script> |
| 72 | 77 | ||
| 73 | <style scoped lang="scss"> | 78 | <style lang="scss" scoped> |
| 74 | 79 | ||
| 75 | </style> | 80 | </style> | ... | ... |
-
Please register or sign in to post a comment