|
@@ -1,4 +1,5 @@
|
|
<!-- home -->
|
|
<!-- home -->
|
|
|
|
+<wxs src="../../utils/util.wxs" module="format" />
|
|
<view class="home fg" wx:if="{{curNav == 0}}">
|
|
<view class="home fg" wx:if="{{curNav == 0}}">
|
|
<view style="overflow:hidden">
|
|
<view style="overflow:hidden">
|
|
<view class="swiperContainer">
|
|
<view class="swiperContainer">
|
|
@@ -13,7 +14,7 @@
|
|
<view class="home-nav-list">
|
|
<view class="home-nav-list">
|
|
<image src="../../imgs/home/nav-bg.png"></image>
|
|
<image src="../../imgs/home/nav-bg.png"></image>
|
|
<view class="home-nav-select">
|
|
<view class="home-nav-select">
|
|
- <view class="contest" bindtap="toLink" data-url="{{isRegister?'/pages/contest/answer/answer':'/pages/contest/info/info'}}">
|
|
|
|
|
|
+ <view class="contest" bindtap="toLink" data-url="{{user.isRegister?'/pages/contest/answer/answer':'/pages/contest/info/info'}}">
|
|
<image mode="widthFix" src="../../imgs/home/contest.png"></image>
|
|
<image mode="widthFix" src="../../imgs/home/contest.png"></image>
|
|
<view>参加竞赛</view>
|
|
<view>参加竞赛</view>
|
|
</view>
|
|
</view>
|
|
@@ -22,7 +23,7 @@
|
|
<view>排行榜</view>
|
|
<view>排行榜</view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="study" bindtap="toLink" data-url="/pages/contest/answer/answer"> -->
|
|
<!-- <view class="study" bindtap="toLink" data-url="/pages/contest/answer/answer"> -->
|
|
- <view class="study">
|
|
|
|
|
|
+ <view class="study" bindtap="clickStudy">
|
|
<image mode="widthFix" src="../../imgs/home/study.png"></image>
|
|
<image mode="widthFix" src="../../imgs/home/study.png"></image>
|
|
<view>在线学习</view>
|
|
<view>在线学习</view>
|
|
</view>
|
|
</view>
|
|
@@ -120,7 +121,11 @@
|
|
<view class="activityContainer">
|
|
<view class="activityContainer">
|
|
<view class="activity" bindtap="clickActivity" wx:for="{{activity.list}}" wx:key data-i="{{index}}" data-id="{{item.id}}">
|
|
<view class="activity" bindtap="clickActivity" wx:for="{{activity.list}}" wx:key data-i="{{index}}" data-id="{{item.id}}">
|
|
<image src="{{imgUrl + item.coverImage}}"></image>
|
|
<image src="{{imgUrl + item.coverImage}}"></image>
|
|
- <view class="tag {{item.status_attend=='已结束'?'finished':item.status_attend=='未开始'?'ready':'signing'}}" wx:if="{{item.status_attend}}">{{item.status_attend}}</view>
|
|
|
|
|
|
+ <!-- <view class="tag {{item.status_attend=='已结束'?'finished':item.status_attend=='未开始'?'ready':'signing'}}" wx:if="{{item.status_attend}}">{{item.status_attend}}</view> -->
|
|
|
|
+ <view class="tag {{(format.valueOf(item.applyEndTime)<format.valueOf())?'finished':(format.valueOf(item.applyStartTime)>format.valueOf())?'ready':'signing'}}" wx:if="{{item}}">
|
|
|
|
+ <!-- {{format.valueOf(item.applyEndTime)<format.valueOf()?'已结束':format.valueOf(item.applyStartTime)>format.valueOf()?'报名中':'未开始'}} -->
|
|
|
|
+ {{(format.valueOf(item.applyEndTime)<format.valueOf())?'已结束':(format.valueOf(item.applyStartTime)>format.valueOf())?'未开始':'报名中'}}
|
|
|
|
+ </view>
|
|
<view class="skiing">{{item.activityTitle}}</view>
|
|
<view class="skiing">{{item.activityTitle}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -135,6 +140,7 @@
|
|
<input focus wx:if="{{searchOn}}" bindblur="blurSearch" bindinput="inputSearch"></input>
|
|
<input focus wx:if="{{searchOn}}" bindblur="blurSearch" bindinput="inputSearch"></input>
|
|
<text class="cuIcon-search" wx:if="{{!searchOn}}"> 请输入活动关键字查询</text>
|
|
<text class="cuIcon-search" wx:if="{{!searchOn}}"> 请输入活动关键字查询</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <button bindtap="clickAddtidings">发布</button>
|
|
</view>
|
|
</view>
|
|
<view class="bfc">
|
|
<view class="bfc">
|
|
<!-- item -->
|
|
<!-- item -->
|
|
@@ -155,7 +161,7 @@
|
|
<image src="{{item.avatar}}" class="full"></image>
|
|
<image src="{{item.avatar}}" class="full"></image>
|
|
</view>
|
|
</view>
|
|
<view class="flexible noscroll nowrap-ell">
|
|
<view class="flexible noscroll nowrap-ell">
|
|
- <text>{{item.nickname}}</text>
|
|
|
|
|
|
+ <text>{{item.nickname||''}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="row crosscenter favor" catchtap="clickFavorite" data-i="{{index}}" data-id="{{item.id}}" data-isCollect="{{!!item.isCollect}}">
|
|
<view class="row crosscenter favor" catchtap="clickFavorite" data-i="{{index}}" data-id="{{item.id}}" data-isCollect="{{!!item.isCollect}}">
|
|
@@ -183,7 +189,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="gapleft">
|
|
<view class="gapleft">
|
|
<view class="txtbold txtlg imgsmr row bot gapbot">
|
|
<view class="txtbold txtlg imgsmr row bot gapbot">
|
|
- <text>{{user.realname || user.nickname}}</text>
|
|
|
|
|
|
+ <text>{{user.realname || user.nickname || ''}}</text>
|
|
<image src="../../imgs/{{user.sex==1?'male':'female'}}.png" style="margin-bottom: 6rpx" class="gapleft"></image>
|
|
<image src="../../imgs/{{user.sex==1?'male':'female'}}.png" style="margin-bottom: 6rpx" class="gapleft"></image>
|
|
</view>
|
|
</view>
|
|
<text class="txtsub subtxt">{{user.introduction||'这个家伙很懒,什么都没留下...'}}</text>
|
|
<text class="txtsub subtxt">{{user.introduction||'这个家伙很懒,什么都没留下...'}}</text>
|
|
@@ -309,7 +315,10 @@
|
|
<image src="../../imgs/nav/activity{{curNav==1? '-active':''}}.png"></image>
|
|
<image src="../../imgs/nav/activity{{curNav==1? '-active':''}}.png"></image>
|
|
<view>活动</view>
|
|
<view>活动</view>
|
|
</view>
|
|
</view>
|
|
- <view class="release" bindtap="clickAddtidings" >
|
|
|
|
|
|
+ <!-- <view class="release" bindtap="clickAddtidings" >
|
|
|
|
+ <image mode="widthFix" src="../../imgs/nav/release.png"></image>
|
|
|
|
+ </view> -->
|
|
|
|
+ <view class="release" bindtap="toLink" data-url="{{user.isRegister?'/pages/contest/answer/answer':'/pages/contest/info/info'}}">
|
|
<image mode="widthFix" src="../../imgs/nav/release.png"></image>
|
|
<image mode="widthFix" src="../../imgs/nav/release.png"></image>
|
|
</view>
|
|
</view>
|
|
<view class="community" bindtap="clickNav" data-cur="2">
|
|
<view class="community" bindtap="clickNav" data-cur="2">
|