提交 edc73193 编写于 作者: yi.li's avatar yi.li

Merge branch 'dev-question-bank-0916' of...

Merge branch 'dev-question-bank-0916' of 192.168.110.53:com.pica.cloud.education.frontend/pica-professional-exam into dev-question-bank-0916
...@@ -181,9 +181,9 @@ export default { ...@@ -181,9 +181,9 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.qeustion-content-wrapper { .qeustion-content-wrapper {
img { // img {
width: 98% !important; // width: 98% !important;
} // }
font-size: 14px; font-size: 14px;
.public-title { .public-title {
.text { .text {
......
<template> <template>
<section class="question-header-wrapper"> <section class="question-header-wrapper">
<img class="left" src="../../images/left-array-black.png" alt=""> <img @click="goBack" class="left" src="../../images/left-array-black.png" alt="">
<span class="center">{{title}}</span> <span class="center">{{title}}</span>
<div class="right"> <div class="right">
<span class="order">{{order}}</span><span class="total">/{{total}}</span> <span class="order">{{order}}</span><span class="total">/{{total}}</span>
...@@ -22,7 +22,14 @@ export default { ...@@ -22,7 +22,14 @@ export default {
type: Number | String, type: Number | String,
default: 20, default: 20,
} }
} },
methods: {
//返回
goBack() {
this.$router.back(-1);
// rocNative.goBack();
},
},
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -825,8 +825,6 @@ export default { ...@@ -825,8 +825,6 @@ export default {
_this.videoOptions.trySeeTime = 300000; _this.videoOptions.trySeeTime = 300000;
_this.videoOptions.autoplay = false; _this.videoOptions.autoplay = false;
// 如果没有绑定卡,则查询是否有未绑定的卡 // 如果没有绑定卡,则查询是否有未绑定的卡
} else {
_this.hasNoUsedCard();
} }
let mp4Url = _this.videoOptions.mp4; let mp4Url = _this.videoOptions.mp4;
// 判断是否是mp4 // 判断是否是mp4
...@@ -906,15 +904,17 @@ export default { ...@@ -906,15 +904,17 @@ export default {
_this.showLoading = false; _this.showLoading = false;
}, 800); }, 800);
// 请求成功后统计,获取项目名
this.$sendBuriedData({
component_tag: `882#88201#${_this.projectId}#${_this.project.projectName}`
});
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡 // 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
if (!_this.hasBindCard) { if (!_this.hasBindCard) {
_this.preJumper(); _this.preJumper();
_this.hasNoUsedCard();
} }
// 请求成功后统计,获取项目名
this.$sendBuriedData({
component_tag: `882#88201#${_this.projectId}#${_this.project.projectName}`
});
} }
}); });
}, },
......
...@@ -53,7 +53,7 @@ import { mapGetters, mapActions } from "vuex"; ...@@ -53,7 +53,7 @@ import { mapGetters, mapActions } from "vuex";
import { Toast } from "vant"; import { Toast } from "vant";
import { findQuestionIndexNo, contactArray } from "@/utils"; import { findQuestionIndexNo, contactArray } from "@/utils";
let titleArray = ["", "错题集", "收藏夹", "收藏夹"]; let titleArray = ["", "错题集", "收藏夹", "题库"];
export default { export default {
components: { components: {
QuestionHeader, QuestionHeader,
...@@ -89,12 +89,12 @@ export default { ...@@ -89,12 +89,12 @@ export default {
id: 0 id: 0
}, },
queryParams: { queryParams: {
commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库 commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库
directoryId: 1748, // 题库ID,获取错题集或收藏时传0 directoryId: 1748, // 题库ID,获取错题集或收藏时传0
pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
pageSize: 5, // 每页大小
secondSubjectId: 106, // 二级学科分类ID:用于判断学科下目录免费题数 secondSubjectId: 106, // 二级学科分类ID:用于判断学科下目录免费题数
titleNo: 0 // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题 titleNo: 0, // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
pageSize: 5, // 每页大小
} }
}; };
}, },
...@@ -113,27 +113,41 @@ export default { ...@@ -113,27 +113,41 @@ export default {
}, },
created() { created() {
let _this = this; let _this = this;
this.directoryId = this.$route.query.directoryId || 1; // 题库ID,获取错题集或收藏时传0 this.directoryId = this.$route.query.directoryId || 1748; // 题库ID,获取错题集或收藏时传0
this.secondSubjectId = this.$route.query.secondSubjectId || 1; // 学科id this.secondSubjectId = this.$route.query.secondSubjectId || 106; // 学科id
this.cardType = this.$route.query.cardType || 3; // 卡类型 this.cardType = this.$route.query.cardType || 3; // 卡类型
this.goodsType = this.$route.query.goodsType || 3; // 商品类型 this.goodsType = this.$route.query.goodsType || 3; // 商品类型
this.commitKind = this.$route.query.commitKind || 3; // 答题来源 1:错题集 2:收藏 3:题库 this.commitKind = this.$route.query.commitKind || 3; // 答题来源 1:错题集 2:收藏 3:题库
this.freeFlag = this.$route.query.freeFlag || 0; // 0: 免费; 1: 收费; this.freeFlag = this.$route.query.freeFlag || 0; // 0: 免费; 1: 收费;
this.currentTitle = this.$route.query.currentTitle || this.currentTitle; // 顶部导航文案 this.currentTitle = this.$route.query.currentTitle || this.currentTitle; // 顶部导航文案
if(this.commitKind == 3) {
titleArray[3] = this.currentTitle;
}
this.queryParams.commitKind = this.commitKind;
this.queryParams.directoryId = this.directoryId;
this.queryParams.secondSubjectId = this.secondSubjectId;
this.init(); // queryParams: {
// commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库
// directoryId: 1748, // 题库ID,获取错题集或收藏时传0
// pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
// pageSize: 5, // 每页大小
// secondSubjectId: 106, // 二级学科分类ID:用于判断学科下目录免费题数
// titleNo: 0 // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
// }
window.__getUserInfoForQD = function(param) { window.__getUserInfoForQD = function(param) {
_this.token = param.userToken; _this.token = param.userToken;
_this.setUserInfo(param); _this.setUserInfo(param);
this.getPractiseTitles(true); _this.getPractiseTitles(true);
// _this.checkToken(); // _this.checkToken();
}; };
if (__isWeb) { if (__isWeb) {
this.getPractiseTitles(true); _this.getPractiseTitles(true);
} else { } else {
_this.getUserInfo(); _this.init();
// _this.getUserInfo();
} }
window.__refresh = function() { window.__refresh = function() {
...@@ -151,9 +165,9 @@ export default { ...@@ -151,9 +165,9 @@ export default {
methods: { methods: {
...mapActions(["setUserInfo", "handlerQuestionList"]), ...mapActions(["setUserInfo", "handlerQuestionList"]),
init() { init() {
if (this.commitKind >= 2 && this.commitKind <= 4) { // if (this.commitKind >= 2 && this.commitKind <= 4) {
this.currentTitle = titleArray[this.commitKind]; this.currentTitle = titleArray[this.commitKind] || "习题集";
} // }
this.$store.commit("SET_COMMON_CONIFG", { this.$store.commit("SET_COMMON_CONIFG", {
// 0: 免费; 1: 收费; 没有绑卡且是收费题库(bindStatus == 0 && freeFlag == 1)可以走免费体验流程 // 0: 免费; 1: 收费; 没有绑卡且是收费题库(bindStatus == 0 && freeFlag == 1)可以走免费体验流程
freeFlag: this.freeFlag, freeFlag: this.freeFlag,
......
...@@ -706,8 +706,6 @@ export default { ...@@ -706,8 +706,6 @@ export default {
_this.videoOptions.trySeeTime = 0; _this.videoOptions.trySeeTime = 0;
_this.videoOptions.autoplay = false; _this.videoOptions.autoplay = false;
// 如果没有绑定卡,则查询是否有未绑定的卡 // 如果没有绑定卡,则查询是否有未绑定的卡
} else {
_this.logged && _this.hasNoUsedCard();
} }
let mp4Url = _this.videoOptions.mp4; let mp4Url = _this.videoOptions.mp4;
// 判断是否是mp4 // 判断是否是mp4
...@@ -793,11 +791,6 @@ export default { ...@@ -793,11 +791,6 @@ export default {
_this.showLoading = false; _this.showLoading = false;
}, 800); }, 800);
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
if (!_this.hasBindCard) {
_this.preJumper();
}
// 请求成功后统计,获取项目名 // 请求成功后统计,获取项目名
// this.$sendBuriedData({ // this.$sendBuriedData({
// component_tag: `882#88201#${_this.projectId}#${_this.project.projectName}` // component_tag: `882#88201#${_this.projectId}#${_this.project.projectName}`
...@@ -821,6 +814,12 @@ export default { ...@@ -821,6 +814,12 @@ export default {
console.log("share success..."); console.log("share success...");
} }
); );
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
if (!_this.hasBindCard) {
_this.preJumper();
_this.logged && _this.hasNoUsedCard();
}
} else { } else {
_this.showLoading = false; _this.showLoading = false;
_this.$router.replace("/not-found?fromPage=2"); _this.$router.replace("/not-found?fromPage=2");
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册