浏览代码

Merge branch 'master' of https://gitee.com/he2802/saas_applet

chenxiong 3 年之前
父节点
当前提交
cbd23da6bf
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      pages2/verify/input2.vue

+ 8 - 0
pages2/verify/input2.vue

@@ -111,8 +111,16 @@ export default {
 					url: this.$method.splitImgHost(res.data.msg),
 					success: result => {
 						if (result.statusCode === 200) {
+							const filePath = result.tempFilePath
 							console.log(this.$method.splitImgHost(res.data.msg));
 							this.$method.showToast('下载成功');
+							uni.openDocument({
+							    filePath: filePath,
+							    fileType:'doc',
+							    showMenu:true,
+							    success: function (res) {
+							    }
+							  })
 						}
 					}
 				});