Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
65a30295
Commit
65a30295
authored
Aug 07, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除没有用到的方法
parent
526de358
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
59 deletions
+16
-59
src/components/AddVideoPlay.vue
+1
-9
src/hooks/useCopy.ts
+1
-1
src/layouts/components/Content.vue
+11
-11
src/pages/ImageCustomization/components/MyDigitalPerson.vue
+0
-3
src/pages/OnlyVideoLive/index.vue
+1
-1
src/pages/createLive/components/scripts.vue
+1
-25
src/pages/home/components/digitalPeopleDiaog.vue
+0
-3
src/pages/home/components/digitalPeopleDraft.vue
+0
-4
src/pages/startLive/components/video.vue
+0
-1
src/utils/audio.ts
+1
-1
No files found.
src/components/AddVideoPlay.vue
View file @
65a30295
...
...
@@ -50,7 +50,6 @@ import { useStore } from 'vuex';
import
Loading
from
'@/components/Loading/FirstCircle.vue'
;
import
{
onBeforeRouteLeave
}
from
'vue-router'
;
import
{
injectWindow
}
from
'@/utils/pyqt'
;
import
{
show_message
}
from
'@/utils/tool'
;
import
{
scriptTypePhonetics
}
from
'@/service/CreateLive'
;
const
props
=
withDefaults
(
...
...
@@ -78,16 +77,12 @@ const liveVideoStatus = computed(() => store.getters['live/getLiveVideoStatus'])
// 视频类型
const
liveInfo
=
ref
({});
const
loop
=
ref
(
false
);
const
footerStatus
=
ref
(
false
);
const
showFirstVideo
=
ref
(
true
);
// 第二个视频是否播放
const
videoSecondPlay
=
ref
(
false
);
const
confirmVisible
=
ref
(
true
);
// 第一个视频是否首次播放
const
videoFirstPlay
=
ref
(
true
);
// 第二个视频是否首次播放
const
videoSecondFirstPlay
=
ref
(
true
);
...
...
@@ -99,8 +94,7 @@ const currentPlayMainIndex = ref(props.playMainIndex);
*/
// 主视频
const
videoFirst
=
ref
<
HTMLVideoElement
>
();
// 下一个主视频,加载完成才显示--两个主视频标签相互替换
const
videoFirstAckup
=
ref
<
HTMLVideoElement
>
();
// 互动视频
const
videoSecond
=
ref
<
HTMLVideoElement
>
();
...
...
@@ -113,8 +107,6 @@ const secondVideoVolume = ref(initVolume);
let
interval
=
null
;
const
total
=
ref
(
0
);
// 离开前先关闭弹窗
onBeforeRouteLeave
((
to
,
from
,
next
)
=>
{
confirmVisible
.
value
=
false
;
...
...
src/hooks/useCopy.ts
View file @
65a30295
...
...
@@ -24,7 +24,7 @@ export default function () {
.
then
(()
=>
{
show_message
(
'复制成功'
,
'success'
);
})
.
catch
((
error
)
=>
{
.
catch
(()
=>
{
show_message
(
'复制失败'
,
'error'
);
});
}
...
...
src/layouts/components/Content.vue
View file @
65a30295
...
...
@@ -51,19 +51,19 @@ watch(
},
);
const
getKey
=
()
=>
{
return
route
.
name
;
};
//
const getKey = () => {
//
return route.name;
//
};
// 当前路由是否缓存
const
routeCache
=
()
=>
{
let
path
=
route
.
path
;
let
index
=
keepAliveList
.
value
.
findIndex
((
item
:
any
)
=>
item
.
path
==
path
);
if
(
index
!==
-
1
&&
keepAliveList
.
value
[
index
].
cache
)
{
return
true
;
}
return
false
;
};
//
const routeCache = () => {
//
let path = route.path;
//
let index = keepAliveList.value.findIndex((item: any) => item.path == path);
//
if (index !== -1 && keepAliveList.value[index].cache) {
//
return true;
//
}
//
return false;
//
};
</
script
>
<
style
lang=
"less"
>
...
...
src/pages/ImageCustomization/components/MyDigitalPerson.vue
View file @
65a30295
...
...
@@ -54,13 +54,10 @@ import Button from '@/components/Button.vue';
import
Loading
from
'@/components/loading.vue'
;
import
CardOne
from
'@/components/cardOne.vue'
;
import
{
onMounted
,
reactive
,
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
routerConfig
from
'@/router/tool'
;
import
{
getDigitalPeopleList
}
from
'@/service/Common'
;
import
{
LIVE_AUDIT_STATUS
}
from
'@/service/Live'
;
import
{
jumpToCreateLivePage
}
from
'@/router/jump'
;
const
router
=
useRouter
();
const
personList
=
reactive
({
list
:
[],
});
...
...
src/pages/OnlyVideoLive/index.vue
View file @
65a30295
...
...
@@ -19,7 +19,7 @@
</
template
>
<
script
lang=
"ts"
setup
>
import
{
computed
,
onBeforeUnmount
,
onMounted
,
ref
,
watch
}
from
'vue'
;
import
{
onBeforeUnmount
,
onMounted
,
ref
,
watch
}
from
'vue'
;
import
AddVideoPlay
from
'@/components/AddVideoPlay.vue'
;
import
{
getLiveDetail
,
closeLiveTask
}
from
'@/utils/api/userApi'
;
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
...
...
src/pages/createLive/components/scripts.vue
View file @
65a30295
...
...
@@ -164,13 +164,6 @@
label=
"选择音频"
@
change=
"createUploadFile"
></MultipleUpload>
<!-- <CustomUpload
v-model="mp3Url"
:showOldName="true"
:uploadInfo="uploadInfo"
:config="ossConfig"
@change="createUploadFile"
></CustomUpload> -->
</div>
</ScriptTemplate>
</div>
...
...
@@ -189,22 +182,19 @@
</template>
<
script
lang=
"tsx"
setup
>
import
{
computed
,
on
Activated
,
onBeforeMount
,
on
Mounted
,
reactive
,
ref
,
watch
}
from
'vue'
;
import
{
computed
,
onMounted
,
reactive
,
ref
,
watch
}
from
'vue'
;
import
Button
from
'@/components/Button.vue'
;
import
MultipleUpload
from
'@/components/MultipleUpload'
;
import
CheckBox
from
'@/components/CheckBox.vue'
;
import
ConfirmDialog
from
'@/components/ConfirmDialog.vue'
;
import
TextScriptDialog
from
'./TextScriptDialog.vue'
;
import
ScriptTemplate
from
'@/components/ScriptTemplate.vue'
;
import
CustomUpload
from
'@/components/upload'
;
import
Select
from
'@/components/Select.vue'
;
import
SelectionPopup
from
'@/components/SelectionPopup.vue'
;
import
{
show_message
,
isDev
}
from
'@/utils/tool'
;
import
{
createLiveKeys
,
scriptTypeList
,
scriptTypeText
,
scriptTypePhonetics
}
from
'@/service/CreateLive'
;
import
{
useLiveInfoSubmit
}
from
'@/hooks/useStoreCommit'
;
import
Textarea
from
'@/components/textarea.vue'
;
import
{
getUploadConfig
,
getTonesList
}
from
'@/service/Common'
;
import
{
v4
}
from
'uuid'
;
import
{
useStore
}
from
'vuex'
;
import
{
useRoute
}
from
'vue-router'
;
import
useCopy
from
'@/hooks/useCopy'
;
...
...
@@ -279,13 +269,6 @@ const ossConfig = ref({});
const
mp3Url
=
ref
(
''
);
// 多选文件列表
const
mp3UrlList
=
ref
([]);
const
uploadInfo
=
{
label1
:
'选择音频'
,
label2
:
'或拖音频到此处上传'
,
buttonLabel
:
'选择音频'
,
successIcon
:
imgs
.
success
,
successButtonLabel
:
'替换音频'
,
};
// 音频 我的音色
const
phoneticsVisible
=
ref
(
false
);
...
...
@@ -596,13 +579,6 @@ const phoneticsItemChange = (item: any) => {
});
};
// 文本提交
const
textareaChange
=
()
=>
{
commitInfo
({
[
createLiveKeys
.
textScriptValue
]:
textareaValue
.
value
,
});
};
// 脚本类型提交
const
scriptTypeChange
=
(
id
:
string
|
number
)
=>
{
commitInfo
({
...
...
src/pages/home/components/digitalPeopleDiaog.vue
View file @
65a30295
...
...
@@ -50,8 +50,6 @@ import CardOne from '@/components/cardOne.vue';
import
Button
from
'@/components/Button.vue'
;
import
Dialog
from
'@/components/Dialog.vue'
;
import
{
ref
,
watch
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
routerConfig
from
'@/router/tool'
;
import
{
jumpToCreateLivePage
}
from
'@/router/jump'
;
const
props
=
withDefaults
(
...
...
@@ -65,7 +63,6 @@ const props = withDefaults(
const
emit
=
defineEmits
([
'update:modelValue'
]);
const
visible
=
ref
(
props
.
modelValue
);
const
router
=
useRouter
();
// 当前选择的数字人
const
currentCard
=
ref
(
''
);
...
...
src/pages/home/components/digitalPeopleDraft.vue
View file @
65a30295
...
...
@@ -34,13 +34,9 @@ import CustomLoading from '@/components/loading.vue';
import
Button
from
'@/components/Button.vue'
;
import
{
getDraftsList
,
deleteDrafts
}
from
'@/utils/api/userApi'
;
import
{
onUpdateDrafts
}
from
'@/service/Common'
;
import
{
useRouter
}
from
'vue-router'
;
import
routerConfig
from
'@/router/tool'
;
import
{
show_message
}
from
'@/utils/tool'
;
import
{
jumpToCreateLivePage
}
from
'@/router/jump'
;
const
router
=
useRouter
();
const
myDigtalList
=
reactive
({
list
:
[],
loading
:
false
,
...
...
src/pages/startLive/components/video.vue
View file @
65a30295
...
...
@@ -25,7 +25,6 @@ const props = withDefaults(
playId
:
0
,
},
);
const
videoRef1
=
ref
<
HTMLVideoElement
>
();
let
interval1
=
null
;
const
progress
=
ref
(
0
);
...
...
src/utils/audio.ts
View file @
65a30295
import
{
downloadBlobFile
,
show_message
}
from
'./tool'
;
import
{
show_message
}
from
'./tool'
;
import
{
v4
}
from
'uuid'
;
export
const
createAudioContext
=
()
=>
{
return
new
(
window
.
AudioContext
||
window
.
webkitAudioContext
)();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment