commit
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<view class="content-container">
|
||||
<view class="page-header">
|
||||
<text class="page-title">团队报名</text>
|
||||
<text class="page-subtitle">选择您感兴趣的项目进行报名</text>
|
||||
<text class="page-subtitle">点击项目报名</text>
|
||||
</view>
|
||||
|
||||
<!-- 项目列表 -->
|
||||
@@ -31,9 +31,9 @@
|
||||
<t-icon name="chevron-right" color="#999"/>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="registrationStatus.get(project.id)?.length" class="project-card__checkmark">
|
||||
<!-- <view v-if="registrationStatus.get(project.id)?.length" class="project-card__checkmark">
|
||||
<t-icon name="check" color="#52c41a"/>
|
||||
</view>
|
||||
</view>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -80,8 +80,10 @@ import {ref, onMounted, computed} from 'vue';
|
||||
import {useRequest} from '@/utils/request';
|
||||
import {Dialog, Toast} from 'tdesign-mobile-vue';
|
||||
import {onLoad} from '@dcloudio/uni-app';
|
||||
import {useUserStore} from "@/store";
|
||||
|
||||
const request = useRequest();
|
||||
const userStore = useUserStore();
|
||||
|
||||
// 活动数据
|
||||
const actOptions = ref([])
|
||||
@@ -174,7 +176,7 @@ async function listTeamUser() {
|
||||
const {code, data, msg} = await request.get('/client/item/list-team-user/' + selectActId.value)
|
||||
if (code === 0) {
|
||||
teamMembers.value = data;
|
||||
isSelfLeader.value = data.find(t => t.userId===getApp().globalData.user.id)?.isLeader
|
||||
isSelfLeader.value = data.find(t => t.userId===userStore?.userInfo.id)?.isLeader
|
||||
} else {
|
||||
Toast.error(msg)
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ async function routeInterceptor(args, whiteList) {
|
||||
// 获取用户信息
|
||||
const user = useUserStore().userInfo
|
||||
if (user == null) {
|
||||
await userStore().getUserInfo()
|
||||
await useUserStore().getUserInfo()
|
||||
}
|
||||
return args
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user