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 @@ ...@@ -59,7 +59,6 @@
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择车型" title="请选择车型"
@cancel="carBoxVisible = false"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -78,7 +77,6 @@ ...@@ -78,7 +77,6 @@
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择销售" title="请选择销售"
@cancel="employeeBoxVisible = false"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -105,9 +103,6 @@ export default { ...@@ -105,9 +103,6 @@ export default {
name: 'Media_1', name: 'Media_1',
data () { data () {
return { return {
selectId: 1,
carBoxVisible: false,
employeeBoxVisible: false,
carlist: [], carlist: [],
employeeList: [], employeeList: [],
formObject: [ formObject: [
......
...@@ -9,17 +9,33 @@ ...@@ -9,17 +9,33 @@
<view class="card-list"> <view class="card-list">
<!-- <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> <view class="card-info"
<!-- </uni-grid-item> ><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> --> </uni-grid> -->
</view> </view>
<view class="end-text" v-if="isEnd">我是一个有底线的人</view> <view class="end-text" v-if="isEnd">我是一个有底线的人</view>
...@@ -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',
...@@ -66,8 +82,8 @@ export default { ...@@ -66,8 +82,8 @@ export default {
this.shopMerchantId = shopMerchantId this.shopMerchantId = shopMerchantId
this.getQuotationList(); this.getQuotationList();
}, },
methods: { methods: {
async getQuotationList() { async getQuotationList() {
const { goodsName, shopMerchantId, currentPage } = this const { goodsName, shopMerchantId, currentPage } = this
...@@ -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;
...@@ -104,7 +134,6 @@ export default { ...@@ -104,7 +134,6 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 176rpx; height: 176rpx;
background-color: #096;
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
...@@ -122,7 +151,7 @@ export default { ...@@ -122,7 +151,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 +159,20 @@ export default { ...@@ -130,20 +159,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 +188,11 @@ export default { ...@@ -159,12 +188,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 {
...@@ -172,4 +200,4 @@ export default { ...@@ -172,4 +200,4 @@ export default {
text-align: center; text-align: center;
margin: 50rpx 0; margin: 50rpx 0;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -185,8 +185,8 @@ export default { ...@@ -185,8 +185,8 @@ export default {
} }
.showView { .showView {
z-index: 2; z-index: 2;
opacity: 1;
display: block; display: block;
animation: show-view .15s forwards;
} }
.pen-box { .pen-box {
position: fixed; position: fixed;
...@@ -198,4 +198,12 @@ export default { ...@@ -198,4 +198,12 @@ export default {
z-index: 3; z-index: 3;
box-shadow: 0 4px 12px 0 #00000033; box-shadow: 0 4px 12px 0 #00000033;
} }
@keyframes show-view{
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}
</style> </style>
...@@ -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: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 10:22:55 * @LastEditTime: 2024-04-10 10:25:03
--> -->
<template> <template>
<view class="information-entry"> <view class="information-entry">
...@@ -507,8 +507,7 @@ export default { ...@@ -507,8 +507,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!