jufubao-base 1.0.66-beta1 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
dotStyleData: this.dotStyleData,
|
|
181
181
|
poster: this.poster,
|
|
182
182
|
showType: this.showType,
|
|
183
|
-
isCarousel:
|
|
183
|
+
isCarousel: this.isCarousel,
|
|
184
184
|
carouselTime: this.carouselTime,
|
|
185
185
|
radius: this.radius,
|
|
186
186
|
padding: this.padding,
|
|
@@ -317,7 +317,9 @@
|
|
|
317
317
|
handleAnimationfinish(e) {
|
|
318
318
|
this.currentImage = this.info[e.detail.current]['image_background_url']
|
|
319
319
|
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2 && this.$root.$isShow === true) {
|
|
320
|
-
|
|
320
|
+
let bg = null;
|
|
321
|
+
if(this.info[e.detail.current]['image_background_url']) bg = this.info[e.detail.current]['image_background_url'];
|
|
322
|
+
this.$xdRoot.$emit("setLayoutPageBg", bg);
|
|
321
323
|
}
|
|
322
324
|
this.current = e.detail.current;
|
|
323
325
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view class="sreen">
|
|
3
3
|
<view
|
|
4
4
|
class="sreen__box notCarousel"
|
|
5
|
-
v-if="config.isCarousel ===
|
|
5
|
+
v-if="config.isCarousel === 1"
|
|
6
6
|
>
|
|
7
7
|
<view
|
|
8
8
|
v-for="(item,index) in list"
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
></image>
|
|
27
27
|
</view>
|
|
28
28
|
</view>
|
|
29
|
-
|
|
30
|
-
<view class="sreen__box carousel" v-if="config.isCarousel === true">
|
|
29
|
+
<view class="sreen__box carousel" v-else>
|
|
31
30
|
<xd-swiper-dot
|
|
32
31
|
:current="current"
|
|
33
32
|
:info="list"
|
|
@@ -117,7 +116,7 @@
|
|
|
117
116
|
},
|
|
118
117
|
},
|
|
119
118
|
watch: {
|
|
120
|
-
config() {
|
|
119
|
+
config(value) {
|
|
121
120
|
this.init()
|
|
122
121
|
},
|
|
123
122
|
content() {
|
|
@@ -141,12 +140,12 @@
|
|
|
141
140
|
this.padding = Number(this.config.padding);
|
|
142
141
|
|
|
143
142
|
//静态图显示
|
|
144
|
-
if(this.config.isCarousel ===
|
|
143
|
+
if(this.config.isCarousel === 1) {
|
|
145
144
|
this.list = this.content
|
|
146
145
|
}
|
|
147
146
|
//轮播图显示
|
|
148
147
|
else {
|
|
149
|
-
let num =
|
|
148
|
+
let num = this.config.cell * this.config.rows;
|
|
150
149
|
let maxPage = Math.ceil(this.content.length / num);
|
|
151
150
|
let arr = [];
|
|
152
151
|
for(let i =1 ; i <= maxPage; i++) {
|
|
@@ -154,8 +153,6 @@
|
|
|
154
153
|
}
|
|
155
154
|
this.list = arr;
|
|
156
155
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
156
|
}, 100)
|
|
160
157
|
},
|
|
161
158
|
handleClick(item) {
|