Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
866f257d
authored
2019-12-23 20:48:01 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
271bf4a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
src/app.js
src/pages/detail/detail.js
src/pages/detail/detail.wxml
src/pages/index/index.js
src/app.js
View file @
866f257
...
...
@@ -43,11 +43,12 @@ App({
this
.
globalData
.
statusBarHeight
=
wx
.
getSystemInfoSync
().
statusBarHeight
;
this
.
globalData
.
barHeight
=
height
;
this
.
share
();
// 打点
this
.
stat
({
classify
:
"minipro"
,
action
:
"detail_page"
,
primaryCode
:
""
,
})
})
;
},
globalData
:
{
share
:
false
,
...
...
src/pages/detail/detail.js
View file @
866f257
...
...
@@ -44,6 +44,9 @@ Page({
});
this
.
queryVideoDetail
();
this
.
initData
();
},
/**
...
...
@@ -163,6 +166,13 @@ Page({
* 视频详情
*/
queryVideoDetail
()
{
// 打点
app
.
stat
({
classify
:
"page"
,
action
:
"detail_page"
,
primaryCode
:
this
.
data
.
options
.
c
,
});
return
new
Promise
((
resolve
,
reject
)
=>
{
app
.
post
({
url
:
app
.
api
.
videoDetail
,
...
...
src/pages/detail/detail.wxml
View file @
866f257
...
...
@@ -63,10 +63,6 @@
<view class="tit">{{item.videoName}}</view>
<image class="poster" src="{{item.thumbnail}}" />
</view>
<!-- <view wx:for="{{2}}" wx:key="{{index}}" class="more-list-item">
<view class="tit">新政策来了!家有小孩的都要过来看看</view>
<image class="poster" src="https://kd.cdn.xyiyang.com/pro/mzczcradmin/008194acee794506aac4c7200ce654dc.jpg" />
</view> -->
</view>
</view>
<!-- 返回首页按钮 -->
...
...
src/pages/index/index.js
View file @
866f257
...
...
@@ -224,6 +224,14 @@ Page({
* 获取banner列表
*/
queryBannerList
()
{
// 打点
app
.
stat
({
classify
:
"page"
,
action
:
"tab_page"
,
primaryCode
:
this
.
data
.
curTab
.
tabCode
||
""
});
return
new
Promise
((
resolve
,
reject
)
=>
{
app
.
post
({
sid
:
false
,
...
...
Please
register
or
sign in
to post a comment