jufubao-base 1.0.225 → 1.0.227

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.225",
3
+ "version": "1.0.227",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -36,7 +36,7 @@
36
36
  v-for="(item,index) in info"
37
37
  :key="index"
38
38
  >
39
- <image :src="item.image_url" mode="scaleToFill" ></image>
39
+ <image :src="item.image_url" mode="widthFix" ></image>
40
40
  </view>
41
41
  </view>
42
42
  <view
@@ -71,7 +71,7 @@
71
71
  @change="handleChange"
72
72
  >
73
73
  <swiper-item v-for="(item,index) in info" :key="index" @click.stop="handleClick(item,index)">
74
- <image :style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}" :src="item['image_url']" mode="scaleToFill"></image>
74
+ <image :style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}" :src="item['image_url']" mode="widthFix"></image>
75
75
  </swiper-item>
76
76
  </swiper>
77
77
  <!--#endif-->
@@ -88,7 +88,7 @@
88
88
  @animationfinish="handleAnimationfinish"
89
89
  >
90
90
  <template slot-scope="{ item, index}">
91
- <image :src="item['image_url']" mode="scaleToFill"></image>
91
+ <image :src="item['image_url']" mode="widthFix"></image>
92
92
  </template>
93
93
  </xd-swiper>
94
94
  <!--#endif-->
@@ -22,7 +22,7 @@
22
22
  height: height + 'px'
23
23
  }"
24
24
  :src="item.image_url"
25
- mode="scaleToFill"
25
+ mode="widthFix"
26
26
  ></image>
27
27
  </view>
28
28
  </view>
@@ -65,7 +65,7 @@
65
65
  marginTop: indext < config.cell ? 0 : config.padding + 'rpx',
66
66
  }"
67
67
  >
68
- <image mode="scaleToFill" :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"></image>
68
+ <image mode="widthFix" :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"></image>
69
69
  </view>
70
70
  </view>
71
71
  </swiper-item>
@@ -102,7 +102,7 @@
102
102
  }"
103
103
  @click="handleClick(it)"
104
104
  >
105
- <image mode="scaleToFill" :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"></image>
105
+ <image mode="widthFix" :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"></image>
106
106
  </view>
107
107
  </view>
108
108
  </template>
@@ -38,7 +38,7 @@
38
38
  borderRadius: radius + 'rpx',
39
39
  }"
40
40
  :src="bigList[0].image_url"
41
- mode="scaleToFill"
41
+ mode="widthFix"
42
42
  ></image>
43
43
  </view>
44
44
  </view>
@@ -89,7 +89,7 @@
89
89
  @animationfinish="handleBigAnimationfinish"
90
90
  >
91
91
  <template slot-scope="{ item, index }">
92
- <image :style="{borderRadius: radius + 'rpx',}" :src="item['image_url']" mode="scaleToFill"></image>
92
+ <image :style="{borderRadius: radius + 'rpx',}" :src="item['image_url']" mode="widthFix"></image>
93
93
  </template>
94
94
  </xd-swiper>
95
95
  <!--#endif-->
@@ -126,7 +126,7 @@
126
126
  borderRadius: topRadius + 'rpx',
127
127
  }"
128
128
  :src="topList[0].image_url"
129
- mode="scaleToFill"
129
+ mode="widthFix"
130
130
  ></image></view
131
131
  ></view>
132
132
  <view
@@ -159,7 +159,7 @@
159
159
  <image
160
160
  :style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: smallHeight + 'rpx',}"
161
161
  :src="item['image_url']"
162
- mode="scaleToFill"></image>
162
+ mode="widthFix"></image>
163
163
  </swiper-item>
164
164
  </swiper>
165
165
  <!--#endif-->
@@ -175,7 +175,7 @@
175
175
  @animationfinish="handleTopAnimationfinish"
176
176
  >
177
177
  <template slot-scope="{ item, index }">
178
- <image :style="{borderRadius: topRadius + 'rpx',}" :src="item['image_url']" mode="scaleToFill"></image>
178
+ <image :style="{borderRadius: topRadius + 'rpx',}" :src="item['image_url']" mode="widthFix"></image>
179
179
  </template>
180
180
  </xd-swiper>
181
181
  <!--#endif-->
@@ -204,7 +204,7 @@
204
204
  borderRadius: bottomRadius + 'rpx',
205
205
  }"
206
206
  :src="bottomList[0].image_url"
207
- mode="scaleToFill"
207
+ mode="widthFix"
208
208
  ></image> </view
209
209
  ></view>
210
210
  <view
@@ -237,7 +237,7 @@
237
237
  <image
238
238
  :style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: smallHeight + 'rpx',}"
239
239
  :src="item['image_url']"
240
- mode="scaleToFill"></image>
240
+ mode="widthFix"></image>
241
241
  </swiper-item>
242
242
  </swiper>
243
243
  <!--#endif-->
@@ -258,7 +258,7 @@
258
258
  borderRadius: bottomRadius + 'rpx',
259
259
  }"
260
260
  :src="item['image_url']"
261
- mode="scaleToFill"
261
+ mode="widthFix"
262
262
  ></image>
263
263
  </template>
264
264
  </xd-swiper>
@@ -9,6 +9,7 @@
9
9
  v-if="config['isCarousel'] === false"
10
10
  :style="[notCarouselComp,{'--title-height':titleHeight}]"
11
11
  >
12
+
12
13
  <view
13
14
  v-for="item in list"
14
15
  :key="item['content_id']"
@@ -181,7 +182,12 @@
181
182
  return (this.config['mode'] === 'normal'?0:48) * this.$rpxNum;
182
183
  },
183
184
  getContHeight() {
184
- let realRow = Math.min(Math.ceil(this.filterContentList.length/this.config.column),this.config['row']);
185
+ let realRow = this.config['row'];
186
+
187
+ if(this.list.length === 1) {
188
+ this.list[0] = this.list[0].splice(0,5);
189
+ realRow = Math.ceil(this.list[0].length/this.config.column);
190
+ }
185
191
  //数量小于等于1,2行
186
192
  if(realRow < 3) {
187
193
  return this.height * realRow;
@@ -238,7 +244,7 @@
238
244
  this.h5key = Date.now()
239
245
  }
240
246
 
241
- }, 500)
247
+ }, 100)
242
248
  },
243
249
 
244
250
  handleClick(item) {