|
@@ -348,6 +348,27 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
curQue(val, oldval) {
|
|
curQue(val, oldval) {
|
|
|
this.$forceUpdate(); //触发更新函数更新高度
|
|
this.$forceUpdate(); //触发更新函数更新高度
|
|
|
|
|
+ },
|
|
|
|
|
+ baseSizePhone(val, oldval) {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ for (let i = 0; i < this.curQue.con.length; i++) {
|
|
|
|
|
+ let nodeleft = document.getElementsByClassName(
|
|
|
|
|
+ this.judgeAnswer + `left${i + this.number}`
|
|
|
|
|
+ )[this.judgeAnswer == "standardAnswer" ? 1 : 0];
|
|
|
|
|
+ let noderight = document.getElementsByClassName(
|
|
|
|
|
+ this.judgeAnswer + `right${i + this.number}`
|
|
|
|
|
+ )[this.judgeAnswer == "standardAnswer" ? 1 : 0];
|
|
|
|
|
+ if (nodeleft && noderight) {
|
|
|
|
|
+ nodeleft.removeAttribute("style");
|
|
|
|
|
+ noderight.removeAttribute("style");
|
|
|
|
|
+ if (nodeleft.offsetHeight > noderight.offsetHeight) {
|
|
|
|
|
+ noderight.style.height = nodeleft.offsetHeight + "px";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ nodeleft.style.height = noderight.offsetHeight + "px";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 50);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//方法集合
|
|
//方法集合
|
|
@@ -929,8 +950,8 @@ export default {
|
|
|
line-height: 150%;
|
|
line-height: 150%;
|
|
|
color: #000000;
|
|
color: #000000;
|
|
|
img {
|
|
img {
|
|
|
- max-width: 238px;
|
|
|
|
|
- height: 158px;
|
|
|
|
|
|
|
+ max-width: 100%;
|
|
|
|
|
+ height: 78px;
|
|
|
}
|
|
}
|
|
|
.text {
|
|
.text {
|
|
|
max-width: 200px;
|
|
max-width: 200px;
|
|
@@ -1026,8 +1047,8 @@ export default {
|
|
|
line-height: 150%;
|
|
line-height: 150%;
|
|
|
color: #000000;
|
|
color: #000000;
|
|
|
img {
|
|
img {
|
|
|
- max-width: 238px;
|
|
|
|
|
- height: 158px;
|
|
|
|
|
|
|
+ max-width: 100%;
|
|
|
|
|
+ height: 78px;
|
|
|
}
|
|
}
|
|
|
.text {
|
|
.text {
|
|
|
max-width: 200px;
|
|
max-width: 200px;
|