Commit 22a05694 by 前端

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents 6a424875 0acefcce
......@@ -59,7 +59,6 @@
position="bottom"
:isFooter="false"
title="请选择车型"
@cancel="carBoxVisible = false"
>
<view class="select-box">
<view
......@@ -78,7 +77,6 @@
position="bottom"
:isFooter="false"
title="请选择销售"
@cancel="employeeBoxVisible = false"
>
<view class="select-box">
<view
......@@ -105,9 +103,6 @@ export default {
name: 'Media_1',
data () {
return {
selectId: 1,
carBoxVisible: false,
employeeBoxVisible: false,
carlist: [],
employeeList: [],
formObject: [
......
......@@ -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;
......@@ -104,7 +134,6 @@ export default {
top: 0;
width: 100%;
height: 176rpx;
background-color: #096;
}
.content {
border-radius: 40rpx 40rpx 0 0;
......@@ -122,7 +151,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 +159,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 +188,11 @@ export default {
.price {
font-weight: 600;
font-size: 36rpx;
color: #14CC68;
color: #14cc68;
}
}
}
}
}
}
.end-text {
......@@ -172,4 +200,4 @@ export default {
text-align: center;
margin: 50rpx 0;
}
</style>
\ No newline at end of file
</style>
......@@ -185,8 +185,8 @@ export default {
}
.showView {
z-index: 2;
opacity: 1;
display: block;
animation: show-view .15s forwards;
}
.pen-box {
position: fixed;
......@@ -198,4 +198,12 @@ export default {
z-index: 3;
box-shadow: 0 4px 12px 0 #00000033;
}
@keyframes show-view{
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 10:22:55
* @LastEditTime: 2024-04-10 10:25:03
-->
<template>
<view class="information-entry">
......@@ -507,8 +507,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!