This commit is contained in:
parent
1fe807af1d
commit
8a941f5e54
|
@ -1,15 +1,20 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="topTabs">
|
||||
<u-tabs :list="list1" @click="click" lineColor="#99241B"></u-tabs>
|
||||
<view class="">
|
||||
<view class="">
|
||||
<u-loading-page :loading="load"></u-loading-page>
|
||||
</view>
|
||||
<view class="art_race_itm" v-for="(v,i) in dataList" :key="i" @click="goRaceDetail(v.id)">
|
||||
<image style="width: 100%; height: 296rpx;" src="../../static/orderE.png" mode=""></image>
|
||||
<view class="art_race_bot">
|
||||
<text class="art_title">{{v.title}}</text>
|
||||
<view class="art_race_con u-line-2">{{v.content}}</view>
|
||||
<view class="art_race_con">
|
||||
截止时间:{{v.time}}
|
||||
<view v-if="!load">
|
||||
<view class="topTabs">
|
||||
<u-tabs :list="list1" @click="click" lineColor="#99241B"></u-tabs>
|
||||
</view>
|
||||
<view class="art_race_itm" v-for="(v,i) in dataList" :key="i" @click="goRaceDetail(v.id)">
|
||||
<image style="width: 100%; height: 296rpx;" src="../../static/orderE.png" mode=""></image>
|
||||
<view class="art_race_bot">
|
||||
<text class="art_title">{{v.title}}</text>
|
||||
<view class="art_race_con u-line-2">{{v.content}}</view>
|
||||
<view class="art_race_con">
|
||||
截止时间:{{v.time}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -20,6 +25,7 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
load: false,
|
||||
list1: [{
|
||||
name: '关注',
|
||||
},
|
||||
|
@ -75,6 +81,9 @@
|
|||
]
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
goRaceDetail(id) {
|
||||
console.log(id);
|
||||
|
@ -84,6 +93,18 @@
|
|||
},
|
||||
click(item) {
|
||||
console.log('item', item);
|
||||
},
|
||||
getData() {
|
||||
this.http.request('/match/list', {}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
this.load = false
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<!-- 确认 -->
|
||||
<u-popup :show="show" mode="center" :round="10" @close="close">
|
||||
<u-popup :show="show" mode="center" :round="10" @close="close" :safeAreaInsetBottom="false">
|
||||
<view style="width: 640rpx;">
|
||||
<view style="padding: 32rpx;">
|
||||
<view style="font-size: 36rpx; font-weight: 800;">
|
||||
|
@ -37,7 +37,7 @@
|
|||
<view style="width: 319rpx; border-right:1rpx solid #E7E7E7; text-align: center;" @click="close">
|
||||
取消
|
||||
</view>
|
||||
<view style="width: 319rpx; border-right:1rpx solid #E7E7E7; text-align: center; color: #99241B;"
|
||||
<view style="width: 319rpx; border-left:1rpx solid #E7E7E7; text-align: center; color: #99241B;"
|
||||
@click="sure">
|
||||
确定
|
||||
</view>
|
||||
|
|
Loading…
Reference in New Issue