Parcourir la source

perf: use transform handle 1px

wangyuan il y a 2 ans
Parent
commit
3f3d78211e

+ 6 - 0
app.wxss

@@ -49,4 +49,10 @@ page {
   font-weight: 400;
   background: #CCCCCC;
   color: #FFFFFF;
+}
+.px-border {
+  height: 1rpx;
+  transform: scaleY(0.5);
+  transform-origin: 50% 100%;
+  background-color: #dddddd;
 }

+ 3 - 0
pages/addressAdd/addressAdd.wxml

@@ -4,9 +4,11 @@
     <view class="form-item linker">
       <input class="linker-input user-input" bindinput="bindinput" model:value="{{contactName}}" placeholder="请输入联系人" maxlength="6"/>
     </view>
+    <view class="px-border"></view>
     <view class="form-item phone">
       <input class="phone-input user-input" bindinput="bindinput" model:value="{{contactPhone}}" type="number" maxlength="11"  placeholder="请输入手机号"/>
     </view>
+    <view class="px-border"></view>
     <view class="form-item chose-region ittflex-jcb">
       <view class="label ittflex {{region.length == 0 ? 'label-placeholder' : ''}}">所在区域</view>
       <view class="actions">
@@ -18,6 +20,7 @@
         </picker>
       </view>
     </view>
+    <view class="px-border"></view>
     <view class="form-item address-detail ittflex">
       <textarea maxlength="30" bindinput="bindinput" class="inputtext" model:value="{{detailAddress}}" show-confirm-bar placeholder="请输入详细地址:比如道路,门牌号等" 	placeholder-style="font-size: 26rpx;color:#999"/>
     </view>

+ 0 - 1
pages/addressAdd/addressAdd.wxss

@@ -13,7 +13,6 @@
 .form-item {
   width: 100%;
   height: 100rpx;
-  border-bottom: 1rpx solid #e4e4e4;
 }
 .label {
   width: 150rpx;

+ 2 - 1
pages/index/index.wxml

@@ -42,7 +42,7 @@
       </block>
       <block wx:else>
         <view class="file-item" wx:for="{{documentVos}}" wx:key="index">
-          <view class="main-con {{index == documentVos.length - 1 ? 'no-border' : ''}}">
+          <view class="main-con">
             <view class="file-left user-info">
               <view class="header-img">
                 <image class="headImg" src="{{item.headImg}}"></image>
@@ -62,6 +62,7 @@
             </view>
             <view class="file-right check-report" data-reportid="{{item.reportId}}" wx:if="{{item.reportId !== null }}" bindtap="handleRepoetDetail">查看报告</view>
           </view>
+          <view class="px-border {{index == documentVos.length - 1 ? 'display-none' : ''}}" ></view>
         </view>
       </block>
     </view>

+ 3 - 9
pages/index/index.wxss

@@ -205,13 +205,13 @@
   width: 648rpx;
   height: 100%;
   margin: 0 auto;
-  border-bottom: 1rpx solid #DDD;
+  /* border-bottom: 1rpx solid #DDD; */
   display: flex;
   justify-content: space-between;
   align-items: center;
 }
-.no-border {
-  border: 0;
+.display-none{
+  display: none;
 }
 .absolute-btn {
   position: absolute;
@@ -382,12 +382,6 @@
   font-weight: bold;
   color: #333333;
 }
-.px-border {
-  height: 1rpx;
-  transform: scaleY(0.5);
-  transform-origin: 50% 100%;
-  background-color: #dddddd;
-}
 .app-logo {
   height: 80rpx;
   text-align: center;

+ 0 - 6
pages/my/my.wxss

@@ -113,12 +113,6 @@
   font-weight: bold;
   color: #333333;
 }
-.px-border {
-  height: 1rpx;
-  transform: scaleY(0.5);
-  transform-origin: 50% 100%;
-  background-color: #dddddd;
-}
 .app-logo {
   height: 80rpx;
   text-align: center;