|
@@ -2,7 +2,8 @@
|
|
|
<view class="sticky-box" style="position:fixed;z-index:100;">
|
|
|
<view class="namewrap">
|
|
|
<scroll-view scroll-x scroll-with-animation scroll-left="{{navScrollWidth}}" class="item-box">
|
|
|
- <view class="nameitem {{nameIndex == index ? 'nameactive' : ''}}" wx:for="{{nameList}}" bindtap="nameHandler" data-index="{{index}}">
|
|
|
+ <view class="nameitem {{nameIndex == index ? 'nameactive' : ''}}" wx:for="{{nameList}}" bindtap="nameHandler"
|
|
|
+ data-index="{{index}}">
|
|
|
{{item.itemname}}
|
|
|
<view style="display: {{nameIndex == index?'block':'none'}};" class="item-line"></view>
|
|
|
</view>
|
|
@@ -34,8 +35,21 @@
|
|
|
<view class='boxm boxmfix' data-id="{{item.id}}" bindtap='activeDetail' wx:for="{{listData}}" wx:key="item">
|
|
|
<view class="rel img-view">
|
|
|
<image mode="aspectFill" src='{{item.thumbnailImg}}' lazy-load='true'></image>
|
|
|
- <view class="status {{item.statusName === '进行中' ? 'activestatus' : item.statusName === '报名中' ? 'baostatus' : item.statusName === '已结束' ? 'endstatus' : item.statusName === '已报满' ? 'mstatus' : 'nostatus'}}">
|
|
|
- {{item.statusName}}</view>
|
|
|
+ <!-- <view class="status {{item.statusName === '进行中' ? 'activestatus' : item.statusName === '报名中' ? 'baostatus' : item.statusName === '已结束' ? 'endstatus' : item.statusName === '已报满' ? 'mstatus' : 'nostatus'}}">
|
|
|
+ {{item.statusName}}</view> -->
|
|
|
+ <view class="status" wx:if="{{item.statusName === '报名中'}}"
|
|
|
+ style="background-image: url('/assets/images/home/icon_5.png');">
|
|
|
+ {{item.statusName}}
|
|
|
+ </view>
|
|
|
+ <view class="status"
|
|
|
+ wx:if="{{item.statusName === '进行中'||item.statusName === '已报满'||item.statusName === '未进行'}}"
|
|
|
+ style="background-image: url('/assets/images/home/icon_6.png');">
|
|
|
+ {{item.statusName}}
|
|
|
+ </view>
|
|
|
+ <view class="status" wx:if="{{item.statusName === '已结束'}}"
|
|
|
+ style="background-image: url('/assets/images/home/icon_7.png');">
|
|
|
+ {{item.statusName}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="txt-con txt-con-fix">
|
|
|
<view>
|