- Change VITE_API_URL in .env from localhost:3000 to localhost:3001 for backend access. - Update index.html to replace favicon with logo.png and ensure proper HTML structure. - Add new dependencies for WangEditor in package.json and package-lock.json to support rich text editing features.
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
<!-- 最近比赛列表(近7天) -->
|
||
<view class="page">
|
||
<view class="header">
|
||
<view class="title">最近比赛</view>
|
||
<view class="subtitle">显示近7天内的比赛</view>
|
||
</view>
|
||
|
||
<view wx:if="{{loading}}" class="loading">
|
||
<text>加载中...</text>
|
||
</view>
|
||
|
||
<view wx:elif="{{list.length === 0}}" class="empty">
|
||
<image class="empty-icon" src="/images/empty-match.svg" mode="aspectFit"></image>
|
||
<text class="empty-title">暂无比赛数据</text>
|
||
<text class="empty-desc">最近7天内还没有比赛记录</text>
|
||
</view>
|
||
|
||
<scroll-view wx:else scroll-y="true" class="list-scroll">
|
||
<view class="match-list">
|
||
<view class="match-item" wx:for="{{list}}" wx:key="id" bindtap="goDetail" data-match="{{item}}">
|
||
<view class="item-main">
|
||
<view class="item-line1">
|
||
<view class="item-name">{{item.name}}</view>
|
||
<view class="item-type {{item.type === 1 ? 'challenge' : 'ranking'}}">
|
||
{{item.typeName}}
|
||
</view>
|
||
</view>
|
||
<view class="item-line2">
|
||
<view class="item-store" wx:if="{{item.storeName}}">{{item.storeName}}</view>
|
||
<view class="item-stage" wx:if="{{item.showStage}}">{{item.stageName}}</view>
|
||
<view class="item-status status-{{item.statusType}}">{{item.statusName}}</view>
|
||
</view>
|
||
<view class="item-line3">
|
||
<view class="item-time">{{item.timeText}}</view>
|
||
</view>
|
||
</view>
|
||
<view class="item-arrow">›</view>
|
||
</view>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|
||
|