armg hace 2 semanas
padre
commit
af63b155c6

BIN
src/assets/AIDesign/file-excel-2-line.png


BIN
src/assets/AIDesign/historyIcon.png


BIN
src/assets/AIDesign/resetIcon.png


+ 21 - 9
src/styles/index.scss

@@ -8,6 +8,7 @@ html {
   @media screen and (min-width: 1400px) {
     font-size: 75%;
   }
+
   // ai设计板块
   @media screen and (min-width: 700px) {
     .AI-Design-container {
@@ -44,12 +45,14 @@ html {
     margin: 0;
     height: 100%;
     font-family: "Microsoft YaHei";
+
     * {
       padding: 0;
       margin: 0;
       outline: none;
       list-style-image: none;
     }
+
     .container {
       width: 100%;
       //height: 100%;
@@ -60,7 +63,8 @@ html {
       color: #333;
       font-size: 16px;
     }
-    .fankui-btn-mm{
+
+    .fankui-btn-mm {
       width: 40px;
       height: 40px;
       border-radius: 50%;
@@ -68,7 +72,8 @@ html {
       bottom: 50px;
       right: 50px;
       z-index: 100;
-      .img{
+
+      .img {
         width: 60px;
         height: 60px;
       }
@@ -117,6 +122,7 @@ html {
       display: flex;
       flex-flow: row wrap !important;
     }
+
     .jCenter {
       display: flex;
       justify-content: center;
@@ -130,6 +136,7 @@ html {
     .jcsb {
       justify-content: space-between;
     }
+
     .oHidden {
       overflow: hidden;
     }
@@ -145,24 +152,29 @@ html {
     .oyScroll {
       overflow-y: scroll;
     }
-    .fontWhite{
+
+    .fontWhite {
       color: #FFF;
     }
-    .fontBlack{
+
+    .fontBlack {
       color: #333;
     }
-    .mt10{
+
+    .mt10 {
       margin-top: 10px;
     }
-    .contentDiv{
+
+    .contentDiv {
       padding: 10px 15px;
       box-sizing: border-box;
       background: #F5F5F5;
     }
-    .login{
-      .van-field__error-message{
+
+    .login {
+      .van-field__error-message {
         display: none;
       }
     }
   }
-}
+}

+ 2 - 2
src/views/AIDesign/design.vue

@@ -364,7 +364,7 @@ import { Component, Vue } from "vue-property-decorator";
 import { CreateDesign, GetEntity, GetReadState, UpdateReadState, GetProjectlist, GetDictList } from "@/api/indexAI";
 import { ImagePreview, Popover } from 'vant';
 import { Dialog } from 'vant';
-import { getWecomType, toLBHome ,toXiaoChengxu } from '@/utils/index';
+import { getWecomType, toLBHome, toXiaoChengxu } from '@/utils/index';
 declare let wx: any;
 import axios from "axios";
 
@@ -383,7 +383,7 @@ export default class extends Vue {
     windowsRef: HTMLDivElement;
     railingsRef: HTMLDivElement;
     tilesRef: HTMLDivElement;
-    skirtTypesRef : HTMLDivElement;
+    skirtTypesRef: HTMLDivElement;
   };
 
   private readState = true;

+ 4 - 4
src/views/AIDesign/insideDesign.vue

@@ -408,20 +408,20 @@ export default class extends Vue {
     }
     that.serviceCodeArray = serviceCodeArray;
   }
-  // 处理文件选择
+  // 处理文件选择(对应 beforeRead + afterRead)
   handleFileChange(e) {
     const file = e.target.files[0]; // 获取选中的文件
     if (!file) return; // 未选择文件直接返回
 
-    // 1. 校验文件类型
+    // 1. 校验文件类型(对应 beforeRead 的类型检查)
     if (!file.type.match('image.*')) {
       this.$toast('请选择图片文件');
       this.clearInput(e.target); // 清除选择,避免重复触发同一文件
       return;
     }
     let FileSize = (file.size / 1024 / 1024).toFixed(2);
-    console.log("用户选择的图片大小=", file.size + 'KB', '  =', FileSize + 'M')
-    // 2. 校验文件大小)
+    // console.log("用户选择的图片大小=", file.size + 'KB', '  =', FileSize + 'M')
+    // 2. 校验文件大小(对应 beforeRead 的大小检查
     const maxSize = 20 * 1024 * 1024; // 10MB
     if (file.size > maxSize) {
       this.$toast('图片大小不能超过10MB');

+ 2 - 2
src/views/AIDesign/result.vue

@@ -71,7 +71,7 @@
 import { ImagePreview, Dialog } from 'vant';
 import { Component, Vue } from "vue-property-decorator";
 import { GetEntity, GetReadState, UpdateReadState, insideGetEntity, insideGetReadState, insideUpdateReadState, GetProjectlist, GetDictList } from "@/api/indexAI";
-import { getWecomType, toLBHome ,getWxconfig } from '@/utils/index';
+import { getWecomType, toLBHome, toXiaoChengxu, getWxconfig } from '@/utils/index';
 import axios from "axios";
 declare let wx: any;
 @Component
@@ -548,7 +548,7 @@ export default class extends Vue {
     // console.log('转人工设计');
     // 实现转人工设计逻辑
     // that.$magnetlogadd.setLog('AI外墙设计-转人工设计', function () {
-    that.toXiaoChengxu(`${process.env.VUE_APP_BASE_DISID6}`);
+        toXiaoChengxu(`${process.env.VUE_APP_BASE_DISID6}`);
     // })
   }
 }