9.8 lptbug修改
Showing
4 changed files
with
34 additions
and
11 deletions
| ... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
| 17 | <el-col style="border-left: 1px solid #929AA0;border-right: 1px solid #929AA0" :span="4"> | 17 | <el-col style="border-left: 1px solid #929AA0;border-right: 1px solid #929AA0" :span="4"> |
| 18 | <div style="display: flex;flex-direction: column;text-align: center"> | 18 | <div style="display: flex;flex-direction: column;text-align: center"> |
| 19 | <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span> | 19 | <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span> |
| 20 | <span style="color: #EEEEEE;font-size: 16px">{{projectMainInfo.serviceFee}}</span> | 20 | <span style="color: #EEEEEE;font-size: 16px">{{contestFee}}</span> |
| 21 | </div> | 21 | </div> |
| 22 | </el-col> | 22 | </el-col> |
| 23 | <el-col :span="4"> | 23 | <el-col :span="4"> |
| ... | @@ -119,6 +119,7 @@ import {getProjectMain,getProjectTab} from '@/apiPc/webSite' | ... | @@ -119,6 +119,7 @@ import {getProjectMain,getProjectTab} from '@/apiPc/webSite' |
| 119 | 119 | ||
| 120 | const router = useRouter() | 120 | const router = useRouter() |
| 121 | const route = useRoute() | 121 | const route = useRoute() |
| 122 | const contestFee = ref(0) | ||
| 122 | const activeName = ref("first") | 123 | const activeName = ref("first") |
| 123 | const language = useStorage('language', 0) | 124 | const language = useStorage('language', 0) |
| 124 | const languageLibrary = ref([{ | 125 | const languageLibrary = ref([{ |
| ... | @@ -264,8 +265,8 @@ const getMainInfo = () => { | ... | @@ -264,8 +265,8 @@ const getMainInfo = () => { |
| 264 | getProjectMain(tId.value).then(res => { | 265 | getProjectMain(tId.value).then(res => { |
| 265 | if (res.code === 200) { | 266 | if (res.code === 200) { |
| 266 | projectMainInfo.value = res.data | 267 | projectMainInfo.value = res.data |
| 267 | query.value.cptId = res.cptId | 268 | query.value.cptId = res.data.cptId |
| 268 | query.value.projectId = res.id | 269 | query.value.projectId = res.data.id |
| 269 | getProjectTabList(1) | 270 | getProjectTabList(1) |
| 270 | } | 271 | } |
| 271 | }) | 272 | }) |
| ... | @@ -278,6 +279,9 @@ const getProjectTabList = (n) => { | ... | @@ -278,6 +279,9 @@ const getProjectTabList = (n) => { |
| 278 | if (res.rows && res.rows.length > 0) { | 279 | if (res.rows && res.rows.length > 0) { |
| 279 | if (n == 1) { | 280 | if (n == 1) { |
| 280 | res.rows.forEach((item,index) => { | 281 | res.rows.forEach((item,index) => { |
| 282 | if (index === 1) { | ||
| 283 | contestFee.value = item.field2 | ||
| 284 | } | ||
| 281 | projectMainTabA.value[index].field2 = item.field2 | 285 | projectMainTabA.value[index].field2 = item.field2 |
| 282 | }) | 286 | }) |
| 283 | } else { | 287 | } else { |
| ... | @@ -290,6 +294,7 @@ const getProjectTabList = (n) => { | ... | @@ -290,6 +294,7 @@ const getProjectTabList = (n) => { |
| 290 | } | 294 | } |
| 291 | 295 | ||
| 292 | const handleClick = (n) => { | 296 | const handleClick = (n) => { |
| 297 | console.log("222222222222222222222222222") | ||
| 293 | let type = +n.index + 1 | 298 | let type = +n.index + 1 |
| 294 | getProjectTabList(type) | 299 | getProjectTabList(type) |
| 295 | } | 300 | } | ... | ... |
| ... | @@ -44,7 +44,7 @@ | ... | @@ -44,7 +44,7 @@ |
| 44 | <el-col :span="12"> | 44 | <el-col :span="12"> |
| 45 | <div style="display: flex;flex-direction: column;text-align: center"> | 45 | <div style="display: flex;flex-direction: column;text-align: center"> |
| 46 | <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].d }}</span> | 46 | <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].d }}</span> |
| 47 | <span style="color: #EEEEEE;font-size: 16px">${{item.serviceFee}}</span> | 47 | <span style="color: #EEEEEE;font-size: 16px">${{item.totalFee}}</span> |
| 48 | </div> | 48 | </div> |
| 49 | </el-col> | 49 | </el-col> |
| 50 | <el-col :span="12"> | 50 | <el-col :span="12"> |
| ... | @@ -62,7 +62,7 @@ | ... | @@ -62,7 +62,7 @@ |
| 62 | </template> | 62 | </template> |
| 63 | <script setup> | 63 | <script setup> |
| 64 | import { onMounted, ref } from 'vue' | 64 | import { onMounted, ref } from 'vue' |
| 65 | import {getMain,getCompetitionProjectList} from '@/apiPc/webSite' | 65 | import {getMain,getCompetitionProjectList,getProjectTab} from '@/apiPc/webSite' |
| 66 | import { useRoute, useRouter } from 'vue-router' | 66 | import { useRoute, useRouter } from 'vue-router' |
| 67 | import {useStorage} from "@vueuse/core/index"; | 67 | import {useStorage} from "@vueuse/core/index"; |
| 68 | const route = useRoute() | 68 | const route = useRoute() |
| ... | @@ -153,6 +153,25 @@ const getList = () => { | ... | @@ -153,6 +153,25 @@ const getList = () => { |
| 153 | getCompetitionProjectList(query.value).then(res => { | 153 | getCompetitionProjectList(query.value).then(res => { |
| 154 | if (res.code === 200) { | 154 | if (res.code === 200) { |
| 155 | competitionList.value = res.rows | 155 | competitionList.value = res.rows |
| 156 | competitionList.value.forEach(item => { | ||
| 157 | getProjectTab({ | ||
| 158 | pageNum:1, | ||
| 159 | pageSize:9999, | ||
| 160 | cptId:item.cptId, | ||
| 161 | type:'1', | ||
| 162 | projectId:item.id, | ||
| 163 | }).then(res2 => { | ||
| 164 | if (res2.code === 200) { | ||
| 165 | if (res2.rows && res2.rows.length > 0) { | ||
| 166 | res2.rows.forEach((x,i) => { | ||
| 167 | if (i === 1) { | ||
| 168 | item.totalFee = x.field2 | ||
| 169 | } | ||
| 170 | }) | ||
| 171 | } | ||
| 172 | } | ||
| 173 | }) | ||
| 174 | }) | ||
| 156 | } | 175 | } |
| 157 | }) | 176 | }) |
| 158 | } | 177 | } | ... | ... |
| ... | @@ -7,10 +7,10 @@ | ... | @@ -7,10 +7,10 @@ |
| 7 | </el-col> | 7 | </el-col> |
| 8 | </el-row> | 8 | </el-row> |
| 9 | <el-row> | 9 | <el-row> |
| 10 | <el-col class="photo-space" :lg="8" v-for="item in itemList.slice(0,1)"> | 10 | <el-col class="photo-space" :lg="24" v-for="item in itemList.slice(0,1)"> |
| 11 | <div class="photo-img-group"> | 11 | <div class="photo-img-group"> |
| 12 | <img class="photo-img" :src="fillImgUrl(item.picUrl)"> | 12 | <img class="photo-img" :src="fillImgUrl(item.picUrl)"> |
| 13 | <span style="display: block;font-size: 16px;margin:5px 0;color:#fff">{{item.name}}</span> | 13 | <!-- <span style="display: block;font-size: 16px;margin:5px 0;color:#fff">{{item.name}}</span>--> |
| 14 | </div> | 14 | </div> |
| 15 | </el-col> | 15 | </el-col> |
| 16 | </el-row> | 16 | </el-row> |
| ... | @@ -75,8 +75,7 @@ const goDetail = (id) => { | ... | @@ -75,8 +75,7 @@ const goDetail = (id) => { |
| 75 | 75 | ||
| 76 | .photo-img { | 76 | .photo-img { |
| 77 | width: 100%; | 77 | width: 100%; |
| 78 | aspect-ratio: 2/1; | 78 | //cursor: pointer; |
| 79 | cursor: pointer; | ||
| 80 | } | 79 | } |
| 81 | 80 | ||
| 82 | .contest-title { | 81 | .contest-title { | ... | ... |
| ... | @@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => { | ... | @@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => { |
| 84 | }, | 84 | }, |
| 85 | '/dev-api': { | 85 | '/dev-api': { |
| 86 | // target: 'http://192.168.1.118:8082/', | 86 | // target: 'http://192.168.1.118:8082/', |
| 87 | // target: 'http://192.168.1.194:8082', | 87 | target: 'http://192.168.1.194:8082', |
| 88 | target: 'https://www.longpoker.com/stage-api/', | 88 | // target: 'https://www.longpoker.com/stage-api/', |
| 89 | // target: 'http://124.70.181.90:1880/stage-api', | 89 | // target: 'http://124.70.181.90:1880/stage-api', |
| 90 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | 90 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', |
| 91 | changeOrigin: true, | 91 | changeOrigin: true, | ... | ... |
-
Please register or sign in to post a comment