8cdfd2c8 by 华明祺

Merge branch 'dev' of https://code.itechtop.cn/yangyang/dance-pc into dev

2 parents d2bdf28e 126485c3
...@@ -81,7 +81,12 @@ export function getCptsorts() { ...@@ -81,7 +81,12 @@ export function getCptsorts() {
81 method: 'get' 81 method: 'get'
82 }) 82 })
83 } 83 }
84 84 export function getRank() {
85 return request({
86 url: `/ztx/note/medalTable`,
87 method: 'get'
88 })
89 }
85 // 根据id查新闻列表 90 // 根据id查新闻列表
86 export function getNewsListById(query) { 91 export function getNewsListById(query) {
87 return request({ 92 return request({
......
...@@ -14,32 +14,33 @@ ...@@ -14,32 +14,33 @@
14 </div> 14 </div>
15 </div> 15 </div>
16 <div v-loading="loading" class="box"> 16 <div v-loading="loading" class="box">
17 <div v-for="(h,index) in list" :key="index"> 17 <div v-for="(h,index) in list" :key="index" class="routeItem">
18 <el-row :gutter="20" align="middle" class="w100"> 18 <el-row :gutter="20" align="middle" class="w100">
19 <el-col :span="4"> 19 <el-col :lg="2" :sm="6">
20 <div class="index">{{ language == 0 ? '路线' : 'Route' }}{{ index + 1 }} 20 <div class="index">{{ language == 0 ? '路线' : 'Route' }}{{ index + 1 }}
21 </div> 21 </div>
22 </el-col> 22 </el-col>
23 <el-col :span="6"> 23 <el-col :lg="6" >
24 <p class="esp">{{ h.checkIn }}</p> 24 <p class="esp text-center">{{ h.checkIn }}</p>
25 </el-col> 25 </el-col>
26 <el-col :span="4" class="text-center"> 26 <el-col :lg="4" :sm="6" class="text-center">
27 <img class="mauto w40px" src="@/assets/booking/wf.png"/> 27 <img class="mauto w40px" src="@/assets/booking/wf.png"/>
28 </el-col> 28 </el-col>
29 <el-col :span="6"> 29 <el-col :lg="6" >
30 <p class="esp ">{{ h.checkOut }}</p> 30 <p class="esp text-center">{{ h.checkOut }}</p>
31 </el-col> 31 </el-col>
32 <el-col :span="2"> 32 <el-col :lg="3" :sm="12">
33 <div v-if="language==0" class="price">¥ 33 <div v-if="language==0" class="price">
34 <span>{{h.upPrice}}</span> 34 ¥
35 <span>{{ h.upPrice }}</span>
35 </div> 36 </div>
36 <div v-else class="price"> 37 <div v-else class="price">
37 38
38 <span>{{h.upPriceEn}}</span> 39 <span>{{ h.upPriceEn }}</span>
39 </div> 40 </div>
40 41
41 </el-col> 42 </el-col>
42 <el-col :span="2"> 43 <el-col :lg="3" :sm="12">
43 <el-button class="btn-lineG w100" round type="primary" @click="goOrder(h)"> 44 <el-button class="btn-lineG w100" round type="primary" @click="goOrder(h)">
44 {{ language == 0 ? '我要预订' : 'Select' }} 45 {{ language == 0 ? '我要预订' : 'Select' }}
45 </el-button> 46 </el-button>
...@@ -275,15 +276,7 @@ function goOrder(item, car) { ...@@ -275,15 +276,7 @@ function goOrder(item, car) {
275 } 276 }
276 } 277 }
277 278
278 .price {
279 color: #FF8124;
280 font-size: 24px;
281 279
282 span {
283 font-size: 36px;
284 font-family: "DIN Alternate"
285 }
286 }
287 280
288 .bg-lineg { 281 .bg-lineg {
289 margin: auto; 282 margin: auto;
...@@ -304,5 +297,15 @@ function goOrder(item, car) { ...@@ -304,5 +297,15 @@ function goOrder(item, car) {
304 } 297 }
305 } 298 }
306 } 299 }
300 .routeItem{background: #fff;border-radius: 10px;margin: 0 0 20px;padding: 10px 20px;box-shadow: 0 0 6px #eee;
301 .price {
302 color: #FF8124;
303 font-size: 24px;
307 304
305 span {
306 font-size: 36px;
307 font-family: "DIN Alternate"
308 }
309 }
310 }
308 </style> 311 </style>
......
...@@ -152,18 +152,18 @@ ...@@ -152,18 +152,18 @@
152 </el-col> 152 </el-col>
153 <el-col :sm="24" :lg="12"> 153 <el-col :sm="24" :lg="12">
154 <div class="indexTitle"> 154 <div class="indexTitle">
155 <h3 class="leftboderTT">奖牌榜(2023)</h3> 155 <h3 class="leftboderTT">奖牌榜</h3>
156 <a class="more" href="#/saiC">MORE</a> 156 <a class="more" href="#/saiC">MORE</a>
157 </div> 157 </div>
158 <!--历史排名--> 158 <!--历史排名-->
159 <el-card :body-style="{'padding':'10px 20px 18px'}"> 159 <el-card :body-style="{'padding':'10px 20px 18px'}">
160 <el-table stripe :data="rankList"> 160 <el-table stripe :data="rank">
161 <el-table-column label="名次" align="center" width="50" type="index"> 161 <el-table-column label="名次" align="center" width="50" type="index">
162 <template #default="scope"> 162 <template #default="scope">
163 <span v-if="scope.row.index == 1" style="color:#F8A617">{{ scope.row.index }}</span> 163 <span v-if="scope.row.mingCi == 1" style="color:#F8A617">{{ scope.row.mingCi }}</span>
164 <span v-else-if="scope.row.index == 2" style="color:#778B92">{{ scope.row.index }}</span> 164 <span v-else-if="scope.row.mingCi == 2" style="color:#778B92">{{ scope.row.mingCi }}</span>
165 <span v-else-if="scope.row.index == 3" style="color:#7F2D00">{{ scope.row.index }}</span> 165 <span v-else-if="scope.row.mingCi == 3" style="color:#7F2D00">{{ scope.row.mingCi }}</span>
166 <span v-else>{{ scope.row.index }}</span> 166 <span v-else>{{ scope.row.mingCi }}</span>
167 </template> 167 </template>
168 </el-table-column> 168 </el-table-column>
169 169
...@@ -171,13 +171,13 @@ ...@@ -171,13 +171,13 @@
171 <template #default="scope"> 171 <template #default="scope">
172 <div> 172 <div>
173 <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> 173 <span :class="`flag-icon flag-icon-${scope.row.code}`"></span>
174 {{ scope.row.gj }} 174 {{ scope.row.countryName }}
175 </div> 175 </div>
176 </template> 176 </template>
177 </el-table-column> 177 </el-table-column>
178 <el-table-column label="组合" align="center"> 178 <el-table-column label="组合" align="center">
179 <template #default="scope"> 179 <template #default="scope">
180 <div class="text-primary esp">{{ scope.row.name }}</div> 180 <div class="text-primary esp">{{ scope.row.zuHe }}</div>
181 </template> 181 </template>
182 </el-table-column> 182 </el-table-column>
183 <el-table-column width="60"> 183 <el-table-column width="60">
...@@ -404,7 +404,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick' ...@@ -404,7 +404,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick'
404 import HomeCalendar from '@/viewsPc/components/homeCalendar' 404 import HomeCalendar from '@/viewsPc/components/homeCalendar'
405 import {ref, nextTick, onMounted, watch} from 'vue' 405 import {ref, nextTick, onMounted, watch} from 'vue'
406 import {getCurrentInstance} from '@vue/runtime-core' 406 import {getCurrentInstance} from '@vue/runtime-core'
407 import {getHomePage, getNewsListById, getNewsList} from '@/apiPc/webSite' 407 import {getHomePage, getNewsListById, getNewsList, getRank} from '@/apiPc/webSite'
408 import {useRouter} from 'vue-router' 408 import {useRouter} from 'vue-router'
409 import {rankList} from '@/assets/js/data' 409 import {rankList} from '@/assets/js/data'
410 import _ from 'lodash' 410 import _ from 'lodash'
...@@ -433,6 +433,7 @@ const personList = ref([ ...@@ -433,6 +433,7 @@ const personList = ref([
433 { name: 'Dallas Leslie Williams', pp: '记分长 澳大利亚', src: '/img/6.png' } 433 { name: 'Dallas Leslie Williams', pp: '记分长 澳大利亚', src: '/img/6.png' }
434 ]) 434 ])
435 const activeNews = ref(0) 435 const activeNews = ref(0)
436 const rank = ref([])
436 const banners = ref([]) 437 const banners = ref([])
437 const newest = ref([]) 438 const newest = ref([])
438 const newest2 = ref([]) 439 const newest2 = ref([])
...@@ -456,6 +457,9 @@ const init = () => { ...@@ -456,6 +457,9 @@ const init = () => {
456 var today = dayjs().format('YYYY-MM-DD HH:mm:ss') 457 var today = dayjs().format('YYYY-MM-DD HH:mm:ss')
457 time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond') 458 time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond')
458 etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond') 459 etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond')
460 getRank().then(res=>{
461 rank.value = res.data.slice(0,6)
462 })
459 getNewsListById({ 463 getNewsListById({
460 pageSize: time.value>0? 3:4, 464 pageSize: time.value>0? 3:4,
461 pageNum: 1, 465 pageNum: 1,
......
...@@ -128,31 +128,31 @@ ...@@ -128,31 +128,31 @@
128 </el-col> 128 </el-col>
129 <el-col :sm="24" :lg="12"> 129 <el-col :sm="24" :lg="12">
130 <div class="indexTitle"> 130 <div class="indexTitle">
131 <h3 class="leftboderTT">MEDAL LIST(2023)</h3> 131 <h3 class="leftboderTT">MEDAL LIST</h3>
132 <a class="more" href="#/saiC">MORE</a> 132 <!-- <a class="more" href="#/saiC">MORE</a>-->
133 </div> 133 </div>
134 <!--历史排名--> 134 <!--历史排名-->
135 <el-card :body-style="{'padding':'10px 20px 18px'}"> 135 <el-card :body-style="{'padding':'10px 20px 18px'}">
136 <el-table stripe :data="rankList"> 136 <el-table stripe :data="rank">
137 <el-table-column label="RANK" align="center" width="80" type="index"> 137 <el-table-column label="RANK" align="center" width="80" type="index">
138 <template #default="scope"> 138 <template #default="scope">
139 <span v-if="scope.row.index == 1" style="color:#F8A617">{{ scope.row.index }}</span> 139 <span v-if="scope.row.mingCi == 1" style="color:#F8A617">{{ scope.row.mingCi }}</span>
140 <span v-else-if="scope.row.index == 2" style="color:#778B92">{{ scope.row.index }}</span> 140 <span v-else-if="scope.row.mingCi == 2" style="color:#778B92">{{ scope.row.mingCi }}</span>
141 <span v-else-if="scope.row.index == 3" style="color:#7F2D00">{{ scope.row.index }}</span> 141 <span v-else-if="scope.row.mingCi == 3" style="color:#7F2D00">{{ scope.row.mingCi }}</span>
142 <span v-else>{{ scope.row.index }}</span> 142 <span v-else>{{ scope.row.mingCi }}</span>
143 </template> 143 </template>
144 </el-table-column> 144 </el-table-column>
145 <el-table-column label="COUNTRY"> 145 <el-table-column label="COUNTRY">
146 <template #default="scope"> 146 <template #default="scope">
147 <div> 147 <div>
148 <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> 148 <span :class="`flag-icon flag-icon-${scope.row.code}`"></span>
149 {{ scope.row.en_gj }} 149 {{ scope.row.countryShortName }}
150 </div> 150 </div>
151 </template> 151 </template>
152 </el-table-column> 152 </el-table-column>
153 <el-table-column label="COUPLE" align="center"> 153 <el-table-column label="COUPLE" align="center">
154 <template #default="scope"> 154 <template #default="scope">
155 <div class="text-primary esp">{{ scope.row.name }}</div> 155 <div class="text-primary esp">{{ scope.row.zuHe }}</div>
156 </template> 156 </template>
157 </el-table-column> 157 </el-table-column>
158 <el-table-column width="50"> 158 <el-table-column width="50">
...@@ -376,7 +376,7 @@ ...@@ -376,7 +376,7 @@
376 <script setup> 376 <script setup>
377 import { ref, nextTick, onMounted, watch } from 'vue' 377 import { ref, nextTick, onMounted, watch } from 'vue'
378 import { getCurrentInstance } from '@vue/runtime-core' 378 import { getCurrentInstance } from '@vue/runtime-core'
379 import { getNewsListById, getNewsList,getWeather} from '@/apiPc/webSite' 379 import {getNewsListById, getNewsList, getWeather, getRank} from '@/apiPc/webSite'
380 import { useRouter } from 'vue-router' 380 import { useRouter } from 'vue-router'
381 import _ from 'lodash' 381 import _ from 'lodash'
382 import HomeQuick from '@/viewsPc/components/homeQuick' 382 import HomeQuick from '@/viewsPc/components/homeQuick'
...@@ -408,6 +408,7 @@ const personList = ref([ ...@@ -408,6 +408,7 @@ const personList = ref([
408 ]) 408 ])
409 const activeNews = ref(0) 409 const activeNews = ref(0)
410 const banners = ref([]) 410 const banners = ref([])
411 const rank = ref([])
411 const newest = ref([]) 412 const newest = ref([])
412 const newest2 = ref([]) 413 const newest2 = ref([])
413 const news = ref([]) 414 const news = ref([])
...@@ -433,6 +434,9 @@ const init = () => { ...@@ -433,6 +434,9 @@ const init = () => {
433 var today = dayjs().format('YYYY-MM-DD HH:mm:ss') 434 var today = dayjs().format('YYYY-MM-DD HH:mm:ss')
434 etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond') 435 etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond')
435 time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond') 436 time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond')
437 getRank().then(res=>{
438 rank.value = res.data
439 })
436 getNewsListById( 440 getNewsListById(
437 { pageSize: 4, 441 { pageSize: 4,
438 pageNum: 1, 442 pageNum: 1,
......
...@@ -275,9 +275,7 @@ function verifyCode() { ...@@ -275,9 +275,7 @@ function verifyCode() {
275 275
276 function codeSuccess(msg) { 276 function codeSuccess(msg) {
277 isShow.value = false 277 isShow.value = false
278 console.log('old', isCodeTrue.value)
279 isCodeTrue.value += 1 278 isCodeTrue.value += 1
280 console.log('new', isCodeTrue.value)
281 if (isCodeTrue.value == 1) { 279 if (isCodeTrue.value == 1) {
282 checkWdsf({card: form.value.card}).then(res => { 280 checkWdsf({card: form.value.card}).then(res => {
283 wdsfData.value = res.data 281 wdsfData.value = res.data
...@@ -397,8 +395,6 @@ function next() { ...@@ -397,8 +395,6 @@ function next() {
397 } 395 }
398 registerSingle(obj).then(res => { 396 registerSingle(obj).then(res => {
399 setToken(res.data.token) 397 setToken(res.data.token)
400
401 console.log(matchId.value)
402 afterR() 398 afterR()
403 }) 399 })
404 } 400 }
...@@ -423,7 +419,6 @@ function next() { ...@@ -423,7 +419,6 @@ function next() {
423 } 419 }
424 loginSingle(obj).then(res => { 420 loginSingle(obj).then(res => {
425 setToken(res.data.token) 421 setToken(res.data.token)
426 console.log(matchId.value)
427 afterR() 422 afterR()
428 }).catch(err => { 423 }).catch(err => {
429 424
...@@ -460,13 +455,12 @@ function forgetPassword(account) { ...@@ -460,13 +455,12 @@ function forgetPassword(account) {
460 useUserStore().setReLogin({account: account, active: 2}) 455 useUserStore().setReLogin({account: account, active: 2})
461 } 456 }
462 const ocrSuccess = (res) => { 457 const ocrSuccess = (res) => {
463 wdsfData.value.passportUrl = res.data.url 458 if (res.code == 200) {
464 if(res.code==200){
465 wdsfData.value.passportUrl = res.data.url 459 wdsfData.value.passportUrl = res.data.url
466 wdsfData.value.passportNumber = res.data.code 460 wdsfData.value.passportNumber = res.data.code
467 wdsfData.value.birthday = res.data.birth?.slice(0, 10) 461 wdsfData.value.birthday = res.data.birth?.slice(0, 10)
468 wdsfData.value.sex = res.data.sex 462 wdsfData.value.sex = res.data.sex
469 } else if(res.code==500){ 463 } else if (res.code == 500) {
470 ElMessage.warning(res.msg) 464 ElMessage.warning(res.msg)
471 } 465 }
472 } 466 }
......
...@@ -33,7 +33,57 @@ ...@@ -33,7 +33,57 @@
33 </el-col> 33 </el-col>
34 </el-row> 34 </el-row>
35 </el-card> 35 </el-card>
36 <el-card class="mt20 mb20">
37 <el-table stripe :data="rank">
38 <el-table-column label="名次" align="center" type="index">
39 <template #default="scope">
40 <span v-if="scope.row.mingCi == 1" style="color:#F8A617">{{ scope.row.mingCi }}</span>
41 <span v-else-if="scope.row.mingCi == 2" style="color:#778B92">{{ scope.row.mingCi }}</span>
42 <span v-else-if="scope.row.mingCi == 3" style="color:#7F2D00">{{ scope.row.mingCi }}</span>
43 <span v-else>{{ scope.row.mingCi }}</span>
44 </template>
45 </el-table-column>
36 46
47 <el-table-column label="国家" prop="name">
48 <template #default="scope">
49 <div>
50 <span :class="`flag-icon flag-icon-${scope.row.code}`"></span>
51 {{ scope.row.countryName }}
52 </div>
53 </template>
54 </el-table-column>
55 <el-table-column label="组合" align="center">
56 <template #default="scope">
57 <div class="text-primary esp">{{ scope.row.zuHe }}</div>
58 </template>
59 </el-table-column>
60 <el-table-column min-width="60">
61 <template #header>
62 <img class="mauto" src="@/assets/dance/1.png">
63 </template>
64 <template #default="scope">
65 <div class="text-warning text-center">{{ scope.row.jin }}</div>
66 </template>
67 </el-table-column>
68 <el-table-column min-width="60">
69 <template #header>
70 <img class="mauto" src="@/assets/dance/2.png">
71 </template>
72 <template #default="scope">
73 <div class="text-blue text-center">{{ scope.row.yin }}</div>
74 </template>
75 </el-table-column>
76 <el-table-column min-width="60">
77 <template #header>
78 <img class="mauto" src="@/assets/dance/3.png">
79 </template>
80 <template #default="scope">
81 <div class="text-primary text-center">{{ scope.row.tong }}</div>
82 </template>
83 </el-table-column>
84 </el-table>
85
86 </el-card>
37 <el-card class="mt20 mb20" v-for="(n,index) in cjList" hidden> 87 <el-card class="mt20 mb20" v-for="(n,index) in cjList" hidden>
38 <div class="leftboderTT">{{ language==0?n.title:n.en_title }}</div> 88 <div class="leftboderTT">{{ language==0?n.title:n.en_title }}</div>
39 <div v-for="(m,jndex) in n.list"> 89 <div v-for="(m,jndex) in n.list">
...@@ -79,12 +129,14 @@ import { dayjs } from 'element-plus' ...@@ -79,12 +129,14 @@ import { dayjs } from 'element-plus'
79 const router = useRouter() 129 const router = useRouter()
80 import {useStorage} from "@vueuse/core/index"; 130 import {useStorage} from "@vueuse/core/index";
81 import {getIndexScheduleList} from "@/apiPc/common"; 131 import {getIndexScheduleList} from "@/apiPc/common";
132 import {getRank} from '@/apiPc/webSite'
82 import {useRouter} from "vue-router"; 133 import {useRouter} from "vue-router";
83 const language = useStorage('language', 0) 134 const language = useStorage('language', 0)
84 const years = ref([]) 135 const years = ref([])
85 const currYear = ref(null) 136 const currYear = ref(null)
86 const ztxPlanList = ref([]) 137 const ztxPlanList = ref([])
87 const planList = ref([]) 138 const planList = ref([])
139 const rank = ref([])
88 const schList = ref([]) 140 const schList = ref([])
89 const loading = ref(false) 141 const loading = ref(false)
90 const currentDate = ref(dayjs('2024-07-17').toDate()) 142 const currentDate = ref(dayjs('2024-07-17').toDate())
...@@ -94,6 +146,12 @@ const query = ref({ ...@@ -94,6 +146,12 @@ const query = ref({
94 }) 146 })
95 147
96 getScheduleList() 148 getScheduleList()
149 getRankList()
150 function getRankList() {
151 getRank().then(res=>{
152 rank.value = res.data
153 })
154 }
97 function getScheduleList() { 155 function getScheduleList() {
98 loading.value = true 156 loading.value = true
99 query.value.currentDate = dayjs(query.value.currentDate).format('YYYY-MM-DD') 157 query.value.currentDate = dayjs(query.value.currentDate).format('YYYY-MM-DD')
......
...@@ -81,8 +81,8 @@ export default defineConfig(({ mode, command }) => { ...@@ -81,8 +81,8 @@ export default defineConfig(({ mode, command }) => {
81 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') 81 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '')
82 }, 82 },
83 '/dev-api': { 83 '/dev-api': {
84 target: 'http://192.168.1.118:8081/', 84 // target: 'http://192.168.1.118:8081/',
85 // target: 'http://192.168.1.253:8081', 85 target: 'http://192.168.1.253:8081',
86 // target: 'https://jijin.wtwuxicenter.com/stage-api', 86 // target: 'https://jijin.wtwuxicenter.com/stage-api',
87 // target: 'https://wdsfwuxicenter.com/stage-api/', 87 // target: 'https://wdsfwuxicenter.com/stage-api/',
88 changeOrigin: true, 88 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!