Procházet zdrojové kódy

前端通用审核下载附件

gjy před 2 roky
rodič
revize
930928327b

+ 1 - 1
config/index.js

@@ -4,7 +4,7 @@ const dev = {
 	// baseUrlNew: 'http://192.168.110.67:9100/',
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.110.9:9888/',
-	// baseUrlNew: 'http://192.168.110.138:8090/',
+	baseUrlNew: 'http://192.168.110.138:8090/',
 	// baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',

+ 2 - 1
pages/business/businessNew.vue

@@ -476,7 +476,6 @@
 							this.goods[i].imgList = arr
 							this.$forceUpdate()
 						})
-
 					}
 				}else{
 					uni.hideLoading()
@@ -608,6 +607,8 @@
 				}
 
 				.right {
+					display:flex;
+					align-items: center;
 					padding: 10rpx 20rpx;
 					border: 1px solid #CDCDCD;
 					border-radius: 50rpx;

+ 15 - 0
pages/task/audit/universalityAudit.vue

@@ -182,6 +182,21 @@
 			
 		},
 		methods: {
+			openDocument(src) {
+				uni.downloadFile({
+					url: src.appendixPath,
+					success: function(res) {
+						var filePath = res.tempFilePath;
+						uni.openDocument({
+							filePath: filePath,
+							showMenu: true,
+							success: function(res) {
+								console.log('打开文档成功');
+							}
+						});
+					}
+				});
+			},
 			pass() {
 				this.show = true
 				this.title = '审核意见(通过)'