Przeglądaj źródła

修改详情样式

zs 3 lat temu
rodzic
commit
c7aad9089f
3 zmienionych plików z 28 dodań i 18 usunięć
  1. 4 0
      pages/match/detail.js
  2. 3 3
      pages/match/detail.wxml
  3. 21 15
      pages/match/detail.wxss

+ 4 - 0
pages/match/detail.js

@@ -15,6 +15,7 @@ Page({
     // 主体高度
     infoHeight: '',
     id: '',
+    time:'',
     //修改比分
     form: [],
     //详情数据
@@ -148,10 +149,13 @@ Page({
           data: {},
           success(res) {
             let fileList = res.data.data.match_file;
+            let match_time = res.data.data.match_time;
+            let time = match_time.substring(5, 17)
             console.log(res.data.data);
             that.setData({
               schedulelist: res.data.data,
               fileList: fileList,
+              time: time,
             })
           }
         })

+ 3 - 3
pages/match/detail.wxml

@@ -6,11 +6,11 @@
           <view class="one_1_img">
             <image class="one_logo1" src="{{schedulelist.blue_logo[0].url}}"></image>
           </view>
-          <view class="one_1_text">{{schedulelist.blue_name}}</view>
+          <view class="one_1_text textOver">{{schedulelist.blue_name}}</view>
         </view>
         <view class="one_2">
           <view class="one_2_1">
-            <text class="time">{{schedulelist.match_time}}</text>
+            <text class="time">{{time}}</text>
           </view>
           <view class="one_2_2">
             <text class="text1">{{schedulelist.blue_branch||0}}</text>
@@ -25,7 +25,7 @@
           <view class="one_3_img">
             <image class="one_logo2" src="{{schedulelist.red_logo[0].url}}"></image>
           </view>
-          <view class="one_3_text">{{schedulelist.red_name}}</view>
+          <view class="one_3_text textOver">{{schedulelist.red_name}}</view>
         </view>
         <view class="one_4">{{schedulelist.match_name}}</view>
       </view>

+ 21 - 15
pages/match/detail.wxss

@@ -11,7 +11,7 @@
 
 .two1 {
   width: 100%;
-  margin-left: 3%;
+  margin-left: 4%;
   font-size: 15px;
   font-weight: 550;
 }
@@ -32,17 +32,27 @@
 }
 
 .imgs {
-  margin-left: 12%;
+  margin-left: 14%;
   border-radius: 48.78px;
   width: 50%;
   height: 48.78px;
 }
 
+.van-uploader__preview-image {
+  width: 162px !important;
+  height: 80px !important;
+}
+
+.van-uploader__upload {
+  width: 162px !important;
+  height: 80px !important;
+}
+
 .imgss {
   margin-left: 20%;
-  border-radius: 49.98px;
-  width: 85%;
-  height: 49.98px;
+  border-radius: 48.71px;
+  width: 58%;
+  height: 48.71px;
 }
 
 .img {
@@ -57,23 +67,19 @@
 }
 
 .two-1 {
-  padding-top: 17px;
+  padding-top: 7px;
   padding-left: 5px;
   float: left;
   width: 26%;
   background-color: #ffffff;
 }
 
-.two-9 {
-  width: 70%;
-}
-
 .two2 {
   background-color: #ffffff;
 }
 
 .two-2 {
-  padding-top: 10px;
+  padding-top: 7px;
   padding-left: 5px;
   float: left;
   width: 15%;
@@ -110,7 +116,7 @@
 
 .thr-1 {
   padding-top: 10px;
-  padding-left: 6.5px;
+  padding-left: 18px;
   float: left;
   width: 14.5%;
   background-color: #ffffff;
@@ -150,7 +156,7 @@
 
 .thrleft {
   float: left;
-  padding-top: 15px;
+  padding-top: 10px;
   padding-left: 10px;
   padding-right: 2px;
   background-color: #ffffff;
@@ -185,7 +191,7 @@
   width: 100%;
   font-weight: 550;
   font-size: 15px;
-  padding-top: 5%;
+  padding-top: 20%;
   padding-bottom: 10%;
   background-color: #ffffff;
 }
@@ -244,7 +250,7 @@
 }
 
 .one_1_text {
-  margin-left: 14%;
+  margin-left: 20%;
   font-size: 14px;
 }