对接选课接口
This commit is contained in:
parent
73bf023565
commit
d22acd005c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/.idea/
|
/.idea/
|
||||||
*/.DS_Store
|
*/.DS_Store
|
||||||
|
/dist/
|
||||||
|
|||||||
@ -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">
|
||||||
@ -114,8 +117,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { navigateTo } from "@/utils/uniapp";
|
import {navigateTo} from "@/utils/uniapp";
|
||||||
import { ref } from "vue";
|
import {ref} from "vue";
|
||||||
// 菜单项数据
|
// 菜单项数据
|
||||||
const menuItems = ref([
|
const menuItems = ref([
|
||||||
{
|
{
|
||||||
|
|||||||
@ -12,12 +12,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<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",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user