style:材料
Showing
2 changed files
with
12 additions
and
13 deletions
1 | <template> | 1 | <template> |
2 | <div class="rlPopup"> | 2 | <div class="rlPopup"> |
3 | <div class="prev handle-btn" v-if="!isSingle" @click="prev()"> | 3 | <div class="prev handle-btn" @click="prev()"> |
4 | <i class="el-icon-arrow-left"></i> | 4 | <i class="el-icon-arrow-left"></i> |
5 | </div> | 5 | </div> |
6 | <div class="next handle-btn" v-if="!isSingle" @click="next()"> | 6 | <div class="next handle-btn" @click="next()"> |
7 | <i class="el-icon-arrow-right"></i> | 7 | <i class="el-icon-arrow-right"></i> |
8 | </div> | 8 | </div> |
9 | <div class="img-list-wrap"> | 9 | <div class="img-list-wrap"> |
... | @@ -78,9 +78,6 @@ export default { | ... | @@ -78,9 +78,6 @@ export default { |
78 | this.thumbnailImages = this.previewImg.imgList | 78 | this.thumbnailImages = this.previewImg.imgList |
79 | }, | 79 | }, |
80 | computed: { | 80 | computed: { |
81 | isSingle () { | ||
82 | return this.previewImg.imgList.length <= 1 | ||
83 | }, | ||
84 | isFirst () { | 81 | isFirst () { |
85 | return this.previewImg.index === 0 | 82 | return this.previewImg.index === 0 |
86 | }, | 83 | }, |
... | @@ -96,7 +93,7 @@ export default { | ... | @@ -96,7 +93,7 @@ export default { |
96 | } | 93 | } |
97 | return | 94 | return |
98 | } | 95 | } |
99 | const len = this.previewImg.imgList.length | 96 | let len = this.previewImg.imgList.length |
100 | this.$parent.previewImg.index = (this.$parent.previewImg.index - 1 + len) % len | 97 | this.$parent.previewImg.index = (this.$parent.previewImg.index - 1 + len) % len |
101 | this.reset() | 98 | this.reset() |
102 | }, | 99 | }, |
... | @@ -106,8 +103,10 @@ export default { | ... | @@ -106,8 +103,10 @@ export default { |
106 | this.$parent.previewImg.index = 0 | 103 | this.$parent.previewImg.index = 0 |
107 | } | 104 | } |
108 | return | 105 | return |
106 | } else { | ||
107 | console.log(this.$parent.previewImg.selectedIndex); | ||
109 | } | 108 | } |
110 | const len = this.previewImg.imgList.length | 109 | let len = this.previewImg.imgList.length |
111 | this.$parent.previewImg.index = (this.$parent.previewImg.index + 1) % len | 110 | this.$parent.previewImg.index = (this.$parent.previewImg.index + 1) % len |
112 | this.reset() | 111 | this.reset() |
113 | }, | 112 | }, |
... | @@ -208,6 +207,7 @@ export default { | ... | @@ -208,6 +207,7 @@ export default { |
208 | border-radius: 50%; | 207 | border-radius: 50%; |
209 | cursor: pointer; | 208 | cursor: pointer; |
210 | text-align: center; | 209 | text-align: center; |
210 | transition: all 0.3s; | ||
211 | 211 | ||
212 | i { | 212 | i { |
213 | font-size: 24px; | 213 | font-size: 24px; | ... | ... |
... | @@ -55,6 +55,7 @@ export default { | ... | @@ -55,6 +55,7 @@ export default { |
55 | }, | 55 | }, |
56 | ], | 56 | ], |
57 | iclass: "", | 57 | iclass: "", |
58 | // 材料目录选中 | ||
58 | treeCheckId: "", | 59 | treeCheckId: "", |
59 | checkedId: "1", | 60 | checkedId: "1", |
60 | column: [ | 61 | column: [ |
... | @@ -193,16 +194,12 @@ export default { | ... | @@ -193,16 +194,12 @@ export default { |
193 | bsmSlsq: this.$parent.bsmSlsq, | 194 | bsmSlsq: this.$parent.bsmSlsq, |
194 | index: 0, | 195 | index: 0, |
195 | selectedIndex: 0, | 196 | selectedIndex: 0, |
196 | imgList: [ | 197 | imgList: [] |
197 | { | ||
198 | fjurl: 'https://img2.baidu.com/it/u=2955521104,3257476296&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1111' | ||
199 | } | ||
200 | ] | ||
201 | } | 198 | } |
202 | } | 199 | } |
203 | }, | 200 | }, |
204 | computed: { | 201 | computed: { |
205 | ...mapGetters(["dictData"]), | 202 | ...mapGetters(["dictData"]) |
206 | }, | 203 | }, |
207 | created () { | 204 | created () { |
208 | this.clmlInitList() | 205 | this.clmlInitList() |
... | @@ -471,10 +468,12 @@ export default { | ... | @@ -471,10 +468,12 @@ export default { |
471 | cursor: pointer; | 468 | cursor: pointer; |
472 | box-sizing: border-box; | 469 | box-sizing: border-box; |
473 | border-radius: 6px; | 470 | border-radius: 6px; |
471 | transition: all 0.3s; | ||
474 | } | 472 | } |
475 | 473 | ||
476 | .child:hover { | 474 | .child:hover { |
477 | color: $light-blue; | 475 | color: $light-blue; |
476 | transform: scale(1.1); | ||
478 | } | 477 | } |
479 | 478 | ||
480 | .checked { | 479 | .checked { | ... | ... |
-
Please register or sign in to post a comment