Commit b02a9b32 by linjinhong

fix:修改惠立彩报错问题

parent f47fda21
...@@ -410,6 +410,7 @@ export default { ...@@ -410,6 +410,7 @@ export default {
async hasDesignImagesCanvasJsonList(designImagesCanvasJsonList, bool) { async hasDesignImagesCanvasJsonList(designImagesCanvasJsonList, bool) {
let imageResList = []; let imageResList = [];
console.log(431, designImagesCanvasJsonList);
// 当adjustable有值时 直接赋值宽高 // 当adjustable有值时 直接赋值宽高
if ( if (
...@@ -421,7 +422,6 @@ export default { ...@@ -421,7 +422,6 @@ export default {
) { ) {
designImagesCanvasJsonList = JSON.parse(designImagesCanvasJsonList); designImagesCanvasJsonList = JSON.parse(designImagesCanvasJsonList);
if (!designImagesCanvasJsonList[0].images) { if (!designImagesCanvasJsonList[0].images) {
this.detail.isCustom = true;
let imageList = await this.canvasToImage(designImagesCanvasJsonList); let imageList = await this.canvasToImage(designImagesCanvasJsonList);
let fm = new FormData(); let fm = new FormData();
for (let img of imageList) { for (let img of imageList) {
...@@ -452,11 +452,13 @@ export default { ...@@ -452,11 +452,13 @@ export default {
} }
} }
if (this.desktopDevice == 3) { if (this.desktopDevice == 3) {
designImagesCanvasJsonList = JSON.parse(designImagesCanvasJsonList); if (designImagesCanvasJsonList) {
// 惠立彩 带黄点摸的订单直接展示错误弹窗 designImagesCanvasJsonList = JSON.parse(designImagesCanvasJsonList);
if (!designImagesCanvasJsonList[0].images) { // 惠立彩 带黄点摸的订单直接展示错误弹窗
this.dialogVisible = true; if (!designImagesCanvasJsonList[0].images) {
return; this.dialogVisible = true;
return;
}
} }
} }
......
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