Commit c3c1c0ba by lijinqi

1.我的资源:算力资源分类筛选条件bug修复

2.算力资源列表 卡片布局切列表布局bug修复
3.我的订单:属性值为空时的异常处理
4.活动资讯页面,修复列表被导航栏遮挡bug
parent 39cb2954
......@@ -66,9 +66,22 @@
>
<template #default="{ row }">
{{ row.properties[index].valueName }}
{{ row.properties?.[index]?.valueName || '-' }}
</template>
</el-table-column>
<!-- 新增的价格列(醒目字体) -->
<el-table-column label="价格" width="200px">
<template #default="{ row }">
<span style="font-weight: 600; font-size: 16px; color: #FF9811;">
{{ row.price ? (row.price / 100).toFixed(2) : '-' }}
</span>
<span style="margin-left: 4px; font-size: 14px; color: #606266;">
/{{ row.feeInfo }}
</span>
</template>
</el-table-column>
<el-table-column label="操作" width="204px">
<template #default="{row}">
<!-- <el-button class="action-button" @click="selectedProduct(1,row.id)">加入购物车</el-button>-->
......@@ -95,19 +108,20 @@
</div>
<div class="bottom-info">
<el-row>
<el-col :span="24"
v-for="(i,x) in item?.properties.length!==0 ? item?.properties.slice(0,4):item.properties"
:key="x">
<el-col
v-for="(i,x) in (item?.properties && item.properties.length!==0 ? item.properties.slice(0,4) : item?.properties || [])"
:key="x"
>
<div class="parameter-item">
<div class="label">{{ i.propertyName }}</div>
<div class="value">{{ i.valueName }}</div>
<div class="label">{{ i?.propertyName || '-' }}</div>
<div class="value">{{ i?.valueName || '-' }}</div>
</div>
</el-col>
</el-row>
<el-divider></el-divider>
<div class="flex-justify-end price">¥{{ item.price ? item.price / 100 : '-' }}/{{
item.feeInfo
}}
<div class="flex-justify-end price">
¥{{ item.price ? (item.price / 100).toFixed(2) : '-' }}/{{ item.feeInfo }}
</div>
<!--<div class="flex-justify-end month-expenses">约¥15/月</div>-->
<el-divider></el-divider>
......@@ -117,18 +131,19 @@
</el-button>
</div>
</div>
</div>
</el-col>
</el-row>
<pagination
v-show="total > 0"
:total="total"
v-model:page="pageNo"
v-model:limit="pageSize"
@pagination="getList"/>
<el-empty v-if="tableData.length === 0" description="暂无资源"/>
</div>
<pagination
v-show="total > 0"
:total="total"
v-model:page="pageNum"
v-model:limit="pageSize"
@pagination="getList"/>
</el-tab-pane>
</el-tabs>
</div>
......@@ -255,7 +270,7 @@ const router = useRouter()
const showVersion = ref(2)
const tabActive = ref()
const total = ref(0)
const pageNum = ref(1)
const pageNo = ref(1)
const pageSize = ref(10)
const productTypes = ref([])
......@@ -326,13 +341,13 @@ async function handleCheckProtocol() {
}
function tabChange() {
pageNum.value = 1
pageNo.value = 1
getList()
}
function getList() {
getRListByCategory({categoryId: tabActive.value, pageNo: pageNum.value, pageSize: pageSize.value}).then(res => {
total.value = res.total
getRListByCategory({categoryId: tabActive.value, pageNo: pageNo.value, pageSize: pageSize.value}).then(res => {
total.value = res.data.total
tableData.value = res.data.list
})
}
......
......@@ -57,7 +57,7 @@ const title = ref('')
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageNo: 1,
pageSize: 10,
}
})
......
......@@ -119,7 +119,7 @@
:label="item.propertyName"
>
<template #default="{ row }">
{{ row.properties[index].valueName }}
{{ row.properties?.[index]?.valueName || '-' }}
</template>
</el-table-column>
<el-table-column label="订单状态" align="center" prop="statusName"/>
......
......@@ -8,10 +8,10 @@
:key="index"
:label="item.propertyName"
>
<template #default="{ row }">
{{ row.properties[index].valueName }}
{{ row.properties?.[index]?.valueName || '-' }}
</template>
</el-table-column>
<el-table-column label="申请时间" align="center" prop="createTime" width="180">
<template #default="scope">
......
......@@ -8,7 +8,7 @@
<el-button type="primary" @click="$router.push('/console/authentication')">申请认证</el-button>
</div>
<el-alert v-if="infoData.status === '待审核'" style="width: 300px" class="mb20" show-icon
<el-alert v-if="infoData.checkStatus === 0" style="width: 300px" class="mb20" show-icon
title="您的企业认证已提交,请等待审核" type="info" effect="dark"/>
<el-row :gutter="20">
......@@ -22,8 +22,9 @@
<div class="flex base-info">
<div class="left">
<el-image :src="infoData.avatar" fit="cover"></el-image>
<el-tag v-if="infoData.status === '审核通过'" type="success">已认证</el-tag>
<el-tag v-else type="warning">未认证</el-tag>
<el-tag v-if="infoData.checkStatus === 1" type="success">{{infoData.checkStatusName}}</el-tag>
<el-tag v-if="infoData.checkStatus === 2 || infoData.checkStatus === 3 " type="danger">{{infoData.checkStatusName}}</el-tag>
<el-tag v-if="infoData.checkStatus === 0" type="success">{{infoData.checkStatusName}}</el-tag>
</div>
<el-form label-width="110px" label-position="left">
<el-form-item label="账号昵称:">
......@@ -74,10 +75,9 @@
<div>
<el-form label-width="110px" label-position="left">
<el-form-item label="企业认证:">
<el-tag v-if="infoData.checkStatus === '审核通过'" type="success">已认证</el-tag>
<el-tag v-else class="mr5" type="warning">未认证</el-tag>
<el-button v-if="!infoData.check_status || infoData.checkStatus === '驳回'"
<el-tag v-if="infoData.checkStatus === 1" type="success">{{infoData.checkStatusName}}</el-tag>
<el-tag v-if="infoData.checkStatus === 0" type="success">{{infoData.checkStatusName}}</el-tag>
<el-button v-if="infoData.checkStatus ===2 || infoData.checkStatus === 3"
@click="$router.push('/console/authentication')" type="primary" link class="ml20">去申请
</el-button>
</el-form-item>
......@@ -86,9 +86,9 @@
<!-- </el-form-item>-->
<el-form-item label="最后审核结果:">
<el-tag v-if="infoData.check_status === '驳回'" type="danger" class="mr5">未通过</el-tag>
<el-tag v-if="infoData.check_status === '待审核'" type="primary" class="mr5">待审核</el-tag>
<el-tag v-if="infoData.check_status === '审核通过'" type="primary" class="mr5">审核通过</el-tag>
<el-tag v-if="infoData.checkStatus === 2" type="danger" class="mr5">{{infoData.checkStatusName}}</el-tag>
<el-tag v-if="infoData.checkStatus === 0" type="primary" class="mr5">{{infoData.checkStatusName}}</el-tag>
<el-tag v-if="infoData.checkStatus === 1" type="primary" class="mr5">审核通过</el-tag>
<el-button v-if="infoData.check_status === '驳回'" type="primary" link @click="handleViewReason">
查看驳回理由
......
......@@ -227,7 +227,7 @@ const goToDetail = (item) => {
return;
}
window.open(item.url, '_blank');
window.open(item.url, '_self');
};
function updateHeight() {
......@@ -986,8 +986,8 @@ function handleInfoDetails(id) {
//}
.resource-item .img {
width: 70px;
height: 70px;
width: 120px;
height: 120px;
margin: 0 auto;
text-align: center;
display: flex;
......@@ -996,10 +996,10 @@ function handleInfoDetails(id) {
}
.resource-item .img img {
width: auto;
max-height: 100%;
max-width: 100%;
display: inline-block
width: 100%;
height: 100%;
object-fit: cover; // 保持比例并充满
border-radius: 10px; // 可选,增加圆角
}
.resource-item .title {
......
......@@ -147,7 +147,7 @@
</el-row>
</div>
<div class="flex-justify-center" style="margin-top: 40px;margin-bottom: 100px">
<el-button class="view-more-btn" @click="$router.push('/information/informationList')">更多资讯
<el-button class="view-more-btn" @click="$router.push('/information/list')">更多资讯
<el-icon>
<ArrowRight/>
</el-icon>
......
......@@ -83,7 +83,7 @@ getDetail()
<style scoped lang="scss">
.app-container {
padding-top: 0;
padding-top: 100px;
}
.breadcrumb {
......
......@@ -4,7 +4,7 @@
<el-row v-if="informationData.length" :gutter="24">
<el-col :span="8" v-for="item in informationData" :key="item.id">
<div class="item" @click="$router.push('/information/informationDetail?id='+item.id)">
<img :src="item.images" alt="">
<img :src="item.image" alt="">
<div class="title">{{ item.title }}</div>
<div class="flex-align-center flex-space-between">
<div class="time" style="display: flex; align-items: center;flex: 1;">
......@@ -42,7 +42,7 @@ function getInformation() {
item.day = new Date(item.createTime).getDate()
item.day = item.day < 10 ? '0' + item.day : item.day
item.description = item.description.replace('<p><br></p>', '')
item.images = item.images.length !== 0 ? item.images[0] : ''
item.image = item.image
})
informationData.value = res.data
})
......@@ -91,7 +91,7 @@ getInformation()
.list-box {
width: 1280px;
margin: 0 auto;
padding-top: 70px;
padding-top: 170px;
.item {
margin-bottom: 24px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment