static double adaptWidth(double value) { if (isMobile()) { return value.w; } else { return value; // PC端直接用原始数值 } }