dever 5 年之前
父节点
当前提交
57f0a417c7
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      pages/dream/func/share.vue

+ 9 - 0
pages/dream/func/share.vue

@@ -187,6 +187,15 @@ export default {
 					url: this.fetch.pic[this.swiperIndex],
 					success: (res) => {
 						if (res.statusCode === 200) {
+							console.info(uni.getImageInfo({src:res.tempFilePath}));
+							uni.getImageInfo({
+								src: res.tempFilePath,
+								success: function (image) {
+									console.log(image.width);
+									console.log(image.height);
+								}
+							});
+							return;
 							ctx.drawImage(res.tempFilePath, 0, 0, 375, 375);
 							uni.downloadFile({
 								url: this.fetch.info.qrcode,