92f2ea86 by 杨炀

no message

1 parent 22d7edab
...@@ -25,6 +25,13 @@ ...@@ -25,6 +25,13 @@
25 <div v-html="con2"></div> 25 <div v-html="con2"></div>
26 </div> 26 </div>
27 </div> 27 </div>
28
29 <div class="infoPart pd20" v-if="activeIndex==2">
30 <h3 class="leftboderTT">{{ language==0?menu[activeIndex].name:menu[activeIndex].ename }}</h3>
31 <div class="content">
32 <div v-html="con3"></div>
33 </div>
34 </div>
28 </el-col> 35 </el-col>
29 </el-row> 36 </el-row>
30 </el-card> 37 </el-card>
...@@ -50,16 +57,19 @@ ...@@ -50,16 +57,19 @@
50 import {useStorage} from "@vueuse/core"; 57 import {useStorage} from "@vueuse/core";
51 import {onMounted} from "vue"; 58 import {onMounted} from "vue";
52 import {getppInfo} from "@/apiPc/match"; 59 import {getppInfo} from "@/apiPc/match";
53 60 import {useRoute} from "vue-router";
61 const route = useRoute()
54 const language = useStorage('language', 0) 62 const language = useStorage('language', 0)
55 63
56 const activeIndex = ref(0) 64 const activeIndex = ref(0)
57 const con1 = ref('') 65 const con1 = ref('')
58 const con2 = ref('') 66 const con2 = ref('')
67 const con3 = ref('')
59 68
60 const menu = ref([ 69 const menu = ref([
61 {name:'组织机构',ename:'Organizer'}, 70 {name:'组织机构',ename:'Organizer'},
62 {name:'无锡WDSF亚洲体育舞蹈节',ename:'WUXI WDSF ASIAN DANCESPORT FESTIVAL'}, 71 {name:'无锡WDSF亚洲体育舞蹈节',ename:'WUXI WDSF ASIAN DANCESPORT FESTIVAL'},
72 {name:'周边活动',ename:'Around Activity'},
63 // {name:'体育舞蹈项目',ename:''}, 73 // {name:'体育舞蹈项目',ename:''},
64 ]) 74 ])
65 75
...@@ -71,6 +81,9 @@ const contact = ref([ ...@@ -71,6 +81,9 @@ const contact = ref([
71 ]) 81 ])
72 82
73 onMounted(()=>{ 83 onMounted(()=>{
84 if(route.query.activeIndex){
85 activeIndex.value = route.query.activeIndex
86 }
74 getMenuList() 87 getMenuList()
75 }) 88 })
76 const getMenuList = ()=>{ 89 const getMenuList = ()=>{
...@@ -90,6 +103,14 @@ const getMenuList = ()=>{ ...@@ -90,6 +103,14 @@ const getMenuList = ()=>{
90 con2.value = res.data.contextEn 103 con2.value = res.data.contextEn
91 } 104 }
92 }) 105 })
106
107 getppInfo('10000004').then(res=>{
108 if(language.value==0){
109 con3.value = res.data.contextZh
110 } else {
111 con3.value = res.data.contextEn
112 }
113 })
93 } 114 }
94 //根据菜单id获取详情 115 //根据菜单id获取详情
95 const getDetail = (item,index)=>{ 116 const getDetail = (item,index)=>{
...@@ -104,7 +125,7 @@ const getDetail = (item,index)=>{ ...@@ -104,7 +125,7 @@ const getDetail = (item,index)=>{
104 ul{border-right: 2px solid #E5E5E5;padding:0 20px 0 0;} 125 ul{border-right: 2px solid #E5E5E5;padding:0 20px 0 0;}
105 li{margin: 30px 0;padding: 10px;text-align: right; 126 li{margin: 30px 0;padding: 10px;text-align: right;
106 border-radius: 2px;position: relative; 127 border-radius: 2px;position: relative;
107 font-weight: 600; 128 font-weight: 600;text-transform: uppercase;
108 font-size: 18px;cursor: pointer; 129 font-size: 18px;cursor: pointer;
109 background: linear-gradient(90deg, rgba(134, 35, 252, 0.1), rgba(69, 61, 234, 0.1));} 130 background: linear-gradient(90deg, rgba(134, 35, 252, 0.1), rgba(69, 61, 234, 0.1));}
110 li::after{content: '';position: absolute;background: #898989;width: 8px;height: 8px; 131 li::after{content: '';position: absolute;background: #898989;width: 8px;height: 8px;
......
...@@ -123,7 +123,7 @@ const goAbout = () => { ...@@ -123,7 +123,7 @@ const goAbout = () => {
123 } 123 }
124 const goAround = () => { 124 const goAround = () => {
125 //周边活动 125 //周边活动
126 router.push({path: `/around/wuDao`}) 126 router.push({path: `/about/wuDao`,query: {activeIndex: '2'}})
127 } 127 }
128 128
129 onMounted(() => { 129 onMounted(() => {
......
...@@ -356,7 +356,7 @@ const init = () => { ...@@ -356,7 +356,7 @@ const init = () => {
356 getNewsListById({ 356 getNewsListById({
357 pageSize: time.value > 0 ? 3 : 4, 357 pageSize: time.value > 0 ? 3 : 4,
358 pageNum: 1, 358 pageNum: 1,
359 sortId: '10000006' 359 sortId: '30000006'
360 } 360 }
361 ).then(res => { 361 ).then(res => {
362 livelist.value = res.rows 362 livelist.value = res.rows
...@@ -364,7 +364,7 @@ const init = () => { ...@@ -364,7 +364,7 @@ const init = () => {
364 getNewsListById({ 364 getNewsListById({
365 pageSize: 5, 365 pageSize: 5,
366 pageNum: 1, 366 pageNum: 1,
367 sortId: '10000007' 367 sortId: '30000007'
368 } 368 }
369 ).then(res => { 369 ).then(res => {
370 picList.value = res.rows 370 picList.value = res.rows
......
...@@ -366,13 +366,13 @@ const init = () => { ...@@ -366,13 +366,13 @@ const init = () => {
366 getNewsListById( 366 getNewsListById(
367 { pageSize: 4, 367 { pageSize: 4,
368 pageNum: 1, 368 pageNum: 1,
369 sortId: '10000008' } 369 sortId: '30000008' }
370 ).then(res => { 370 ).then(res => {
371 livelist.value = res.rows 371 livelist.value = res.rows
372 }) 372 })
373 getNewsListById({ pageSize: 5, 373 getNewsListById({ pageSize: 5,
374 pageNum: 1, 374 pageNum: 1,
375 sortId: '10000009' } 375 sortId: '30000009' }
376 ).then(res => { 376 ).then(res => {
377 picList.value = res.rows 377 picList.value = res.rows
378 }) 378 })
......
...@@ -91,12 +91,12 @@ const newsList2 = ref([]) ...@@ -91,12 +91,12 @@ const newsList2 = ref([])
91 const query1 = ref({ 91 const query1 = ref({
92 pageSize: 5, 92 pageSize: 5,
93 pageNum: 1, 93 pageNum: 1,
94 sortId: '10000006' 94 sortId: '30000006'
95 }) 95 })
96 const query2 = ref({ 96 const query2 = ref({
97 pageSize: 7, 97 pageSize: 7,
98 pageNum: 1, 98 pageNum: 1,
99 sortId: '10000007' 99 sortId: '30000007'
100 }) 100 })
101 101
102 onMounted(() => { 102 onMounted(() => {
...@@ -106,7 +106,7 @@ onMounted(() => { ...@@ -106,7 +106,7 @@ onMounted(() => {
106 106
107 const getList = (obj) => { 107 const getList = (obj) => {
108 if(language.value==1){ 108 if(language.value==1){
109 obj.sortId = '10000008' 109 obj.sortId = '30000008'
110 } 110 }
111 getNewsListById(obj).then(res => { 111 getNewsListById(obj).then(res => {
112 newsList.value = res.rows 112 newsList.value = res.rows
...@@ -114,7 +114,7 @@ const getList = (obj) => { ...@@ -114,7 +114,7 @@ const getList = (obj) => {
114 } 114 }
115 const getList2 = (obj) => { 115 const getList2 = (obj) => {
116 if(language.value==1){ 116 if(language.value==1){
117 obj.sortId = '10000009' 117 obj.sortId = '30000009'
118 } 118 }
119 getNewsListById(obj).then(res => { 119 getNewsListById(obj).then(res => {
120 newsList2.value = res.rows 120 newsList2.value = res.rows
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!