|
@@ -7,7 +7,7 @@
|
|
|
v-for="(item, index) in cur.stem"
|
|
|
>
|
|
|
<img
|
|
|
- @click="changePraShow()"
|
|
|
+ @click="changePraShows"
|
|
|
class="close-icon"
|
|
|
:src="
|
|
|
themeColor
|
|
@@ -397,6 +397,14 @@ export default {
|
|
|
saveWriteAnswer(data) {
|
|
|
let answer = JSON.parse(JSON.stringify(data));
|
|
|
this.$emit("changeCurQue", answer);
|
|
|
+ },
|
|
|
+ changePraShows() {
|
|
|
+ var mo = function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ };
|
|
|
+ document.body.style.overflow = ""; //出现滚动条
|
|
|
+ document.removeEventListener("touchmove", mo, false);
|
|
|
+ this.$emit("changePraShow");
|
|
|
}
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -421,6 +429,11 @@ export default {
|
|
|
}, 0);
|
|
|
}
|
|
|
});
|
|
|
+ var mo = function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ };
|
|
|
+ document.body.style.overflow = "hidden";
|
|
|
+ document.addEventListener("touchmove", mo, false); //禁止页面滑动
|
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
|
beforeMount() {}, //生命周期 - 挂载之前
|