|
@@ -47,6 +47,7 @@ export class SampleDetailPage implements OnInit {
|
|
|
i.imgsrc = i.pictures[0].smallPicture
|
|
|
let qadata = await this.userData.getSampleQAlog(i.sdpId)
|
|
|
if (JSON.parse(qadata).data.length !== 0) {
|
|
|
+ console.log(qadata)
|
|
|
for (let j of JSON.parse(qadata).data) {
|
|
|
i['qaIdList'].push(j.id) // qa记录的id数组
|
|
|
}
|
|
@@ -71,14 +72,14 @@ export class SampleDetailPage implements OnInit {
|
|
|
encodingType: this.camera.EncodingType.PNG,
|
|
|
mediaType: this.camera.MediaType.PICTURE,
|
|
|
targetWidth: 1500,
|
|
|
- targetHeight: 1180
|
|
|
+ targetHeight: 1125
|
|
|
}
|
|
|
|
|
|
this.camera.getPicture(options).then((imageData) => {
|
|
|
sample.imgList.push(
|
|
|
- 'data:image/jpeg;base64,' + imageData
|
|
|
+ 'data:image/png;base64,' + imageData
|
|
|
)
|
|
|
- // sample.imgUrl = 'data:image/jpeg;base64,' + imageData
|
|
|
+ // sample.imgUrl = 'data:image/png;base64,' + imageData
|
|
|
if (sample.imageData) {
|
|
|
sample.imageData = sample.imageData + ',' + imageData
|
|
|
} else {
|