@@ -2096,12 +2100,21 @@ export default defineComponent({
.img_operate_content{
position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%,-50%);
- max-width: 90%;
+ // top: 50%;
+ // left: 50%;
+ // transform: translate(-50%,-50%);
+ // max-width: 90%;
display: flex;
- flex-wrap: wrap;
+ flex-direction: column;
+ top: 1rem;
+ &.left{
+ left: 1rem;
+ right: auto;
+ }
+ &.right{
+ right: 1rem;
+ left: auto;
+ }
>div{
margin-bottom: .5rem;
margin-right: .5rem;
From cfa572f5800f4c721cbd42620060d02b1db4249e Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Thu, 6 Feb 2025 11:14:16 +0800
Subject: [PATCH 04/23] fix
---
src/component/HomePage/scaleImage.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/component/HomePage/scaleImage.vue b/src/component/HomePage/scaleImage.vue
index eefe3350..b7c12682 100644
--- a/src/component/HomePage/scaleImage.vue
+++ b/src/component/HomePage/scaleImage.vue
@@ -169,7 +169,7 @@ export default defineComponent({
},
workspace:{
type:Object,
- default:false
+ default:{}
},
},
setup(props:any,{emit}) {
From 55924c8408bd39c05e34e9e33798a724a9a2b402 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Thu, 6 Feb 2025 11:17:15 +0800
Subject: [PATCH 05/23] =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=B4=AD=E4=B9=B0?=
=?UTF-8?q?=E7=A7=AF=E5=88=86stripe=E4=BB=98=E6=AC=BE=E9=80=9A=E9=81=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/component/Pay/payMethod.vue | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/component/Pay/payMethod.vue b/src/component/Pay/payMethod.vue
index 2b956daf..f36f4b08 100644
--- a/src/component/Pay/payMethod.vue
+++ b/src/component/Pay/payMethod.vue
@@ -36,12 +36,11 @@
PayPal
-
+ -->
-
+
@@ -261,7 +261,7 @@ export default defineComponent({
if(this.$parent.exhibitionList.elements)this.designSelectElementsList = JSON.parse(JSON.stringify(this.$parent.exhibitionList.elements))
if(this.$parent.elementsList)this.designElementsList = JSON.parse(JSON.stringify(this.$parent.elementsList))
let skecth = new Image
- skecth.src = this.current.path
+ skecth.src = this.current.undividedLayer || this.current.path
skecth.onload=()=>{
this.sketch.width = skecth.width/10+'rem'
this.sketch.height = skecth.height/10+'rem'
@@ -408,7 +408,7 @@ export default defineComponent({
w = (e.clientX - this.printStyleList[this.imgDomIndex].centers.left)
h = (e.clientX - this.printStyleList[this.imgDomIndex].centers.left)*num
width = w+'px'
- height = w*num1+'px'
+ // height = w*num1+'px'
}else if(this.direction == 'top'){
this.printStyleList[this.imgDomIndex].style.top = 'auto'
// this.printStyleList[this.imgDomIndex].style.left = 'auto'
@@ -417,17 +417,17 @@ export default defineComponent({
h = (this.printStyleList[this.imgDomIndex].centers.top - e.clientY)
height = h+'px'
- width = h*num+'px'
+ // width = h*num+'px'
}else if(this.direction == 'bottom'){
h = (e.clientY - this.printStyleList[this.imgDomIndex].centers.top)
height = h+'px'
- width = h*num+'px'
+ // width = h*num+'px'
}else if(this.direction == 'left'){
this.printStyleList[this.imgDomIndex].style.left = 'auto'
this.printStyleList[this.imgDomIndex].style.right = parentNode.offsetWidth -imgDomWH.width - this.imgDom.offsetLeft+'px'
w = (this.printStyleList[this.imgDomIndex].centers.left - e.clientX)
width = w+'px'
- height = w*num1+'px'
+ // height = w*num1+'px'
}
//判断尺寸是否到边
this.printStyleList[this.imgDomIndex].style.width = width
@@ -526,8 +526,10 @@ export default defineComponent({
top:top,
right:"auto",
bottom:"auto",
- width:this.print.width.replace(/px/g,'')/sketchNum*item.scale+'px',
- height:this.print.height.replace(/px/g,'')/sketchNum*item.scale+'px',
+ // width:this.print.width.replace(/px/g,'')/sketchNum*item.scale+'px',
+ // height:this.print.height.replace(/px/g,'')/sketchNum*item.scale+'px',
+ width:sketch.offsetWidth*item.scale[0]+'px',
+ height:sketch.offsetHeight*item.scale[1]+'px',
zIndex:zIndex++
},
transform:{
@@ -565,7 +567,7 @@ export default defineComponent({
let location
for (let index = 0; index < arr.length; index++) {
await this.setPrintWH(this.exhibitionElementsList[index].path)
- scale = (arr[index].style.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
+ scale = [arr[index].style.width.replace(/px/g,'')/sketch.offsetWidth,(arr[index].style.height.replace(/px/g,'')/sketch.offsetHeight)]
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
let obj = {
angle : arr[index].transform.rotateZ,
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index bbea789f..bd6868a3 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -353,7 +353,7 @@ export default defineComponent({
this.sketch.height = skecth.height/10+'rem'
skecth.remove()
}
- skecth.src = this.current.path
+ skecth.src = this.current.undividedLayer || this.current.path
if(this.exhibitionOpenrtionList.overall.length > 0){
let str = 'overall'
this.exhibitionOpenrtionList[str].forEach((item,index)=>{
@@ -581,7 +581,7 @@ export default defineComponent({
w = (e.clientX - this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.left)
h = (e.clientX - this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.left)*num
width = w+'px'
- height = w*num1+'px'
+ // height = w*num1+'px'
}else if(this.direction == 'top'){
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.top = 'auto'
// this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.left = 'auto'
@@ -590,17 +590,17 @@ export default defineComponent({
h = (this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.top - e.clientY)
height = h+'px'
- width = h*num+'px'
+ // width = h*num+'px'
}else if(this.direction == 'bottom'){
h = (e.clientY - this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.top)
height = h+'px'
- width = h*num+'px'
+ // width = h*num+'px'
}else if(this.direction == 'left'){
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.left = 'auto'
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.right = parentNode.offsetWidth -imgDomWH.width - this.imgDom.offsetLeft+'px'
w = (this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.left - e.clientX)
width = w+'px'
- height = w*num1+'px'
+ // height = w*num1+'px'
}
//判断尺寸是否到边
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.width = width
@@ -728,8 +728,10 @@ export default defineComponent({
top:top,
right:"auto",
bottom:"auto",
- width:this.print.width.replace(/px/g,'')/sketchNum*item.scale+'px',
- height:this.print.height.replace(/px/g,'')/sketchNum*item.scale+'px',
+ // width:this.print.width.replace(/px/g,'')/sketchNum*item.scale[0]+'px',
+ // height:this.print.height.replace(/px/g,'')/sketchNum*item.scale[1]+'px',
+ width:sketch.offsetWidth*item.scale[0]+'px',
+ height:sketch.offsetHeight*item.scale[1]+'px',
zIndex:zIndex++
},
transform:{
@@ -800,20 +802,20 @@ export default defineComponent({
let location
for (let index = 0; index < arr.length; index++) {
if(!this.overallSingle){
- scale = this.systemDesignerPercentage/100
+ scale =[ this.systemDesignerPercentage/100, this.systemDesignerPercentage/100]
let overallScale = (arr[index].style.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
let x = Number(arr[index].style.left.replace(/px/g,''))
let y = Number(arr[index].style.top.replace(/px/g,''))
// let x = (Number(arr[index].style.left.replace(/px/g,'')) + Number(arr[index].style.width.replace(/px/g,''))/2)*sketchNum
// let y = (Number(arr[index].style.top.replace(/px/g,'')) + Number(arr[index].style.height.replace(/px/g,''))/2)*sketchNum
- let width = Number(this.print.width.replace(/px/g,''))*scale/5/2
- let height = Number(this.print.height.replace(/px/g,''))*scale/5/2
-
+ let width = Number(this.print.width.replace(/px/g,''))*scale[0]/5/2
+ let height = Number(this.print.height.replace(/px/g,''))*scale[0]/5/2
// location = [(x*sketchNum) ,(y*sketchNum)]
location = [(x*sketchNum) - width/sketchNum/2 ,(y*sketchNum) - height/sketchNum/2]
}else{
await this.setPrintWH(this.exhibitionOpenrtionList[this.stateOverallSingle][index].path)
- scale = (arr[index].style.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
+ console.log(arr[index].style.width.replace(/px/g,''),sketch.offsetWidth,arr[index].style.height.replace(/px/g,''),sketch.offsetHeight);
+ scale = [arr[index].style.width.replace(/px/g,'')/sketch.offsetWidth,(arr[index].style.height.replace(/px/g,'')/sketch.offsetHeight)]
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
}
let obj = {
diff --git a/src/component/Detail/setDesignItem.vue b/src/component/Detail/setDesignItem.vue
index 03609a54..ab78c0c5 100644
--- a/src/component/Detail/setDesignItem.vue
+++ b/src/component/Detail/setDesignItem.vue
@@ -515,6 +515,7 @@ export default defineComponent({
for (let index = 0; index < rv.clothes.length; index++) {
if(rv.clothes[index].id === item.id && !rv.clothes[index].similarity){
item.layersObject = rv.clothes[index].layersObject
+ item.undividedLayer = rv.clothes[index].undividedLayer
item.priority = rv.clothes[index].layersObject[0].priority
rv.clothes[index].similarity = true
break
diff --git a/src/component/HomePage/Generate.vue b/src/component/HomePage/Generate.vue
index c48c2e14..26856aca 100644
--- a/src/component/HomePage/Generate.vue
+++ b/src/component/HomePage/Generate.vue
@@ -923,7 +923,7 @@ export default defineComponent({
this.searchPictureName = "";
},
onPaste(e:any){
- if(e.clipboardData.items[0] && !this.isTextarea && this.upload.level1Type !== 'Moodboard' && this.scene?.value != 'Slogan' && this.scene?.value != 'Logo'){
+ if(e.clipboardData.files[0] && !this.isTextarea && this.upload.level1Type !== 'Moodboard' && this.scene?.value != 'Slogan' && this.scene?.value != 'Logo'){
let param = new FormData();
param.append('inPin','0')
param.append('gender',this.upload.gender)
diff --git a/src/component/HomePage/bindEmail.vue b/src/component/HomePage/bindEmail.vue
index 7f0df67c..f88d65e3 100644
--- a/src/component/HomePage/bindEmail.vue
+++ b/src/component/HomePage/bindEmail.vue
@@ -26,7 +26,7 @@
←
- Back
+ {{ $t('account.back') }}
@@ -41,24 +41,42 @@
'login_active',
]"
>
- Modify Email
- Bind personal information
+ {{ $t('account.ModifyEmail') }}
+ {{ $t('account.information') }}
-
Email
+
{{ $t('account.Email') }}
+
@@ -157,7 +175,7 @@ export default defineComponent({
const bindType = ''
const router = useRouter()
let timer:any = 0;
- const {locale} = useI18n()
+ const {locale,t} = useI18n()
const store = useStore();
let userDetail:any= computed(()=>{
return store.state.UserHabit.userDetail
@@ -171,6 +189,15 @@ export default defineComponent({
let userEmail = computed(()=>{
return store.state.UserHabit.userDetail.email
})
+ let userSex = computed(()=>{
+ return store.state.UserHabit.userDetail.email
+ })
+ let userSurname = computed(()=>{
+ return store.state.UserHabit.userDetail.email
+ })
+ let userGivenName = computed(()=>{
+ return store.state.UserHabit.userDetail.email
+ })
let register = reactive({
registerModel:computed(()=>{
return store.state.UserHabit.bindEmail.isBindEmail
@@ -180,10 +207,18 @@ export default defineComponent({
}),
registerModelMask:true,
pageWidth:'45%',
- Country:'',
+ Country:null,
CompanyName:'',
countryList:country,
email:'',
+ sexList:[
+ {label:t('account.Mr'),value:'Mr'},
+ {label:t('account.Ms'),value:'Ms'},
+ {label:t('account.Miss'),value:'Miss'},
+ ],
+ selectSex:'Mr',
+ surname:'',
+ givenName:'',
})
watch(userCountry,(newValue,oldValue)=>{
register.Country = newValue
@@ -294,6 +329,14 @@ export default defineComponent({
message.info("Please select a country");
return;
}
+ // if (!this.Country && this.bindType != 'Modify') {
+ // message.info("Please select a country");
+ // return;
+ // }
+ // if (!this.Country && this.bindType != 'Modify') {
+ // message.info("Please select a country");
+ // return;
+ // }
let type = 'BIND_MAILBOX'
if(this.email == this.userDetail.email && this.bindType != 'Modify')type = 'UPDATE_USERINFO'
let data = {
@@ -301,7 +344,10 @@ export default defineComponent({
"ip": "",
"operationType": type,
occupation:this.CompanyName,
- country:this.Country
+ country:this.Country,
+ // title:'',
+ // surname:'',
+ // givenName:'',
};
if(this.loginTime){
this.loginTime = false
@@ -542,6 +588,7 @@ export default defineComponent({
height: 5rem;
border: 0.1rem solid #dfdfdf;
border-radius: 2.5rem;
+ align-items: center;
}
:deep(.ant-select-selector):hover{
border: 0.1rem solid #000;
diff --git a/src/lang/cn.ts b/src/lang/cn.ts
index c060c89f..b6f4cff9 100644
--- a/src/lang/cn.ts
+++ b/src/lang/cn.ts
@@ -596,6 +596,7 @@ export default {
},
account:{
personCentered:'个人中心',
+ back:'返回',
frontPage:'我的信息',
Home:'首页',
Messages:'消息中心',
@@ -616,6 +617,19 @@ export default {
email:'邮箱',
Submit:'提交',
UpdateAvatar:'修改头像',
+ information:'绑定个人信息',
+ ModifyEmail:'修改邮箱',
+ Email:'邮箱',
+ plaseEmail:'请输入邮箱',
+ plaseCountry:'请选择国家',
+ plaseCompanyName:'请输入职业',
+ Name:'名字',
+ plaseSelectSex:'请选择',
+ plaseFirst:'请输入姓',
+ plaseLast:'请输入名',
+ Mr:'先生',
+ Ms:'女士',
+ Miss:'小姐',
//消息
systemMessages:'系统消息',
comment:'评论',
diff --git a/src/lang/en.ts b/src/lang/en.ts
index 6991d0fb..ce182c4d 100644
--- a/src/lang/en.ts
+++ b/src/lang/en.ts
@@ -596,6 +596,7 @@ export default {
},
account:{
personCentered:'Account',
+ back:'Back',
frontPage:'Front Page',
Home:'Home',
Messages:'Messages',
@@ -615,6 +616,19 @@ export default {
email:'Email',
Submit:'Submit',
UpdateAvatar:'Update Avatar',
+ information:'Bind personal information',
+ ModifyEmail:'Modify Email',
+ Email:'Email',
+ plaseEmail:'Enter your email address',
+ plaseCountry:'Please select country',
+ plaseCompanyName:'Please enter occupation',
+ Name:'Name',
+ plaseSelectSex:'Please select',
+ plaseFirst:'Please enter First',
+ plaseLast:'Please enter Last',
+ Mr:'Mr',
+ Ms:'Ms',
+ Miss:'Miss',
//消息
systemMessages:'System Messages',
comment:'Comment',
diff --git a/src/store/userHabit/userHabit.ts b/src/store/userHabit/userHabit.ts
index 1f1c41fb..c568a249 100644
--- a/src/store/userHabit/userHabit.ts
+++ b/src/store/userHabit/userHabit.ts
@@ -213,7 +213,6 @@ const userHabit : Module
= {
state.userDetail.occupation = data.occupation//头像
state.userDetail.usernameModify = data.usernameModify//当月剩余修改次数
state.userDetail.isBeginner = data.isBeginner == 1 ? true : false;//是否完成新手指引
-
if(
(!data.email && state.userDetail.email == '-------------') ||
(!data.country && !state.userDetail.country) ||
@@ -280,7 +279,7 @@ const userHabit : Module = {
setLang(data.language)
state.userDetail.expireTime = data.expireTime//有效期
state.userDetail.subscriptionType = data.subscriptionType//当前订阅类型
- state.userDetail.status = data.status//当前订阅类型
+ state.userDetail.status = data.status || 'active'//当前订阅类型
state.userDetail.subscriptionId = data.subscriptionId//最新订阅id
}
},
diff --git a/src/views/HomeView/HomeView.vue b/src/views/HomeView/HomeView.vue
index 5d259982..c3555d96 100644
--- a/src/views/HomeView/HomeView.vue
+++ b/src/views/HomeView/HomeView.vue
@@ -748,7 +748,7 @@ export default defineComponent({
let days = Math.floor(diffInMilliseconds / (24 * 60 * 60 * 1000)); // 计算天数
let hours = Math.floor((diffInMilliseconds % (24 * 60 * 60 * 1000)) / (60 * 60 * 1000)); // 计算小时数
let minutes = Math.floor((diffInMilliseconds % (60 * 60 * 1000)) / (60 * 1000)); // 计算分钟数
- if(days < 30){
+ if(days < 5){
setTimeout(() => {
let text = {
str:`${this.t('HomeView.jsContent4',{days:days,hours:hours})}${this.t('HomeView.jsContent8')}`,
diff --git a/src/views/HomeView/library.vue b/src/views/HomeView/library.vue
index af986824..967062ae 100644
--- a/src/views/HomeView/library.vue
+++ b/src/views/HomeView/library.vue
@@ -1723,7 +1723,7 @@ export default defineComponent({
scaleImage.init(list,index)
},
onPaste(e:any){
- if(e.clipboardData.items[0] && !this.isTextarea && this.selectCode !== 'Moodboard' && this.scene?.value != 'Slogan' && this.scene?.value != 'Logo'){
+ if(e.clipboardData.files[0] && !this.isTextarea && this.selectCode !== 'Moodboard' && this.scene?.value != 'Slogan' && this.scene?.value != 'Logo'){
let param = new FormData();
param.append('inPin','0')
param.append('gender',this.sex)
From 07ec25b25b56c65c102263f415e859c66d0833f6 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Mon, 10 Feb 2025 10:50:40 +0800
Subject: [PATCH 10/23] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/component/Detail/DesignPrintOperation.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index bd6868a3..d467a734 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -449,7 +449,7 @@ export default defineComponent({
location:[0,0],
ifSingle:false,
}
- this.systemDesignerPercentage = item.scale?item.scale*100:30
+ this.systemDesignerPercentage = (item.scale[0] && !item.ifSingle)?item.scale[0]*100:30
}else{
this.printStyleList[this.stateOverallSingle].push(JSON.parse(JSON.stringify(this.currentPrintStyleList)))
let currentIndex = this.printStyleList[this.stateOverallSingle].length-1
@@ -460,7 +460,7 @@ export default defineComponent({
minIOPath:item.minIOPath,
path:item.path,
priority:1,
- scale:1,
+ scale:[1,1],
location:[0,0],
ifSingle:true,
})
@@ -801,7 +801,8 @@ export default defineComponent({
let scale
let location
for (let index = 0; index < arr.length; index++) {
- if(!this.overallSingle){
+ if(this.stateOverallSingle == 'overall'){
+ // if(!this.overallSingle){
scale =[ this.systemDesignerPercentage/100, this.systemDesignerPercentage/100]
let overallScale = (arr[index].style.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
let x = Number(arr[index].style.left.replace(/px/g,''))
@@ -814,7 +815,6 @@ export default defineComponent({
location = [(x*sketchNum) - width/sketchNum/2 ,(y*sketchNum) - height/sketchNum/2]
}else{
await this.setPrintWH(this.exhibitionOpenrtionList[this.stateOverallSingle][index].path)
- console.log(arr[index].style.width.replace(/px/g,''),sketch.offsetWidth,arr[index].style.height.replace(/px/g,''),sketch.offsetHeight);
scale = [arr[index].style.width.replace(/px/g,'')/sketch.offsetWidth,(arr[index].style.height.replace(/px/g,'')/sketch.offsetHeight)]
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
}
From 67705e8cddbd98f963d3de3d42fafc90f08c658e Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Mon, 10 Feb 2025 11:39:45 +0800
Subject: [PATCH 11/23] fix
---
src/component/Detail/DesignPrintOperation.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index d467a734..ea02fc38 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -108,7 +108,7 @@
-
+
From 153a305c9d4b08af1cf37aaeb83181f4142a5a2e Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Mon, 10 Feb 2025 11:45:21 +0800
Subject: [PATCH 12/23] fix
---
src/component/Detail/DesignPrintOperation.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index ea02fc38..e0e7563e 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -113,7 +113,7 @@
-
+
-
@@ -122,7 +122,7 @@
-
+
From 74804d16c9749451eff27d314d6247521b9ef5b2 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Mon, 10 Feb 2025 14:46:13 +0800
Subject: [PATCH 13/23] fix
---
src/component/Detail/DesignPrintOperation.vue | 75 ++++++++++---------
1 file changed, 39 insertions(+), 36 deletions(-)
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index e0e7563e..57c0f43c 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -449,7 +449,7 @@ export default defineComponent({
location:[0,0],
ifSingle:false,
}
- this.systemDesignerPercentage = (item.scale[0] && !item.ifSingle)?item.scale[0]*100:30
+ this.systemDesignerPercentage = (item.scale?.[0] && !item.ifSingle)?item.scale[0]*100:30
}else{
this.printStyleList[this.stateOverallSingle].push(JSON.parse(JSON.stringify(this.currentPrintStyleList)))
let currentIndex = this.printStyleList[this.stateOverallSingle].length-1
@@ -705,41 +705,44 @@ export default defineComponent({
let sketch = document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName('designOpenrtion_sketch')[0]
let sketchImg = new Image()
sketchImg.onload = ()=>{
- let sketchNum = this.sketch.width.replace(/rem/g,'')*10/sketch.offsetWidth
- let scale
- scale = (this.print.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
- let zIndex = 1
- let left = item.location[0]/sketchNum+'px'
- let top = item.location[1]/sketchNum+'px'
- if(sketch.offsetWidth < item.location[0]/sketchNum){
- left = sketch.offsetWidth +'px'
- }
- if(sketch.offsetHeight < item.location[1]/sketchNum){
- top = sketch.offsetHeight +'px'
- }
- if(str == 'overall')this.systemDesignerPercentage = item.scale?item.scale*100:30
- this.printStyleList[str][index]={
- centers:{
- left:0,
- top:0,
- },
- style:{
- left:left,
- top:top,
- right:"auto",
- bottom:"auto",
- // width:this.print.width.replace(/px/g,'')/sketchNum*item.scale[0]+'px',
- // height:this.print.height.replace(/px/g,'')/sketchNum*item.scale[1]+'px',
- width:sketch.offsetWidth*item.scale[0]+'px',
- height:sketch.offsetHeight*item.scale[1]+'px',
- zIndex:zIndex++
- },
- transform:{
- // scale:scale<.2?.2:scale,//0.2-3
- rotateZ:item.angle,
- },
- designOpenrtionBtn:false
- }
+ nextTick(()=>{
+ let sketchNum = this.sketch.width.replace(/rem/g,'')*10/sketch.offsetWidth
+ let scale
+ scale = (this.print.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
+ let zIndex = 1
+ let left = item.location[0]/sketchNum+'px'
+ let top = item.location[1]/sketchNum+'px'
+ if(sketch.offsetWidth < item.location[0]/sketchNum){
+ left = sketch.offsetWidth +'px'
+ }
+ if(sketch.offsetHeight < item.location[1]/sketchNum){
+ top = sketch.offsetHeight +'px'
+ }
+ if(str == 'overall')this.systemDesignerPercentage = item.scale?.[0]?item.scale[0]*100:30
+ this.printStyleList[str][index]={
+ centers:{
+ left:0,
+ top:0,
+ },
+ style:{
+ left:left,
+ top:top,
+ right:"auto",
+ bottom:"auto",
+ // width:this.print.width.replace(/px/g,'')/sketchNum*item.scale[0]+'px',
+ // height:this.print.height.replace(/px/g,'')/sketchNum*item.scale[1]+'px',
+ width:sketch.offsetWidth*item.scale[0]+'px',
+ height:sketch.offsetHeight*item.scale[1]+'px',
+ zIndex:zIndex++
+ },
+ transform:{
+ // scale:scale<.2?.2:scale,//0.2-3
+ rotateZ:item.angle,
+ },
+ designOpenrtionBtn:false
+ }
+ })
+
sketchImg.remove()
}
sketchImg.src = sketch.src
From 9ead7fa1b9df8bdcbae95619d252c2f02a30a39e Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Mon, 10 Feb 2025 17:24:45 +0800
Subject: [PATCH 14/23] fix
---
src/component/Detail/DesignElements.vue | 8 ++++----
src/component/Detail/DesignPrintOperation.vue | 13 +++++++------
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/component/Detail/DesignElements.vue b/src/component/Detail/DesignElements.vue
index aa7e85d8..8c41bed3 100644
--- a/src/component/Detail/DesignElements.vue
+++ b/src/component/Detail/DesignElements.vue
@@ -408,7 +408,7 @@ export default defineComponent({
w = (e.clientX - this.printStyleList[this.imgDomIndex].centers.left)
h = (e.clientX - this.printStyleList[this.imgDomIndex].centers.left)*num
width = w+'px'
- // height = w*num1+'px'
+ height = w*num1+'px'
}else if(this.direction == 'top'){
this.printStyleList[this.imgDomIndex].style.top = 'auto'
// this.printStyleList[this.imgDomIndex].style.left = 'auto'
@@ -417,17 +417,17 @@ export default defineComponent({
h = (this.printStyleList[this.imgDomIndex].centers.top - e.clientY)
height = h+'px'
- // width = h*num+'px'
+ width = h*num+'px'
}else if(this.direction == 'bottom'){
h = (e.clientY - this.printStyleList[this.imgDomIndex].centers.top)
height = h+'px'
- // width = h*num+'px'
+ width = h*num+'px'
}else if(this.direction == 'left'){
this.printStyleList[this.imgDomIndex].style.left = 'auto'
this.printStyleList[this.imgDomIndex].style.right = parentNode.offsetWidth -imgDomWH.width - this.imgDom.offsetLeft+'px'
w = (this.printStyleList[this.imgDomIndex].centers.left - e.clientX)
width = w+'px'
- // height = w*num1+'px'
+ height = w*num1+'px'
}
//判断尺寸是否到边
this.printStyleList[this.imgDomIndex].style.width = width
diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue
index 57c0f43c..d949626a 100644
--- a/src/component/Detail/DesignPrintOperation.vue
+++ b/src/component/Detail/DesignPrintOperation.vue
@@ -581,7 +581,7 @@ export default defineComponent({
w = (e.clientX - this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.left)
h = (e.clientX - this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.left)*num
width = w+'px'
- // height = w*num1+'px'
+ height = w*num1+'px'
}else if(this.direction == 'top'){
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.top = 'auto'
// this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.left = 'auto'
@@ -590,17 +590,17 @@ export default defineComponent({
h = (this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.top - e.clientY)
height = h+'px'
- // width = h*num+'px'
+ width = h*num+'px'
}else if(this.direction == 'bottom'){
h = (e.clientY - this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.top)
height = h+'px'
- // width = h*num+'px'
+ width = h*num+'px'
}else if(this.direction == 'left'){
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.left = 'auto'
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.right = parentNode.offsetWidth -imgDomWH.width - this.imgDom.offsetLeft+'px'
w = (this.printStyleList[this.stateOverallSingle][this.imgDomIndex].centers.left - e.clientX)
width = w+'px'
- // height = w*num1+'px'
+ height = w*num1+'px'
}
//判断尺寸是否到边
this.printStyleList[this.stateOverallSingle][this.imgDomIndex].style.width = width
@@ -814,8 +814,9 @@ export default defineComponent({
// let y = (Number(arr[index].style.top.replace(/px/g,'')) + Number(arr[index].style.height.replace(/px/g,''))/2)*sketchNum
let width = Number(this.print.width.replace(/px/g,''))*scale[0]/5/2
let height = Number(this.print.height.replace(/px/g,''))*scale[0]/5/2
- // location = [(x*sketchNum) ,(y*sketchNum)]
- location = [(x*sketchNum) - width/sketchNum/2 ,(y*sketchNum) - height/sketchNum/2]
+ location = [(x*sketchNum) ,(y*sketchNum)]
+ // location = [(x*sketchNum) - width/sketchNum/2 ,(y*sketchNum) - height/sketchNum/2]
+
}else{
await this.setPrintWH(this.exhibitionOpenrtionList[this.stateOverallSingle][index].path)
scale = [arr[index].style.width.replace(/px/g,'')/sketch.offsetWidth,(arr[index].style.height.replace(/px/g,'')/sketch.offsetHeight)]
From 639993bcfbc871f46e8c2dbafda4aa6830b0fdf4 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Tue, 11 Feb 2025 10:43:20 +0800
Subject: [PATCH 15/23] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Account/frontPage/mylnformation.vue | 47 ++++++++++++++++++-
src/component/HomePage/bindEmail.vue | 30 ++++++++++--
src/store/userHabit/userHabit.ts | 4 +-
src/views/HomeView/Works.vue | 4 +-
4 files changed, 75 insertions(+), 10 deletions(-)
diff --git a/src/component/Account/frontPage/mylnformation.vue b/src/component/Account/frontPage/mylnformation.vue
index 1bec69e8..aaa9664b 100644
--- a/src/component/Account/frontPage/mylnformation.vue
+++ b/src/component/Account/frontPage/mylnformation.vue
@@ -1,6 +1,24 @@
+
{{$t('account.Country')}}:
@@ -52,7 +70,15 @@ export default defineComponent({
Country:'',
CompanyName:'',
loadingShow:false,
- countryList:country
+ countryList:country,
+ sexList:[
+ {label:t('account.Mr'),value:'Mr'},
+ {label:t('account.Ms'),value:'Ms'},
+ {label:t('account.Miss'),value:'Miss'},
+ ],
+ selectSex:'Mr',
+ surname:'',
+ givenName:'',
})
let setSubmit = ()=>{
let data = {
@@ -75,8 +101,14 @@ export default defineComponent({
onMounted(()=>{
let country = userDetail.value.country
let CompanyName = userDetail.value.occupation
+ // let CompanyName = userDetail.value.occupation
+ // let CompanyName = userDetail.value.occupation
+ // let CompanyName = userDetail.value.occupation
accountHomeData.Country = country
accountHomeData.CompanyName = CompanyName
+ // accountHomeData.CompanyName = CompanyName
+ // accountHomeData.CompanyName = CompanyName
+ // accountHomeData.CompanyName = CompanyName
})
return{
...toRefs(accountHomeData),
@@ -107,6 +139,19 @@ export default defineComponent({
.gallery_btn{
margin-left: auto;
}
+ .gallerySelect{
+ box-sizing: border-box;
+ height: 40px;
+ :deep(.ant-select-selector){
+ height: 40px;
+ border: 2px solid #D0D0D0;
+ border-radius: 1.6rem;
+ align-items: center;
+ }
+ :deep(.ant-select-selector):hover{
+ border: 2px solid #000;
+ }
+ }
input,textarea{
padding-left: 11px;
border-radius: 1.6rem;
diff --git a/src/component/HomePage/bindEmail.vue b/src/component/HomePage/bindEmail.vue
index f88d65e3..f618d36a 100644
--- a/src/component/HomePage/bindEmail.vue
+++ b/src/component/HomePage/bindEmail.vue
@@ -1,5 +1,5 @@
-
+
-
{{ $t('account.Email') }}
+
{{ $t('account.Email') }} *
-
-
{{$t('account.Country')}}:
+
{{$t('account.Country')}}:*
-
{{$t('account.CompanyName')}}:
+
{{$t('account.CompanyName')}}:*
@@ -229,6 +229,15 @@ export default defineComponent({
watch(userEmail,(newValue:any,oldValue)=>{
register.email = newValue == '-------------'?'':newValue
})
+ watch(userSex,(newValue,oldValue)=>{
+ register.selectSex = newValue?newValue:'Mr'
+ })
+ watch(userSurname,(newValue,oldValue)=>{
+ register.surname = newValue
+ })
+ watch(userGivenName,(newValue,oldValue)=>{
+ register.givenName = newValue
+ })
return{
router,
store,
@@ -448,6 +457,11 @@ export default defineComponent({
}