重构
This commit is contained in:
@ -123,6 +123,9 @@
|
||||
},
|
||||
loadImage: function () {
|
||||
var _this = this
|
||||
uni.showLoading({
|
||||
title: '图片加载中...',
|
||||
})
|
||||
|
||||
uni.getImageInfo({
|
||||
src: _this.imageSrc,
|
||||
@ -188,7 +191,14 @@
|
||||
isShowImg: true
|
||||
})
|
||||
uni.hideLoading()
|
||||
}
|
||||
},
|
||||
fail() {
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: '图片加载失败',
|
||||
icon: 'none'
|
||||
})
|
||||
},
|
||||
})
|
||||
},
|
||||
// 拖动时候触发的touchStart事件
|
||||
|
||||
Reference in New Issue
Block a user