.wxml文件 <view data-url="https://XXX/upload/zang." data-type="excel" catchtap='downloadFile'>888</view> .js文件 downloadFile: function (e) { console.log(e); let type = e.currentTarget.dataset.type; let url = e.currentTarget.…
wxml页面: <image src='{{UPLOAD_IMAGES_URL}}{{vv.img_s}}' data-src="{{vv.img}}" bindtap="previewImage"></image> js: /*预览*/previewImage:function(e){ console.log('previewImage'); var current = e.currentTarget.dataset.src; var th…