gxd-uni-library-editx 1.0.17 → 1.0.19
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
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
top: (navBarHeight + statusBarHeight) + 'rpx',
|
|
52
52
|
zIndex: (wiewType ? 1490: 1000),
|
|
53
53
|
backgroundImage: customBg === null ? getNavBackImage:(this.scrollDetail > 5 ?getNavBackImage : 'none') ,
|
|
54
|
+
backgroundColor: (customBg === null && getNavBackImage==='none' || getNavBackImage==='url()' && this.scrollDetail > 5 ) ? '#fff': 'rgba(0,0,0,0)' ,
|
|
54
55
|
backgroundPosition: getBodyTopImagePosition,
|
|
55
56
|
backgroundSize: '100%'
|
|
56
57
|
}"
|
|
@@ -349,7 +350,7 @@
|
|
|
349
350
|
|
|
350
351
|
getBodyBackImage(){
|
|
351
352
|
//设置自定义背景
|
|
352
|
-
if(this.customBg
|
|
353
|
+
if(!!this.customBg) {
|
|
353
354
|
return `url("${this.customBg}")`;
|
|
354
355
|
}
|
|
355
356
|
|
|
@@ -414,6 +415,7 @@
|
|
|
414
415
|
return bgImg
|
|
415
416
|
},
|
|
416
417
|
|
|
418
|
+
|
|
417
419
|
getBottom(){
|
|
418
420
|
return this.footerHeight
|
|
419
421
|
},
|
|
@@ -579,7 +581,7 @@
|
|
|
579
581
|
//设置背景
|
|
580
582
|
this.$xdRoot.$on('setLayoutPageBg', (bg)=>{
|
|
581
583
|
console.warn(`${bg}:setLayoutPageBg`);
|
|
582
|
-
this.customBg = bg;
|
|
584
|
+
this.customBg = bg || null;
|
|
583
585
|
});
|
|
584
586
|
},
|
|
585
587
|
|