Commit 12cd2ce7 by 胡悦

历史订单添加性别

1 parent 3f422606
......@@ -11,7 +11,9 @@
<view class="card-list">
<template v-if="historyList.length > 0">
<view class="card-item" v-for="item in historyList" :key="item.id">
<view class="name">{{ nameHide(item.customerName) }}</view>
<view class="name">{{ nameHide(item.customerName) }}
<view :class="['sex-avatar sprite-icon',`icon-${sexType[item.ownerGender]}`]"></view>
</view>
<view class="goods-name">{{ item.goodsName }}</view>
<view class="card-info"
><view>车架号</view
......@@ -92,6 +94,10 @@ export default {
1: 'icon-weixin',
2: 'icon-shop'
},
sexType: {
'男': 'icon-male',
'女': 'icon-female'
},
goodsName: 'M5',
shopMerchantId: '',
currentPage: 1,
......@@ -202,6 +208,7 @@ export default {
margin: 0 72rpx;
display: grid;
grid-template-columns: repeat(3, 664rpx);
grid-template-rows: 0fr;
justify-content: center;
grid-gap: 32rpx;
min-height: calc(100vh - 368rpx);
......@@ -215,10 +222,17 @@ export default {
border-radius: 16rpx;
height: 448rpx;
.name {
display: flex;
align-items: center;
font-weight: 500;
font-size: 32rpx;
color: #1a1a1a;
margin-bottom: 16rpx;
.sex-avatar {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
}
}
.goods-name {
margin-bottom: 16rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!