This commit is contained in:
X1627315083
2025-09-01 14:03:30 +08:00
parent c387a71ba8
commit 89639aaec9
49 changed files with 819 additions and 232 deletions

View File

@@ -132,7 +132,10 @@
<div class="left" v-show="leftShow">
<svg @click="()=>leftShow=!leftShow" class="leftShowOrHide" xmlns="http://www.w3.org/2000/svg" width="3rem" height="3rem" fill="currentColor" viewBox="0 0 24 24" data-v-1c7326d6=""><path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2V5H6Zm4 0v14h8a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-8ZM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Z" clip-rule="evenodd" data-v-1c7326d6=""></path></svg>
<div class="newObj marginT2" @click="newProject" >
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 25 24"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12.5 5v14m-7-7h14"></path></svg>
<svg width="19" height="16" viewBox="0 0 19 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="9.83398" y1="1" x2="9.83398" y2="15" stroke="black" stroke-width="4" stroke-linecap="round"/>
<path d="M1.5 8H17.5" stroke="black" stroke-width="4" stroke-linecap="round"/>
</svg>
<p style="white-space: nowrap;">{{$t('Header.NewProject')}}</p>
</div>
</div>
@@ -193,7 +196,7 @@
</div>
<div class="homeMain_subscribe">
<div>
<span class="font">Status</span>
<span class="font">{{$t('account.Status')}}</span>
<span v-if="userDetail.timeData.isExpiration" class="stateSucsess font">{{$t('account.Valid')}} <i class="fi fi-ss-check-circle"></i></span>
<span v-else class="stateError font">{{$t('account.Expire')}} <i class="fi fi-ss-check-circle"></i></span>
<span class="time">{{ userDetail.timeData.text }}</span>
@@ -358,7 +361,7 @@ export default defineComponent({
}
watch(() => route.query,
(query, oldQuery) => {
nextTick(()=>{
nextTick(async ()=>{
const key = Object.keys(query)?.[0]
if(key){
if(query.id){
@@ -367,20 +370,30 @@ export default defineComponent({
}else{
homeMainData.openType = Object.keys(query)[0]
homeMainData.openTypeChild = query[Object.keys(query)[0]]
}
if((query?.id || query?.history) && !await getIdExistToHistory()){
router.push('/home')
return
}
}else{
homeMainData.openType = ''
homeMainData.openTypeChild = ''
}
if(query.create == 'true' || query?.source == 'batch')settingGetHistory()
if(
query.create == 'true' ||
query?.source == 'batch' ||
(query.history && query.type == 'Works')
){
settingGetHistory()
}
})
},
{ immediate: true } // 立即触发一次以处理初始参数
);
watch(()=>homeMainData.openTypeList,()=>{
homeMainData.historyData.page = 1
})
// watch(()=>homeMainData.openTypeList,()=>{
// homeMainData.historyData.page = 1
// })
watch(()=>homeMainData.userDetailLanguage,(newVal)=>{
locale.value = newVal
})
@@ -463,12 +476,9 @@ export default defineComponent({
}
const toUserManual = ()=>{
const route = router.resolve({ name: 'userManual' });
window.open(route.href, '_blank');
window.open(route.href + '?lang=' + locale.value, '_blank');
}
onMounted(async ()=>{
if((route.query?.id || route.query?.history) && !await getIdExistToHistory()){
router.push('/home')
}
let test = getCookie('isTest')
let isTest =JSON.parse(test)
//判断账号剩余时间是否太短
@@ -911,7 +921,7 @@ export default defineComponent({
},
//教程
getTutorial(){
let url = 'https://code-create.com.hk/wp-content/uploads/2025/02/aida_3.0-Manual-2_5-CN.pdf'
let url = 'https://aida-user-manual-chinese.super.site/'
if(this.locale == 'ENGLISH'){
url = 'https://code-create.com.hk/wp-content/uploads/2025/02/aida_3.0-Manual-2_5-EN.pdf'
showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2025/02/AiDA-demo-video_2_5_EN.mp4'})
@@ -922,7 +932,7 @@ export default defineComponent({
const a = document.createElement('a');
a.href = url;
a.target = '_blank';
a.download = 'aida_3.0-Manual.pptx'; // 下载的文件名
// a.download = 'aida_3.0-Manual.pptx'; // 下载的文件名
document.body.appendChild(a);
a.click();
},
@@ -1512,7 +1522,8 @@ export default defineComponent({
padding: 0 1.2rem;
border: 1.72px solid #000;
span{
width: 5rem;
// width: 5rem;
max-width: 10rem;
display: inline-block;
overflow: hidden;
display: flex;