|
@@ -206,7 +206,7 @@ export const arrayIntersect = (array1, array2) => {
|
|
|
* @return {Number}
|
|
* @return {Number}
|
|
|
*/
|
|
*/
|
|
|
export const rpx = () => {
|
|
export const rpx = () => {
|
|
|
- const { windowWidth } = uni.getSystemInfoSync()
|
|
|
|
|
|
|
+ const { windowWidth } = uni.getWindowInfo()
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
// 与pages.json文件中的 rpxCalcMaxDeviceWidth参数对应, 请勿修改
|
|
// 与pages.json文件中的 rpxCalcMaxDeviceWidth参数对应, 请勿修改
|
|
|
const rpxCalcMaxDeviceWidth = 750
|
|
const rpxCalcMaxDeviceWidth = 750
|