From 41ee0d759c512d7a1cf023b48269e5e5d4ee954c Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Wed, 16 Dec 2020 15:00:29 +0800 Subject: [PATCH] gx --- hive-app/pages/member/index.vue | 69 +++++++++++++++++----------------- 1 files changed, 35 insertions(+), 34 deletions(-) diff --git a/hive-app/pages/member/index.vue b/hive-app/pages/member/index.vue index affb1f6..956ef98 100644 --- a/hive-app/pages/member/index.vue +++ b/hive-app/pages/member/index.vue @@ -3,26 +3,16 @@ <search-bar></search-bar> <view class="sort-wrap"> <view @click="filterCustom(1)"> - <text>到店排序</text> - <text class="iconfont iconjiantouarrow486"></text> - </view> - <view @click="filterCustom(2)"> - <text>卡项排序</text> - <text class="iconfont iconjiantouarrow486"></text> + <text>本月到店次数</text> + <text class="iconfont iconjiantouarrow486 gray"></text> </view> <view @click="filterCustom(3)"> - <text>全部筛选</text> - <text class="iconfont iconjiantouarrow486"></text> + <text>筛选</text> + <text class="iconfont iconshaixuan gray"></text> </view> </view> <filter-dropdown ref="filterDropdownEl" :list="filterList" :type="filterType"></filter-dropdown> - <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 justify-between" @click="toDetail"> <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> @@ -39,6 +29,9 @@ </view> </view> <indexed-list></indexed-list> + </view> + <view class="quick-entry" @click="addMember"> + <text class="iconfont iconjiahao"></text> </view> </view> </template> @@ -120,6 +113,11 @@ caculateBgcolor(index){ return this.colors[index%8]; }, + toDetail(){ + uni.navigateTo({ + url:'./detail' + }) + }, filterCustom(type){ this.$refs.filterDropdownEl.show(); if(type===1){ @@ -132,6 +130,11 @@ this.filterList = this.filter3; this.filterType = 0; } + }, + addMember(){ + uni.navigateTo({ + url:'./addMember' + }) } } } @@ -149,25 +152,7 @@ } .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; + padding-left: 4px; } .first-name{ display: inline-block; @@ -186,4 +171,20 @@ padding: 20px 0 20px 5px; border-bottom: 1px solid #EDEAF4; } + .quick-entry{ + position: fixed; + bottom: 80px; + right: 15px; + width: 50px; + height: 50px; + line-height: 50px; + text-align: center; + border-radius: 50%; + background: #518EFF; + color: #FFFFFF; + box-shadow: 4px 4px 5px #ddd; + } + .quick-entry .iconfont{ + font-size: 24px; + } </style> -- Gitblit v1.9.1