小程序扫码

扫码小程序后跳转页面
 
 
<view class="ss" bindtap='saoma'>
        <image src='../../img/my_con1.png'></image>
        扫一扫
    </view>
 
wx.scanCode({
      success(res) {
        console.log(res)
        return false
        if (res.errMsg =='scanCode:ok'){
          wx.navigateTo({
            url: '/'+res.path
          })
        }
      }
    })
posted @ 2019-08-28 21:07  程序员子枫  阅读(243)  评论(0编辑  收藏  举报