Angular - 生成动态二维码

场景:   二维码签到,防止被转发,检验有效(如: 3 秒动态生成二维码含timestamp+'other',  扫描跳转到rest api 对比timestamp+'other'检查是否生成过QRCode)

方案I: 1. qrcode.js  =>to do :

            2. npm install angular2-qrcode --save  =>  不支持中文,need msbuild

            3.  npm install ng2-qrcode --save => 支持中文, to do

            4.  npm install ngx-qrcode2 --save =>   支持中文, 测试OK.

参考: https://www.npmjs.com/package/ngx-qrcode2

<ngx-qrcode [hidden] = "hiddenQrCode" qrc-version = "15" qrc-errorCorrectionLevel = "L" [qrc-element-type]="elementType" [qrc-value] = "restApiUrl">
</ngx-qrcode>


方案2: 1. 获取wi-fi list,检查是否在某wi-fi周边签到

              2. 获取bluetooth list,检查是否在某bluetooth周边签到


方案3:...

猜你喜欢

转载自www.cnblogs.com/keeyang/p/9573414.html
今日推荐