Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
N
newLive
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孟庆瑞
newLive
Commits
b506ba57
Commit
b506ba57
authored
Dec 26, 2022
by
jiaoyahui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into newlive_jyh
parents
f6dd3d94
c78ae68c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
18 deletions
+88
-18
request.js
src/axios/request.js
+2
-2
fullScreen.vue
src/views/fullScreen.vue
+82
-13
live.vue
src/views/live.vue
+2
-2
liveList.vue
src/views/liveList.vue
+2
-1
No files found.
src/axios/request.js
View file @
b506ba57
...
...
@@ -9,9 +9,9 @@ const appName = "test5"
const
IS_PROD
=
[
"production"
,
"prod"
].
includes
(
process
.
env
.
NODE_ENV
);
// 接口路径
const
BASEURL_TEST
=
'https://
test6
.douniu8.com'
const
BASEURL_TEST
=
'https://
api
.douniu8.com'
// const BASEURL_TEST = 'http://39.105.193.58:8081'
const
BASEURL_PROD
=
'https://
test6
.douniu8.com'
const
BASEURL_PROD
=
'https://
api
.douniu8.com'
const
CONTRACT_TEST
=
'http://47.95.140.89:9090'
const
CONTRACT_PROD
=
'http://ht.douniu8.com:9090'
const
baseURL
=
IS_PROD
?
BASEURL_PROD
:
BASEURL_TEST
;
...
...
src/views/fullScreen.vue
View file @
b506ba57
...
...
@@ -225,8 +225,8 @@
</div>
<div
v-if=
"imgShow==false"
>
<img
src=
"../common/img/vertical-screen.webp"
style=
"height:100vh;width:100%"
alt=
""
>
<!--
<img
src=
"../common/img/video_play.png"
style=
"height:14vw;width:14vw;position: fixed;top:74vw;left:42vw;"
@
click=
"goLive()"
alt=
""
>
<span
style=
"font-size:4vw;color:white;position: fixed;top:100vw;left:20vw;"
>
直播暂未开始,先看看其它视频吧
</span>
--
>
<!--
<img
src=
"../common/img/video_play.png"
style=
"height:14vw;width:14vw;position: fixed;top:74vw;left:42vw;"
@
click=
"goLive()"
alt=
""
>
-->
<span
v-if=
"buttonType==4"
style=
"font-size:4vw;color:white;position: fixed;top:100vw;left:20vw;"
>
直播暂未开始,先看看其它视频吧
</span
>
</div>
<!-- 登录后观看按钮 -->
<div
v-if=
"buttonType==0"
>
...
...
@@ -859,15 +859,22 @@ this.pten = false
console
.
log
(
"头像"
,
img
)
if
(
token
&&
img
){
// alert("sadfa第三个")
if
(
res
.
data
.
data
.
lvrStatus
==
1
){
//是否购买
if
(
res
.
data
.
data
.
isBuy
==
1
){
this
.
url
=
res
.
data
.
data
.
lvpPullUrl
if
(
res
.
data
.
data
.
lvrIsFree
==
0
){
if
(
res
.
data
.
data
.
lvrStatus
==
1
){
this
.
url
=
res
.
data
.
data
.
lvpPullUrl
this
.
urlStor
=
res
.
data
.
data
.
lvpPullUrl
this
.
imgShow
=
true
//显示直播页面
this
.
buttonType
=
3
}
else
{
if
(
res
.
data
.
data
.
seeDuration
==
0
){
}
else
{
alert
(
"当前直播间未开播"
)
this
.
buttonType
=
4
this
.
imgShow
=
false
//显示暂无主播
}
}
else
{
if
(
res
.
data
.
data
.
isBuy
==
0
){
if
(
res
.
data
.
data
.
lvrStatus
==
1
){
// this.url=res.data.data.lvpPullUrl
// this.urlStor=res.data.data.lvpPullUrl
if
(
res
.
data
.
data
.
seeDuration
==
0
){
this
.
buttonType
=
1
this
.
imgShow
=
false
//显示暂无主播
this
.
url
=
""
...
...
@@ -905,12 +912,74 @@ this.pten = false
}
}
}
}
else
{
this
.
imgShow
=
false
// alert("当前直播间未开播")
this
.
buttonType
=
2
this
.
imgShow
=
false
}
}
else
{
if
(
res
.
data
.
data
.
lvrStatus
==
1
){
this
.
url
=
res
.
data
.
data
.
lvpPullUrl
this
.
urlStor
=
res
.
data
.
data
.
lvpPullUrl
}
else
{
alert
(
"当前直播间未开播"
)
}
}
}
// if(res.data.data.lvrStatus==1){
// //是否购买
// if(res.data.data.isBuy==1){
// this.url=res.data.data.lvpPullUrl
// this.urlStor=res.data.data.lvpPullUrl
// this.imgShow=true//显示直播页面
// this.buttonType=3
// }else{
// if(res.data.data.seeDuration==0){
// this.buttonType=1
// this.imgShow=false//显示暂无主播
// this.url=""
// this.urlStor=""
// }else{
// this.url=res.data.data.lvpPullUrl
// this.urlStor=res.data.data.lvpPullUrl
// this.imgShow=true//显示暂无主播
// this.buttonType=3
// //试看倒计时
// if(timer==0){
// this.countTimes=0
// this.imgShow=false
// this.buttonType=2
// this.url=""
// this.urlStor=""
// }else{
// if (!this.timers) {
// this.countTimes=timer
// this.timers = setInterval(() => {
// if (this.countTimes > 0 && this.countTimes
<=
timer
)
{
// this.countTimes--;
// } else {
// this.countTimes=0
// this.updataTime()
// this.$router.go(0)
// this.buttonType=1
// this.imgShow=false//显示暂无主播
// this.url=""
// this.urlStor=""
// }
// }, 1000)
// }
// }
// }
// }
// }else{
// this.imgShow=false
// alert("当前直播未开播")
// this.buttonType=4
// }
}
else
{
this
.
buttonType
=
0
this
.
imgShow
=
false
...
...
src/views/live.vue
View file @
b506ba57
...
...
@@ -628,8 +628,8 @@ export default {
}
else
{
// this.videoList(1)
// aleart("直播暂未开始")
this
.
buttonType
=
1
//
alert("直播暂未开始")
this
.
buttonType
=
4
alert
(
"直播暂未开始"
)
}
}
else
{
// 付费
...
...
src/views/liveList.vue
View file @
b506ba57
...
...
@@ -88,6 +88,7 @@ export default {
list
.
forEach
(
i
=>
{
i
.
ifrecom
=
true
i
.
imgLargeUrl
=
i
.
lvrRecommendImg
if
(
i
.
lvrIsFree
==
0
){
this
.
freeList
.
push
(
i
)
}
else
{
...
...
@@ -213,7 +214,7 @@ export default {
}
else
{
ifrecom
=
false
}
if
(
i
.
lvrLiveType
==
0
){
if
(
i
.
lvrLiveType
==
1
){
this
.
$router
.
push
(
{
path
:
'/fullScreen'
,
...
...
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