uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
- 发布:2022-08-24 18:05
- 更新:2022-09-08 11:18
- 阅读:634
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows7 6.1(内部版本7601)
HBuilderX类型: 正式
HBuilderX版本号: 3.5.3
手机系统: Android
手机系统版本号: Android 12
手机厂商: OPPO
手机机型: oppofindx3
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
预期结果:
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
实际结果:
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
bug描述:
uni.previewImage({
current: 0,
urls: [
"http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg"]
})
部分图片预览会出现问题,图片偏移,需要手点一下才会居中
测试图片地址:http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/202208241402361000001b289ec4a6b.jpg
1***@qq.com (作者)
http://2410r0s640.qicp.vip:8088/jtBusiness/jtBusiness/10010/onceFile/2022082316170910000056ba91df393.jpg 这个图片也会发生偏移
2022-08-26 14:47