一:实现扫一扫
分享者:向往蓝天的飞鱼,来自原文地址
//index.js
//获取应用实例
var app = getApp()
Page({
data: {
show: "",
},
onLoad: function () {
console.log('onLoad')
},
click: function () {
var that = this;
var show;
wx.scanCode({
success: (res) => {
this.show = "--result:" + res.result + "--scanType:" + res.scanType + "-