82993f54 by zrj

9.8 lptbug修改

1 parent ce44d181
......@@ -17,7 +17,7 @@
<el-col style="border-left: 1px solid #929AA0;border-right: 1px solid #929AA0" :span="4">
<div style="display: flex;flex-direction: column;text-align: center">
<span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span>
<span style="color: #EEEEEE;font-size: 16px">{{projectMainInfo.serviceFee}}</span>
<span style="color: #EEEEEE;font-size: 16px">{{contestFee}}</span>
</div>
</el-col>
<el-col :span="4">
......@@ -119,6 +119,7 @@ import {getProjectMain,getProjectTab} from '@/apiPc/webSite'
const router = useRouter()
const route = useRoute()
const contestFee = ref(0)
const activeName = ref("first")
const language = useStorage('language', 0)
const languageLibrary = ref([{
......@@ -264,8 +265,8 @@ const getMainInfo = () => {
getProjectMain(tId.value).then(res => {
if (res.code === 200) {
projectMainInfo.value = res.data
query.value.cptId = res.cptId
query.value.projectId = res.id
query.value.cptId = res.data.cptId
query.value.projectId = res.data.id
getProjectTabList(1)
}
})
......@@ -278,6 +279,9 @@ const getProjectTabList = (n) => {
if (res.rows && res.rows.length > 0) {
if (n == 1) {
res.rows.forEach((item,index) => {
if (index === 1) {
contestFee.value = item.field2
}
projectMainTabA.value[index].field2 = item.field2
})
} else {
......@@ -290,6 +294,7 @@ const getProjectTabList = (n) => {
}
const handleClick = (n) => {
console.log("222222222222222222222222222")
let type = +n.index + 1
getProjectTabList(type)
}
......
......@@ -44,7 +44,7 @@
<el-col :span="12">
<div style="display: flex;flex-direction: column;text-align: center">
<span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].d }}</span>
<span style="color: #EEEEEE;font-size: 16px">${{item.serviceFee}}</span>
<span style="color: #EEEEEE;font-size: 16px">${{item.totalFee}}</span>
</div>
</el-col>
<el-col :span="12">
......@@ -62,7 +62,7 @@
</template>
<script setup>
import { onMounted, ref } from 'vue'
import {getMain,getCompetitionProjectList} from '@/apiPc/webSite'
import {getMain,getCompetitionProjectList,getProjectTab} from '@/apiPc/webSite'
import { useRoute, useRouter } from 'vue-router'
import {useStorage} from "@vueuse/core/index";
const route = useRoute()
......@@ -153,6 +153,25 @@ const getList = () => {
getCompetitionProjectList(query.value).then(res => {
if (res.code === 200) {
competitionList.value = res.rows
competitionList.value.forEach(item => {
getProjectTab({
pageNum:1,
pageSize:9999,
cptId:item.cptId,
type:'1',
projectId:item.id,
}).then(res2 => {
if (res2.code === 200) {
if (res2.rows && res2.rows.length > 0) {
res2.rows.forEach((x,i) => {
if (i === 1) {
item.totalFee = x.field2
}
})
}
}
})
})
}
})
}
......
......@@ -7,10 +7,10 @@
</el-col>
</el-row>
<el-row>
<el-col class="photo-space" :lg="8" v-for="item in itemList.slice(0,1)">
<el-col class="photo-space" :lg="24" v-for="item in itemList.slice(0,1)">
<div class="photo-img-group">
<img class="photo-img" :src="fillImgUrl(item.picUrl)">
<span style="display: block;font-size: 16px;margin:5px 0;color:#fff">{{item.name}}</span>
<!-- <span style="display: block;font-size: 16px;margin:5px 0;color:#fff">{{item.name}}</span>-->
</div>
</el-col>
</el-row>
......@@ -75,8 +75,7 @@ const goDetail = (id) => {
.photo-img {
width: 100%;
aspect-ratio: 2/1;
cursor: pointer;
//cursor: pointer;
}
.contest-title {
......
......@@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => {
},
'/dev-api': {
// target: 'http://192.168.1.118:8082/',
// target: 'http://192.168.1.194:8082',
target: 'https://www.longpoker.com/stage-api/',
target: 'http://192.168.1.194:8082',
// target: 'https://www.longpoker.com/stage-api/',
// target: 'http://124.70.181.90:1880/stage-api',
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
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!