shish 2 лет назад
Родитель
Сommit
3da598c0cd

+ 25 - 23
ghsPad/src/pages/home/components/customerList.vue

@@ -2,31 +2,33 @@
   <view class="app-select_user">
     <view class="title">请选客户</view>
     <view class="app-userList_box">
-<block v-for="(item,index) in list" :key="item.id">
-  <block v-if="index == 6">
-      <view class="userList-item_box" @click.stop="fastKd()" 
-      style="background-color:green;border:1upx solid green;text-align:center;">
-        <view class="head-box">
-          <view class="name" style="color:white;font-size:20upx;font-weight:bold;">快捷开单</view>
-        </view>
-      </view>
-  </block>
-  <view @click="selectCustomer(item)" class="userList-item_box" >
-    <view class="head-box">
-      <view class="name">{{item.name}}</view>
-    </view>
-    <view class="footer-box">
-      <view style="padding-left:3upx;"> {{item.debtAmount && Number(item.debtAmount)>0 ? '-¥'+parseFloat(item.debtAmount) : '-'}} </view>
-    </view>
-  </view>
-</block>
 
-      <view class="userList-item_box" @click.stop="fastKd()" 
-      style="background-color:green;border:1upx solid green;text-align:center;">
-        <view class="head-box">
-          <view class="name" style="color:white;font-size:20upx;font-weight:bold;">快捷开单</view>
+      <block v-for="(item,index) in list" :key="item.id">
+        <block v-if="index == 6">
+            <view class="userList-item_box" @click.stop="fastKd()" 
+            style="background-color:green;border:1upx solid green;text-align:center;">
+              <view class="head-box">
+                <view class="name" style="color:white;font-size:20upx;font-weight:bold;">快捷开单</view>
+              </view>
+            </view>
+        </block>
+        <view @click="selectCustomer(item)" class="userList-item_box" >
+          <view class="head-box">
+            <view class="name">{{item.name}}</view>
+          </view>
+          <view class="footer-box">
+            <view style="padding-left:3upx;"> {{item.debtAmount && Number(item.debtAmount)>0 ? '-¥'+parseFloat(item.debtAmount) : '-'}} </view>
+          </view>
+        </view>
+      </block>
+      <block v-if="list.length && list.length < 6">
+        <view class="userList-item_box" @click.stop="fastKd()" 
+        style="background-color:green;border:1upx solid green;text-align:center;">
+          <view class="head-box">
+            <view class="name" style="color:white;font-size:20upx;font-weight:bold;">快捷开单</view>
+          </view>
         </view>
-      </view>
+      </block>
 
     </view>
     <input disabled class="input-serach_box" style="margin-bottom:5upx;" v-model="searchUser" type="text" @change="changSearch" placeholder-class="input-placeholder" placeholder="请输入"/>

+ 1 - 1
ghsPad/src/pages/home/components/rightItem.vue

@@ -169,7 +169,7 @@ export default {
         padding-bottom:2upx;
         & > view {
             border:1px solid #e4e4e4;
-            padding: 9upx 0upx;
+            padding: 8upx 0upx;
             font-size: 10upx;
             width: 68upx;
             overflow: hidden;

+ 1 - 1
hdPad/src/pages/home/components/rightItem.vue

@@ -169,7 +169,7 @@ export default {
         padding-bottom:2upx;
         & > view {
             border:1px solid #e4e4e4;
-            padding: 12upx 0upx;
+            padding: 8upx 0upx;
             font-size: 10upx;
             width: 68upx;
             overflow: hidden;