zs há 2 anos atrás
pai
commit
0183e9b73e

+ 1 - 3
commpents/pagesMatchs/match/match-5.js

@@ -4,20 +4,18 @@ Component({
      * 组件的属性列表
      */
     properties: {
-
+        raceteamList: { type: Array },
     },
 
     /**
      * 组件的初始数据
      */
     data: {
-
     },
 
     /**
      * 组件的方法列表
      */
     methods: {
-
     }
 })

+ 25 - 0
commpents/pagesMatchs/match/match-5.less

@@ -0,0 +1,25 @@
+.main {
+    width: 96vw;
+    margin: 2vw;
+
+    .one {
+        .title {
+            display: flex;
+            flex-direction: row;
+            line-height: 40px;
+            border-bottom: 1px solid var(--f1Color);
+            margin: 0 0 2vw 0;
+
+            .name {
+                width: 60vw;
+                color: var(--f85Color);
+            }
+
+            .icon {
+                text-align: right;
+                width: 35vw;
+            }
+        }
+    }
+
+}

+ 10 - 2
commpents/pagesMatchs/match/match-5.wxml

@@ -1,2 +1,10 @@
-<!--commpents/pagesMatchs/match/match-5.wxml-->
-<text>commpents/pagesMatchs/match/match-5.wxml</text>
+<view class="main">
+    <view class="one">
+        <view class="title" wx:for="{{raceteamList}}" wx:key="item" bindtap="toCommon" data-item="{{item}}">
+            <view class="name">{{item.name}}</view>
+            <view class="icon">
+                <text class="iconfont icon-jiantou_liebiaozhankai"></text>
+            </view>
+        </view>
+    </view>
+</view>

+ 19 - 1
commpents/pagesMatchs/match/match-5.wxss

@@ -1 +1,19 @@
-/* commpents/pagesMatchs/match/match-5.wxss */
+.main {
+  width: 96vw;
+  margin: 2vw;
+}
+.main .one .title {
+  display: flex;
+  flex-direction: row;
+  line-height: 40px;
+  border-bottom: 1px solid var(--f1Color);
+  margin: 0 0 2vw 0;
+}
+.main .one .title .name {
+  width: 60vw;
+  color: var(--f85Color);
+}
+.main .one .title .icon {
+  text-align: right;
+  width: 35vw;
+}

+ 1 - 1
pagesMatch/match/info.wxml

@@ -74,7 +74,7 @@
             <view wx:if="{{tabs.active=='e'}}" class="e">
                 <scroll-view scroll-y="true" class="scroll-view">
                     <view class="list-scroll-view">
-                        <match-5></match-5>
+                        <match-5 raceteamList="{{raceteamList}}"></match-5>
                     </view>
                 </scroll-view>
             </view>