jwyu 3 жил өмнө
parent
commit
f353129534
3 өөрчлөгдсөн 16 нэмэгдсэн , 5 устгасан
  1. 1 0
      README.md
  2. 14 4
      pages-approve/utils/util.js
  3. 1 1
      pages.json

+ 1 - 0
README.md

@@ -2,3 +2,4 @@
 
 	1. ui使用vant 未全部引入 按需在page.json中配置
 	2. utils/config 中为项目配置
+	3. master分支为线上分支、debug为测试分支,上线时修改项目配置中的请求地址

+ 14 - 4
pages-approve/utils/util.js

@@ -15,14 +15,24 @@ export const preViewFile=fileurl=>{
 				filePath:tempFilePath,
 				success() {
 					console.log('打开成功');
+				},
+				fail(){
+					setTimeout(() => {
+						uni.showToast({
+							title:'打开失败,请重试',
+							icon:"none"
+						})
+					}, 0);
 				}
 			})
 		},
 		fail(){
-			uni.showToast({
-				title:'下载失败,请重试',
-				icon:"none"
-			})
+			setTimeout(() => {
+				uni.showToast({
+					title:'下载失败,请重试',
+					icon:"none"
+				})
+			}, 0);
 		},
 		complete(){
 			uni.hideLoading()

+ 1 - 1
pages.json

@@ -122,7 +122,7 @@
 						"navigationBarTitleText":"驳回理由"
 					}
 				}
-            ]
+      ]
 		}
 	],
 	"globalStyle": {