shish 11 ヶ月 前
コミット
7f8679d404

+ 4 - 4
hdApp/src/admin/home/member.vue

@@ -49,7 +49,7 @@
                         <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 365" style="margin-left:20upx;color:green;">超1年未下单</text>
                       </block>
                       <block v-else>
-                        <text style="font-size:25upx;margin-left:20upx;color:#3385FF;font-weight:bold;">待审核</text>
+                        <text style="font-size:26upx;margin-left:20upx;color:#3385FF;font-weight:bold;">待审核</text>
                       </block>
 
                     </view>
@@ -262,7 +262,7 @@ export default {
 
   .user-name {
     flex: 1;
-    font-size: 32upx;
+    font-size: 34upx;
     color: #333;
     overflow: hidden;
     text-overflow: ellipsis;
@@ -299,7 +299,7 @@ export default {
   .user-meta {
     display: flex;
     align-items: center;
-    font-size: 25upx;
+    font-size: 26upx;
     color: #9397a4;
     width:495upx;
     margin-top: 8upx;
@@ -309,7 +309,7 @@ export default {
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
-    font-size:25upx;
+    font-size:26upx;
     width:495upx;
   }
 

+ 61 - 35
hdApp/src/admin/home/order.vue

@@ -1,31 +1,34 @@
 <template>
   <view class="app-main app-content">
     <view style="position:fixed;top:100upx;background-color:white;z-index:999999;height:auto;font-size:33upx;color:#333333;width:100%;">
-    <view style="width:80%;border:1upx solid #CCCCCC;margin:0 auto;padding:10upx 0 0 20upx;overflow: scroll;" v-if="showSearch">
-      <block v-if="!$util.isEmpty(searchList)">
-        <block v-for="(item, index) in searchList" :key="index">
-          <view style="margin-bottom:30upx;" @click="getCustom(item)">
-            <view style="font-size:37upx;margin-bottom:10upx;">{{item.name}}</view>
-            <view style="font-size:29upx;">
-              {{item.visitTime?item.visitTime.substr(5,11):''}}
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 10000" style="margin-left:20upx;color:green;">没有下过单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 7" style="margin-left:20upx;color:green;">超1周未下单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 30" style="margin-left:20upx;color:green;">超1个月未下单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 180" style="margin-left:20upx;color:green;">超半年未下单</text>
-                <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 365" style="margin-left:20upx;color:green;">超1年未下单</text>
+      <view style="width:80%;border:1upx solid #CCCCCC;margin:0 auto;padding:10upx 0 0 20upx;overflow: scroll;" v-if="showSearch">
+        <block v-if="!$util.isEmpty(searchList)">
+          <block v-for="(item, index) in searchList" :key="index">
+            <view style="margin-bottom:30upx;" @click="getCustom(item)">
+              <view style="font-size:37upx;margin-bottom:10upx;">{{item.name}}</view>
+              <view style="font-size:29upx;color:#999999;">
+                {{item.visitTime?item.visitTime.substr(5,11):''}}
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 10000" style="margin-left:20upx;color:green;">没有下过单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 7" style="margin-left:20upx;color:green;">超1周未下单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 30" style="margin-left:20upx;color:green;">超1个月未下单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 180" style="margin-left:20upx;color:green;">超半年未下单</text>
+                  <text v-if="item.overTimeUnExpend && item.overTimeUnExpend == 365" style="margin-left:20upx;color:green;">超1年未下单</text>
+              </view>
             </view>
-          </view>
+          </block>
         </block>
-      </block>
-    </view>
+      </view>
     </view>
     <view class="input-wrap_box">
       <view class="select-dn_bx">
         <DateSelect class="bar" top="0" @selectDateFn="selectDateFn" defaultShowName='时间' />
       </view>
-      <view> <AppSearchModule placeholder="搜索客户" @input="searchFn"/> </view>
-      <button class="admin-button-com middle" @click="getScanOrder()" style="margin-left:15upx;">扫码</button>
-      <button class="admin-button-com middle" @click="selectStaffFn()" style="margin-left:15upx;margin-right:15upx;">员工</button>
+      <button class="admin-button-com middle" @click="changeSearchStyle()">{{searchStyle==0?'客户':'编号'}}</button>
+      <view class="search-container">
+        <AppSearchModule placeholder="填写" v-model="searchText" @input="searchFn"/>
+      </view>
+      <button class="admin-button-com middle" @click="getScanOrder()">扫码</button>
+      <button class="admin-button-com middle" @click="selectStaffFn()">员工</button>
       <button class="admin-button-com middle" @click="cancelFn()">清空</button>
     </view>
     <app-tabs :tabs="tabs" class="app-tabs" :isFixed="false" :top="50" :currentTab="tabIndex" :height="100" @change="change" itemWidth="20%" />
@@ -131,16 +134,16 @@ export default {
       tabs: [ { name: "全部", value: 0 }, { name: "待付款", value: 0 }, { name: "待发货", value: 0 }, { name: "配送中", value: 0 }, { name: "已完成", value: 0 } ],
       staffList:[],
       shopAdminId:0,
-      searchText:'',
       refreshPage:0,
       showSearch:false,
       searchList:[],
-      showSearch:false,
       customId:0,
       searchTime:'',
       startTime:'',
       endTime:'',
-      repeat:-1
+      repeat:-1,
+      searchStyle:0,//0客户 1编号
+      searchText:''
     };
   },
   onPullDownRefresh () {
@@ -180,6 +183,7 @@ export default {
   },
   methods: {
     getCustom(item){
+      console.log(item)
       this.showSearch = false
       this.customId = item.id
       this.resetList()
@@ -194,19 +198,24 @@ export default {
     },
     searchFn(e) {
       let that = this
-      if(that.$util.isEmpty(e)){
-        that.showSearch = false
-        that.searchList = []     
+      if(this.searchStyle == 0){
+        if(that.$util.isEmpty(e)){
+          that.showSearch = false
+          that.searchList = []     
+        }else{
+          getList({ page:1,name:e,type:0}).then((res) => {
+              if (!that.$util.isEmpty(res.data) && !that.$util.isEmpty(res.data.list)){
+                that.showSearch = true
+                that.searchList = res.data.list
+              }else{
+                that.showSearch = false
+                that.searchList = []
+              }
+          })
+        }
       }else{
-        getList({ page:1,name:e,type:0}).then((res) => {
-            if (!that.$util.isEmpty(res.data) && !that.$util.isEmpty(res.data.list)){
-              that.showSearch = true
-              that.searchList = res.data.list
-            }else{
-              that.showSearch = false
-              that.searchList = []
-            }
-        })
+        this.resetList()
+        this.getOrderList()
       }
     },
     reduceOrderStock(item){
@@ -224,6 +233,10 @@ export default {
         })          
       })
     },
+    changeSearchStyle(){
+      this.searchStyle = this.searchStyle ==0 ? 1 : 0
+      this.showSearch = false
+    },
     getScanOrder(){
       this.repeat = this.repeat == -1 ? 1 : -1
       this.resetList()
@@ -269,7 +282,8 @@ export default {
         searchText:this.searchText,
         page: this.list.page,
         customId:this.customId,
-        repeat:this.repeat
+        repeat:this.repeat,
+        searchStyle:this.searchStyle
       }).then(res => {
         this.completes(res);
         if (this.$util.isEmpty(res.data)){
@@ -362,8 +376,20 @@ export default {
     display: flex;
     align-items: center;
     padding: 0 20upx;
-    & > view:nth-child(2) {
+    gap: 10upx;
+    
+    .select-dn_bx {
+      flex-shrink: 0;
+    }
+    
+    .search-container {
       flex: 1;
+      min-width: 0;
+    }
+    
+    button {
+      flex-shrink: 0;
+      white-space: nowrap;
     }
   }
   .list-wrap {

+ 13 - 22
hdApp/src/admin/member/detail.vue

@@ -982,20 +982,7 @@ export default {
   padding-top: 30upx;
   padding-bottom: 30upx;
   
-  // 全局字体大小调整 - 排除弹框
-  * {
-    font-size: calc(1em + 2upx) !important;
-  }
-  
-  // 排除弹框的字体调整
-  .uni-popup,
-  .modal-module,
-  [class*="popup"],
-  [class*="modal"] {
-    * {
-      font-size: inherit !important;
-    }
-  }
+
 }
 // 公共
 .module-com {
@@ -1048,7 +1035,7 @@ export default {
           gap: 8upx;
           
           .user-real-name, .user-id {
-            font-size: 26upx;
+            font-size: 30upx;
             color: #666;
             line-height: 1.2;
           }
@@ -1090,7 +1077,7 @@ export default {
         margin-bottom: 8upx;
       }
       .app-color-3 {
-        font-size: 24upx;
+        font-size: 28upx;
       }
     }
   }
@@ -1105,7 +1092,7 @@ export default {
     border-bottom: 1upx solid #f0f0f0;
     
     .contact-title {
-      font-size: 28upx;
+      font-size: 32upx;
       font-weight: 600;
       color: #333;
     }
@@ -1156,7 +1143,7 @@ export default {
       
       .contact-label {
         width: 80upx;
-        font-size: 26upx;
+        font-size: 30upx;
         color: #666;
         flex-shrink: 0;
         margin-right: 20upx;
@@ -1165,7 +1152,7 @@ export default {
       
       .contact-value {
         flex: 1;
-        font-size: 28upx;
+        font-size: 32upx;
         color: #333;
         line-height: 1.4;
         word-break: break-all;
@@ -1175,7 +1162,7 @@ export default {
           
           .super-name {
             color: #666;
-            font-size: 24upx;
+            font-size: 28upx;
           }
         }
         
@@ -1193,7 +1180,7 @@ export default {
           
           .show-address {
             color: #999;
-            font-size: 24upx;
+            font-size: 28upx;
             margin-top: 4upx;
           }
         }
@@ -1227,6 +1214,7 @@ export default {
     }
     .tabs-name {
       color: $fontColor2;
+      font-size: 30upx;
     }
     &:nth-child(n + 5) {
       margin-bottom: 0;
@@ -1243,15 +1231,18 @@ export default {
       padding: 16upx 20upx;
       background-color: #f7f7f8;
       color: $fontColor2;
+      font-size: 32upx;
       border-radius: 4upx;
       .iconfont {
         color: $fontColor3;
       }
       .time {
         margin-right: 70upx;
+        font-size: 30upx;
       }
       .price {
         color: #333;
+        font-size: 32upx;
       }
     }
   }
@@ -1264,7 +1255,7 @@ export default {
     margin-right:10upx;
     margin-bottom:12upx;
     display:inline-block;
-    font-size:30upx;
+    font-size:34upx;
   }
 
   .flex-center {