Przeglądaj źródła

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

chenxiong 3 lat temu
rodzic
commit
cbd23da6bf
1 zmienionych plików z 8 dodań i 0 usunięć
  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) {
+							    }
+							  })
 						}
 					}
 				});