Tencent / Tencent/tdesign-miniprogram
[upload] 调起拍摄时提醒用户打开相机权限
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- Vue
- Stars
- 1.8k
- Forks
- 337
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 19
Description
这个功能解决了什么问题
用户关闭了微信的应用相机权限,在使用微信小程序时,因为没有相机权限,无法成功调起upload组件的拍摄功能
你建议的方案是什么
在用户点击“拍摄”按钮后,检查是否有相机权限,若无,则提示用户打开应用权限,并跳转到手机的微信应用权限页面
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the upload component's shooting entry point and inspect how camera invocation currently handles missing permissions. Reproduce the flow with the WeChat app's camera permission disabled; done means the user receives a prompt and can reach the app permission settings instead of the capture flow failing silently.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100