Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions pages/result/result.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,20 @@
<text>搜索结果</text>
</view>
</view>

<view wx:for="{{localContests}}">
{{index}}: {{item.name}}, {{item.type}}, {{item.timeStart}}, {{item.timeEnd}}, {{item.teamAmount}}, {{item.show}},
</view>
<view class="card short-card">
<view class="tit">{{index}}:{{item.name}}</view>
<view class="description">描述:{{item.type}}</view>
<view class="description"><view wx:if="{{item.timeEnd==0}}"> 短期竞赛</view> 结束时间:{{item.teamAmount}}月</view>
<view wx:if="{{item.show==true}}">
<view class="btn-area">
<button type="default" size="mini" data-index="{{itemIndex}}" bindtap="modalTap">GROUPING</button>
</view>
</view>

</view>
</view>

</view>
</view>
36 changes: 36 additions & 0 deletions pages/result/result.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,40 @@ input{
box-sizing: border-box;
font-family:"宋体" ;
font-weight: bold;
}

.card {
background: rgb(224, 238, 245);
font-family: "宋体";
width:80%;
border-radius: 2%;
border-style: solid;
padding: 20px 32rpx;
margin-left: 5%;
margin-right: 5%;
margin-top: 5%;
margin-bottom: 5%;
padding: 20px 32rpx;
border-radius: 2%;
border-style: solid;
}
.short-card {
height: 250rpx;
}
.tit{
font-weight: bold;
font-size: 1.1em;
margin-bottom: 4%;
color: rgb(10, 70, 126);
}
.description{
font-family: sans-serif;
font-size: 0.7em;
margin-top: 1%;
}

.btn-area{
font-style: initial;
font-family: fantasy;
margin-left: 65%;
}