1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
2020-01-02 21:16:06 +08:00

19 lines
480 B
JavaScript

const app = getApp()
Page({
data: {
motto: 'Hello World',
qrcode: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo')
},
onscan: function(event) {var page = this
wx.scanCode({success: function(res) {
app.request("login", {scan: res.result, type: res.scanType})
page.setData({qrcode: res.result})
}})
},
onLoad: function () {},
})