提交 3a26bb05 编写于 作者: guangjun.yang's avatar guangjun.yang

图片样式问题

默认值从query里获取
上级 9c84bbb7
......@@ -181,9 +181,9 @@ export default {
</script>
<style lang="less" scoped>
.qeustion-content-wrapper {
img {
width: 98% !important;
}
// img {
// width: 98% !important;
// }
font-size: 14px;
.public-title {
.text {
......
......@@ -53,7 +53,7 @@ import { mapGetters, mapActions } from "vuex";
import { Toast } from "vant";
import { findQuestionIndexNo, contactArray } from "@/utils";
let titleArray = ["", "错题集", "收藏夹", "收藏夹"];
let titleArray = ["", "错题集", "收藏夹", "题库"];
export default {
components: {
QuestionHeader,
......@@ -89,12 +89,12 @@ export default {
id: 0
},
queryParams: {
commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库
directoryId: 1748, // 题库ID,获取错题集或收藏时传0
pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
pageSize: 5, // 每页大小
commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库
directoryId: 1748, // 题库ID,获取错题集或收藏时传0
secondSubjectId: 106, // 二级学科分类ID:用于判断学科下目录免费题数
titleNo: 0 // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
titleNo: 0, // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
pageSize: 5, // 每页大小
}
};
},
......@@ -113,14 +113,28 @@ export default {
},
created() {
let _this = this;
this.directoryId = this.$route.query.directoryId || 1; // 题库ID,获取错题集或收藏时传0
this.secondSubjectId = this.$route.query.secondSubjectId || 1; // 学科id
this.directoryId = this.$route.query.directoryId || 1748; // 题库ID,获取错题集或收藏时传0
this.secondSubjectId = this.$route.query.secondSubjectId || 106; // 学科id
this.cardType = this.$route.query.cardType || 3; // 卡类型
this.goodsType = this.$route.query.goodsType || 3; // 商品类型
this.commitKind = this.$route.query.commitKind || 3; // 答题来源 1:错题集 2:收藏 3:题库
this.freeFlag = this.$route.query.freeFlag || 0; // 0: 免费; 1: 收费;
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;
// queryParams: {
// commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库
// directoryId: 1748, // 题库ID,获取错题集或收藏时传0
// pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
// pageSize: 5, // 每页大小
// secondSubjectId: 106, // 二级学科分类ID:用于判断学科下目录免费题数
// titleNo: 0 // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
// }
this.init();
window.__getUserInfoForQD = function(param) {
......@@ -151,9 +165,9 @@ export default {
methods: {
...mapActions(["setUserInfo", "handlerQuestionList"]),
init() {
if (this.commitKind >= 2 && this.commitKind <= 4) {
this.currentTitle = titleArray[this.commitKind];
}
// if (this.commitKind >= 2 && this.commitKind <= 4) {
this.currentTitle = titleArray[this.commitKind] || "习题集";
// }
this.$store.commit("SET_COMMON_CONIFG", {
// 0: 免费; 1: 收费; 没有绑卡且是收费题库(bindStatus == 0 && freeFlag == 1)可以走免费体验流程
freeFlag: this.freeFlag,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册