@bi-nova/ui-weapp 1.2.0-beta.202608171830 → 1.2.0
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 +1 -1
- package/src/ad/splash/index.js +5 -5
package/package.json
CHANGED
package/src/ad/splash/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @Author wutao
|
|
4
4
|
* @Date 2026-04-10
|
|
5
5
|
* @LastEditors wutao
|
|
6
|
-
* @LastEditTime 2026-08-
|
|
6
|
+
* @LastEditTime 2026-08-18 11:38:13
|
|
7
7
|
*/
|
|
8
8
|
const {
|
|
9
9
|
navigateCustomAd
|
|
@@ -28,7 +28,7 @@ Component({
|
|
|
28
28
|
mediaUrl: '',
|
|
29
29
|
posterUrl: '',
|
|
30
30
|
isImage: true,
|
|
31
|
-
mediaFitMode: '
|
|
31
|
+
mediaFitMode: 'cover',
|
|
32
32
|
hasCustomMedia: false,
|
|
33
33
|
customLoaded: false,
|
|
34
34
|
isFullScreen: false,
|
|
@@ -324,9 +324,9 @@ Component({
|
|
|
324
324
|
* @returns {'contain' | 'cover'}
|
|
325
325
|
*/
|
|
326
326
|
getMediaFitMode(customAd) {
|
|
327
|
-
return customAd && String(customAd.fitMode || '').trim().toLowerCase() === '
|
|
328
|
-
? '
|
|
329
|
-
: '
|
|
327
|
+
return customAd && String(customAd.fitMode || '').trim().toLowerCase() === 'contain'
|
|
328
|
+
? 'contain'
|
|
329
|
+
: 'cover'
|
|
330
330
|
},
|
|
331
331
|
|
|
332
332
|
/**
|