|
|
@@ -77,24 +77,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
this.imgBigShow = true;
|
|
|
- // 左按钮
|
|
|
- const tempLeft = document.querySelector(".el-image-viewer__prev");
|
|
|
- tempLeft.addEventListener("click", () => {
|
|
|
- this.tempNum--;
|
|
|
- if (this.tempNum < 0) this.tempNum = this.myArr.length - 1;
|
|
|
- this.imgBigTxt = this.myArr[this.tempNum].name;
|
|
|
- });
|
|
|
- // 右按钮
|
|
|
- const tempRight = document.querySelector(".el-image-viewer__next");
|
|
|
- tempRight.addEventListener("click", () => {
|
|
|
- this.tempNum++;
|
|
|
- if (this.tempNum === this.myArr.length) this.tempNum = 0;
|
|
|
- this.imgBigTxt = this.myArr[this.tempNum].name;
|
|
|
- });
|
|
|
- const myTemp = document.querySelector(".el-image-viewer__mask");
|
|
|
- myTemp.addEventListener("click", () => {
|
|
|
- this.imgBigShow = false;
|
|
|
- });
|
|
|
//因为污染自己写滚轮缩放
|
|
|
document
|
|
|
.querySelector(".el-image-viewer__wrapper")
|
|
|
@@ -118,20 +100,29 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ const myTemp = document.querySelector(".el-image-viewer__mask");
|
|
|
+ myTemp.addEventListener("click", () => {
|
|
|
+ this.imgBigShow = false;
|
|
|
+ });
|
|
|
const temp = document.querySelector(".el-image-viewer__close");
|
|
|
temp.addEventListener("click", () => {
|
|
|
this.imgBigShow = false;
|
|
|
// console.log('我点了里面的关闭')
|
|
|
});
|
|
|
- //鼠标滚轮事件
|
|
|
- // console.log(998,$('.el-image-viewer__img'));
|
|
|
- // // let tempDom = document.querySelector(".el-image-viewer__img");
|
|
|
- // $('.el-image-viewer__img').on("wheel", (e) => {
|
|
|
-
|
|
|
- // console.log(11111111111);
|
|
|
- // e.stopPropagation()
|
|
|
- // e.preventDefault()
|
|
|
- // });
|
|
|
+ // 左按钮
|
|
|
+ const tempLeft = document.querySelector(".el-image-viewer__prev");
|
|
|
+ tempLeft.addEventListener("click", () => {
|
|
|
+ this.tempNum--;
|
|
|
+ if (this.tempNum < 0) this.tempNum = this.myArr.length - 1;
|
|
|
+ this.imgBigTxt = this.myArr[this.tempNum].name;
|
|
|
+ });
|
|
|
+ // 右按钮
|
|
|
+ const tempRight = document.querySelector(".el-image-viewer__next");
|
|
|
+ tempRight.addEventListener("click", () => {
|
|
|
+ this.tempNum++;
|
|
|
+ if (this.tempNum === this.myArr.length) this.tempNum = 0;
|
|
|
+ this.imgBigTxt = this.myArr[this.tempNum].name;
|
|
|
+ });
|
|
|
}, 100);
|
|
|
});
|
|
|
},
|
|
|
@@ -193,19 +184,19 @@ export default {
|
|
|
/*修改提示文字的颜色*/
|
|
|
/deep/input::-webkit-input-placeholder {
|
|
|
/* WebKit browsers */
|
|
|
- color: #B9412E;
|
|
|
+ color: #b9412e;
|
|
|
}
|
|
|
/deep/input:-moz-placeholder {
|
|
|
/* Mozilla Firefox 4 to 18 */
|
|
|
- color: #B9412E;
|
|
|
+ color: #b9412e;
|
|
|
}
|
|
|
/deep/input::-moz-placeholder {
|
|
|
/* Mozilla Firefox 19+ */
|
|
|
- color: #B9412E;
|
|
|
+ color: #b9412e;
|
|
|
}
|
|
|
/deep/input:-ms-input-placeholder {
|
|
|
/* Internet Explorer 10+ */
|
|
|
- color: #B9412E;
|
|
|
+ color: #b9412e;
|
|
|
}
|
|
|
// position: relative;
|
|
|
width: 100%;
|
|
|
@@ -221,10 +212,10 @@ export default {
|
|
|
font-size: 26px;
|
|
|
font-weight: 700;
|
|
|
.search {
|
|
|
- /deep/.el-input__inner {
|
|
|
- border-radius: 40px;
|
|
|
- border: 1px solid #b9412e;
|
|
|
- }
|
|
|
+ /deep/.el-input__inner {
|
|
|
+ border-radius: 40px;
|
|
|
+ border: 1px solid #b9412e;
|
|
|
+ }
|
|
|
width: 350px;
|
|
|
left: 0;
|
|
|
bottom: -10px;
|