Browse Source

增加行备注

wuhb 1 tuần trước cách đây
mục cha
commit
a9cbf9b9a3
1 tập tin đã thay đổi với 20 bổ sung5 xóa
  1. 20 5
      pages/apply/applyNew.uvue

+ 20 - 5
pages/apply/applyNew.uvue

@@ -696,13 +696,17 @@ const selectMeasure = (item: UTSJSONObject): void => {
 				})
 			}
 		}).catch((e) => {
-		    console.log(e)
 			const error = e as UTSError
 			const errMsg = error?.message
-			uni.showToast({ title: errMsg.toString(), icon: 'none'})
+			uni.showModal({
+				title: '提示',
+				content: errMsg.toString(),
+				showCancel: false,
+				confirmText: '确定'
+			})
 		})
 	}
-
+	
 	// 确认申请
 	const confirmApplication = (): void => {
 		if (selectedItems.value.length === 0) {
@@ -737,11 +741,17 @@ const selectMeasure = (item: UTSJSONObject): void => {
 		}).catch((e) => {
 			const error = e as UTSError
 			const errMsg = error?.message
-			uni.showToast({ title: errMsg.toString(), icon: 'none'})
+			uni.showModal({
+				title: '提示',
+				content: errMsg.toString(),
+				showCancel: false,
+				confirmText: '确定'
+			})
 		})
 	}
 	
 
+
 // 处理图片更新
 const handleImageUpdate = (value: UploadResponse[]): void => {
     newMaterial.value.imageUrls = value
@@ -817,7 +827,12 @@ const handleAddMaterial = async (): Promise<void> => {
 	} catch (e) {
 		const error = e as UTSError
 		const errMsg = error?.message
-		uni.showToast({ title: errMsg.toString(), icon: 'none'})
+		uni.showModal({
+			title: '提示',
+			content: errMsg.toString(),
+			showCancel: false,
+			confirmText: '确定'
+		})
 	}
 }