ccj 3 år sedan
förälder
incheckning
833c3ec1ab
2 ändrade filer med 20 tillägg och 21 borttagningar
  1. 1 2
      config/index.js
  2. 19 19
      pageB/contract/contract.vue

+ 1 - 2
config/index.js

@@ -1,7 +1,6 @@
 const dev = {
-<<<<<<< HEAD
 	baseUrl: 'https://www.zthymaoyi.com',
-	baseUrlNew: 'http://192.168.1.110:8090/',
+	baseUrlNew: 'http://192.168.1.107:8090/',
 	//baseUrlNew: 'http://api.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false

+ 19 - 19
pageB/contract/contract.vue

@@ -245,26 +245,26 @@
 			},
 			commit(item) {
 				console.log(item)
-				var list = item.addressUrl.toString().split(',')
-				if(list.length > 0){
-					uni.downloadFile({
-					  url: list[0],
-					  success: function (res) {
-					    var filePath = res.tempFilePath;
-					    uni.openDocument({
-					      filePath: filePath,
-					      success: function (res) {
-							  uni.hideLoading()
-					        console.log('打开文档成功');
-					      }
-					    });
-					  },
-					})
-				}
+				// var list = item.addressUrl.toString().split(',')
+				// if(list.length > 0){
+				// 	uni.downloadFile({
+				// 	  url: list[0],
+				// 	  success: function (res) {
+				// 	    var filePath = res.tempFilePath;
+				// 	    uni.openDocument({
+				// 	      filePath: filePath,
+				// 	      success: function (res) {
+				// 			  uni.hideLoading()
+				// 	        console.log('打开文档成功');
+				// 	      }
+				// 	    });
+				// 	  },
+				// 	})
+				// }
 				
-				// uni.navigateTo({
-				// 	url: `/pageB/contract/enclosures?addressUrl=${item.addressUrl}`
-				// })
+				uni.navigateTo({
+					url: `/pageB/contract/enclosures?addressUrl=${item.addressUrl}`
+				})
 			},
 			commit1(item) {
 				uni.navigateTo({