li-guang
2020-12-21 c93eff979aba7e4e071b3363f9146d5b4d49996e
hive-app/pages/member/index.vue
@@ -1,28 +1,21 @@
<template>
   <view class="container">
      <!-- #ifndef H5 -->
      <view class="status_bar"></view>
      <!-- #endif -->
      <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 +32,11 @@
            </view>
         </view>
         <indexed-list></indexed-list>
      </view>
      <view class="quick-entry">
         <navigator url="./editMember" hover-class="navigator-hover">
            <text class="iconfont iconjia"></text>
         </navigator>
      </view>
   </view>
</template>
@@ -120,6 +118,11 @@
         caculateBgcolor(index){
            return this.colors[index%8];
         },
         toDetail(){
            uni.navigateTo({
               url:'./detail'
            })
         },
         filterCustom(type){
            this.$refs.filterDropdownEl.show();
            if(type===1){
@@ -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,23 @@
      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;
   }
   .navigator-hover{
      border-radius: 50%;
   }
</style>