From dc93403506dd20d1cbe619e953a01fe6871791f3 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Thu, 20 Jun 2024 10:36:45 +0800
Subject: [PATCH] fix
---
.env.dev | 2 +-
src/assets/style/style.css | 9 +
src/assets/style/style.less | 8 +
src/component/Detail/DesignDetail.vue | 8 +-
src/component/Detail/DesignDetailEnd.vue | 7 +-
src/component/Detail/DesignPrintOperation.vue | 45 +-
.../Detail/DesignPrintOperationMobile.vue | 71 +-
src/component/Detail/addDetails.vue | 15 +-
src/component/Detail/habit.vue | 75 +-
src/component/Detail/habitSetStyle.vue | 57 +-
src/component/HomePage/ColorboardUpload.vue | 2 +-
src/component/HomePage/ExportModel.vue | 216 +++--
src/component/HomePage/Generate.vue | 31 +-
src/component/HomePage/SketchboardUpload.vue | 2 +-
src/component/HomePage/collectionModal.vue | 10 +-
src/component/HomePage/createSlogan.vue | 74 +-
src/component/HomePage/productImg.vue | 1 +
src/component/LibraryPage/searchLabel.vue | 19 +-
src/component/WorksPage/Falls.vue | 11 +-
src/component/WorksPage/newScaleImage.vue | 15 +-
src/lang/cn.ts | 2 +-
src/lang/en.ts | 4 +-
src/router/index.ts | 5 +
src/tool/https.js | 4 +
src/views/HomeView/Works.vue | 128 +--
src/views/HomeView/library.vue | 46 +-
src/views/feedbackSurvey.vue | 186 ++--
src/views/feedbackSurveyCN.vue | 847 ++++++++++++++++++
28 files changed, 1506 insertions(+), 394 deletions(-)
create mode 100644 src/views/feedbackSurveyCN.vue
diff --git a/.env.dev b/.env.dev
index 7d4cc729..d5d9d7c0 100644
--- a/.env.dev
+++ b/.env.dev
@@ -9,4 +9,4 @@ VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
# 佩佩
# VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
# 海波
-VUE_APP_BASE_URL = 'http://192.168.1.9:5567'
+# VUE_APP_BASE_URL = 'http://192.168.1.9:5567'
diff --git a/src/assets/style/style.css b/src/assets/style/style.css
index 2d9828e3..eb5a10e8 100644
--- a/src/assets/style/style.css
+++ b/src/assets/style/style.css
@@ -15,6 +15,15 @@ input {
outline: none;
border: 0.1rem solid #dcdfe6;
}
+select {
+ height: 2.5rem;
+ border: 0.2rem solid #c4c4c4 !important;
+ border-radius: 4px;
+ /* 设置圆角半径 */
+}
+select:focus-visible {
+ border: 0.2rem solid #c4c4c4 !important;
+}
ul,
li {
list-style: none;
diff --git a/src/assets/style/style.less b/src/assets/style/style.less
index 4e431564..7aec302d 100644
--- a/src/assets/style/style.less
+++ b/src/assets/style/style.less
@@ -16,6 +16,14 @@ input{
outline: none;
border: .1rem solid #dcdfe6;
}
+select{
+ height: 2.5rem;
+ border: 0.2rem solid #c4c4c4 !important;
+ border-radius: 4px; /* 设置圆角半径 */
+}
+select:focus-visible{
+ border: 0.2rem solid #c4c4c4 !important;
+}
ul,li{
list-style: none;
padding: 0;
diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue
index 3468ffe4..7cb4ada9 100644
--- a/src/component/Detail/DesignDetail.vue
+++ b/src/component/Detail/DesignDetail.vue
@@ -97,7 +97,7 @@
+
@@ -133,7 +133,7 @@
-
+
@@ -359,6 +359,8 @@ export default defineComponent({
handler(newVal,oldVal){
if(newVal && newVal.length > 0){
this.exhibitionList.print = this.setExhibitionList(newVal)
+ }else{
+ this.exhibitionList.print = []
}
}
},
@@ -366,6 +368,8 @@ export default defineComponent({
handler(newVal,oldVal){
if(newVal && newVal.length > 0){
this.exhibitionList.elements = this.setExhibitionList(newVal)
+ }else{
+ this.exhibitionList.print = []
}
}
},
diff --git a/src/component/Detail/DesignDetailEnd.vue b/src/component/Detail/DesignDetailEnd.vue
index 8c2fc6f8..bbea4a9f 100644
--- a/src/component/Detail/DesignDetailEnd.vue
+++ b/src/component/Detail/DesignDetailEnd.vue
@@ -24,9 +24,9 @@
-
@@ -92,10 +92,9 @@
{{ $t('DesignDetailEnd.preview') }}
-
{{ $t('DesignDetailEnd.Layout') }}
+
{{ $t('DesignDetailEnd.Layout') }}
-
{{ $t('DesignDetailEnd.Layout') }}
-
+
{{ $t('DesignDetailEnd.Layout') }}
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index 8c972701..794f84f3 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -40,10 +40,10 @@
@@ -287,6 +288,9 @@ export default defineComponent({
this.ifListOver()
if(this.current.printObject.prints)this.exhibitionOpenrtionList[this.stateOverallSingle] = JSON.parse(JSON.stringify(this.current.printObject.prints))
if(this.$parent.exhibitionList.print)this.designOpenrtionList = JSON.parse(JSON.stringify(this.$parent.exhibitionList.print))
+ if(this.overallSingle == false && this.designOpenrtionList.length > 0){
+ this.designOpenrtionList[0].checked = true
+ }
if(this.$parent.elementsList)this.designList = JSON.parse(JSON.stringify(this.$parent.printsList))
// this.overallSingle = this.current.ifSingle?false:this.current.ifSingle
let skecth = new Image
@@ -341,14 +345,27 @@ export default defineComponent({
}
// this.random()
},
- async setpitch(item,index){
+ async setpitch(item,index,str){
await this.setPrintWH(item.path)
this.printStyleList[this.stateOverallSingle].forEach((v)=>{
v.designOpenrtionBtn = false
})
if(!this.overallSingle){
+ if(item.checked){
+ this.deletePrint()
+ item.checked = false
+ return
+ }else{
+ this.designOpenrtionList.forEach((itemElem)=>{
+ itemElem.checked = false
+ })
+ this.designList.forEach((itemElem)=>{
+ itemElem.checked = false
+ })
+ item.checked = true
+ }
this.printStyleList[this.stateOverallSingle][0] = JSON.parse(JSON.stringify(this.currentPrintStyleList))
- this.refetchTemplate(0)
+ this.refetchTemplate(0,true)
this.exhibitionOpenrtionList[this.stateOverallSingle][0] = {
angle:0,
designType:item.designType,
@@ -359,7 +376,7 @@ export default defineComponent({
scale:.3,
location:[0,0]
}
- this.systemDesignerPercentage = 30
+ this.systemDesignerPercentage = item.scale?item.scale*100:30
}else{
this.printStyleList[this.stateOverallSingle].push(JSON.parse(JSON.stringify(this.currentPrintStyleList)))
let currentIndex = this.printStyleList[this.stateOverallSingle].length-1
@@ -373,7 +390,7 @@ export default defineComponent({
scale:1,
location:[0,0]
})
- this.refetchTemplate(currentIndex)
+ this.refetchTemplate(currentIndex,false)
}
},
//设置移动
@@ -518,11 +535,11 @@ export default defineComponent({
},
random(){
this.exhibitionOpenrtionList[this.stateOverallSingle].forEach((v,index)=>{
- this.refetchTemplate(index)
+ this.refetchTemplate(index,false)
})
},
//随机重置图片顺序
- refetchTemplate(index) {
+ refetchTemplate(index,boor) {
// let scale = (Math.trunc(Math.random()*15)+1)*.1
let rotateZ1 = Math.trunc(Math.random()*360)+1
let rotateZ2 = Math.trunc(Math.random()*360)+1
@@ -549,8 +566,8 @@ export default defineComponent({
top:0,
},
style:{
- left:Math.trunc(Math.random()*x)+1+"px",
- top:Math.trunc(Math.random()*y)+1+"px",
+ left:(boor?sketch.offsetWidth/2:Math.trunc(Math.random()*x)+1)+"px",
+ top:(boor?sketch.offsetHeight/2:Math.trunc(Math.random()*y)+1)+"px",
right:"auto",
bottom:"auto",
width:this.print.width.replace(/px/g,'')*scale+'px',
@@ -915,6 +932,10 @@ export default defineComponent({
img{
width: 100%;
cursor: pointer;
+ &.active{
+ opacity: .5;
+ transform: scale(.8);
+ }
}
.designOpenrtion_overall{
width: 80%;
diff --git a/src/component/Detail/DesignPrintOperationMobile.vue b/src/component/Detail/DesignPrintOperationMobile.vue
index 1e1541d0..d13cef0b 100644
--- a/src/component/Detail/DesignPrintOperationMobile.vue
+++ b/src/component/Detail/DesignPrintOperationMobile.vue
@@ -38,6 +38,20 @@