db6a9a5e by zhangmeng

按钮控制

1 parent fcfc577a
1 <template> 1 <template>
2 <div class="itemBox" v-if="language === 0"> 2 <div v-if="language === 0" class="itemBox">
3 <el-row :gutter="20"> 3 <el-row :gutter="20">
4 <el-col :sm="12" :lg="4" :xs="12"> 4 <el-col :lg="4" :sm="12" :xs="12">
5 <div class="item" @click="popRemark(0)"><img src="@/assets/dance/btn01.png">签证服务</div> 5 <div class="item" @click="popRemark(0)"><img src="@/assets/dance/btn01.png">签证服务</div>
6 </el-col> 6 </el-col>
7 <el-col :sm="12" :lg="4" :xs="12"> 7 <el-col :lg="4" :sm="12" :xs="12">
8 <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn02.png">酒店预订</div> 8 <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn02.png">酒店预订</div>
9 </el-col> 9 </el-col>
10 <el-col :sm="12" :lg="4" :xs="12"> 10 <el-col :lg="4" :sm="12" :xs="12">
11 <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn03.png">接送服务</div> 11 <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn03.png">接送服务</div>
12 </el-col> 12 </el-col>
13 <el-col :sm="12" :lg="4" :xs="12"> 13 <el-col :lg="4" :sm="12" :xs="12">
14 <div class="item" @click="popRemark(10)"><img src="@/assets/dance/btn04.png">票务服务</div> 14 <div class="item" @click="popRemark(10)"><img src="@/assets/dance/btn04.png">票务服务</div>
15 </el-col> 15 </el-col>
16 <el-col :sm="12" :lg="4" :xs="12"> 16 <el-col :lg="4" :sm="12" :xs="12">
17 <div class="item" @click="goMedia"><img src="@/assets/dance/btn07.png">媒体注册</div> 17 <div class="item" @click="goMedia"><img src="@/assets/dance/btn07.png">媒体注册</div>
18 </el-col> 18 </el-col>
19 <!-- <el-col :sm="12" :lg="4" :xs="12">--> 19 <!-- <el-col :sm="12" :lg="4" :xs="12">-->
...@@ -24,27 +24,27 @@ ...@@ -24,27 +24,27 @@
24 <!-- </el-col>--> 24 <!-- </el-col>-->
25 </el-row> 25 </el-row>
26 </div> 26 </div>
27 <div class="itemBox_en" v-else> 27 <div v-else class="itemBox_en">
28 <el-row :gutter="20" justify="space-around"> 28 <el-row :gutter="20" justify="space-around">
29 <el-col :sm="12" :lg="4" :xs="12"> 29 <el-col :lg="4" :sm="12" :xs="12">
30 <div class="item" @click="popRemark(0)"><img src="@/assets/dance/btn01.png">Visa Services</div> 30 <div class="item" @click="popRemark(0)"><img src="@/assets/dance/btn01.png">Visa Services</div>
31 </el-col> 31 </el-col>
32 <el-col :sm="12" :lg="4" :xs="12"> 32 <el-col :lg="4" :sm="12" :xs="12">
33 <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn02.png">HOTEL RESERVATION</div> 33 <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn02.png">HOTEL RESERVATION</div>
34 </el-col> 34 </el-col>
35 <el-col :sm="12" :lg="4" :xs="12"> 35 <el-col :lg="4" :sm="12" :xs="12">
36 <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn03.png">TRANSPORTATION RESERVATION</div> 36 <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn03.png">TRANSPORTATION RESERVATION</div>
37 </el-col> 37 </el-col>
38 <el-col :sm="12" :lg="4" :xs="12"> 38 <el-col :lg="4" :sm="12" :xs="12">
39 <div class="item" @click="popRemark(10)"><img src="@/assets/dance/btn04.png">TICKET SERVICES</div> 39 <div class="item" @click="popRemark(10)"><img src="@/assets/dance/btn04.png">TICKET SERVICES</div>
40 </el-col> 40 </el-col>
41 <el-col :sm="12" :lg="4" :xs="12"> 41 <el-col :lg="4" :sm="12" :xs="12">
42 <div class="item" @click="goMedia"><img src="@/assets/dance/btn07.png">Media Registration</div> 42 <div class="item" @click="goMedia"><img src="@/assets/dance/btn07.png">Media Registration</div>
43 </el-col> 43 </el-col>
44 <!-- <el-col :sm="12" :lg="4" :xs="12">--> 44 <!-- <el-col :sm="12" :lg="4" :xs="12">-->
45 <!-- <div class="item" @click="goAround"><img src="@/assets/dance/btn06.png">Around Activity</div>--> 45 <!-- <div class="item" @click="goAround"><img src="@/assets/dance/btn06.png">Around Activity</div>-->
46 <!-- </el-col>--> 46 <!-- </el-col>-->
47 47
48 <!-- <el-col :sm="12" :lg="4" :xs="12">--> 48 <!-- <el-col :sm="12" :lg="4" :xs="12">-->
49 <!-- <div class="item" @click="liveClick"><img src="@/assets/dance/btn05.png">live streaming</div>--> 49 <!-- <div class="item" @click="liveClick"><img src="@/assets/dance/btn05.png">live streaming</div>-->
50 <!-- </el-col>--> 50 <!-- </el-col>-->
...@@ -100,7 +100,7 @@ watch(matchId, (val) => { ...@@ -100,7 +100,7 @@ watch(matchId, (val) => {
100 console.log(err) 100 console.log(err)
101 form.value = null 101 form.value = null
102 }) 102 })
103 103
104 match.getInfoByCptId({cptId: props.matchId}).then((res) => { 104 match.getInfoByCptId({cptId: props.matchId}).then((res) => {
105 liveData.value = res.data || {} 105 liveData.value = res.data || {}
106 }) 106 })
...@@ -109,9 +109,9 @@ watch(matchId, (val) => { ...@@ -109,9 +109,9 @@ watch(matchId, (val) => {
109 109
110 const liveClick = () => { 110 const liveClick = () => {
111 if (liveData.value.videoStatus == "1") { 111 if (liveData.value.videoStatus == "1") {
112 112
113 if (language.value == 0) { 113 if (language.value == 0) {
114 114
115 window.open(liveData.value.videoUrlCn) 115 window.open(liveData.value.videoUrlCn)
116 } else { 116 } else {
117 window.open(liveData.value.videoUrlEn) 117 window.open(liveData.value.videoUrlEn)
...@@ -135,7 +135,7 @@ onMounted(() => { ...@@ -135,7 +135,7 @@ onMounted(() => {
135 135
136 function building() { 136 function building() {
137 ElMessage.warning(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.') 137 ElMessage.warning(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.')
138 return 138
139 } 139 }
140 140
141 function applyInvitation() { 141 function applyInvitation() {
...@@ -149,9 +149,12 @@ function applyInvitation() { ...@@ -149,9 +149,12 @@ function applyInvitation() {
149 const user = useUserStore().user 149 const user = useUserStore().user
150 150
151 function goMedia() { 151 function goMedia() {
152 proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' : 'Not yet open') 152 // proxy.$modal.msgWarning(language.value == 0 ? '暂未开放' : 'Not yet open')
153 return; 153 // return;
154 154 if (form.value.isMedia == 0) {
155 building()
156 return
157 }
155 //如果没登录 158 //如果没登录
156 if (!user) { 159 if (!user) {
157 ElMessage({ 160 ElMessage({
...@@ -160,7 +163,7 @@ function goMedia() { ...@@ -160,7 +163,7 @@ function goMedia() {
160 }) 163 })
161 return 164 return
162 } 165 }
163 166
164 proxy.$refs['mediaRegisterRef'].open({cptId: matchId.value}) 167 proxy.$refs['mediaRegisterRef'].open({cptId: matchId.value})
165 } 168 }
166 169
...@@ -169,15 +172,20 @@ function popRemark(type) { ...@@ -169,15 +172,20 @@ function popRemark(type) {
169 building() 172 building()
170 return 173 return
171 } 174 }
172 175
173 if (type == '0') { 176 if (type == '0') {
174 ElMessage.warning('The visa invitation letter application will be available soon. Thank you for your patience.') 177 // ElMessage.warning('The visa invitation letter application will be available soon. Thank you for your patience.')
175 return; 178 // return;
176 // 签证 179 // 签证
177 if (language.value === 0) { 180 if (language.value == 0) {
178 ElMessage.warning('请切换英文页面办理') 181 ElMessage.warning('请切换英文页面办理')
179 return 182 return
180 } else { 183 } else {
184 if (form.value.isVisa == 0) {
185 building()
186 return
187 }
188
181 if (!user) { 189 if (!user) {
182 ElMessage({ 190 ElMessage({
183 type: 'warning', 191 type: 'warning',
...@@ -185,29 +193,29 @@ function popRemark(type) { ...@@ -185,29 +193,29 @@ function popRemark(type) {
185 }) 193 })
186 return 194 return
187 } 195 }
188 196
189 applyInvitation() 197 applyInvitation()
190 return 198 return
191 } 199 }
192 } 200 }
193 201
194 if ((form.value.isJdView == 0 && type == '1') 202 if ((form.value.isJdView == 0 && type == '1')
195 || (form.value.isCarView == 0 && type == '2') 203 || (form.value.isCarView == 0 && type == '2')
196 || (form.value.isFoodView == 0 && type == '3') 204 || (form.value.isFoodView == 0 && type == '3')
197 || (form.value.isMealView == 0 && type == '4') 205 || (form.value.isMealView == 0 && type == '4')
198 || (form.value.isPhotoView == 0 && type == '5') 206 || (form.value.isPhotoView == 0 && type == '5')
199 || (form.value.isTicketView == 0 && type == '10') 207 || (form.value.isTicketView == 0 && type == '10')
200 ) { 208 ) {
201 building() 209 building()
202 return 210 return
203 } 211 }
204 212
205 if (type == '2') { 213 if (type == '2') {
206 emit("pickUp") 214 emit("pickUp")
207 return; 215 return;
208 } 216 }
209 217
210 218
211 const params = { 219 const params = {
212 matchId: props.matchId, 220 matchId: props.matchId,
213 title: language.value == 0 ? '预订说明' : 'Booking Instructions', 221 title: language.value == 0 ? '预订说明' : 'Booking Instructions',
...@@ -221,7 +229,7 @@ function goBooking(n, f) { ...@@ -221,7 +229,7 @@ function goBooking(n, f) {
221 switch (n) { 229 switch (n) {
222 case 10: 230 case 10:
223 // 票务 231 // 票务
224 232
225 // router.push({ 233 // router.push({
226 // path: `/booking/ticket/${props.matchId}`, 234 // path: `/booking/ticket/${props.matchId}`,
227 // params: {id:props.matchId}, 235 // params: {id:props.matchId},
...@@ -252,7 +260,7 @@ function goBooking(n, f) { ...@@ -252,7 +260,7 @@ function goBooking(n, f) {
252 } 260 }
253 </script> 261 </script>
254 262
255 <style scoped lang="scss"> 263 <style lang="scss" scoped>
256 .itemBox, .itemBox_en { 264 .itemBox, .itemBox_en {
257 padding: 20px; 265 padding: 20px;
258 background: #fff; 266 background: #fff;
...@@ -276,7 +284,7 @@ function goBooking(n, f) { ...@@ -276,7 +284,7 @@ function goBooking(n, f) {
276 background-size: 100% 100%; 284 background-size: 100% 100%;
277 border-radius: 15px; 285 border-radius: 15px;
278 gap: 10px; 286 gap: 10px;
279 287
280 img { 288 img {
281 object-fit: contain; 289 object-fit: contain;
282 width: 75px; 290 width: 75px;
...@@ -289,19 +297,19 @@ function goBooking(n, f) { ...@@ -289,19 +297,19 @@ function goBooking(n, f) {
289 text-align: center; 297 text-align: center;
290 text-transform: uppercase; 298 text-transform: uppercase;
291 height: 100%; 299 height: 100%;
292 300
293 img { 301 img {
294 position: relative; 302 position: relative;
295 transition: all 0.2s; 303 transition: all 0.2s;
296 } 304 }
297 305
298 &:hover { 306 &:hover {
299 box-shadow: 0 0 10px #eee; 307 box-shadow: 0 0 10px #eee;
300 308
301 img { 309 img {
302 transform: rotateY(180deg); 310 transform: rotateY(180deg);
303 } 311 }
304 312
305 p { 313 p {
306 color: #000; 314 color: #000;
307 } 315 }
...@@ -317,7 +325,7 @@ function goBooking(n, f) { ...@@ -317,7 +325,7 @@ function goBooking(n, f) {
317 height: auto !important; 325 height: auto !important;
318 padding: 15px 0; 326 padding: 15px 0;
319 margin: 10px 0; 327 margin: 10px 0;
320 328
321 img { 329 img {
322 width: 50px; 330 width: 50px;
323 height: 50px 331 height: 50px
......
1 import { defineConfig, loadEnv } from 'vite' 1 import {defineConfig, loadEnv} from 'vite'
2 import path, { resolve } from 'path' 2 import path, {resolve} from 'path'
3 import createVitePlugins from './vite/plugins' 3 import createVitePlugins from './vite/plugins'
4 import inject from '@rollup/plugin-inject' 4 import inject from '@rollup/plugin-inject'
5 import commonjs from '@rollup/plugin-commonjs' 5 import commonjs from '@rollup/plugin-commonjs'
6 // import legacy from '@vitejs/plugin-legacy' 6 // import legacy from '@vitejs/plugin-legacy'
7 7
8 // https://vitejs.dev/config/ 8 // https://vitejs.dev/config/
9 export default defineConfig(({ mode, command }) => { 9 export default defineConfig(({mode, command}) => {
10 const env = loadEnv(mode, process.cwd()) 10 const env = loadEnv(mode, process.cwd())
11 return { 11 return {
12 // 部署生产环境和开发环境下的URL。 12 // 部署生产环境和开发环境下的URL。
...@@ -82,7 +82,7 @@ export default defineConfig(({ mode, command }) => { ...@@ -82,7 +82,7 @@ export default defineConfig(({ mode, command }) => {
82 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') 82 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '')
83 }, 83 },
84 '/dev-api': { 84 '/dev-api': {
85 target: 'http://192.168.1.118:8082/', 85 // target: 'http://192.168.1.118:8082/',
86 // target: 'http://192.168.1.131:8081/', 86 // target: 'http://192.168.1.131:8081/',
87 // target: 'https://ces.2025wtcwuxi.com/stage-api/', 87 // target: 'https://ces.2025wtcwuxi.com/stage-api/',
88 // target: 'http://124.70.181.90:1880/stage-api', 88 // target: 'http://124.70.181.90:1880/stage-api',
...@@ -92,8 +92,8 @@ export default defineConfig(({ mode, command }) => { ...@@ -92,8 +92,8 @@ export default defineConfig(({ mode, command }) => {
92 }, 92 },
93 '/ticket': { 93 '/ticket': {
94 // target: 'http://192.168.1.131:8098/', 94 // target: 'http://192.168.1.131:8098/',
95 // target: 'http://192.168.1.131:8081/', 95 target: 'http://36.153.235.222:8899/',
96 target: 'https://jijin.wtwuxicenter.com/h5/', 96 // target: 'https://jijin.wtwuxicenter.com/h5/',
97 // target: 'https://ticketh5.wdsfwuxicenter.com/h5/', 97 // target: 'https://ticketh5.wdsfwuxicenter.com/h5/',
98 changeOrigin: true, 98 changeOrigin: true,
99 rewrite: (p) => p.replace(/^\/ticket/, '') 99 rewrite: (p) => p.replace(/^\/ticket/, '')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!