对接选课接口

This commit is contained in:
Net 2025-05-18 12:53:59 +08:00
parent 73bf023565
commit d22acd005c
3 changed files with 13 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/node_modules/ /node_modules/
/.idea/ /.idea/
*/.DS_Store */.DS_Store
/dist/

View File

@ -11,9 +11,12 @@
<view class="user-avatar-placeholder"> <view class="user-avatar-placeholder">
<image :src="currentStudent.avatar" class="w-full h-full"></image> <image :src="currentStudent.avatar" class="w-full h-full"></image>
</view> </view>
<!-- <view-->
<!-- class="user-details"-->
<!-- @click="navigateTo('/pages/system/login/login')"-->
<!-- >-->
<view <view
class="user-details" class="user-details"
@click="navigateTo('/pages/base/parentRegister/index')"
> >
<text class="user-name">{{ currentStudent.name }}</text> <text class="user-name">{{ currentStudent.name }}</text>
<view class="user-class-container"> <view class="user-class-container">

View File

@ -13,11 +13,9 @@
<script lang="ts" setup> <script lang="ts" setup>
import {onLoad} from "@dcloudio/uni-app"; import {onLoad} from "@dcloudio/uni-app";
import pages from "@/pages.json";
import {useDataStore} from "@/store/modules/data"; import {useDataStore} from "@/store/modules/data";
import {useUserStore} from "@/store/modules/user"; import {useUserStore} from "@/store/modules/user";
import {checkOpenId} from "@/api/system/login"; import {checkOpenId} from "@/api/system/login";
import { isTabBar } from "@/utils/uniapp";
const { setGlobal } = useDataStore(); const { setGlobal } = useDataStore();
const { afterLoginAction } = useUserStore(); const { afterLoginAction } = useUserStore();
@ -47,7 +45,7 @@ onLoad(async (data: any) => {
toHome(data); toHome(data);
} else { } else {
uni.reLaunch({ uni.reLaunch({
url: "/pages/base/parentRegister/index", url: "/pages/system/login/login",
}); });
} }
} }