控制引导页弹窗显示。

This commit is contained in:
weinan2087
2022-10-20 19:55:41 +08:00
parent 9f5c8760a0
commit f652a1d450

View File

@@ -391,7 +391,7 @@
<portal-footer></portal-footer> <portal-footer></portal-footer>
<portalFloatTools></portalFloatTools> <portalFloatTools></portalFloatTools>
<interest-Collection></interest-Collection> <!-- 兴趣偏好 --> <interest-Collection></interest-Collection> <!-- 兴趣偏好 -->
<guide-box></guide-box> <!-- 引导页 --> <guide-box ref="guide"></guide-box> <!-- 引导页 -->
</div> </div>
</template> </template>
@@ -405,6 +405,7 @@
import apiCase from '@/api/modules/cases.js'; import apiCase from '@/api/modules/cases.js';
import apiArticle from '@/api/modules/article.js'; import apiArticle from '@/api/modules/article.js';
import apiQa from '@/api/modules/qa.js'; import apiQa from '@/api/modules/qa.js';
import apiGuide from "@/api/phase2/guide.js";
import apiUser from '@/api/system/user.js'; import apiUser from '@/api/system/user.js';
import apiCoursePortal from '@/api/modules/coursePortal.js'; import apiCoursePortal from '@/api/modules/coursePortal.js';
import interactBar from '@/components/Portal/interactBar.vue'; import interactBar from '@/components/Portal/interactBar.vue';
@@ -530,6 +531,15 @@
this.getLevel(); this.getLevel();
this.getQaAnswers(); this.getQaAnswers();
// 控制引导页弹框显示
apiGuide.hasUser().then(res=>{
if(res.result) {
this.$refs.guide.guideCollection = false;
} else {
this.$refs.guide.guideCollection = true;
}
});
}, },
computed: { computed: {
...mapGetters(['userInfo','studyTaskCount']), ...mapGetters(['userInfo','studyTaskCount']),