初始化
This commit is contained in:
31
pages/joinFlow/access/index.js
Normal file
31
pages/joinFlow/access/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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",
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user