lyuis 7 kuukautta sitten
vanhempi
sitoutus
c4914fe765
1 muutettua tiedostoa jossa 17 lisäystä ja 1 poistoa
  1. 17 1
      pages/my/attachment.vue

+ 17 - 1
pages/my/attachment.vue

@@ -311,6 +311,21 @@
 				console.log(e)
 			},
 			seekDoc(it){
+				//#ifdef APP-PLUS
+				uni.downloadFile({
+				  url: it.attachmentAddress,
+				  success: function (res) {
+				    var filePath = res.tempFilePath;
+				    uni.openDocument({
+				      filePath: filePath,
+				      showMenu: true,
+				      success: function (res) {
+				        console.log('打开文档成功');
+				      }
+				    });
+				  }
+				});
+				//#endif
 				uni.navigateTo({
 					url: '/pages/index/webView?url=' + it.attachmentAddress+'&title='+it.attachmentName
 				});
@@ -420,10 +435,11 @@
 		}
 		.fileName{
 			color: #222;
+			font-size: 32rpx;
 		}
 		.filedesc{
 			margin-top: 10rpx;
-			font-size: 20rpx;
+			font-size: 24rpx;
 		}
 		.c-flex-center{
 			align-self: center;