Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-04 16:38:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e4bcebed592ee40d6d4c18fed09cbe0dcba1c9fe
e4bcebed
1 parent
bab9e7c7
fix: 添加图片上传失败的错误处理
在注册、编辑资料、车辆认证和出售页面中,为图片上传功能添加失败时的错误提示处理,显示错误信息并隐藏加载状态
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
1 deletions
src/pages/editProfile/index.vue
src/pages/register/index.vue
src/pages/sell/index.vue
src/pages/setAuthCar/index.vue
src/pages/editProfile/index.vue
View file @
e4bcebe
...
...
@@ -296,6 +296,17 @@ const uploadImage = (filePath) => {
}
},
});
},
fail: function (res) {
Taro.hideLoading({
success: () => {
Taro.showToast({
icon: 'error',
title: '上传失败,稍后重试!',
mask: true
})
}
})
}
});
}
...
...
src/pages/register/index.vue
View file @
e4bcebe
...
...
@@ -274,6 +274,17 @@ const uploadImage = (filePath) => {
}
},
});
},
fail: function (res) {
Taro.hideLoading({
success: () => {
Taro.showToast({
icon: 'error',
title: '上传失败,稍后重试!',
mask: true
})
}
})
}
});
}
...
...
src/pages/sell/index.vue
View file @
e4bcebe
...
...
@@ -505,8 +505,19 @@ const uploadImage = (filePath, type) => {
mask: true
})
}
}
,
}
});
},
fail: function (res) {
Taro.hideLoading({
success: () => {
Taro.showToast({
icon: 'error',
title: '上传失败,稍后重试!',
mask: true
})
}
})
}
});
}
...
...
src/pages/setAuthCar/index.vue
View file @
e4bcebe
...
...
@@ -287,6 +287,17 @@ const uploadImage = (filePath, type) => {
}
},
});
},
fail: function (res) {
Taro.hideLoading({
success: () => {
Taro.showToast({
icon: 'error',
title: '上传失败,稍后重试!',
mask: true
})
}
})
}
});
}
...
...
Please
register
or
login
to post a comment