|
楼主 |
发表于 2016-8-24 17:23:42
|
显示全部楼层
//扫描二维码
Model.prototype.scanBtnClick = function(event) {
var data = this.comp("fileData");
this.comp('titleOutput').set({value: "扫描二维码"});
this.comp('codeOutput').set({value: ""});
this.comp('fileOutput').set({value: ""});
var me = this;
function onSuccess(result) {
data.newData({index : 0});
data.setValue("filePath", result.text);
data.setValue("fileName", result.format);
data.setValue('createTime', justep.Date.toString(new Date(), justep.Date.DEFAULT_FORMAT));
me.comp('titleOutput').set({value: "扫描成功!"});
me.comp('codeOutput').set({value: result.format});
me.comp('fileOutput').set({value: result.text});
}
function onError(error) { |
|