From a3885b6c56388f509dce290dbd2b9e6009e04647 Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Mon, 14 Dec 2020 14:51:05 +0800
Subject: [PATCH] gx

---
 hive-app/pages/member/index.vue |  110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 108 insertions(+), 2 deletions(-)

diff --git a/hive-app/pages/member/index.vue b/hive-app/pages/member/index.vue
index 4646a47..266205d 100644
--- a/hive-app/pages/member/index.vue
+++ b/hive-app/pages/member/index.vue
@@ -1,9 +1,115 @@
 <template>
-	<!-- 会员 -->
+	<view class="container">
+		<search-bar></search-bar>
+		<view class="sort-wrap">
+			<view>
+				<text>到店次数</text>
+				<text class="iconfont iconjiantouarrow486"></text>
+			</view>
+			<view>
+				<text>消费金额</text>
+				<text class="iconfont iconjiantouarrow486"></text>
+			</view>
+			<view>
+				<text>全部筛选</text>
+				<text class="iconfont iconjiantouarrow486"></text>
+			</view>
+		</view>
+		<view class="sort-tab">
+			<text class="sort-tab-item">正式客户</text>
+			<text class="sort-tab-item">体验客户</text>
+			<text class="sort-tab-item">潜在客户</text>
+			<text class="sort-tab-item">潜在客户</text>
+		</view>
+		<view class="flex justify-between">
+			<view class="flex-1 mr-10">
+				<view class="member-list flex align-center" v-for="(item, index) in 15">
+					<text class="first-name" :style="{background: caculateBgcolor(index)}">李</text>
+					<view class="flex-1 flex align-center justify-between member-list-con">
+						<view>
+							<text>李广</text>
+							<text class="ml-10">152****9645</text>
+						</view>
+						<view>
+							<text class="blue">30天未到店</text>
+							<text class="iconfont iconarrow-backimg gray"></text>
+						</view>
+					</view>
+				</view>
+			</view>
+			<indexed-list></indexed-list>
+		</view>
+	</view>
 </template>
 
 <script>
+	import searchBar from '../../components/searchBar/index.vue';
+	import indexedList from '../../components/indexedList/index.vue';
+	export default {
+		components:{
+			searchBar,
+			indexedList
+		},
+		data() {
+			return {
+				colors: ['#CCC6B4', '#C0CCB4', '#B4C2CC', '#BEB4CC', '#B4CCBE', '#B4CCCA', '#CCB4C6', '#CCB4B4']
+			};
+		},
+		methods:{
+			caculateBgcolor(index){
+				return this.colors[index%8];
+			}
+		}
+	}
 </script>
 
-<style>
+<style scoped>
+	.container{
+		padding: 10px 10px 0;
+	}
+	.sort-wrap{
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		font-size: 14px;
+	}
+	.sort-wrap .iconfont{
+		font-size: 14px;
+		color: #999;
+		padding-left: 3px;
+	}
+	.sort-tab{
+		display: flex;
+		justify-content: space-between;
+		margin: 10px 0;
+	}
+	.sort-tab-item{
+		border:1px solid #EDEAF4;
+		font-size: 14px;
+		color: #ABB1CC;
+		padding: 3px 10px;
+		border-radius: 4px;
+		box-shadow: 3px 3px 5px #EEEEEE;
+	}
+	.sort-tab-item.active{
+		border: 1px solid #518EFF;
+		color: #518EFF;
+	}
+	.first-name{
+		display: inline-block;
+		width: 38px;
+		height: 38px;
+		line-height: 38px;
+		margin-right: 10px;
+		border-radius: 50%;
+		text-align: center;
+		color: #FFFFFF;
+	}
+	.member-list{
+		font-size: 15px;
+	}
+	.member-list-con{
+		padding: 20px 0 20px 5px;
+		border-bottom: 1px solid #EDEAF4;
+	}
 </style>

--
Gitblit v1.9.1