Explorar el Código

发跑腿优化

shish hace 6 meses
padre
commit
4dc676161b

+ 21 - 23
ghsPad/src/pages/home/components/deliveryPop.vue

@@ -51,28 +51,26 @@
                     <text>正在获取运费...</text>
                 </view>
                 <view v-else-if="deliveryQuotes.length > 0">
-                    <scroll-view scroll-y class="delivery-quotes-scroll">
-                        <view class="delivery-quotes-grid">
-                            <view
-                              v-for="(item, index) in deliveryQuotes"
-                              :key="index"
-                              class="delivery-quote-item"
-                              :class="{
-                                'active': selectedDeliveryIndex === index,
-                                'disabled': !item.isAble,
-                                'fixed-width': deliveryQuotes.length <= 2
-                              }"
-                              @click="selectDelivery(item, index)"
-                            >
-                              <view class="platform-name">{{ item.displayName || item.name }}</view>
-                              <view class="platform-price">{{ item.priceText }}元</view>
-                              <view v-if="item.type" class="platform-type">{{ item.type }}</view>
-                            </view>
+                    <view class="delivery-quotes-grid">
+                        <view
+                          v-for="(item, index) in deliveryQuotes"
+                          :key="index"
+                          class="delivery-quote-item"
+                          :class="{
+                            'active': selectedDeliveryIndex === index,
+                            'disabled': !item.isAble,
+                            'fixed-width': deliveryQuotes.length <= 2
+                          }"
+                          @click="selectDelivery(item, index)"
+                        >
+                          <view class="platform-name">{{ item.displayName || item.name }}</view>
+                          <view class="platform-price">{{ item.priceText }}元</view>
+                          <view v-if="item.type" class="platform-type">{{ item.type }}</view>
                         </view>
-                    </scroll-view>
+                    </view>
                 </view>
                 <view v-else class="empty-quotes-view">
-                    <text>暂无可用跑腿,请检查地址或网络</text>
+                    <text>暂无可用跑腿</text>
                 </view>
             </view>
         </view>
@@ -440,9 +438,9 @@ export default {
     
     .delivery-quotes-scroll {
         width: 100%;
-        max-height: 200upx;
+        max-height: 100%;
     }
-    
+
     .delivery-quotes-grid {
         display: flex;
         flex-wrap: wrap;
@@ -450,7 +448,8 @@ export default {
     }
     
     .delivery-quote-item {
-        width: calc(33.33% - 7upx);
+        flex: 0 0 calc(33.33% - 10upx);
+        width: calc(33.33% - 10upx);
         background: #fff;
         border: 1rpx solid #ddd;
         border-radius: 4upx;
@@ -515,7 +514,6 @@ export default {
         
         button {
             flex: 1;
-            border-radius: 0;
             font-size: 15upx;
             height: 40upx;
             line-height: 40upx;

+ 2 - 3
ghsPad/src/pages/home/components/orderInfo.vue

@@ -698,8 +698,7 @@ export default {
     background-color: #fff;
     border-radius: 5upx;
     padding: 15upx;
-	box-sizing: border-box;
-    
+	  box-sizing: border-box;
     .popup-title {
         font-size: 14upx;
         font-weight: bold;
@@ -708,7 +707,7 @@ export default {
     }
     
     .reason-list {
-        max-height: 40vh;
+        max-height: 60vh;
     }
     
     .reason-item {

+ 14 - 16
hdPad/src/pages/home/components/deliveryPop.vue

@@ -52,22 +52,20 @@
           <text>正在获取运费...</text>
         </view>
         <view v-else-if="deliveryQuotes.length > 0">
-          <scroll-view scroll-y class="delivery-quotes-scroll">
-            <view class="delivery-quotes-grid">
-              <view v-for="(item, index) in deliveryQuotes" :key="index" class="delivery-quote-item" :class="{
-                active: selectedDeliveryIndex === index,
-                disabled: !item.isAble,
-                'fixed-width': deliveryQuotes.length <= 2
-              }" @click="selectDelivery(item, index)">
-                <view class="platform-name">{{ item.displayName || item.name }}</view>
-                <view class="platform-price">{{ item.priceText }}元</view>
-                <view v-if="item.type" class="platform-type">{{ item.type }}</view>
-              </view>
+          <view class="delivery-quotes-grid">
+            <view v-for="(item, index) in deliveryQuotes" :key="index" class="delivery-quote-item" :class="{
+              active: selectedDeliveryIndex === index,
+              disabled: !item.isAble,
+              'fixed-width': deliveryQuotes.length <= 2
+            }" @click="selectDelivery(item, index)">
+              <view class="platform-name">{{ item.displayName || item.name }}</view>
+              <view class="platform-price">{{ item.priceText }}元</view>
+              <view v-if="item.type" class="platform-type">{{ item.type }}</view>
             </view>
-          </scroll-view>
+          </view>
         </view>
         <view v-else class="empty-quotes-view">
-          <text>暂无可用跑腿,请检查地址或网络</text>
+          <text>暂无可用跑腿</text>
         </view>
       </view>
     </view>
@@ -445,7 +443,7 @@ export default {
 
   .delivery-quotes-scroll {
     width: 100%;
-    max-height: 200upx;
+    max-height: 100%;
   }
 
   .delivery-quotes-grid {
@@ -455,7 +453,8 @@ export default {
   }
 
   .delivery-quote-item {
-    width: calc(33.33% - 7upx);
+    flex: 0 0 calc(33.33% - 10upx);
+    width: calc(33.33% - 10upx);
     background: #fff;
     border: 1rpx solid #ddd;
     border-radius: 4upx;
@@ -523,7 +522,6 @@ export default {
 
     button {
       flex: 1;
-      border-radius: 0;
       font-size: 15upx;
       height: 40upx;
       line-height: 40upx;

+ 2 - 3
hdPad/src/pages/home/components/orderInfo.vue

@@ -752,8 +752,7 @@ export default {
     background-color: #fff;
     border-radius: 5upx;
     padding: 15upx;
-	box-sizing: border-box;
-    
+	  box-sizing: border-box;
     .popup-title {
         font-size: 14upx;
         font-weight: bold;
@@ -762,7 +761,7 @@ export default {
     }
     
     .reason-list {
-        max-height: 40vh;
+        max-height: 60vh;
     }
     
     .reason-item {