38d24180 by zrj

8.28 世锦赛票务服务功能

1 parent 91c38661
......@@ -239,7 +239,6 @@ function popRemark(type) {
|| (form.value.isFoodView == 0 && type == '3')
|| (form.value.isMealView == 0 && type == '4')
|| (form.value.isPhotoView == 0 && type == '5')
|| (form.value.isTicketView == 0 && type == '10')
) {
building()
return
......@@ -266,6 +265,9 @@ function popRemark(type) {
type: type,
cptName: props.cptName
}
if (type == '10') {
params.title = '票务服务'
}
proxy.$refs['orderRemarkRef'].open(params)
// goBooking(type)
......
<template>
<el-dialog v-model="show" :title="title" @close="close">
<div>
<h2 v-if="cptName" class="text-warning text-center">{{ cptName }}</h2>
<h2 v-if="cptName && type!=10" class="text-warning text-center">{{ cptName }}</h2>
<div v-if="type==1" class="plr20" v-html="form.reserveDes"></div>
<div v-if="type==2" class="plr20" v-html="form.reserveDesCar"></div>
<div v-if="type==3" class="plr20" v-html="form.reserveDesFood"></div>
<div v-if="type==4" class="plr20" v-html="form.reserveDesMeal"></div>
<div v-if="type==5" class="plr20" v-html="form.reserveDesPhoto"></div>
<div v-if="type==10" class="plr20" v-html="form.reserveDesTitck"></div>
<div v-if="type==10" class="plr20" >
<el-link v-for="v in fileList" :href="fillImgUrl(v.url)" :underline="false" class="link" target="_blank"
type="primary">
<span style="border-bottom: 1px solid var(--el-color-primary)">
{{ v.name }}
<el-icon style="margin-left: 10px;position: relative;bottom: -2px">
<Download/>
</el-icon>
</span>
</el-link>
<div v-if="content" v-html="content"/>
</div>
<el-row v-if="type==1" justify="center">
......@@ -32,11 +44,13 @@
import {getBaseInfoByActiveId} from "@/apiPc/booking";
import {getCurrentInstance} from "@vue/runtime-core";
import {useStorage} from "@vueuse/core/index";
import {getppInfo} from "@/apiPc/match";
const emit = defineEmits(['submit'])
const {proxy} = getCurrentInstance()
const language = useStorage('language', 0)
import useUserStore from "@/store/modules/user";
import {ref} from "vue";
const user = useUserStore().user
const title = ref('')
......@@ -44,6 +58,8 @@ const cptName = ref('')
const show = ref(false)
const form = ref({})
const hotelType = ref('')
const content = ref('')
const fileList = ref([])
let matchId = ''
let type = ''
......@@ -60,13 +76,31 @@ defineExpose({
})
function getData() {
console.log(matchId)
getBaseInfoByActiveId(matchId).then(res => {
form.value = res.data || {}
console.log(form.value)
}).catch(err => {
console.log(err)
})
if (type == '10') {
getppInfo("10000005").then(res => {
if (res.data) {
console.log(res.data)
if (language.value == 0) {
content.value = res.data.contextZh
fileList.value = JSON.parse(res.data.fileZh)
} else {
content.value = res.data.contextEn
fileList.value = JSON.parse(res.data.fileEn)
}
} else {
content.value = ''
fileList.value = []
}
})
} else {
getBaseInfoByActiveId(matchId).then(res => {
form.value = res.data || {}
console.log(form.value)
}).catch(err => {
console.log(err)
})
}
}
function close() {
......
......@@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => {
},
'/dev-api': {
// target: 'http://192.168.1.118:8082/',
// target: 'http://192.168.1.22:8082',
target: 'https://tk005.wxjylt.com/stage-api',
target: 'http://192.168.1.22:8082',
// target: 'https://tk005.wxjylt.com/stage-api',
// target: 'http://124.70.181.90:1880/stage-api',
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
changeOrigin: true,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!