a661e439a0
Add the current frontend codebase with a baseline .gitignore and update piano-specific UI terms to teaching-oriented terms for the current product context. Made-with: Cursor
17 lines
278 B
JavaScript
17 lines
278 B
JavaScript
// camera.js
|
|
Page({
|
|
takePhoto() {
|
|
const ctx = wx.createCameraContext()
|
|
ctx.takePhoto({
|
|
quality: 'high',
|
|
success: (res) => {
|
|
this.setData({
|
|
src: res.tempImagePath
|
|
})
|
|
}
|
|
})
|
|
},
|
|
error(e) {
|
|
console.log(e.detail)
|
|
}
|
|
}) |