ソースを参照

结果页图片

armg 3 週間 前
コミット
6f90ead9f5
1 ファイル変更11 行追加17 行削除
  1. 11 17
      src/views/AIDesign/result.vue

+ 11 - 17
src/views/AIDesign/result.vue

@@ -238,12 +238,10 @@ export default class extends Vue {
           that.imgHasErr = false;
         }
       } else {
-        const high_Definition_img = that.allRes.F_ResultCollageFilePath || that.allRes.F_ResultFilePath || that.allRes.F_ResultlargeFilePath || that.allRes.F_ResultSmallFilePath;
+        let high_Definition_img = that.allRes.F_ResultFilePath || that.allRes.F_ResultlargeFilePath || that.allRes.F_ResultSmallFilePath;
         if (high_Definition_img) {
-          // that.imageUrl = that.allRes.BaseUrl + high_Definition_img;
-          // that.imageUrlSmall = that.allRes.BaseUrl + that.allRes.F_ResultSmallFilePath;
-          that.imageUrl = that.allRes.BaseUrl +  high_Definition_img;
-          that.imageUrlSmall = that.allRes.BaseUrl + high_Definition_img;
+          that.imageUrl = that.allRes.BaseUrl + high_Definition_img;
+          that.imageUrlSmall = that.allRes.BaseUrl + that.allRes.F_ResultSmallFilePath;
           that.imgHasErr = false;
         }
       }
@@ -402,12 +400,10 @@ export default class extends Vue {
           if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
             this.getProjectDisableFlag();
           }
-          const high_Definition_img = response.Data.F_ResultCollageFilePath || response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath || response.Data.F_ResultSmallFilePath;   
-          if (high_Definition_img ) {
-            // that.imageUrl = response.Data.BaseUrl + high_Definition_img;
-            // that.imageUrlSmall = response.Data.BaseUrl + response.Data.F_ResultSmallFilePath;
-            that.imageUrl = response.Data.BaseUrl +  high_Definition_img;
-            that.imageUrlSmall = response.Data.BaseUrl + high_Definition_img;
+          if (response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath) {
+            const high_Definition_img = response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath || response.Data.F_ResultSmallFilePath;
+            that.imageUrl = response.Data.BaseUrl + high_Definition_img;
+            that.imageUrlSmall = response.Data.BaseUrl + response.Data.F_ResultSmallFilePath;
             that.UserFilePathUrl = response.Data.BaseUrl + response.Data.F_UserFilePath;
           }
           if (response.Data.StateCode == 1) {
@@ -456,12 +452,10 @@ export default class extends Vue {
           if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
             this.getProjectDisableFlag();
           }
-          const high_Definition_img = response.Data.F_ResultCollageFilePath || response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath || response.Data.F_ResultSmallFilePath;  
-          if (high_Definition_img) {
-            // that.imageUrl = response.Data.BaseUrl + high_Definition_img;
-            // that.imageUrlSmall = response.Data.BaseUrl + response.Data.F_ResultSmallFilePath;
-            that.imageUrl = response.Data.BaseUrl +  high_Definition_img;
-            that.imageUrlSmall = response.Data.BaseUrl + high_Definition_img;
+          if (response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath) {
+            const high_Definition_img = response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath || response.Data.F_ResultlargeFilePath;
+            that.imageUrl = response.Data.BaseUrl + high_Definition_img;
+            that.imageUrlSmall = response.Data.BaseUrl + response.Data.F_ResultSmallFilePath;
             that.UserFilePathUrl = response.Data.BaseUrl + response.Data.F_UserFilePath;
           }
           if (response.Data.StateCode == 2 || response.Data.StateCode == 3 || response.Data.StateCode == 4) {