Commit 717f0dcf by 胡悦

修改样式

1 parent 7a965554
......@@ -9,17 +9,33 @@
<view class="card-list">
<!-- <uni-grid :column="3" :show-border="false" :square="false">
<uni-grid-item v-for="item in historyList" :key="item.id"> -->
<view class="card-item" v-for="item in historyList" :key="item.id">
<view class="name">{{ item.customerName }}</view>
<view class="goods-name">{{ item.goodsName }}</view>
<view class="card-info"><view>车架号</view><view>{{ item.carVin || 4654651 }}</view></view>
<view class="card-info"><view>工单号</view><view>{{ item.orderId }}</view></view>
<view class="card-info"><view>订单时间</view><view>{{ item.createdTime }}</view></view>
<view class="card-info"><view>交易流水号</view><view>{{ item.transactionNo }}</view></view>
<view class="card-info"><view>支付方式</view><glsx-image class="pay-type" :src="`media/${payType[item.payType]}.png`" /></view>
<view class="card-info"><view>实收金额</view><view class="price">¥{{ item.equityPrice }}</view></view>
</view>
<!-- </uni-grid-item>
<view class="card-item" v-for="item in historyList" :key="item.id">
<view class="name">{{ nameHide(item.customerName) }}</view>
<view class="goods-name">{{ item.goodsName }}</view>
<view class="card-info"
><view>车架号</view><view>{{ item.carVin || 4654651 }}</view></view
>
<view class="card-info"
><view>工单号</view><view>{{ item.orderId }}</view></view
>
<view class="card-info"
><view>订单时间</view><view>{{ item.createdTime }}</view></view
>
<view class="card-info"
><view>交易流水号</view><view>{{ item.transactionNo }}</view></view
>
<view class="card-info"
><view>支付方式</view
><glsx-image
class="pay-type"
:src="`media/${payType[item.payType]}.png`"
/></view>
<view class="card-info"
><view>实收金额</view
><view class="price">¥{{ item.equityPrice }}</view></view
>
</view>
<!-- </uni-grid-item>
</uni-grid> -->
</view>
<view class="end-text" v-if="isEnd">我是一个有底线的人</view>
......@@ -27,7 +43,7 @@
</view>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
import Tabs from './Tabs.vue';
export default {
name: 'Media_6',
......@@ -66,8 +82,8 @@ export default {
this.shopMerchantId = shopMerchantId
this.getQuotationList();
},
methods: {
async getQuotationList() {
const { goodsName, shopMerchantId, currentPage } = this
......@@ -89,12 +105,26 @@ export default {
tabclick(index) {
this.goodsName = this.list[index].value
this.getQuotationList()
},
// 脱敏
nameHide(name) {
return name.substring(0, 1) + '**';
// if (name.length == 2) {
// name = name.substring(0, 1) + '*'; // 截取name 字符串截取第一个字符,
// return name; // 张三显示为张*
// } else if (name.length == 3) {
// name = name.substring(0, 1) + '*' + name.substring(2, 3); // 截取第一个和第三个字符
// return name; // 李思思显示为李*思
// } else if (name.length > 3) {
// name = name.substring(0, 1) + '*' + '*' + name.substring(3, name.length); // 截取第一个和大于第4个字符
// return name; // 王五哈哈显示为王**哈
// }
}
}
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.layout {
padding-top: 136rpx;
position: relative;
......@@ -122,7 +152,7 @@ export default {
.card-list {
margin: 0 72rpx;
display: grid;
grid-template-columns: repeat(3,664rpx);
grid-template-columns: repeat(3, 664rpx);
justify-content: center;
grid-gap: 32rpx;
.card-item {
......@@ -130,20 +160,20 @@ export default {
padding: 24rpx 40rpx;
width: 664rpx;
// height: 440rpx;
background: #FFFFFF;
border: 2rpx solid #DCE0E6;
background: #ffffff;
border: 2rpx solid #dce0e6;
border-radius: 16rpx;
.name {
font-weight: 500;
font-size: 32rpx;
color: #1A1A1A;
color: #1a1a1a;
margin-bottom: 16rpx;
}
.goods-name {
margin-bottom: 16rpx;
font-weight: 500;
font-size: 32rpx;
color: #2C66F7;
color: #2c66f7;
}
.card-info {
display: flex;
......@@ -159,12 +189,11 @@ export default {
.price {
font-weight: 600;
font-size: 36rpx;
color: #14CC68;
color: #14cc68;
}
}
}
}
}
}
.end-text {
......@@ -172,4 +201,4 @@ export default {
text-align: center;
margin: 50rpx 0;
}
</style>
\ No newline at end of file
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 10:02:02
* @LastEditTime: 2024-04-10 10:15:24
-->
<template>
<view class="information-entry">
......@@ -503,8 +503,7 @@ export default {
}
}
}
// .preview-img {
// width: 100%;
// height: 100%;
// }
.preview-img {
height: 1300rpx;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!