commit
This commit is contained in:
@@ -54,6 +54,16 @@ uni-page-body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 导航栏添加返回按钮文字 */
|
||||
:deep(.uni-page-head-btn)::after{
|
||||
content: "返回";
|
||||
position: absolute;
|
||||
left: 30px;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
/* 隐藏所有页面的滚动条(包括 web 和 小程序) */
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "uni-app"
|
||||
"navigationBarTitleText": "趣味运动会"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -101,7 +101,7 @@
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "#000000",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarTitleText": "趣味运动会",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
@@ -118,7 +118,7 @@
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "组件",
|
||||
"text": "首页",
|
||||
"iconfont": {
|
||||
"text": "\ue64d",
|
||||
"selectedText": "\ue64d",
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
<div class="content-area">
|
||||
<div class="team-card">
|
||||
<div class="team-header">
|
||||
<div class="team-logo">
|
||||
<i class="bi bi-people-fill" v-if="!team.logoUrl"></i>
|
||||
<img :src="team.logoUrl" alt="团队logo" v-if="team.logoUrl">
|
||||
</div>
|
||||
<!-- <div class="team-logo">-->
|
||||
<!-- <i class="bi bi-people-fill" v-if="!team.logoUrl"></i>-->
|
||||
<!-- <img :src="team.logoUrl" alt="团队logo" v-if="team.logoUrl">-->
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="team-basic-info">
|
||||
<div class="team-name">{{ team.groupName }}</div>
|
||||
@@ -23,18 +23,24 @@
|
||||
|
||||
<div class="team-stats">
|
||||
<div class="stat-item">
|
||||
<div class="stat-icon"><i class="bi bi-people"></i></div>
|
||||
<div class="stat-icon">
|
||||
<!-- <i class="bi bi-people"></i>-->
|
||||
<t-icon name="chart-ring-1"></t-icon>
|
||||
</div>
|
||||
<div class="stat-content">
|
||||
<div class="stat-value">成员:{{ team.groupUsers?.length }}</div>
|
||||
<!-- <div class="stat-label">成员</div>-->
|
||||
<!-- <div class="stat-label">成员</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="stat-divider"></div>
|
||||
<div class="stat-item" @click="queryRank">
|
||||
<div class="stat-icon"><i class="bi bi-trophy"></i></div>
|
||||
<div class="stat-icon">
|
||||
<!-- <i class="bi bi-trophy"></i>-->
|
||||
<t-icon name="chart-bar"></t-icon>
|
||||
</div>
|
||||
<div class="stat-content">
|
||||
<div class="stat-value">排名:{{ team.totalRank ? team.totalRank : '--' }}</div>
|
||||
<div class="stat-label">点击查看排行榜</div>
|
||||
<!-- <div class="stat-label">点击查看排行榜</div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,6 +24,7 @@ const viewData = ref(null);
|
||||
function getWonderfulMoment() {
|
||||
request.post('/platform/activity/wonderfulMoment/getWonderfulMomentById/' + momentId.value).then(res=>{
|
||||
if(res.code === 0){
|
||||
res.data.content = res?.data?.content.replaceAll('/open/file/upload/download?filepath=','')
|
||||
viewData.value = res.data
|
||||
}else{
|
||||
Toast({message: res.msg, theme: 'error'});
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
|
||||
<script setup>
|
||||
import {onMounted, ref} from "vue";
|
||||
import {onLoad, onShow} from "@dcloudio/uni-app";
|
||||
import {Toast} from "tdesign-mobile-vue";
|
||||
import {useRequest} from "@/utils/request";
|
||||
import moment from "moment";
|
||||
@@ -152,14 +153,9 @@ function handleWonderfulMoment(row) {
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
onShow(() => {
|
||||
getActivity()
|
||||
getWonderfulMoment()
|
||||
uni.showToast({
|
||||
title: '欢迎使用',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
</div>
|
||||
|
||||
<view class="title-content">
|
||||
<text class="main-title">HELLO,</text>
|
||||
<text class="main-title">第二届“钟声杯”直属工会趣味运动会</text>
|
||||
<view class="sub-title-container">
|
||||
<text class="sub-title">欢迎使用</text>
|
||||
</view>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
|
||||
<view class="title-content">
|
||||
<text class="main-title">JOIN US</text>
|
||||
<text class="main-title">第二届“钟声杯”直属工会趣味运动会</text>
|
||||
<view class="sub-title-container">
|
||||
<text class="sub-title">用户注册</text>
|
||||
</view>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export const config = {
|
||||
fileDomain: 'http://localhost',
|
||||
fileDomain: 'https://3skj.ltd',
|
||||
}
|
||||
@@ -90,7 +90,7 @@ async function routeInterceptor(args, whiteList) {
|
||||
} else {
|
||||
console.log('拦截导航,跳转到登录页')
|
||||
// 保存用户尝试访问的页面,以便登录后跳回
|
||||
uni.setStorageSync('REDIRECT_URL', targetUrl + args.query)
|
||||
uni.setStorageSync('REDIRECT_URL', targetUrl)
|
||||
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
@@ -122,6 +122,7 @@ export const getDefaultWhiteList = () => {
|
||||
return [
|
||||
'/pages/index/index',
|
||||
'/pages/login/index',
|
||||
'/pages/login/register'
|
||||
'/pages/login/register',
|
||||
'/pages/activity/list/index'
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user