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
405e37d5
Commit
405e37d5
authored
Dec 22, 2022
by
mengqr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小屏直播试看关注调用支付弹窗
parent
f6e87e3d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1200 additions
and
67 deletions
+1200
-67
api.js
src/axios/api.js
+4
-0
request.js
src/axios/request.js
+2
-2
horn.png
src/common/img/horn.png
+0
-0
shareTips.png
src/common/img/shareTips.png
+0
-0
shareCard.vue
src/components/plugin/shareCard.vue
+31
-12
fullScreen.vue
src/views/fullScreen.vue
+725
-9
live.vue
src/views/live.vue
+433
-39
liveList.vue
src/views/liveList.vue
+5
-5
No files found.
src/axios/api.js
View file @
405e37d5
...
@@ -45,6 +45,10 @@ live: {
...
@@ -45,6 +45,10 @@ live: {
tourist
:
function
(
data
){
tourist
:
function
(
data
){
return
service
.
post
(
'/auth/tourist'
,
data
)
return
service
.
post
(
'/auth/tourist'
,
data
)
},
},
//关注接口
follow
:
function
(
data
){
return
service
.
post
(
'/app/live/followAnchor'
,
data
)
},
//更新试看时间
//更新试看时间
updataTime
:
function
(
data
){
updataTime
:
function
(
data
){
return
service
.
post
(
'/oapi/v1/H5/live/update/duration'
,
data
)
return
service
.
post
(
'/oapi/v1/H5/live/update/duration'
,
data
)
...
...
src/axios/request.js
View file @
405e37d5
...
@@ -9,9 +9,9 @@ const appName = "test5"
...
@@ -9,9 +9,9 @@ const appName = "test5"
const
IS_PROD
=
[
"production"
,
"prod"
].
includes
(
process
.
env
.
NODE_ENV
);
const
IS_PROD
=
[
"production"
,
"prod"
].
includes
(
process
.
env
.
NODE_ENV
);
// 接口路径
// 接口路径
const
BASEURL_TEST
=
'https://
api
.douniu8.com'
const
BASEURL_TEST
=
'https://
test6
.douniu8.com'
// const BASEURL_TEST = 'http://39.105.193.58:8081'
// const BASEURL_TEST = 'http://39.105.193.58:8081'
const
BASEURL_PROD
=
'https://
api
.douniu8.com'
const
BASEURL_PROD
=
'https://
test6
.douniu8.com'
const
CONTRACT_TEST
=
'http://47.95.140.89:9090'
const
CONTRACT_TEST
=
'http://47.95.140.89:9090'
const
CONTRACT_PROD
=
'http://ht.douniu8.com:9090'
const
CONTRACT_PROD
=
'http://ht.douniu8.com:9090'
const
baseURL
=
IS_PROD
?
BASEURL_PROD
:
BASEURL_TEST
;
const
baseURL
=
IS_PROD
?
BASEURL_PROD
:
BASEURL_TEST
;
...
...
src/common/img/horn.png
View replaced file @
f6e87e3d
View file @
405e37d5
758 Bytes
|
W:
|
H:
915 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/common/img/shareTips.png
0 → 100644
View file @
405e37d5
59.2 KB
src/components/plugin/shareCard.vue
View file @
405e37d5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<img
v-if=
"checkType==1"
class=
"style-one"
src=
"../../common/img/card-style-Two.png"
alt=
""
>
<img
v-if=
"checkType==1"
class=
"style-one"
src=
"../../common/img/card-style-Two.png"
alt=
""
>
<img
v-if=
"checkType==2"
class=
"style-one"
src=
"../../common/img/card-style-Three.png"
alt=
""
>
<img
v-if=
"checkType==2"
class=
"style-one"
src=
"../../common/img/card-style-Three.png"
alt=
""
>
<img
class=
"pressShare"
src=
"../../common/img/pressShare.png"
alt=
""
>
<img
class=
"pressShare"
src=
"../../common/img/pressShare.png"
alt=
""
>
<img
class=
"shareTips"
v-if=
"ifTips"
@
click=
"clickTips()"
src=
"../../common/img/shareTips.png"
alt=
""
>
<!-- 信息样式 -->
<!-- 信息样式 -->
<div
v-if=
"checkType==0"
>
<div
v-if=
"checkType==0"
>
<img
class=
"headImg"
:src=
"headPro"
alt=
""
>
<img
class=
"headImg"
:src=
"headPro"
alt=
""
>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<div
@
click=
"checkImg(2)"
class=
"smallThree"
:class=
"
{smallThreeRed:checkType==2,smallThree:checkType!=2}">
<div
@
click=
"checkImg(2)"
class=
"smallThree"
:class=
"
{smallThreeRed:checkType==2,smallThree:checkType!=2}">
<img
class=
"small-img"
src=
"../../common/img/thumbnail-Three.png"
alt=
""
>
<img
class=
"small-img"
src=
"../../common/img/thumbnail-Three.png"
alt=
""
>
</div>
</div>
<div
class=
"clickWechat"
>
<div
@
click=
"clickWechact()"
class=
"clickWechat"
>
<img
class=
"wechactImg"
src=
"../../common/img/wechact-share.png"
alt=
""
>
<img
class=
"wechactImg"
src=
"../../common/img/wechact-share.png"
alt=
""
>
<span
class=
"wechactText"
>
微信
</span>
<span
class=
"wechactText"
>
微信
</span>
</div>
</div>
...
@@ -103,6 +103,7 @@ export default {
...
@@ -103,6 +103,7 @@ export default {
headPro
:
''
,
//头像图片
headPro
:
''
,
//头像图片
udName
:
''
,
//主播名称
udName
:
''
,
//主播名称
lvrImg
:
''
,
//占位图
lvrImg
:
''
,
//占位图
ifTips
:
false
,
//是否显示提示图
liveName
:
''
,
//房间名称
liveName
:
''
,
//房间名称
};
};
},
},
...
@@ -137,6 +138,13 @@ export default {
...
@@ -137,6 +138,13 @@ export default {
// },
// },
//点击微信分享
clickWechact
(){
this
.
ifTips
=
true
},
clickTips
(){
this
.
ifTips
=
false
},
//点击分享按钮
//点击分享按钮
clickShare
(){
clickShare
(){
if
(
this
.
ifShow
==
false
){
if
(
this
.
ifShow
==
false
){
...
@@ -180,7 +188,7 @@ this.imgUrl=window.location.href//二维码地址
...
@@ -180,7 +188,7 @@ this.imgUrl=window.location.href//二维码地址
left
:
0
;
left
:
0
;
width
:
100vw
;
width
:
100vw
;
height
:
50vw
;
height
:
50vw
;
border-radius
:
4vw
;
border-radius
:
4vw
4vw
0
0
;
background
:
white
;
background
:
white
;
}
}
.smallOne
{
.smallOne
{
...
@@ -357,27 +365,30 @@ font-size: 4vw;
...
@@ -357,27 +365,30 @@ font-size: 4vw;
z-index
:
100
;
z-index
:
100
;
}
}
.lvrName
{
.lvrName
{
font-size
:
5vw
;
font-size
:
4vw
;
width
:
68vw
;
position
:
absolute
;
position
:
absolute
;
top
:
10
4
vw
;
top
:
10
2
vw
;
z-index
:
100
;
z-index
:
100
;
left
:
1
8
vw
;
left
:
1
5
vw
;
}
}
.lvrNameTwo
{
.lvrNameTwo
{
font-size
:
5vw
;
font-size
:
3.8vw
;
width
:
66vw
;
position
:
absolute
;
position
:
absolute
;
top
:
10
4
vw
;
top
:
10
2
vw
;
color
:
white
;
color
:
white
;
z-index
:
100
;
z-index
:
100
;
left
:
1
8
vw
;
left
:
1
6
vw
;
}
}
.lvrNameThree
{
.lvrNameThree
{
font-size
:
5
vw
;
font-size
:
3.8
vw
;
position
:
absolute
;
position
:
absolute
;
top
:
103vw
;
top
:
100vw
;
width
:
56vw
;
color
:
white
;
color
:
white
;
z-index
:
100
;
z-index
:
100
;
left
:
2
3
vw
;
left
:
2
1
vw
;
}
}
.pressShare
{
.pressShare
{
height
:
5vw
;
height
:
5vw
;
...
@@ -410,4 +421,12 @@ font-size: 4vw;
...
@@ -410,4 +421,12 @@ font-size: 4vw;
width
:
22vw
;
width
:
22vw
;
z-index
:
100
;
z-index
:
100
;
}
}
.shareTips
{
height
:
100vh
;
width
:
100%
;
position
:
absolute
;
top
:
0
;
z-index
:
110
;
left
:
0
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/fullScreen.vue
View file @
405e37d5
This diff is collapsed.
Click to expand it.
src/views/live.vue
View file @
405e37d5
This diff is collapsed.
Click to expand it.
src/views/liveList.vue
View file @
405e37d5
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<span>
斗牛财经
</span>
<span>
斗牛财经
</span>
<img
v-if=
"ifLog==0"
class=
"portait-not"
src=
"../common/img/not-logged.png"
alt=
""
>
<img
v-if=
"ifLog==0"
class=
"portait-not"
src=
"../common/img/not-logged.png"
alt=
""
>
<img
v-if=
"ifLog==1"
class=
"portait-not"
src=
"../common/img/title_logo.png"
alt=
""
@
click=
"mine"
>
<img
v-if=
"ifLog==1"
class=
"portait-not"
src=
"../common/img/title_logo.png"
alt=
""
@
click=
"mine"
>
<img
v-if=
"ifLog==2"
class=
"portait-not"
:src=
"userImg"
alt=
""
>
<img
v-if=
"ifLog==2"
class=
"portait-not"
:src=
"userImg"
alt=
""
@
click=
"mine"
>
</div>
</div>
<div
class=
"tab"
>
<div
class=
"tab"
>
<span
:class=
"
{free:ifFree,nonefree:!ifFree}" @click="clickFree()">免费
</span>
<span
:class=
"
{free:ifFree,nonefree:!ifFree}" @click="clickFree()">免费
</span>
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
<div
class=
"content"
>
<div
class=
"content"
>
<div
v-if=
"ifFree"
@
click=
"liveDetail(i)"
v-for=
"i in freeList"
:key=
"i.lvrId"
class=
"moudle"
>
<div
v-if=
"ifFree"
@
click=
"liveDetail(i)"
v-for=
"i in freeList"
:key=
"i.lvrId"
class=
"moudle"
>
<img
class=
"recommed-img"
v-if=
"i.ifrecom"
src=
"../common/img/recommend.png"
alt=
""
>
<img
class=
"recommed-img"
v-if=
"i.ifrecom"
src=
"../common/img/recommend.png"
alt=
""
>
<img
class=
"head-img"
src=
"../common/img/wechact.png
"
alt=
""
>
<img
class=
"head-img"
:src=
"i.headPhoto
"
alt=
""
>
<span
class=
"head-name"
>
{{
i
.
udNickname
}}
</span>
<span
class=
"head-name"
>
{{
i
.
udNickname
}}
</span>
<img
class=
"count-img"
src=
"https://customer-img.douniu8.com/1665380604617GPdvMCWnMN.jpg
"
alt=
""
>
<img
class=
"count-img"
:src=
"i.imgLargeUrl
"
alt=
""
>
<img
class=
"liv-img"
v-if=
"i.lvrStatus==1"
src=
"../common/img/living.png"
alt=
""
>
<img
class=
"liv-img"
v-if=
"i.lvrStatus==1"
src=
"../common/img/living.png"
alt=
""
>
<span
class=
"title-message"
>
{{
i
.
lvrName
}}
</span>
<span
class=
"title-message"
>
{{
i
.
lvrName
}}
</span>
<img
class=
"people-img"
src=
"../common/img/people-num.png"
alt=
""
>
<img
class=
"people-img"
src=
"../common/img/people-num.png"
alt=
""
>
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
</div>
</div>
<div
v-if=
"!ifFree"
@
click=
"liveDetail(i)"
v-for=
"i in vipList"
:key=
"i.lvrId"
class=
"moudle"
>
<div
v-if=
"!ifFree"
@
click=
"liveDetail(i)"
v-for=
"i in vipList"
:key=
"i.lvrId"
class=
"moudle"
>
<img
class=
"recommed-img"
v-if=
"i.ifrecom"
src=
"../common/img/recommend.png"
alt=
""
>
<img
class=
"recommed-img"
v-if=
"i.ifrecom"
src=
"../common/img/recommend.png"
alt=
""
>
<img
class=
"head-img"
src=
"../common/img/wechact.png
"
alt=
""
>
<img
class=
"head-img"
:src=
"i.headPhoto
"
alt=
""
>
<span
class=
"head-name"
>
{{
i
.
udNickname
}}
</span>
<span
class=
"head-name"
>
{{
i
.
udNickname
}}
</span>
<img
class=
"count-img"
src=
"https://customer-img.douniu8.com/1665380604617GPdvMCWnMN.jpg
"
alt=
""
>
<img
class=
"count-img"
:src=
"i.imgLargeUrl
"
alt=
""
>
<!--
<img
class=
"liv-img"
v-if=
"ifFree"
src=
"../common/img/living.png"
alt=
""
>
-->
<!--
<img
class=
"liv-img"
v-if=
"ifFree"
src=
"../common/img/living.png"
alt=
""
>
-->
<span
class=
"title-message"
>
{{
i
.
lvrName
}}
</span>
<span
class=
"title-message"
>
{{
i
.
lvrName
}}
</span>
<img
class=
"people-img"
src=
"../common/img/people-num.png"
alt=
""
>
<img
class=
"people-img"
src=
"../common/img/people-num.png"
alt=
""
>
...
...
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