除了颜色选择图片,注册页面
This commit is contained in:
@@ -602,7 +602,7 @@ export default defineComponent({
|
||||
|
||||
},
|
||||
|
||||
confrimSubmit(){
|
||||
async confrimSubmit(){
|
||||
let param = {
|
||||
libraryId:this.printObject.id,
|
||||
templateId:this.printObject.templateId || null,
|
||||
@@ -610,7 +610,7 @@ export default defineComponent({
|
||||
modelSex:this.sex,
|
||||
checkMd5:1,
|
||||
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
...this.getPrintLocation()
|
||||
...await this.getPrintLocation()
|
||||
}
|
||||
if(this.userInfo.userId == 88 || this.userInfo.userId == 83){
|
||||
param.modelType = this.modelType
|
||||
@@ -686,8 +686,19 @@ export default defineComponent({
|
||||
});
|
||||
})
|
||||
},
|
||||
getPrintLocation(){
|
||||
async getPrintLocation(){
|
||||
let {width , height} = this.imgBox
|
||||
if(this.modelType == 'System'){
|
||||
await new Promise((resolve, reject) => {
|
||||
let img = new Image()
|
||||
img.src = this.option.img
|
||||
img.onload = () => {
|
||||
width = img.width
|
||||
height = img.height
|
||||
resolve(true)
|
||||
}
|
||||
})
|
||||
}
|
||||
let locationData:any = {}
|
||||
let returnData:any = {}
|
||||
let newLocationList = JSON.parse(JSON.stringify(this.locationList))
|
||||
@@ -720,7 +731,7 @@ export default defineComponent({
|
||||
libraryId:this.printObject.relationId || null,
|
||||
templateId:this.printObject.templateId || null,
|
||||
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
...this.getPrintLocation()
|
||||
...await this.getPrintLocation()
|
||||
}
|
||||
let cropper:any = this.$refs.cropper
|
||||
await cropper.getCropData((value:any)=>{
|
||||
|
||||
Reference in New Issue
Block a user