Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
13887559
Commit
13887559
authored
Mar 03, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播
parent
2155e07d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
59 deletions
+54
-59
project.config.json
src/project.config.json
+3
-3
liveVideo.js
src/subPackage/page/pages/liveVideo/liveVideo.js
+27
-53
liveVideo.wxml
src/subPackage/page/pages/liveVideo/liveVideo.wxml
+2
-1
liveVideo.wxss
src/subPackage/page/pages/liveVideo/liveVideo.wxss
+22
-2
No files found.
src/project.config.json
View file @
13887559
...
@@ -546,10 +546,10 @@
...
@@ -546,10 +546,10 @@
"scene"
:
null
"scene"
:
null
},
},
{
{
"id"
:
-1
,
"id"
:
75
,
"name"
:
"
直播空白页
"
,
"name"
:
"
subPackage/page/pages/liveVideo/liveVideo
"
,
"pathName"
:
"subPackage/page/pages/liveVideo/liveVideo"
,
"pathName"
:
"subPackage/page/pages/liveVideo/liveVideo"
,
"query"
:
""
,
"query"
:
"
room_id=1
"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
...
...
src/subPackage/page/pages/liveVideo/liveVideo.js
View file @
13887559
...
@@ -16,55 +16,29 @@ wxService.page({
...
@@ -16,55 +16,29 @@ wxService.page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
if
(
!
options
.
room_id
){
},
wx
.
showToast
({
title
:
'暂无直播信息~'
,
/**
icon
:
'none'
* 生命周期函数--监听页面初次渲染完成
});
*/
onReady
:
function
()
{
return
;
}
},
if
(
!!
options
.
share
)
{
/**
wx
.
navigateTo
({
* 生命周期函数--监听页面显示
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
options
.
room_id
}
`
*/
})
onShow
:
function
()
{
}
wx
.
redirectTo
({
},
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
options
.
room_id
}
`
})
/**
},
* 生命周期函数--监听页面隐藏
})
*/
onHide
:
function
()
{
// 直播开通需要 配置plugin :
// ,
},
// "live-player-plugin": {
// "version": "1.0.0",
/**
// "provider": "wx2b03c6e691cd7370"
* 生命周期函数--监听页面卸载
// }
*/
\ No newline at end of file
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
\ No newline at end of file
src/subPackage/page/pages/liveVideo/liveVideo.wxml
View file @
13887559
<!--subPackage/page/pages/liveVideo/liveVideo.wxml-->
<!--subPackage/page/pages/liveVideo/liveVideo.wxml-->
<
text>subPackage/page/pages/liveVideo/liveVideo.wxml</text
>
<
view class="redirecting">正在跳转到直播间...</view
>
\ No newline at end of file
src/subPackage/page/pages/liveVideo/liveVideo.wxss
View file @
13887559
/* subPackage/page/pages/liveVideo/liveVideo.wxss */
/* subPackage/page/pages/liveVideo/liveVideo.wxss */
\ No newline at end of file
page{
background: #ffffff;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
view{
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.redirecting{
width: 100%;
display: flex;
align-items: center;
height: 50vh;
color: #999999;
font-size: 28rpx;
justify-content: center;
}
\ No newline at end of file
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