|
@@ -94,10 +94,12 @@ export class StoreQCDetailPage implements OnInit {
|
|
|
}
|
|
|
takePicture(qc) {
|
|
|
const options: CameraOptions = {
|
|
|
- quality: 50,
|
|
|
+ quality: 100,
|
|
|
destinationType: this.camera.DestinationType.DATA_URL,
|
|
|
encodingType: this.camera.EncodingType.PNG,
|
|
|
- mediaType: this.camera.MediaType.PICTURE
|
|
|
+ mediaType: this.camera.MediaType.PICTURE,
|
|
|
+ targetWidth: 1500,
|
|
|
+ targetHeight: 1180
|
|
|
}
|
|
|
|
|
|
this.camera.getPicture(options).then((imageData) => {
|
|
@@ -118,7 +120,7 @@ export class StoreQCDetailPage implements OnInit {
|
|
|
deletePicture(qc, index) {
|
|
|
qc.qcimgList.splice(index, 1)
|
|
|
let arr = qc.imageData.split(',')
|
|
|
- arr.splice(qc,1)
|
|
|
+ arr.splice(qc, 1)
|
|
|
qc.imageData = arr.toString()
|
|
|
}
|
|
|
|