import { isNumber } from 'lodash-es'; export const rpx2px = (rpx) => { if (!isNumber(rpx)) return 0; const screenWidth = uni.getSystemInfoSync().screenWidth; const result = (screenWidth * rpx) / 750 return result; }