对接选课接口

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/
/.idea/
*/.DS_Store
/dist/

View File

@ -11,9 +11,12 @@
<view class="user-avatar-placeholder">
<image :src="currentStudent.avatar" class="w-full h-full"></image>
</view>
<!-- <view-->
<!-- class="user-details"-->
<!-- @click="navigateTo('/pages/system/login/login')"-->
<!-- >-->
<view
class="user-details"
@click="navigateTo('/pages/base/parentRegister/index')"
class="user-details"
>
<text class="user-name">{{ currentStudent.name }}</text>
<view class="user-class-container">
@ -114,8 +117,8 @@
</template>
<script setup lang="ts">
import { navigateTo } from "@/utils/uniapp";
import { ref } from "vue";
import {navigateTo} from "@/utils/uniapp";
import {ref} from "vue";
//
const menuItems = ref([
{

View File

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