视频页面加入用户指引 detail添加
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
<model
|
||||
ref="model"
|
||||
:key="positionKey"
|
||||
|
||||
@canvasReload="canvasReload"
|
||||
@detailEdit="detailEdit"
|
||||
@addSketch="()=>isEditPattern.value = ''"
|
||||
@@ -495,8 +496,16 @@ export default defineComponent({
|
||||
},1000)
|
||||
}
|
||||
const sketchSysToLibrary = ()=>{//系统sketch添加到library更新library
|
||||
coverRevocation()
|
||||
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(()=>{
|
||||
window.addEventListener('resize', handleResize);
|
||||
})
|
||||
|
||||
@@ -118,6 +118,7 @@ export default defineComponent({
|
||||
detailData.selectTitle = 'upload'
|
||||
}
|
||||
const openLibrary = ()=>{
|
||||
if(detailData.selectTitle == 'library')return
|
||||
detailData.selectTitle = 'library'
|
||||
getDetailListDom.libraryList.init()
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ export default defineComponent({
|
||||
storeData.positionList = position
|
||||
store.commit('setProbject',storeData)
|
||||
// setChatData()
|
||||
if(route.name == 'toolsPage'){
|
||||
if(route.name == 'tools'){
|
||||
getCollection('tools',null)
|
||||
}else{
|
||||
getCollection('design',null)
|
||||
|
||||
@@ -168,7 +168,15 @@
|
||||
</div>
|
||||
</div>
|
||||
<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" />
|
||||
</div>
|
||||
<div class="poses" v-show="showMotion">
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
@click.stop="handleDownload(item)"
|
||||
/>
|
||||
<div class="text">
|
||||
{{ $t('ProductImg.EditGarmen') }}:
|
||||
{{ promptPage == 3 ? $t('ProductImg.EditGarmen2') : $t('ProductImg.EditGarmen') }}:
|
||||
</div>
|
||||
</div>
|
||||
<div class="example-item"
|
||||
@@ -285,10 +285,14 @@ const setNextOrPrevious = (type) => {
|
||||
if(status.value == 0){
|
||||
status.value = 1
|
||||
}else{
|
||||
const startIndex = (promptPage.value - 1) * 4;
|
||||
if(startIndex + 4 >= promptList.value.length){
|
||||
return
|
||||
}
|
||||
promptPage.value++
|
||||
}
|
||||
}
|
||||
if(promptPage.value > 0)presentList.value = setPresentList()
|
||||
if(promptPage.value > 0)presentList.value = setPresentList(4)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ export default defineComponent({
|
||||
(query:any, oldQuery:any) => {
|
||||
if(oldQuery && query == oldQuery)return
|
||||
const key = Object.keys(query)?.[0]
|
||||
if(route.name == 'toolsPage' && key){
|
||||
if(route.name == 'tools' && key){
|
||||
data.openType = query[key]
|
||||
nextTick(()=>{
|
||||
open(query[key])
|
||||
|
||||
@@ -288,7 +288,8 @@ export default {
|
||||
CopyFiled: '复制失败',
|
||||
noPrompt: '请输入提示词',
|
||||
OriginalImage: '原始图像',
|
||||
EditGarmen: '您可以编辑这件服装',
|
||||
EditGarmen: '您可以编辑这件模型',
|
||||
EditGarmen2: '您可以编辑这件场景',
|
||||
Background: '白色背景',
|
||||
BackgroundColor: '纯色背景',
|
||||
ComplexBackground: '复杂背景',
|
||||
|
||||
@@ -298,7 +298,8 @@ export default {
|
||||
CopyFiled: 'Failed to copy',
|
||||
noPrompt: 'Please enter prompt',
|
||||
OriginalImage: 'Original Image',
|
||||
EditGarmen: 'You can edit the garmen',
|
||||
EditGarmen: 'You can edit the Model',
|
||||
EditGarmen2: 'You can edit the Scene',
|
||||
Background: 'White Background',
|
||||
BackgroundColor: 'Background with Pure Color',
|
||||
ComplexBackground: 'with Complex Background',
|
||||
|
||||
@@ -67,7 +67,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
children: [
|
||||
{
|
||||
path: "tools",
|
||||
name: "toolsPage",
|
||||
name: "tools",
|
||||
meta: { enter: "all",cache:true },
|
||||
component: () => import("@/views/HomeView/Tools.vue"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user