|
@@ -10,11 +10,7 @@
|
|
|
<view class="list">
|
|
|
<view class="listtou">
|
|
|
<view class="name">{{teamlist.name}}</view>
|
|
|
- <view class="listbut"> <button class="button" size="mini" style="background:rgb(238, 147, 28);" wx:if="{{teamlist.status == '未开始'}}">{{teamlist.status}}</button>
|
|
|
- <button class="button" size="mini" style="background:rgb(238, 88, 28);" wx:if="{{teamlist.status == '待比赛'}}">{{teamlist.status}}</button>
|
|
|
- <button class="button" size="mini" style="background:rgb(54, 233, 48)" wx:if="{{teamlist.status == '报名中'}}">{{teamlist.status}}</button>
|
|
|
- <button class="button" size="mini" style="background:rgb(54, 233, 48)" wx:if="{{teamlist.status == '进行中'}}">{{teamlist.status}}</button>
|
|
|
- <button class="button" size="mini" style="background:rgb(136, 136, 136);" wx:if="{{teamlist.status == '已结束'}}">{{teamlist.status}}</button>
|
|
|
+ <view class="listbut"> <button class="color{{teamlist.status}}" size="mini">{{teamlist.status=='0'?'未开始':teamlist.status=='1'?'报名中':teamlist.status=='2'?'待比赛':teamlist.status=='3'?'进行中':'已结束'}}</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="left1">
|
|
@@ -64,29 +60,29 @@
|
|
|
</view>
|
|
|
</van-tab>
|
|
|
<van-tab title="赛程列表">
|
|
|
- <view class="root" wx:if="{{status=='未开始'}}" wx:key="item" wx:for="{{schedule}}">
|
|
|
+ <view class="root" wx:if="{{item.status=='0'}}" wx:key="item" wx:for="{{schedule}}">
|
|
|
<image class='background-image' src='/image/huang.png'></image>
|
|
|
<view class="content">
|
|
|
<view class="four">
|
|
|
<view class="four-1">
|
|
|
<view class="fourleft3">
|
|
|
- <text class="fourtext5">{{item.status}}</text>
|
|
|
+ <text class="fourtext5">{{item.status=='0'?'未开始':item.status=='1'?'报名中':item.status=='2'?'待比赛':item.status=='3'?'进行中':'已结束'}}</text>
|
|
|
<text class="fourtext6">{{item.match_time}}</text>
|
|
|
</view>
|
|
|
<view class="fourright4">
|
|
|
<view class="fourright1_2">
|
|
|
<view class="fourright1_2o">
|
|
|
- <image class="fourhead1" src="{{item.blue_logo}}"></image>
|
|
|
+ <image class="fourhead1" src="{{item.blue_logo[0].url}}"></image>
|
|
|
</view>
|
|
|
<view class="fourright1_2t"><text>{{item.blue_name}}</text></view>
|
|
|
<view class="fourright1_2i">
|
|
|
- <text class="fourtext6-1">{{item.blue_branch}}</text>
|
|
|
+ <text class="fourtext6-1">{{item.blue_branch||0}}</text>
|
|
|
<text class="fourtext8-1">:</text>
|
|
|
- <text class="fourtext7-1">{{item.red_branch}}</text>
|
|
|
+ <text class="fourtext7-1">{{item.red_branch||0}}</text>
|
|
|
</view>
|
|
|
<view class="fourright1_2t"><text>{{item.red_name}}</text></view>
|
|
|
<view class="fourright1_2o">
|
|
|
- <image class="fourhead2" src="{{item.red_logo}}"></image>
|
|
|
+ <image class="fourhead2" src="{{item.red_logo[0].url}}"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -94,29 +90,29 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="root" wx:if="{{status=='已结束'}}" wx:key="item" wx:for="{{schedule}}">
|
|
|
+ <view class="root" wx:if="{{item.status=='4'}}" wx:key="item" wx:for="{{schedule}}">
|
|
|
<image class='background-image' src='/image/hhh.png'></image>
|
|
|
<view class="content">
|
|
|
<view class="four">
|
|
|
<view class="four-1">
|
|
|
<view class="fourleft3">
|
|
|
- <text class="fourtext5">{{item.status}}</text>
|
|
|
+ <text class="fourtext5">{{item.status=='0'?'未开始':item.status=='1'?'报名中':item.status=='2'?'待比赛':item.status=='3'?'进行中':'已结束'}}</text>
|
|
|
<text class="fourtext6">{{item.match_time}}</text>
|
|
|
</view>
|
|
|
<view class="fourright4">
|
|
|
<view class="fourright1_2">
|
|
|
<view class="fourright1_2o">
|
|
|
- <image class="fourhead1" src="{{item.blue_logo}}"></image>
|
|
|
+ <image class="fourhead1" src="{{item.blue_logo[0].url}}"></image>
|
|
|
</view>
|
|
|
<view class="fourright1_2t"><text>{{item.blue_name}}</text></view>
|
|
|
<view class="fourright1_2i">
|
|
|
- <text class="fourtext6-1">{{item.blue_branch}}</text>
|
|
|
+ <text class="fourtext6-1">{{item.blue_branch||0}}</text>
|
|
|
<text class="fourtext8-1">:</text>
|
|
|
- <text class="fourtext7-1">{{item.red_branch}}</text>
|
|
|
+ <text class="fourtext7-1">{{item.red_branch||0}}</text>
|
|
|
</view>
|
|
|
<view class="fourright1_2t"><text>{{item.red_name}}</text></view>
|
|
|
<view class="fourright1_2o">
|
|
|
- <image class="fourhead2" src="{{item.red_logo}}"></image>
|
|
|
+ <image class="fourhead2" src="{{item.red_logo[0].url}}"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|