Commit c39447a5 authored by 刘文虎's avatar 刘文虎

删除多余代码

parent 591f013f
Pipeline #7851 canceled with stages
......@@ -436,43 +436,6 @@
}
this.fileList = [];
},
beforeChooseImage() {
if (uni.$u.platform === '4') {
this.openChoose();
} else {
this.chooseImage();
}
},
openChoose() {
console.log("openChoose")
this.$refs['bottom-choose'].open();
},
bottomChoose(sourceType) {
this.sculpture(sourceType);
},
// 上传组件
handleListChange(lists) {
if (lists) {
this.upload.fileList = lists;
}
},
async chooseImage(e) {
console.log(e);
try {
let type = e === 'camera' ? 0 : e === 'album' ? 1 : 2; // 0:相机 1:相册 2: [相机,相册]
// 上传图片
let res = await upload.getPhoto(this.upload.qiniuToken, type);
uni.hideLoading();
let {
hash,
key
} = res;
this.form.attach = [UPLOAD_FILE_HOST + key];
} catch (e) {
uni.hideLoading();
//TODO handle the exception
}
}
}
};
</script>
......
......@@ -151,7 +151,6 @@
this.permissionID=''
this.savePrint()
}
this.addPhoneContact()
},
handleClickPrint() {
this.openAuth('WRITE_EXTERNAL_STORAGE')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment