|
@@ -67,9 +67,9 @@ Component({
|
|
|
// console.log(wxWindowInfo, wxDeviceInfo, 'wxDeviceInfo----')
|
|
|
this.setData({
|
|
|
ios: !isAndroid,
|
|
|
- innerPaddingRight: `padding-right: ${wxWindowInfo.windowWidth - rect.left}px`,
|
|
|
- leftWidth: `width: ${wxWindowInfo.windowWidth - rect.left }px`,
|
|
|
- safeAreaTop: isDevtools || isAndroid ? `height: calc(var(--height) + ${wxWindowInfo.safeArea.top}px); padding-top: ${wxWindowInfo.safeArea.top}px` : ``
|
|
|
+ innerPaddingRight: `padding-right: ${wxWindowInfo.windowWidth - rect.left}px;`,
|
|
|
+ leftWidth: `width: ${wxWindowInfo.windowWidth - rect.left }px;`,
|
|
|
+ safeAreaTop: isDevtools || isAndroid ? `height: calc(var(--height) + ${wxWindowInfo.safeArea.top}px); padding-top: ${wxWindowInfo.safeArea.top}px;` : ``
|
|
|
})
|
|
|
},
|
|
|
},
|