|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="mx-30 mt-40">
|
|
<view class="mx-30 mt-40">
|
|
|
<!-- <ie-image :is-oss="true" src="/banner/index-banner-4.png" :round="10" customClass="w-full h-178" mode="widthFix" /> -->
|
|
<!-- <ie-image :is-oss="true" src="/banner/index-banner-4.png" :round="10" customClass="w-full h-178" mode="widthFix" /> -->
|
|
|
- <view class="flex gap-x-30">
|
|
|
|
|
- <view class="flex-1 rounded-12 bg-[#F0FFF2] py-40 pl-22 pr-8 flex items-center" @click="handleOpenPlan">
|
|
|
|
|
|
|
+ <view class="grid grid-cols-2 gap-x-30">
|
|
|
|
|
+ <view class="rounded-12 bg-[#F0FFF2] py-40 pl-22 pr-8 flex items-center" @click="handleOpenPlan">
|
|
|
<!-- /pagesStudy/pages/study-plan-edit/study-plan-edit -->
|
|
<!-- /pagesStudy/pages/study-plan-edit/study-plan-edit -->
|
|
|
<view class="flex-1">
|
|
<view class="flex-1">
|
|
|
<view class="text-30 text-fore-title font-bold flex items-center">
|
|
<view class="text-30 text-fore-title font-bold flex items-center">
|
|
@@ -13,7 +13,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<ie-image :is-oss="true" src="/study-bg3.png" customClass="w-92 h-92" />
|
|
<ie-image :is-oss="true" src="/study-bg3.png" customClass="w-92 h-92" />
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="flex-1 rounded-12 bg-[#FFF6F0] py-40 pl-22 pr-8 flex items-center" @click="handleTest">
|
|
|
|
|
|
|
+ <view v-if="showCoursePractice" class="rounded-12 bg-[#FFF6F0] py-40 pl-22 pr-8 flex items-center" @click="handleTest">
|
|
|
<view class="flex-1">
|
|
<view class="flex-1">
|
|
|
<view class="text-30 text-fore-title font-bold flex items-center">
|
|
<view class="text-30 text-fore-title font-bold flex items-center">
|
|
|
<text class="mr-2">教材同步练习</text>
|
|
<text class="mr-2">教材同步练习</text>
|
|
@@ -31,10 +31,16 @@ import { useTransferPage } from '@/hooks/useTransferPage';
|
|
|
import { getStudyPlan, getDirectedSchool } from '@/api/modules/study';
|
|
import { getStudyPlan, getDirectedSchool } from '@/api/modules/study';
|
|
|
import { OPEN_VIP_POPUP } from '@/types/injectionSymbols';
|
|
import { OPEN_VIP_POPUP } from '@/types/injectionSymbols';
|
|
|
import { useUserStore } from '@/store/userStore';
|
|
import { useUserStore } from '@/store/userStore';
|
|
|
|
|
+import { EnumExamType } from '@/common/enum';
|
|
|
|
|
|
|
|
const { transferTo } = useTransferPage();
|
|
const { transferTo } = useTransferPage();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
const openVipPopup = inject(OPEN_VIP_POPUP);
|
|
const openVipPopup = inject(OPEN_VIP_POPUP);
|
|
|
|
|
+
|
|
|
|
|
+const showCoursePractice = computed(() => {
|
|
|
|
|
+ return userStore.getExamType !== EnumExamType.VHS;
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
const handleOpenPlan = async () => {
|
|
const handleOpenPlan = async () => {
|
|
|
const { data } = await getStudyPlan();
|
|
const { data } = await getStudyPlan();
|
|
|
if (data) {
|
|
if (data) {
|