大师课
Showing
6 changed files
with
76 additions
and
21 deletions
| ... | @@ -47,6 +47,7 @@ export function newbilllist(query) { | ... | @@ -47,6 +47,7 @@ export function newbilllist(query) { |
| 47 | params: query | 47 | params: query |
| 48 | }) | 48 | }) |
| 49 | } | 49 | } |
| 50 | |||
| 50 | export function vistorRegister(data) { | 51 | export function vistorRegister(data) { |
| 51 | return request({ | 52 | return request({ |
| 52 | url: `/pcSimpleRegister`, | 53 | url: `/pcSimpleRegister`, |
| ... | @@ -68,3 +69,40 @@ export function upgradeTeam(data) { | ... | @@ -68,3 +69,40 @@ export function upgradeTeam(data) { |
| 68 | data: data | 69 | data: data |
| 69 | }) | 70 | }) |
| 70 | } | 71 | } |
| 72 | |||
| 73 | export function submitMasterApply(data) { | ||
| 74 | return request({ | ||
| 75 | url: `/league/courseUser`, | ||
| 76 | method: 'post', | ||
| 77 | data: data | ||
| 78 | }) | ||
| 79 | } | ||
| 80 | export function masterClassList(query) { | ||
| 81 | return request({ | ||
| 82 | url: `/league/courseItem/list`, | ||
| 83 | method: 'get', | ||
| 84 | params: query | ||
| 85 | }) | ||
| 86 | } | ||
| 87 | export function getByCard(query) { | ||
| 88 | return request({ | ||
| 89 | url: `/league/courseUser/getByCard`, | ||
| 90 | method: 'get', | ||
| 91 | params: query | ||
| 92 | }) | ||
| 93 | } | ||
| 94 | export function getMasterApply(query) { | ||
| 95 | return request({ | ||
| 96 | url: `/league/courseUser/getCourseByUser`, | ||
| 97 | method: 'get', | ||
| 98 | params: query | ||
| 99 | }) | ||
| 100 | } | ||
| 101 | export function delByCard(card) { | ||
| 102 | return request({ | ||
| 103 | url: `/league/courseUser/delByCard?card=${card}`, | ||
| 104 | method: 'delete' | ||
| 105 | }) | ||
| 106 | } | ||
| 107 | |||
| 108 | ... | ... |
This diff is collapsed.
Click to expand it.
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | <index-Ch v-if="language ==0"/> | 3 | <index-Ch v-if="language ==0" @pop="openMaster"/> |
| 4 | <index-En v-else/> | 4 | <index-En v-else @pop="openMaster"/> |
| 5 | <div v-if="showgg" class="fixed_gg"> | 5 | <div v-if="showgg" class="fixed_gg"> |
| 6 | <!--天气--> | 6 | <!--天气--> |
| 7 | <el-icon class="cclose" @click.stop="showgg=false"><circle-close /></el-icon> | 7 | <el-icon class="cclose" @click.stop="showgg=false"><circle-close /></el-icon> |
| ... | @@ -59,6 +59,8 @@ | ... | @@ -59,6 +59,8 @@ |
| 59 | </div> | 59 | </div> |
| 60 | </el-dialog> | 60 | </el-dialog> |
| 61 | </div> | 61 | </div> |
| 62 | |||
| 63 | <dialog-master-class ref="masterClassRef"/> | ||
| 62 | </div> | 64 | </div> |
| 63 | 65 | ||
| 64 | </template> | 66 | </template> |
| ... | @@ -67,10 +69,12 @@ | ... | @@ -67,10 +69,12 @@ |
| 67 | import IndexCh from '/src/viewsPc/index' | 69 | import IndexCh from '/src/viewsPc/index' |
| 68 | import IndexEn from '/src/viewsPc/index_en' | 70 | import IndexEn from '/src/viewsPc/index_en' |
| 69 | import WeatherIcon from '@/viewsPc/components/weatherIcon' | 71 | import WeatherIcon from '@/viewsPc/components/weatherIcon' |
| 70 | 72 | import DialogMasterClass from '@/viewsPc/components/masterClass' | |
| 71 | import {useStorage} from "@vueuse/core/index"; | 73 | import {useStorage} from "@vueuse/core/index"; |
| 72 | import {ref} from "vue"; | 74 | import {ref} from "vue"; |
| 73 | import {getWeather} from "@/apiPc/webSite"; | 75 | import {getWeather} from "@/apiPc/webSite"; |
| 76 | import {getCurrentInstance} from "@vue/runtime-core"; | ||
| 77 | const {proxy} = getCurrentInstance() | ||
| 74 | const showgg = ref(true) | 78 | const showgg = ref(true) |
| 75 | 79 | ||
| 76 | const language = useStorage('language', 0) | 80 | const language = useStorage('language', 0) |
| ... | @@ -91,7 +95,14 @@ function init(){ | ... | @@ -91,7 +95,14 @@ function init(){ |
| 91 | const popWeather = () => { | 95 | const popWeather = () => { |
| 92 | weatherdialog.value = true | 96 | weatherdialog.value = true |
| 93 | } | 97 | } |
| 94 | 98 | const openMaster = (params) => { | |
| 99 | console.log(params) | ||
| 100 | var obj = { | ||
| 101 | title:'大师课申请', | ||
| 102 | cptId:params.cptId | ||
| 103 | } | ||
| 104 | proxy.$refs['masterClassRef'].open(obj) | ||
| 105 | } | ||
| 95 | </script> | 106 | </script> |
| 96 | 107 | ||
| 97 | <style scoped lang="scss"> | 108 | <style scoped lang="scss"> | ... | ... |
| ... | @@ -94,7 +94,7 @@ | ... | @@ -94,7 +94,7 @@ |
| 94 | </el-icon> | 94 | </el-icon> |
| 95 | </a> | 95 | </a> |
| 96 | 96 | ||
| 97 | <el-button>大师公益课报名</el-button> | 97 | <el-button class="zn-btn ml20" @click="popMaster">大师公益课报名</el-button> |
| 98 | </div> | 98 | </div> |
| 99 | </el-col> | 99 | </el-col> |
| 100 | <el-col :sm="24" :lg="14"> | 100 | <el-col :sm="24" :lg="14"> |
| ... | @@ -361,7 +361,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick' | ... | @@ -361,7 +361,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick' |
| 361 | import HomeCalendar from '@/viewsPc/components/homeCalendar' | 361 | import HomeCalendar from '@/viewsPc/components/homeCalendar' |
| 362 | import {ref, nextTick, onMounted, watch} from 'vue' | 362 | import {ref, nextTick, onMounted, watch} from 'vue' |
| 363 | import {getCurrentInstance} from '@vue/runtime-core' | 363 | import {getCurrentInstance} from '@vue/runtime-core' |
| 364 | import {getHomePage, getNewsListById, getNewsList, getWeather} from '@/apiPc/webSite' | 364 | import {getHomePage, getNewsListById, getNewsList} from '@/apiPc/webSite' |
| 365 | import {useRouter} from 'vue-router' | 365 | import {useRouter} from 'vue-router' |
| 366 | import {rankList} from '@/assets/js/data' | 366 | import {rankList} from '@/assets/js/data' |
| 367 | import _ from 'lodash' | 367 | import _ from 'lodash' |
| ... | @@ -377,14 +377,7 @@ const navigationPic = ref({ | ... | @@ -377,14 +377,7 @@ const navigationPic = ref({ |
| 377 | }) | 377 | }) |
| 378 | const router = useRouter() | 378 | const router = useRouter() |
| 379 | const {proxy} = getCurrentInstance() | 379 | const {proxy} = getCurrentInstance() |
| 380 | const bannerVideo = ref(null) | 380 | const emit = defineEmits(['pop']) |
| 381 | const isPlay = ref(false) | ||
| 382 | const canPrev = ref(false) | ||
| 383 | const canNext = ref(false) | ||
| 384 | const activeRankName = ref(0) | ||
| 385 | const weatherObj = ref({ | ||
| 386 | forecast:[] | ||
| 387 | }) | ||
| 388 | const time = ref(0) | 381 | const time = ref(0) |
| 389 | const personList = ref([ | 382 | const personList = ref([ |
| 390 | { name: 'Wolfgang Eliasch', pp: '拉丁舞裁判长 奥地利', src: '/img/1.png' }, | 383 | { name: 'Wolfgang Eliasch', pp: '拉丁舞裁判长 奥地利', src: '/img/1.png' }, |
| ... | @@ -402,12 +395,10 @@ const news = ref([]) | ... | @@ -402,12 +395,10 @@ const news = ref([]) |
| 402 | const notice = ref([]) | 395 | const notice = ref([]) |
| 403 | const display = ref([]) | 396 | const display = ref([]) |
| 404 | const scores = ref([]) | 397 | const scores = ref([]) |
| 405 | const nowscores = ref([]) | ||
| 406 | const livelist = ref([]) | 398 | const livelist = ref([]) |
| 407 | const matchData = ref({}) | 399 | const matchData = ref({}) |
| 408 | const maList = ref([]) | 400 | const maList = ref([]) |
| 409 | const loading = ref(false) | 401 | const loading = ref(false) |
| 410 | const weatherdialog = ref(false) | ||
| 411 | const picList = ref([]) | 402 | const picList = ref([]) |
| 412 | 403 | ||
| 413 | onMounted(() => { | 404 | onMounted(() => { |
| ... | @@ -493,9 +484,6 @@ const goMatch = (n) => { | ... | @@ -493,9 +484,6 @@ const goMatch = (n) => { |
| 493 | path: `/match/list/${n.id}` | 484 | path: `/match/list/${n.id}` |
| 494 | }) | 485 | }) |
| 495 | } | 486 | } |
| 496 | const popWeather = () => { | ||
| 497 | weatherdialog.value = true | ||
| 498 | } | ||
| 499 | 487 | ||
| 500 | const goGuide = () => { | 488 | const goGuide = () => { |
| 501 | router.push({ | 489 | router.push({ |
| ... | @@ -505,6 +493,13 @@ const goGuide = () => { | ... | @@ -505,6 +493,13 @@ const goGuide = () => { |
| 505 | } | 493 | } |
| 506 | }) | 494 | }) |
| 507 | } | 495 | } |
| 496 | const popMaster = () => { | ||
| 497 | var params = { | ||
| 498 | cptId:matchData.value.id | ||
| 499 | } | ||
| 500 | emit('pop',params) | ||
| 501 | } | ||
| 502 | |||
| 508 | </script> | 503 | </script> |
| 509 | 504 | ||
| 510 | <style scoped lang="scss"> | 505 | <style scoped lang="scss"> | ... | ... |
| ... | @@ -89,6 +89,10 @@ | ... | @@ -89,6 +89,10 @@ |
| 89 | GUIDELINE | 89 | GUIDELINE |
| 90 | <el-icon><download /></el-icon> | 90 | <el-icon><download /></el-icon> |
| 91 | </a> | 91 | </a> |
| 92 | <a @click="popMaster"> | ||
| 93 | |||
| 94 | </a> | ||
| 95 | |||
| 92 | </div> | 96 | </div> |
| 93 | </el-col> | 97 | </el-col> |
| 94 | <el-col :sm="24" :lg="14"> | 98 | <el-col :sm="24" :lg="14"> |
| ... | @@ -385,6 +389,7 @@ const navigationPic = ref({ | ... | @@ -385,6 +389,7 @@ const navigationPic = ref({ |
| 385 | }) | 389 | }) |
| 386 | const router = useRouter() | 390 | const router = useRouter() |
| 387 | const { proxy } = getCurrentInstance() | 391 | const { proxy } = getCurrentInstance() |
| 392 | const emit = defineEmits(['pop']) | ||
| 388 | const time = ref(0) | 393 | const time = ref(0) |
| 389 | 394 | ||
| 390 | const personList = ref([ | 395 | const personList = ref([ |
| ... | @@ -498,6 +503,12 @@ const goGuide = () => { | ... | @@ -498,6 +503,12 @@ const goGuide = () => { |
| 498 | } | 503 | } |
| 499 | }) | 504 | }) |
| 500 | } | 505 | } |
| 506 | const popMaster = () => { | ||
| 507 | var params = { | ||
| 508 | cptId:matchData.value.id | ||
| 509 | } | ||
| 510 | emit('pop',params) | ||
| 511 | } | ||
| 501 | </script> | 512 | </script> |
| 502 | 513 | ||
| 503 | <style scoped lang="scss"> | 514 | <style scoped lang="scss"> | ... | ... |
| ... | @@ -82,9 +82,9 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -82,9 +82,9 @@ 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:8081/', | 85 | target: 'http://192.168.1.118:8081/', |
| 86 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | ||
| 86 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | 87 | // target: 'https://jijin.wtwuxicenter.com/stage-api', |
| 87 | target: 'https://jijin.wtwuxicenter.com/stage-api', | ||
| 88 | changeOrigin: true, | 88 | changeOrigin: true, |
| 89 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 89 | rewrite: (p) => p.replace(/^\/dev-api/, '') |
| 90 | } | 90 | } | ... | ... |
-
Please register or sign in to post a comment