Bläddra i källkod

ai设计-外墙质感-显示图片为合成图

armg 3 veckor sedan
förälder
incheckning
9be37adc3e
3 ändrade filer med 19 tillägg och 12 borttagningar
  1. 1 1
      .env.development
  2. 17 11
      src/views/AIDesign/result.vue
  3. 1 0
      vue.config.js

+ 1 - 1
.env.development

@@ -2,7 +2,7 @@ VUE_APP_BASE_API=/api/
 VUE_APP_publicPath=/AiDesignWeb/
 VUE_APP_AIDESIGN_API=''
 # 临时地址
-# VUE_APP_AIDESIGN_API=http://me3259a2.natappfree.cc
+# VUE_APP_AIDESIGN_API=http://w4f596bf.natappfree.cc
 
 devtool=cheap-module-eval-source-map
 VUE_APP_AIDESIGN=https://aidesigntest.nipponpaint.com.cn/

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

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

+ 1 - 0
vue.config.js

@@ -56,6 +56,7 @@ module.exports = {
     proxy: {
       '/aidesign': {
         target: 'https://aidesigntest.nipponpaint.com.cn',//测试
+        // target:'http://w4f596bf.natappfree.cc',
         changeOrigin: true,
         secure: true
       },