From a3a48da30bdea132d2bfbb47fa2ccf83f1937c45 Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Tue, 19 Jan 2021 08:29:55 +0800
Subject: [PATCH] 提交

---
 hive-app/pages/workbench/selectCustomer.vue |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/hive-app/pages/workbench/selectCustomer.vue b/hive-app/pages/workbench/selectCustomer.vue
index 144fae1..5a2e8ef 100644
--- a/hive-app/pages/workbench/selectCustomer.vue
+++ b/hive-app/pages/workbench/selectCustomer.vue
@@ -7,11 +7,17 @@
 					:url="'./customerInfo?type='+type+'&id='+item.id" 
 					hover-class="none"
 					v-for="(item, index) in list">
-					<text class="first-name" :style="{background: caculateBgcolor(index)}">{{item.vipName | formatName}}</text>
+					<template>
+						<image v-if="item.photo" :src="item.photo" class="avatar"></image>
+						<text v-else class="first-name" :style="{background: caculateBgcolor(index)}">{{item.vipName | formatName}}</text>
+					</template>
 					<view class="flex-1 flex align-center justify-between member-list-con">
 						<view class="flex flex-v">
-							<text>{{item.vipName}}</text>
-							<text class="font-13 gray mt-5">{{$utils.encryptAccount(item.phone)}}</text>
+							<text class="mb-10">
+								<text>{{item.vipName}}</text>
+								<text class="vip-level" v-if="item.vipLevel">{{item.vipLevel}}</text>
+							</text>
+							<text class="font-13 gray">{{$utils.encryptAccount(item.phone)}}</text>
 						</view>
 						<view>
 							<text class="blue">{{item.shopName}}</text>
@@ -19,7 +25,7 @@
 						</view>
 					</view>
 				</navigator>
-				<no-record v-if="!list.length"></no-record>
+				<no-record :isShow="!list.length"></no-record>
 			</view>
 			<indexed-list></indexed-list>
 		</view>
@@ -57,6 +63,10 @@
 				this.loadMemberList();
 			},
 			loadMemberList(){
+				uni.showLoading({
+					mask: true,
+					title: '加载中'
+				});
 				let parma = Object.assign({
 					order: this.order,
 					queryKey: this.queryKey,
@@ -66,6 +76,11 @@
 					if(res.status == 200){
 						this.list = res.rows;
 					}
+					this.$nextTick(function(){
+						uni.hideLoading()
+					})
+				}).catch((err) => {
+					uni.hideLoading()
 				})
 			}
 		},
@@ -95,6 +110,12 @@
 		font-size: 14px;
 		padding-left: 4px;
 	}
+	.avatar{
+		display: inline-block;
+		width: 38px;
+		height: 38px;
+		border-radius: 50%;
+	}
 	.first-name{
 		display: inline-block;
 		width: 38px;
@@ -113,6 +134,14 @@
 		padding: 15px 0 15px 5px;
 		border-bottom: 1px solid #EDEAF4;
 	}
+	.member-list .vip-level{
+		border: 1px solid #666;
+		margin-left: 10px;
+		font-size: 12px;
+		border-radius: 12px;
+		padding: 2px 12px;
+		color: #666666;
+	}
 	.quick-entry{
 		position: fixed;
 		bottom: 80px;

--
Gitblit v1.9.1