|
@@ -17,27 +17,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="list-item ql-editor-box">
|
|
<view class="list-item ql-editor-box">
|
|
|
<InfoHead title="赛事介绍" />
|
|
<InfoHead title="赛事介绍" />
|
|
|
- <!-- <rich-text
|
|
|
|
|
- :nodes="processedContent(matchInfo?.introduction)"
|
|
|
|
|
- ></rich-text> -->
|
|
|
|
|
<uv-parse
|
|
<uv-parse
|
|
|
:content="processedContent(matchInfo.introduction)"
|
|
:content="processedContent(matchInfo.introduction)"
|
|
|
></uv-parse>
|
|
></uv-parse>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="list-item ql-editor-box">
|
|
<view class="list-item ql-editor-box">
|
|
|
<InfoHead title="报名要求" />
|
|
<InfoHead title="报名要求" />
|
|
|
- <!-- <rich-text
|
|
|
|
|
- :nodes="processedContent(matchInfo?.registrationRequirement)"
|
|
|
|
|
- ></rich-text> -->
|
|
|
|
|
<uv-parse
|
|
<uv-parse
|
|
|
:content="processedContent(matchInfo.registrationRequirement)"
|
|
:content="processedContent(matchInfo.registrationRequirement)"
|
|
|
></uv-parse>
|
|
></uv-parse>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="matchInfo?.awardContent" class="list-item ql-editor-box">
|
|
<view v-if="matchInfo?.awardContent" class="list-item ql-editor-box">
|
|
|
<InfoHead title="奖励内容" />
|
|
<InfoHead title="奖励内容" />
|
|
|
- <!-- <rich-text
|
|
|
|
|
- :nodes="processedContent(matchInfo?.awardContent)"
|
|
|
|
|
- ></rich-text> -->
|
|
|
|
|
<uv-parse
|
|
<uv-parse
|
|
|
:content="processedContent(matchInfo.awardContent)"
|
|
:content="processedContent(matchInfo.awardContent)"
|
|
|
></uv-parse>
|
|
></uv-parse>
|
|
@@ -95,7 +86,12 @@
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import { ref } from "vue";
|
|
import { ref } from "vue";
|
|
|
-import { onLoad, onUnload, onReachBottom, onShareAppMessage } from "@dcloudio/uni-app";
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ onLoad,
|
|
|
|
|
+ onUnload,
|
|
|
|
|
+ onReachBottom,
|
|
|
|
|
+ onShareAppMessage,
|
|
|
|
|
+} from "@dcloudio/uni-app";
|
|
|
import { navigateTo, downloadFile, processedContent } from "@/utils/utils.js";
|
|
import { navigateTo, downloadFile, processedContent } from "@/utils/utils.js";
|
|
|
import { useListQuery } from "@/mixins/useListQuery.js";
|
|
import { useListQuery } from "@/mixins/useListQuery.js";
|
|
|
import { matchDetailInfo, projectListByMatchId } from "@/api/tournament.js";
|
|
import { matchDetailInfo, projectListByMatchId } from "@/api/tournament.js";
|
|
@@ -130,8 +126,17 @@ onLoad(async (options) => {
|
|
|
pagesLoading.value = true;
|
|
pagesLoading.value = true;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- matchInfo.value = await getMatchInfo(options.id);
|
|
|
|
|
- getDataList(true);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ let res = await getMatchInfo(options.id);
|
|
|
|
|
+ if (!res || res.hidden) {
|
|
|
|
|
+ pagesLoading.value = true;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ matchInfo.value = res;
|
|
|
|
|
+ getDataList(true);
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.log(error);
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
var { dataList, loading, noMore, getDataList, loadMore, queryForm } =
|
|
var { dataList, loading, noMore, getDataList, loadMore, queryForm } =
|
|
@@ -157,7 +162,8 @@ onShareAppMessage(() => {
|
|
|
|
|
|
|
|
// 上拉加载更多
|
|
// 上拉加载更多
|
|
|
onReachBottom(() => {
|
|
onReachBottom(() => {
|
|
|
- console.log("onReachBottom");
|
|
|
|
|
|
|
+ // console.log("onReachBottom");
|
|
|
|
|
+ if (!matchInfo.value.id) return;
|
|
|
if (!loading.value && !noMore.value) {
|
|
if (!loading.value && !noMore.value) {
|
|
|
loadMore();
|
|
loadMore();
|
|
|
}
|
|
}
|