Commit 12cd2ce7 by 胡悦

历史订单添加性别

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