31 lines
448 B
JavaScript
31 lines
448 B
JavaScript
// pages/auth/access/index.js
|
|
Page({
|
|
|
|
data: {
|
|
|
|
},
|
|
|
|
handClick(e) {
|
|
let { type } = e.currentTarget.dataset
|
|
//拍照
|
|
if (type == 1) {
|
|
wx.scanCode({
|
|
onlyFromCamera: true,
|
|
scanType: ['qrCode'],
|
|
success(res) {
|
|
console.log(res);
|
|
},
|
|
fail(err) {
|
|
wx.showToast({
|
|
title: '扫码失败',
|
|
icon: 'none'
|
|
})
|
|
}
|
|
})
|
|
} else {
|
|
wx.navigateTo({
|
|
url: "/pages/joinFlow/manual/index",
|
|
})
|
|
}
|
|
}
|
|
}) |