jufubao-base 1.0.194-beta4 → 1.0.194-beta5
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
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-image-block__body">
|
|
17
|
-
<view class="x-line"></view>
|
|
18
17
|
<view class="image" :style="[bodyStyle]">
|
|
19
18
|
<image :src="backgroundImageComp" alt="bgImage"></image>
|
|
20
19
|
</view>
|
|
@@ -110,9 +109,15 @@
|
|
|
110
109
|
.jfb-base-image-block {
|
|
111
110
|
min-height: 20rpx!important;
|
|
112
111
|
&__body{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
display: inline-block;
|
|
113
|
+
width: 100%;
|
|
114
|
+
|
|
115
|
+
.image{
|
|
116
|
+
position: relative;
|
|
117
|
+
& > image {
|
|
118
|
+
height: 100%;
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
116
121
|
}
|
|
117
122
|
}
|
|
118
123
|
}
|
|
@@ -194,15 +194,25 @@
|
|
|
194
194
|
},
|
|
195
195
|
getConfig(){
|
|
196
196
|
let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
|
|
197
|
+
|
|
198
|
+
//间距值
|
|
197
199
|
let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
|
|
200
|
+
|
|
201
|
+
//主题填充
|
|
198
202
|
let paddingDefault = 0;
|
|
199
203
|
if(this.background === 'none' || this.background === '' || this.$xdUniHelper.isEmpty(this.background)) paddingDefault = 20;
|
|
200
|
-
let
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
let
|
|
204
|
+
let outPaddingRL = this.checkValue(this.bgImagePadding.right, paddingDefault) + this.checkValue(this.bgImagePadding.left, paddingDefault);
|
|
205
|
+
outPaddingRL = outPaddingRL * this.$rpxNum;
|
|
206
|
+
|
|
207
|
+
//外边距
|
|
208
|
+
let marginRL = (this.checkValue(this.mS.right, 0) + this.checkValue(this.mS.left, 0)) * this.$rpxNum;
|
|
209
|
+
|
|
210
|
+
//总统
|
|
211
|
+
let viewWidth = uni.getSystemInfoSync().safeArea.width - marginRL - outPaddingRL - spacing;
|
|
212
|
+
let width = viewWidth / cell;
|
|
205
213
|
let height = this.height * width / this.width;
|
|
214
|
+
|
|
215
|
+
|
|
206
216
|
return {
|
|
207
217
|
mode: this.getMode,
|
|
208
218
|
dotStyleData: this.dotStyleData,
|
|
@@ -658,6 +668,9 @@
|
|
|
658
668
|
.jfb-base-poster {
|
|
659
669
|
min-height: 60rpx!important;
|
|
660
670
|
&__body{
|
|
671
|
+
display: inline-block;
|
|
672
|
+
width: 100%;
|
|
673
|
+
|
|
661
674
|
& > view.jfb-base-poster-cont {
|
|
662
675
|
box-sizing: border-box;
|
|
663
676
|
overflow: hidden;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
marginTop: indext < config.cell ? 0 : config.padding + 'rpx',
|
|
66
66
|
}"
|
|
67
67
|
>
|
|
68
|
-
<image :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"
|
|
68
|
+
<image :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 :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"
|
|
105
|
+
<image :style="{ width: width + 'px', height: height + 'px'}" :src="it.image_url"></image>
|
|
106
106
|
</view>
|
|
107
107
|
</view>
|
|
108
108
|
</template>
|