|
是看扫的二维码:
//扫一扫功能
function FNScanner() {
var FNScanner = api.require('FNScanner');
FNScanner.open({
autorotation: true
}, function(ret, err) {
var result = ret.content;
console.log(JSON.stringify(ret));
if (result) {
var obj = eval('(' + result + ')');
if (obj) {
opeinfns(obj.user_shop_id, obj.shop_id, obj.type);
}
} else {
console.log(JSON.stringify(err));
}
});
} |
|