8.28 世锦赛票务服务功能
Showing
3 changed files
with
42 additions
and
6 deletions
| ... | @@ -239,7 +239,6 @@ function popRemark(type) { | ... | @@ -239,7 +239,6 @@ function popRemark(type) { |
| 239 | || (form.value.isFoodView == 0 && type == '3') | 239 | || (form.value.isFoodView == 0 && type == '3') |
| 240 | || (form.value.isMealView == 0 && type == '4') | 240 | || (form.value.isMealView == 0 && type == '4') |
| 241 | || (form.value.isPhotoView == 0 && type == '5') | 241 | || (form.value.isPhotoView == 0 && type == '5') |
| 242 | || (form.value.isTicketView == 0 && type == '10') | ||
| 243 | ) { | 242 | ) { |
| 244 | building() | 243 | building() |
| 245 | return | 244 | return |
| ... | @@ -266,6 +265,9 @@ function popRemark(type) { | ... | @@ -266,6 +265,9 @@ function popRemark(type) { |
| 266 | type: type, | 265 | type: type, |
| 267 | cptName: props.cptName | 266 | cptName: props.cptName |
| 268 | } | 267 | } |
| 268 | if (type == '10') { | ||
| 269 | params.title = '票务服务' | ||
| 270 | } | ||
| 269 | proxy.$refs['orderRemarkRef'].open(params) | 271 | proxy.$refs['orderRemarkRef'].open(params) |
| 270 | 272 | ||
| 271 | // goBooking(type) | 273 | // goBooking(type) | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <el-dialog v-model="show" :title="title" @close="close"> | 2 | <el-dialog v-model="show" :title="title" @close="close"> |
| 3 | <div> | 3 | <div> |
| 4 | <h2 v-if="cptName" class="text-warning text-center">{{ cptName }}</h2> | 4 | <h2 v-if="cptName && type!=10" 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"></div> |
| 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"></div> |
| 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"></div> |
| 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"></div> |
| 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"></div> |
| 11 | <div v-if="type==10" class="plr20" v-html="form.reserveDesTitck"></div> | 11 | <div v-if="type==10" class="plr20" > |
| 12 | <el-link v-for="v in fileList" :href="fillImgUrl(v.url)" :underline="false" class="link" target="_blank" | ||
| 13 | type="primary"> | ||
| 14 | <span style="border-bottom: 1px solid var(--el-color-primary)"> | ||
| 15 | {{ v.name }} | ||
| 16 | <el-icon style="margin-left: 10px;position: relative;bottom: -2px"> | ||
| 17 | <Download/> | ||
| 18 | </el-icon> | ||
| 19 | </span> | ||
| 20 | |||
| 21 | </el-link> | ||
| 22 | <div v-if="content" v-html="content"/> | ||
| 23 | </div> | ||
| 12 | 24 | ||
| 13 | 25 | ||
| 14 | <el-row v-if="type==1" justify="center"> | 26 | <el-row v-if="type==1" justify="center"> |
| ... | @@ -32,11 +44,13 @@ | ... | @@ -32,11 +44,13 @@ |
| 32 | import {getBaseInfoByActiveId} from "@/apiPc/booking"; | 44 | import {getBaseInfoByActiveId} from "@/apiPc/booking"; |
| 33 | import {getCurrentInstance} from "@vue/runtime-core"; | 45 | import {getCurrentInstance} from "@vue/runtime-core"; |
| 34 | import {useStorage} from "@vueuse/core/index"; | 46 | import {useStorage} from "@vueuse/core/index"; |
| 47 | import {getppInfo} from "@/apiPc/match"; | ||
| 35 | 48 | ||
| 36 | const emit = defineEmits(['submit']) | 49 | const emit = defineEmits(['submit']) |
| 37 | const {proxy} = getCurrentInstance() | 50 | const {proxy} = getCurrentInstance() |
| 38 | const language = useStorage('language', 0) | 51 | const language = useStorage('language', 0) |
| 39 | import useUserStore from "@/store/modules/user"; | 52 | import useUserStore from "@/store/modules/user"; |
| 53 | import {ref} from "vue"; | ||
| 40 | 54 | ||
| 41 | const user = useUserStore().user | 55 | const user = useUserStore().user |
| 42 | const title = ref('') | 56 | const title = ref('') |
| ... | @@ -44,6 +58,8 @@ const cptName = ref('') | ... | @@ -44,6 +58,8 @@ const cptName = ref('') |
| 44 | const show = ref(false) | 58 | const show = ref(false) |
| 45 | const form = ref({}) | 59 | const form = ref({}) |
| 46 | const hotelType = ref('') | 60 | const hotelType = ref('') |
| 61 | const content = ref('') | ||
| 62 | const fileList = ref([]) | ||
| 47 | 63 | ||
| 48 | let matchId = '' | 64 | let matchId = '' |
| 49 | let type = '' | 65 | let type = '' |
| ... | @@ -60,13 +76,31 @@ defineExpose({ | ... | @@ -60,13 +76,31 @@ defineExpose({ |
| 60 | }) | 76 | }) |
| 61 | 77 | ||
| 62 | function getData() { | 78 | function getData() { |
| 63 | console.log(matchId) | 79 | if (type == '10') { |
| 80 | getppInfo("10000005").then(res => { | ||
| 81 | if (res.data) { | ||
| 82 | console.log(res.data) | ||
| 83 | if (language.value == 0) { | ||
| 84 | content.value = res.data.contextZh | ||
| 85 | fileList.value = JSON.parse(res.data.fileZh) | ||
| 86 | } else { | ||
| 87 | content.value = res.data.contextEn | ||
| 88 | fileList.value = JSON.parse(res.data.fileEn) | ||
| 89 | } | ||
| 90 | } else { | ||
| 91 | content.value = '' | ||
| 92 | fileList.value = [] | ||
| 93 | } | ||
| 94 | }) | ||
| 95 | } else { | ||
| 64 | getBaseInfoByActiveId(matchId).then(res => { | 96 | getBaseInfoByActiveId(matchId).then(res => { |
| 65 | form.value = res.data || {} | 97 | form.value = res.data || {} |
| 66 | console.log(form.value) | 98 | console.log(form.value) |
| 67 | }).catch(err => { | 99 | }).catch(err => { |
| 68 | console.log(err) | 100 | console.log(err) |
| 69 | }) | 101 | }) |
| 102 | } | ||
| 103 | |||
| 70 | } | 104 | } |
| 71 | 105 | ||
| 72 | function close() { | 106 | function close() { | ... | ... |
| ... | @@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => { | ... | @@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => { |
| 84 | }, | 84 | }, |
| 85 | '/dev-api': { | 85 | '/dev-api': { |
| 86 | // target: 'http://192.168.1.118:8082/', | 86 | // target: 'http://192.168.1.118:8082/', |
| 87 | // target: 'http://192.168.1.22:8082', | 87 | target: 'http://192.168.1.22:8082', |
| 88 | target: 'https://tk005.wxjylt.com/stage-api', | 88 | // target: 'https://tk005.wxjylt.com/stage-api', |
| 89 | // target: 'http://124.70.181.90:1880/stage-api', | 89 | // target: 'http://124.70.181.90:1880/stage-api', |
| 90 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | 90 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', |
| 91 | changeOrigin: true, | 91 | changeOrigin: true, | ... | ... |
-
Please register or sign in to post a comment