除了颜色选择图片,注册页面
This commit is contained in:
@@ -39,12 +39,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a-popover>
|
||||
<!-- <a-popover>
|
||||
<template #content>
|
||||
<p>Seed</p>
|
||||
</template>
|
||||
<input class="search_seed" max="9999" v-show="scene?.value == 'Logo'" @input="ifSeedValue" v-model="searchPictureSeed" type="Number" placeholder='Seed' min="0">
|
||||
</a-popover>
|
||||
</a-popover> -->
|
||||
|
||||
<input
|
||||
class="search_input"
|
||||
@@ -244,6 +244,7 @@ export default defineComponent({
|
||||
let remGenerate:any = ref(false)
|
||||
let remGenerateTime:any = ref()
|
||||
let styleRecommend:any = inject('styleRecommend')
|
||||
let generateLevel2Type = ''
|
||||
return {
|
||||
searchPictureName,
|
||||
searchPictureSeed,
|
||||
@@ -270,6 +271,7 @@ export default defineComponent({
|
||||
remGenerate,
|
||||
remGenerateTime,
|
||||
styleRecommend,
|
||||
generateLevel2Type,
|
||||
};
|
||||
},
|
||||
data(prop) {
|
||||
@@ -431,6 +433,9 @@ export default defineComponent({
|
||||
sloganText = this.searchPictureName
|
||||
if(this.upload.level1Type == "Sketchboard"){
|
||||
level2Type = this.sketchboardList?.[0]?.categoryValue?this.sketchboardList[0].categoryValue:''
|
||||
if(this.workspace.styleName){
|
||||
sloganText = `${this.workspace.styleName},${sloganText}`
|
||||
}
|
||||
}else if(this.upload.level1Type == "Printboard"){
|
||||
level2Type = this.scene?.value
|
||||
if(level2Type == 'Slogan' && this.searchPictureName == ''){
|
||||
@@ -440,7 +445,7 @@ export default defineComponent({
|
||||
sloganText = `${this.printModel.value},${sloganText}`
|
||||
}
|
||||
if(!base64 && level2Type == 'Slogan'){
|
||||
message.info('请绘制Slogan');
|
||||
message.info(this.t('Generate.jsContent10'));
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -459,6 +464,7 @@ export default defineComponent({
|
||||
gender:this.workspace.sexEnum.value,
|
||||
sloganBase64:base64,
|
||||
}
|
||||
this.generateLevel2Type = data.level2Type
|
||||
this.isGenerate = true
|
||||
this.remGenerateTime = setTimeout(()=>{
|
||||
this.remGenerate = true
|
||||
@@ -484,6 +490,7 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
).catch(res=>{
|
||||
this.generateLevel2Type = ''
|
||||
this.isGenerate = false
|
||||
clearInterval(this.remGenerateTime)
|
||||
this.remGenerate = false
|
||||
@@ -534,6 +541,7 @@ export default defineComponent({
|
||||
clearInterval(this.remGenerateTime)
|
||||
this.remGenerate = false
|
||||
this.isGenerate = false
|
||||
this.generateLevel2Type = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -542,6 +550,7 @@ export default defineComponent({
|
||||
clearInterval(this.remGenerateTime)
|
||||
this.isGenerate = false
|
||||
this.remGenerate = false
|
||||
this.generateLevel2Type = ''
|
||||
});
|
||||
},1000)
|
||||
},
|
||||
@@ -552,7 +561,16 @@ export default defineComponent({
|
||||
clearInterval(this.generateTime)
|
||||
if(this.generateProceedList){
|
||||
let str = this.generateProceedList.map((obj:any) => obj.taskId).join(',');
|
||||
let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}
|
||||
let type = 'Generate'
|
||||
if(this.generateLevel2Type == 'Logo'){
|
||||
type = 'Logo'
|
||||
}
|
||||
let data = {
|
||||
uniqueId:str,
|
||||
userId:this?.userInfo?.userId,
|
||||
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
type: type
|
||||
}
|
||||
Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then(
|
||||
(rv) => {
|
||||
this.generateProceedList = []
|
||||
@@ -576,6 +594,7 @@ export default defineComponent({
|
||||
}
|
||||
if(this.upload.level1Type == "Moodboard"){
|
||||
this.styleRecommend.push(value)
|
||||
this.styleRecommend = [...new Set(this.styleRecommend)]
|
||||
}
|
||||
this.searchPictureName += str + value
|
||||
},
|
||||
@@ -674,6 +693,10 @@ export default defineComponent({
|
||||
this.sketchboardList = data
|
||||
},
|
||||
deleteFile(item: any) {
|
||||
if(this.scene?.value == 'Slogan' && this.type_.type2 == 'Printboard'){
|
||||
let createSlogan:any = this.$refs.createSlogan
|
||||
createSlogan.isDeleteSlogan = true
|
||||
}
|
||||
this.sketchboardList.splice(item, 1);
|
||||
// if((this.sketchboardList.length<2 && this.moodboarList.length == 0) || this.sketchboardList.length == 0){
|
||||
// this.printModel = {
|
||||
@@ -721,7 +744,8 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deleteGenerate(index:any){
|
||||
if(this.isGenerate)return
|
||||
// if(this.isGenerate)return
|
||||
let num = this.fileList.length
|
||||
let _this = this
|
||||
Modal.confirm({
|
||||
title: this.t('LibraryPage.jsContent1'),
|
||||
@@ -731,7 +755,8 @@ export default defineComponent({
|
||||
mask:false,
|
||||
centered:true,
|
||||
onOk() {
|
||||
_this.fileList.splice(index,1)
|
||||
let a = _this.fileList.length - num
|
||||
_this.fileList.splice(index-a,1)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user