Commit 717f0dcf by 胡悦

修改样式

1 parent 7a965554
...@@ -10,14 +10,30 @@ ...@@ -10,14 +10,30 @@
<!-- <uni-grid :column="3" :show-border="false" :square="false"> <!-- <uni-grid :column="3" :show-border="false" :square="false">
<uni-grid-item v-for="item in historyList" :key="item.id"> --> <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="card-item" v-for="item in historyList" :key="item.id">
<view class="name">{{ item.customerName }}</view> <view class="name">{{ nameHide(item.customerName) }}</view>
<view class="goods-name">{{ item.goodsName }}</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 class="card-info"><view>工单号</view><view>{{ item.orderId }}</view></view> ><view>车架号</view><view>{{ item.carVin || 4654651 }}</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 class="card-info"><view>支付方式</view><glsx-image class="pay-type" :src="`media/${payType[item.payType]}.png`" /></view> ><view>工单号</view><view>{{ item.orderId }}</view></view
<view class="card-info"><view>实收金额</view><view class="price">¥{{ item.equityPrice }}</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> </view>
<!-- </uni-grid-item> <!-- </uni-grid-item>
</uni-grid> --> </uni-grid> -->
...@@ -27,7 +43,7 @@ ...@@ -27,7 +43,7 @@
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import Tabs from './Tabs.vue'; import Tabs from './Tabs.vue';
export default { export default {
name: 'Media_6', name: 'Media_6',
...@@ -89,12 +105,26 @@ export default { ...@@ -89,12 +105,26 @@ export default {
tabclick(index) { tabclick(index) {
this.goodsName = this.list[index].value this.goodsName = this.list[index].value
this.getQuotationList() 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> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.layout { .layout {
padding-top: 136rpx; padding-top: 136rpx;
position: relative; position: relative;
...@@ -122,7 +152,7 @@ export default { ...@@ -122,7 +152,7 @@ export default {
.card-list { .card-list {
margin: 0 72rpx; margin: 0 72rpx;
display: grid; display: grid;
grid-template-columns: repeat(3,664rpx); grid-template-columns: repeat(3, 664rpx);
justify-content: center; justify-content: center;
grid-gap: 32rpx; grid-gap: 32rpx;
.card-item { .card-item {
...@@ -130,20 +160,20 @@ export default { ...@@ -130,20 +160,20 @@ export default {
padding: 24rpx 40rpx; padding: 24rpx 40rpx;
width: 664rpx; width: 664rpx;
// height: 440rpx; // height: 440rpx;
background: #FFFFFF; background: #ffffff;
border: 2rpx solid #DCE0E6; border: 2rpx solid #dce0e6;
border-radius: 16rpx; border-radius: 16rpx;
.name { .name {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #1A1A1A; color: #1a1a1a;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.goods-name { .goods-name {
margin-bottom: 16rpx; margin-bottom: 16rpx;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #2C66F7; color: #2c66f7;
} }
.card-info { .card-info {
display: flex; display: flex;
...@@ -159,12 +189,11 @@ export default { ...@@ -159,12 +189,11 @@ export default {
.price { .price {
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: 36rpx;
color: #14CC68; color: #14cc68;
} }
} }
} }
} }
} }
} }
.end-text { .end-text {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-10 10:02:02 * @LastEditTime: 2024-04-10 10:15:24
--> -->
<template> <template>
<view class="information-entry"> <view class="information-entry">
...@@ -503,8 +503,7 @@ export default { ...@@ -503,8 +503,7 @@ export default {
} }
} }
} }
// .preview-img { .preview-img {
// width: 100%; height: 1300rpx;
// height: 100%; }
// }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!