dd.biz.util.scan({
type: "all",
onSuccess: function (data) {
console.log("扫描二维码成功", data);
// Toast('成功' + data)
that.formInfo.projectNo = data.text
that.checkProjectName = data.text
Dialog.alert({
title: '扫码成功',
message: data.text,
confirmButtonText: '确定'
}).then(() => {
// on close
});
},
onFail: function (err) {
console.log("扫描失败", err);
Toast('退出扫描')
},
});