jufubao-base 1.0.66-beta1 → 1.0.66-beta2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.66-beta1",
3
+ "version": "1.0.66-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -180,7 +180,7 @@
180
180
  dotStyleData: this.dotStyleData,
181
181
  poster: this.poster,
182
182
  showType: this.showType,
183
- isCarousel: !!this.isCarousel,
183
+ isCarousel: this.isCarousel,
184
184
  carouselTime: this.carouselTime,
185
185
  radius: this.radius,
186
186
  padding: this.padding,
@@ -2,7 +2,7 @@
2
2
  <view class="sreen">
3
3
  <view
4
4
  class="sreen__box notCarousel"
5
- v-if="config.isCarousel === false"
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 === false) {
143
+ if(this.config.isCarousel === 1) {
145
144
  this.list = this.content
146
145
  }
147
146
  //轮播图显示
148
147
  else {
149
- let num = 4 * this.config.rows;
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) {