Explorar el Código

添加平板样式兼容

lex-xin hace 6 meses
padre
commit
49d4bc1b6c

+ 2 - 2
miniprogram/components/navigation-bar/navigation-bar.less

@@ -58,8 +58,8 @@
   // background-color: var(--weui-FG-0);
   background-size: contain;
   font-weight: bold;
-  width: 36rpx;
-  height: 36rpx;
+  width: 18px;
+  height: 18px;
 }
 
 .weui-navigation-bar__center {

+ 7 - 6
miniprogram/pages/address/address-detail.less

@@ -41,9 +41,9 @@
 
 .van-picker__toolbar,
 .toolbar-top {
-  margin: 0 40rpx !important;
-  padding: 0 14rpx !important;
-  border-bottom: 2rpx solid #F2F2F2;
+  margin: 0 20px !important;
+  padding: 0 7px !important;
+  border-bottom: 1px solid #F2F2F2;
   height: auto !important;
   line-height: normal !important;
 }
@@ -52,8 +52,8 @@
 .van-picker__confirm,
 .toolbar-cancel,
 toolbar-confirm {
-  font-size: 32rpx !important;
-  padding: 28rpx 0 !important;
+  font-size: 16px !important;
+  padding: 14px 0 !important;
   color: #777777 !important;
 }
 
@@ -111,6 +111,7 @@ toolbar-confirm {
     .van-cell {
       padding: 24rpx;
       font-size: 30rpx;
+      --cell-line-height: 48rpx!important;
     }
 
     .required {
@@ -137,7 +138,7 @@ toolbar-confirm {
 
   .van-picker-column__item--selected {
     font-weight: 600;
-    font-size: 32rpx;
+    font-size: 16px;
     color: #FE4600 !important;
   }
 

+ 28 - 27
miniprogram/pages/buyerInformation/index.less

@@ -44,6 +44,7 @@
     padding: 28rpx;
     font-size: 30rpx;
     line-height: 42rpx;
+    --cell-line-height: 42rpx!important;
 
     .required {
       font-weight: 600;
@@ -81,8 +82,8 @@
       font-size: 28rpx;
       color: rgba(254, 70, 0, 0.5);
       width: 104rpx;
-      line-height: 48rpx;
-      height: 48rpx;
+      line-height: 46rpx;
+      height: 46rpx;
       text-align: center;
 
       &.active {
@@ -117,9 +118,9 @@
 
 .van-picker__toolbar,
 .toolbar-top {
-  margin: 0 14rpx !important;
-  padding: 0 14rpx !important;
-  border-bottom: 2rpx solid #F2F2F2;
+  margin: 0 7px !important;
+  padding: 0 7px !important;
+  border-bottom: 1px solid #F2F2F2;
   height: auto !important;
   line-height: normal !important;
 }
@@ -128,8 +129,8 @@
 .van-picker__confirm,
 .toolbar-cancel,
 toolbar-confirm {
-  font-size: 32rpx !important;
-  padding: 28rpx 0 !important;
+  font-size: 16px !important;
+  padding: 14px 0 !important;
   color: #777777 !important;
 }
 
@@ -146,17 +147,17 @@ toolbar-confirm {
 
 .searchList {
   .icon-search {
-    width: 32rpx;
-    height: 32rpx;
-    margin: auto 10rpx auto auto;
+    width: 16px;
+    height: 16px;
+    margin: auto 5px auto auto;
   }
 
   .van-search {
-    margin: 30rpx 26rpx 26rpx !important;
+    margin: 15px 13px 13px !important;
     padding: 0 !important;
-    height: 70rpx !important;
+    height: 35px !important;
     background: #F6F6F6 !important;
-    border-radius: 35rpx !important;
+    border-radius: 18px !important;
     border: 1rpx solid #FFFFFF !important;
   }
 
@@ -170,36 +171,36 @@ toolbar-confirm {
   }
 
   .van-cell {
-    font-size: 26rpx !important;
+    font-size: 13px !important;
   }
 
   .searchBtn {
-    width: 112rpx;
-    line-height: 54rpx !important;
+    width: 56px;
+    line-height: 27px !important;
     padding: 0 !important;
     text-align: center;
     background: linear-gradient( 270deg, #FF9501 0%, #FE4600 100%);
     font-weight: 500;
-    font-size: 28rpx;
+    font-size: 14px;
     color: #FFFFFF;
-    line-height: 40rpx;
-    border-radius: 40rpx;
-    margin-right: 6rpx;
+    line-height: 20px;
+    border-radius: 20px;
+    margin-right: 3px;
   }
 }
 
 .van-picker-column__item--selected {
   font-weight: 600;
-  font-size: 32rpx;
+  font-size: 16px;
   color: #FE4600 !important;
 }
 
 .empty-box {
-  padding-top: 12rpx;
+  padding-top: 6px;
   box-sizing: border-box;
   height: 220px;
   text-align: center;
-  font-size: 32rpx;
+  font-size: 16px;
   font-family: PingFangSC-Regular, PingFang SC;
   font-weight: 400;
   color: #999999;
@@ -223,14 +224,14 @@ toolbar-confirm {
   }
 
   image {
-    width: 324rpx;
+    width: 162px;
   }
 
   .empty-text {
-    font-size: 28rpx;
+    font-size: 14px;
     color: #AAA;
-    line-height: 40rpx;
+    line-height: 20x;
     text-align: center;
-    padding-top: 16rpx;
+    padding-top: 8px;
   }
 }

+ 11 - 1
miniprogram/pages/buyerInformation/index.ts

@@ -95,6 +95,8 @@ Page({
     showClassAfterLeave: false, // 离开后
     buyerLoading: false,
     currentIndex: 0,
+
+    timer: null as any
   },
 
   /**
@@ -526,8 +528,16 @@ Page({
     this.getSchools(this.data.searchName);
   },
   onSearchChange(e: any) {
-    this.setData({
+    const that = this
+    that.setData({
       searchName: e.detail
+    }, () => {
+      // 防抖
+       clearTimeout(that.data.timer); // 清除之前的定时器
+        that.data.timer = setTimeout(() => {
+          that.getSchools(that.data.searchName);
+          // 这里写业务逻辑
+        }, 500); // 1秒后执行
     })
   },
   /** 选择年级班级 */

+ 5 - 1
miniprogram/pages/orders/order-result.less

@@ -114,7 +114,6 @@ page {
       text-overflow: ellipsis;
       max-width: 280rpx;
     }
-
     .goods-current-price {
       font-weight: bold;
       font-family: DINAlternate, DINAlternate;
@@ -135,6 +134,11 @@ page {
     font-weight: bold;
     color: #131415;
     line-height: 48rpx;
+    font-size: 28px;
+    text {
+      padding-left: 2rpx;
+      font-size: 36rpx
+    }
 
     .stuff {
       font-size: 28rpx;