menxiaojin

在项目中引入wxqrcode.js

import Qr from \'../../common/wxqrcode.js\';

此处wxqrcode.js源文件如果找不到的话可以联系我我发给你

template中写:

<view>
  <image :src="qr" mode="scaleToFill" class="codeER"></image>
</view>

methods

getQr(){
  this.qr = Qr.createQrCodeImg(this.sign_id)    //this.sign_id是里面的内容
},

 

结果:

 

 完成啦

分类:

技术点:

相关文章: