页面优化
This commit is contained in:
@@ -119,13 +119,11 @@ function getSrc(options) {
|
||||
return imageMogr(options.src, {
|
||||
width:
|
||||
options.mode !== 'heightFix'
|
||||
? rpx2px(options.thumbWidth, options.systemInfo.screenWidth) *
|
||||
options.systemInfo.pixelRatio
|
||||
? rpx2px(options.thumbWidth, options.screenWidth) * (options.pixelRatio || 2)
|
||||
: null,
|
||||
height:
|
||||
options.mode !== 'widthFix'
|
||||
? rpx2px(options.thumbHeight, options.systemInfo.screenWidth) *
|
||||
options.systemInfo.pixelRatio
|
||||
? rpx2px(options.thumbHeight, options.screenWidth) * (options.pixelRatio || 2)
|
||||
: null,
|
||||
format: options.webp ? 'webp' : null,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user