Commit a63dfbb0 by renyizhao

调整计算资源卡片样式

parent bf371b32
...@@ -8,3 +8,4 @@ VITE_APP_ENV = 'development' ...@@ -8,3 +8,4 @@ VITE_APP_ENV = 'development'
#VITE_APP_BASE_API = 'http://192.168.1.112:48080/app-api/' #VITE_APP_BASE_API = 'http://192.168.1.112:48080/app-api/'
#VITE_APP_BASE_API = 'https://client.phsl.lijinqi.com/app-api/' #VITE_APP_BASE_API = 'https://client.phsl.lijinqi.com/app-api/'
VITE_APP_BASE_API = 'http://localhost:48080/app-api' VITE_APP_BASE_API = 'http://localhost:48080/app-api'
#VITE_APP_BASE_API = 'https://phslkhd.hnluchuan.com/app-api'
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
<!--卡片形式--> <!--卡片形式-->
<div v-if="showVersion === 2" class="version-2"> <div v-if="showVersion === 2" class="version-2">
<el-row :gutter="24" v-if="tableData.length !== 0"> <el-row :gutter="24" v-if="tableData.length !== 0">
<el-col v-for="(item,index) in tableData" :key="index" :span="6"> <el-col v-for="(item,index) in tableData" :key="index" :span="6" style="margin-bottom: 24px">
<div class="product-card"> <div class="product-card">
<div class="top-info"> <div class="top-info">
<div class="title">{{ item.name }}</div> <div class="title">{{ item.name }}</div>
...@@ -222,21 +222,21 @@ ...@@ -222,21 +222,21 @@
<div class="value">{{ item.location || '-' }}</div> <div class="value">{{ item.location || '-' }}</div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <div class="margin-top-auto">
<div class="flex-justify-end price"> <el-divider></el-divider>
¥{{ item.price ? (item.price / 100).toFixed(2) : '-' }}<template v-if="item.feeInfo">/{{ item.feeInfo }}</template> <div class="flex-justify-end price">
</div> ¥{{ item.price ? (item.price / 100).toFixed(2) : '-' }}<template v-if="item.feeInfo">/{{ item.feeInfo }}</template>
<!--<div class="flex-justify-end month-expenses">约¥15/月</div>--> </div>
<el-divider></el-divider> <!--<div class="flex-justify-end month-expenses">约¥15/月</div>-->
<div class="footer-action flex"> <el-divider></el-divider>
<!-- <el-button class="action-button" @click="selectedProduct(1,item.id)">加入购物车</el-button>--> <div class="footer-action flex">
<el-button type="primary" class="action-button" @click="selectedProduct(2,item.id)">立即购买 <!-- <el-button class="action-button" @click="selectedProduct(1,item.id)">加入购物车</el-button>-->
</el-button> <el-button type="primary" class="action-button" @click="selectedProduct(2,item.id)">立即购买
</el-button>
</div>
</div> </div>
</div> </div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -1317,12 +1317,15 @@ onMounted(() => { ...@@ -1317,12 +1317,15 @@ onMounted(() => {
} }
.product-card { .product-card {
margin-bottom: 24px;
border: 1px solid rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 0, 0, 0.08);
//box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.08); //box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.08);
box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.08); box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.08);
border-radius: 15px; border-radius: 15px;
display: flex;
flex-direction: column;
height: 100%;
&:hover { &:hover {
border: 1px solid #2E77E3; border: 1px solid #2E77E3;
box-sizing: border-box; box-sizing: border-box;
...@@ -1356,11 +1359,16 @@ onMounted(() => { ...@@ -1356,11 +1359,16 @@ onMounted(() => {
} }
.bottom-info { .bottom-info {
padding: 12px 24px 20px 24px; padding: 12px 24px 20px 24px;
display: flex;
flex-direction: column;
flex: 1;
.el-divider { .el-divider {
margin: 12px 0; margin: 12px 0;
} }
.margin-top-auto {
margin-top : auto;
}
} }
.el-col { .el-col {
...@@ -1375,7 +1383,7 @@ onMounted(() => { ...@@ -1375,7 +1383,7 @@ onMounted(() => {
} }
.height276 { .height276 {
height: 276px; max-height : 276px;
overflow-y: auto; overflow-y: auto;
} }
......
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