视频页面加入用户指引 detail添加
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
<model
|
<model
|
||||||
ref="model"
|
ref="model"
|
||||||
:key="positionKey"
|
:key="positionKey"
|
||||||
|
|
||||||
@canvasReload="canvasReload"
|
@canvasReload="canvasReload"
|
||||||
@detailEdit="detailEdit"
|
@detailEdit="detailEdit"
|
||||||
@addSketch="()=>isEditPattern.value = ''"
|
@addSketch="()=>isEditPattern.value = ''"
|
||||||
@@ -495,8 +496,16 @@ export default defineComponent({
|
|||||||
},1000)
|
},1000)
|
||||||
}
|
}
|
||||||
const sketchSysToLibrary = ()=>{//系统sketch添加到library更新library
|
const sketchSysToLibrary = ()=>{//系统sketch添加到library更新library
|
||||||
|
coverRevocation()
|
||||||
detailDom.detailLeft.sketchSysToLibrary()
|
detailDom.detailLeft.sketchSysToLibrary()
|
||||||
}
|
}
|
||||||
|
const coverRevocation = ()=>{
|
||||||
|
let itemDetail = JSON.parse(JSON.stringify(detailData.designDetail))
|
||||||
|
let revocation = JSON.parse((sessionStorage.getItem("revocation") as any))
|
||||||
|
revocation.splice(revocation.length-1,1,{designData:itemDetail,position:null})
|
||||||
|
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
||||||
|
sessionStorage.setItem('oppositeRevocation',JSON.stringify([]));
|
||||||
|
}
|
||||||
onMounted(()=>{
|
onMounted(()=>{
|
||||||
window.addEventListener('resize', handleResize);
|
window.addEventListener('resize', handleResize);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ export default defineComponent({
|
|||||||
detailData.selectTitle = 'upload'
|
detailData.selectTitle = 'upload'
|
||||||
}
|
}
|
||||||
const openLibrary = ()=>{
|
const openLibrary = ()=>{
|
||||||
|
if(detailData.selectTitle == 'library')return
|
||||||
detailData.selectTitle = 'library'
|
detailData.selectTitle = 'library'
|
||||||
getDetailListDom.libraryList.init()
|
getDetailListDom.libraryList.init()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ export default defineComponent({
|
|||||||
storeData.positionList = position
|
storeData.positionList = position
|
||||||
store.commit('setProbject',storeData)
|
store.commit('setProbject',storeData)
|
||||||
// setChatData()
|
// setChatData()
|
||||||
if(route.name == 'toolsPage'){
|
if(route.name == 'tools'){
|
||||||
getCollection('tools',null)
|
getCollection('tools',null)
|
||||||
}else{
|
}else{
|
||||||
getCollection('design',null)
|
getCollection('design',null)
|
||||||
|
|||||||
@@ -168,7 +168,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="prompt-input-container" v-show="!showMotion">
|
<div class="prompt-input-container" v-show="!showMotion">
|
||||||
<div class="title">{{ $t('ProductImg.Prompt') }}</div>
|
<div class="title" style="display: flex; gap: .5rem;">
|
||||||
|
{{ $t('ProductImg.Prompt') }}
|
||||||
|
<a :href="
|
||||||
|
locale == 'CHINESE_SIMPLIFIED'?
|
||||||
|
'https://aida-user-manual-chinese.super.site/2b08f755cedd80a985cffdf2af80c538':
|
||||||
|
'https://aida-user-manual.super.site/advanced-tool/animated-product-image/to-product-video-prompt-assist '" target="_blank">
|
||||||
|
<SvgIcon name="CHelp" fontSize="30" color="#000"></SvgIcon>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<promptInput :content="inputPrompt" ref="promptInput" />
|
<promptInput :content="inputPrompt" ref="promptInput" />
|
||||||
</div>
|
</div>
|
||||||
<div class="poses" v-show="showMotion">
|
<div class="poses" v-show="showMotion">
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
@click.stop="handleDownload(item)"
|
@click.stop="handleDownload(item)"
|
||||||
/>
|
/>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
{{ $t('ProductImg.EditGarmen') }}:
|
{{ promptPage == 3 ? $t('ProductImg.EditGarmen2') : $t('ProductImg.EditGarmen') }}:
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="example-item"
|
<div class="example-item"
|
||||||
@@ -285,10 +285,14 @@ const setNextOrPrevious = (type) => {
|
|||||||
if(status.value == 0){
|
if(status.value == 0){
|
||||||
status.value = 1
|
status.value = 1
|
||||||
}else{
|
}else{
|
||||||
|
const startIndex = (promptPage.value - 1) * 4;
|
||||||
|
if(startIndex + 4 >= promptList.value.length){
|
||||||
|
return
|
||||||
|
}
|
||||||
promptPage.value++
|
promptPage.value++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(promptPage.value > 0)presentList.value = setPresentList()
|
if(promptPage.value > 0)presentList.value = setPresentList(4)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export default defineComponent({
|
|||||||
(query:any, oldQuery:any) => {
|
(query:any, oldQuery:any) => {
|
||||||
if(oldQuery && query == oldQuery)return
|
if(oldQuery && query == oldQuery)return
|
||||||
const key = Object.keys(query)?.[0]
|
const key = Object.keys(query)?.[0]
|
||||||
if(route.name == 'toolsPage' && key){
|
if(route.name == 'tools' && key){
|
||||||
data.openType = query[key]
|
data.openType = query[key]
|
||||||
nextTick(()=>{
|
nextTick(()=>{
|
||||||
open(query[key])
|
open(query[key])
|
||||||
|
|||||||
@@ -288,7 +288,8 @@ export default {
|
|||||||
CopyFiled: '复制失败',
|
CopyFiled: '复制失败',
|
||||||
noPrompt: '请输入提示词',
|
noPrompt: '请输入提示词',
|
||||||
OriginalImage: '原始图像',
|
OriginalImage: '原始图像',
|
||||||
EditGarmen: '您可以编辑这件服装',
|
EditGarmen: '您可以编辑这件模型',
|
||||||
|
EditGarmen2: '您可以编辑这件场景',
|
||||||
Background: '白色背景',
|
Background: '白色背景',
|
||||||
BackgroundColor: '纯色背景',
|
BackgroundColor: '纯色背景',
|
||||||
ComplexBackground: '复杂背景',
|
ComplexBackground: '复杂背景',
|
||||||
|
|||||||
@@ -298,7 +298,8 @@ export default {
|
|||||||
CopyFiled: 'Failed to copy',
|
CopyFiled: 'Failed to copy',
|
||||||
noPrompt: 'Please enter prompt',
|
noPrompt: 'Please enter prompt',
|
||||||
OriginalImage: 'Original Image',
|
OriginalImage: 'Original Image',
|
||||||
EditGarmen: 'You can edit the garmen',
|
EditGarmen: 'You can edit the Model',
|
||||||
|
EditGarmen2: 'You can edit the Scene',
|
||||||
Background: 'White Background',
|
Background: 'White Background',
|
||||||
BackgroundColor: 'Background with Pure Color',
|
BackgroundColor: 'Background with Pure Color',
|
||||||
ComplexBackground: 'with Complex Background',
|
ComplexBackground: 'with Complex Background',
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "tools",
|
path: "tools",
|
||||||
name: "toolsPage",
|
name: "tools",
|
||||||
meta: { enter: "all",cache:true },
|
meta: { enter: "all",cache:true },
|
||||||
component: () => import("@/views/HomeView/Tools.vue"),
|
component: () => import("@/views/HomeView/Tools.vue"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user