阅读背景:

微信小程序 扫一扫

来源:互联网 
//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 + "--charSet:" + res.charSet + "--path:" + res.path;        that.setData({          show: this.show        })        wx.showToast({          title: '成功',          icon: 'success',          duration: 2000        })      },      fail: (res) => {        wx.showToast({          title: '失败',          icon: 'success',          duration: 2000        })      },      complete: (res) => {      }//获取应用实例var app = getApp()Page({  



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: