Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite
This commit is contained in:
BIN
src/assets/images/homePage/designTutorial_CN.png
Normal file
BIN
src/assets/images/homePage/designTutorial_CN.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
src/assets/images/homePage/designTutorial_EN.png
Normal file
BIN
src/assets/images/homePage/designTutorial_EN.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -363,6 +363,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
const getSubmitData = async (str:string)=>{
|
const getSubmitData = async (str:string)=>{
|
||||||
// return
|
// return
|
||||||
|
console.log(detailData.selectDetail)
|
||||||
let workspace = store.state.Workspace.probjects
|
let workspace = store.state.Workspace.probjects
|
||||||
if(!detailData?.selectDetail?.path && !detailData?.selectDetail?.newDetail?.sketch?.minIOPath)return
|
if(!detailData?.selectDetail?.path && !detailData?.selectDetail?.newDetail?.sketch?.minIOPath)return
|
||||||
let clothes:any
|
let clothes:any
|
||||||
|
|||||||
@@ -1198,6 +1198,7 @@ export default defineComponent({
|
|||||||
level1Type: this.type_.type2,
|
level1Type: this.type_.type2,
|
||||||
level2Type: level2Type,
|
level2Type: level2Type,
|
||||||
gender: this.workspace.sex,
|
gender: this.workspace.sex,
|
||||||
|
ageGroup: this.workspace.ageGroup,
|
||||||
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||||
}
|
}
|
||||||
Https.axiosPost(Https.httpUrls.generateLike, data)
|
Https.axiosPost(Https.httpUrls.generateLike, data)
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ import { Https } from "@/tool/https";
|
|||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import payMethod from "@/component/Pay/payMethod.vue";
|
import payMethod from "@/component/Pay/payMethod.vue";
|
||||||
import { compute } from "three/tsl";
|
// import { compute } from "three/tsl";
|
||||||
// import { forEach } from "jszip";
|
// import { forEach } from "jszip";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -150,7 +150,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="likeDesignCollectionList?.length == 0 && designCollectionList?.length > 0" class="info">{{ $t(t('HomeView.jsContent13')) }}</div>
|
<div v-if="likeDesignCollectionList?.length == 0 && designCollectionList?.length > 0" class="info">
|
||||||
|
<img v-if="locale == 'CHINESE_SIMPLIFIED'" src="@/assets/images/homePage/designTutorial_CN.png" alt="">
|
||||||
|
<img v-else src="@/assets/images/homePage/designTutorial_EN.png" alt="">
|
||||||
|
</div>
|
||||||
<div class="right_content_img_block scroll_style active">
|
<div class="right_content_img_block scroll_style active">
|
||||||
<div class="right_content_img_item" ref="likeItemDom" designType="like" :index="0">
|
<div class="right_content_img_item" ref="likeItemDom" designType="like" :index="0">
|
||||||
<!-- likeDesignCollectionList -->
|
<!-- likeDesignCollectionList -->
|
||||||
@@ -1348,6 +1351,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
store,
|
store,
|
||||||
|
locale,
|
||||||
...toRefs(editDesignType),
|
...toRefs(editDesignType),
|
||||||
likeDesignCollectionList,
|
likeDesignCollectionList,
|
||||||
deleteDesignCollectionList,
|
deleteDesignCollectionList,
|
||||||
@@ -2251,10 +2255,16 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.info{
|
.info{
|
||||||
font-size: 1.2rem;
|
position: absolute;
|
||||||
color: #000000;
|
top: 0;
|
||||||
margin-left: 2rem;
|
left: 0;
|
||||||
font-weight: 900;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
> img{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.designPage_body {
|
.designPage_body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -86,10 +86,21 @@ export default defineComponent({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 检查是否需要重新初始化
|
||||||
|
const currentPath = route.fullPath
|
||||||
|
const storedPath = store.state.Workspace.projectPath
|
||||||
|
const isSameProject = currentPath === storedPath && data.openType === 'history'
|
||||||
|
|
||||||
if(data.openType == 'history'){
|
if(data.openType == 'history'){
|
||||||
store.commit('setProjectPath',route.fullPath)
|
store.commit('setProjectPath',route.fullPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 如果是同一个项目且openType为history,跳过重新初始化
|
||||||
|
if(isSameProject){
|
||||||
|
data.dataLoad = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
nextTick(()=>{
|
nextTick(()=>{
|
||||||
if(query.history || query.id){
|
if(query.history || query.id){
|
||||||
//切换新项目需要清除首次design提示
|
//切换新项目需要清除首次design提示
|
||||||
|
|||||||
@@ -242,7 +242,6 @@ export default {
|
|||||||
jsContent10: "二次创作的作品不允许使用'设计',但是您可以使用'重新设计'",
|
jsContent10: "二次创作的作品不允许使用'设计',但是您可以使用'重新设计'",
|
||||||
jsContent11: "取消喜欢后相关联的元素会被删除,确认要删除吗",
|
jsContent11: "取消喜欢后相关联的元素会被删除,确认要删除吗",
|
||||||
jsContent12: "你确定要删除选中元素和相关元素吗?",
|
jsContent12: "你确定要删除选中元素和相关元素吗?",
|
||||||
jsContent13: "生成的内容需要点击爱心才会储存到自己的库中",
|
|
||||||
},
|
},
|
||||||
ProductImg: {
|
ProductImg: {
|
||||||
productInput: "请输入关键词(例如款式、材质)",
|
productInput: "请输入关键词(例如款式、材质)",
|
||||||
|
|||||||
@@ -242,7 +242,6 @@ export default {
|
|||||||
jsContent10: "Re-created works are not allowed to use 'design', but you can use 'redesign'",
|
jsContent10: "Re-created works are not allowed to use 'design', but you can use 'redesign'",
|
||||||
jsContent11: "By unliking this, all connected posts will be deleted. Are you sure you want to continue?",
|
jsContent11: "By unliking this, all connected posts will be deleted. Are you sure you want to continue?",
|
||||||
jsContent12: "Are you sure about deleting the current brand DNA?",
|
jsContent12: "Are you sure about deleting the current brand DNA?",
|
||||||
jsContent13: "The generated content can only be stored in your library by clicking on the heart icon.",
|
|
||||||
},
|
},
|
||||||
ProductImg: {
|
ProductImg: {
|
||||||
productInput: "Enter keyword(style,texture)",
|
productInput: "Enter keyword(style,texture)",
|
||||||
|
|||||||
@@ -1061,6 +1061,7 @@ export default defineComponent({
|
|||||||
level1Type:this.selectCode,
|
level1Type:this.selectCode,
|
||||||
level2Type: designType,
|
level2Type: designType,
|
||||||
gender:this.sex,
|
gender:this.sex,
|
||||||
|
ageGroup: this.ageGroup,
|
||||||
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||||
}
|
}
|
||||||
Https.axiosPost(Https.httpUrls.generateLike, data).then(
|
Https.axiosPost(Https.httpUrls.generateLike, data).then(
|
||||||
|
|||||||
Reference in New Issue
Block a user