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
4fe4fc23
authored
2019-12-02 17:50:03 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
be65ff3c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
113 additions
and
79 deletions
src/app.scss
src/assets/scss/_utils.scss
src/pages/detail/detail.scss
src/pages/detail/detail.wxml
src/pages/index/index.scss
src/pages/index/index.wxml
src/pages/personal-list/personal-list.scss
src/pages/personal-list/personal-list.wxml
src/app.scss
View file @
4fe4fc2
This diff is collapsed.
Click to expand it.
src/assets/scss/_utils.scss
View file @
4fe4fc2
...
...
@@ -40,8 +40,7 @@
}
.shadow
{
box-shadow
:
0
6px
18px
0
rgba
(
0
,
0
,
0
,
0
.10
);
border-radius
:
8px
;
box-shadow
:
0
10px
10px
0
rgba
(
0
,
0
,
0
,
0
.6
);
}
.linear
{
...
...
src/pages/detail/detail.scss
View file @
4fe4fc2
...
...
@@ -22,7 +22,7 @@
.detail
{
position
:
relative
;
width
:
100%
;
height
:
944px
;
//
height: 944px;
background-color
:
#333333
;
text-align
:
center
;
...
...
@@ -32,7 +32,6 @@
// padding-top: 20px;
width
:
100%
;
height
:
720px
;
// background-color: wheat;
.vid
{
text-align
:
center
;
...
...
@@ -40,12 +39,16 @@
height
:
100%
;
}
}
}
.share
{
position
:
relative
;
width
:
100%
;
padding
:
24px
auto
;
.btn-wrap
{
p
osition
:
absolute
;
p
adding
:
24px
0
;
color
:
#ffffff
;
// margin: 40px auto 0;
bottom
:
64px
;
left
:
0
;
right
:
0
;
...
...
@@ -128,8 +131,9 @@
display
:
flex
;
.btn
{
margin-right
:
24px
;
width
:
200px
;
// margin-right: 24px;
margin
:
0
0
;
width
:
240px
;
height
:
80px
;
font-size
:
32px
;
background-color
:
#3ec03c
;
...
...
@@ -159,6 +163,7 @@
}
}
}
...
...
@@ -168,7 +173,7 @@
@extend
.bb
;
padding
:
0
24px
;
font-size
:
36px
;
margin
:
0px
auto
24
px
;
margin
:
24px
auto
0
px
;
}
// 广告
...
...
@@ -204,16 +209,16 @@
.tit
{
@extend
.bb
;
padding
:
24
px
0
;
height
:
23
0px
;
padding
:
8
px
0
;
height
:
18
0px
;
flex
:
1
;
font-size
:
36
px
;
@include
ellipsis
(
4
);
font-size
:
40
px
;
@include
ellipsis
(
3
);
}
.poster
{
width
:
350px
;
height
:
23
0px
;
height
:
18
0px
;
border-radius
:
8px
;
}
}
...
...
src/pages/detail/detail.wxml
View file @
4fe4fc2
...
...
@@ -9,8 +9,10 @@
<view class="vid-wrap">
<video objectFit="contain" class="vid" poster="{{detailData.thumbnail}}" src="{{detailData.videoUrl}}" />
</view>
</view>
<div class="share">
<view class="btn-wrap">
<button open-type="share" class="
ani-scl
btn btn2">
<button open-type="share" class=" btn btn2">
<span class="t1 iconfont iconplane"></span>
<span class="t1">分享给好友</span>
</button>
...
...
@@ -19,7 +21,9 @@
<span class="t1">分享到群</span>
</button>
</view>
</view>
</div>
<!-- 功能区小标题 -->
<view class="fc-tit">超有创意的全家福,看了你也想拍!</view>
<!-- 功能区 -->
<view class="func">
<view bindtap="toPersonalList" class="user">
...
...
@@ -30,17 +34,12 @@
</view>
</view>
<view class="btn-wrap">
<view class="btn btn2">
<span>更多推荐</span>
</view>
<!-- <view class="btn">
<view bindtap="toIndex" class="index-btn btn">
<span class="t1 iconfont iconhome"></span>
<span>
返回
首页</span>
</view>
-->
<span>
回到
首页</span>
</view>
</view>
</view>
<!-- 功能区小标题 -->
<view class="fc-tit">超有创意的全家福,看了你也想拍!</view>
<!-- 广告 -->
<!-- 装饰物 -->
<view class="decoration">
...
...
src/pages/index/index.scss
View file @
4fe4fc2
...
...
@@ -19,23 +19,18 @@
height
:
0px
;
}
.content
{
position
:
relative
;
padding-top
:
24px
;
}
.banner
{
position
:
relative
;
line-height
:
140px
;
.swiper
{
width
:
$contentWidth
;
height
:
32
0px
;
width
:
750px
;
height
:
28
0px
;
margin
:
0
auto
;
.swiper-image
{
width
:
$contentWidth
;
height
:
32
0px
;
width
:
750px
;
height
:
28
0px
;
}
}
...
...
@@ -57,12 +52,21 @@
}
}
.content
{
position
:
relative
;
padding-top
:
10px
;
}
.list
{
position
:
relative
;
margin
:
0
auto
;
width
:
$contentWidth
;
&
-item
{
// @extend .shadow;
box-shadow
:
0
6px
10px
0
rgba
(
0
,
0
,
0
,
0
.6
);
@include
border-top-radius
(
16px
);
position
:
relative
;
background-color
:
#ffffff
;
border-radius
:
16px
;
...
...
@@ -75,8 +79,10 @@
width
:
$contentWidth
;
background-color
:
#dddddd
;
.img
{
.img
{
width
:
$contentWidth
;
height
:
320px
;
@include
border-top-radius
(
16px
);
}
.vid
{
...
...
@@ -86,7 +92,7 @@
}
.tit
{
font-size
:
34
px
;
font-size
:
40
px
;
height
:
80px
;
line-height
:
80px
;
color
:
#ffffff
;
...
...
@@ -95,31 +101,40 @@
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.
6
);
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.
5
);
@include
border-top-radius
(
8px
);
@include
ellipsis
(
1
);
}
.iconfont
{
font-size
:
160px
;
.play
{
@extend
.fcc
;
width
:
132px
;
height
:
132px
;
border-radius
:
132px
;
font-weight
:
normal
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
160
px
;
top
:
72
px
;
margin
:
0
auto
;
text-align
:
center
;
font-weight
:
bold
;
// color: #efefef;
color
:
#ffffff
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.7
);
.iconfont
{
font-size
:
48px
;
color
:
#ffffff
;
margin-left
:
12px
;
}
}
}
&
-func
{
@extend
.bb
;
padding
:
24
px
24px
;
height
:
120px
;
padding
:
12
px
24px
;
//
height: 120px;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
@@ -176,4 +191,3 @@
border-width
:
0
;
}
}
...
...
src/pages/index/index.wxml
View file @
4fe4fc2
...
...
@@ -9,33 +9,35 @@
<van-tab wx:for="{{tabList}}" wx:key="{{index}}" title="{{item.tabName}}"></van-tab>
</van-tabs>
</van-sticky>
<view class="content">
<view class="banner" wx:if="{{bannerList && bannerList.length>0}}">
<swiper bindchange="onBannerChangeHandler" class="swiper" indicator-color="rgba(0,0,0,.3)" indicator-active-color="rgba(255,255,255,1)" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{5000}}" duration="{{500}}">
<block wx:for="{{bannerList}}" wx:key="{{index}}">
<swiper-item>
<image bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
</swiper-item>
</block>
</swiper>
<view wx:if="{{curBanner && curBanner.bannerTitle}}" class="tit">
{{curBanner && curBanner.bannerTitle || ""}}
</view>
<!-- <view class="tit">名字</view> -->
<view class="banner" wx:if="{{bannerList && bannerList.length>0}}">
<swiper bindchange="onBannerChangeHandler" class="swiper" indicator-color="rgba(0,0,0,.3)" indicator-active-color="rgba(255,255,255,1)" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{5000}}" duration="{{500}}">
<block wx:for="{{bannerList}}" wx:key="{{index}}">
<swiper-item>
<image bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
</swiper-item>
</block>
</swiper>
<view wx:if="{{curBanner && curBanner.bannerTitle}}" class="tit">
{{curBanner && curBanner.bannerTitle || ""}}
</view>
<!-- <view class="tit">名字</view> -->
</view>
<view class="content">
<view class="list">
<view wx:for="{{dataList}}" wx:key="index" class="list-item">
<view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="list-item-video">
<image class="img" src="{{item.thumbnail}}" mode="aspectFill" />
<view class="tit">{{item.videoName}}</view>
<span class="iconfont iconicon-test16"></span>
<div class="play">
<span class="iconfont iconplay"></span>
</div>
</view>
<view class="list-item-func">
<view bindtap="
toPersonalList
" data-data="{{item}}" data-index="{{index}}" class="user">
<view bindtap="
onDetailHandler
" data-data="{{item}}" data-index="{{index}}" class="user">
<image class="portrait" mode="aspectFill" src="{{item.headImage}}" />
<text class="name">{{item.accountName || ""}}</text>
</view>
<button class="share
ani-scl
" open-type="share">
<button class="share" open-type="share">
<span class="t1 iconfont iconwechat"></span>
<span class="t1">分享</span>
</button>
...
...
src/pages/personal-list/personal-list.scss
View file @
4fe4fc2
...
...
@@ -54,6 +54,9 @@
width
:
$contentWidth
;
&
-item
{
// @extend .shadow;
box-shadow
:
0
6px
10px
0
rgba
(
0
,
0
,
0
,
0
.6
);
@include
border-top-radius
(
16px
);
position
:
relative
;
background-color
:
#ffffff
;
border-radius
:
16px
;
...
...
@@ -66,8 +69,10 @@
width
:
$contentWidth
;
background-color
:
#dddddd
;
.img
{
.img
{
width
:
$contentWidth
;
height
:
320px
;
@include
border-top-radius
(
16px
);
}
.vid
{
...
...
@@ -77,7 +82,7 @@
}
.tit
{
font-size
:
34
px
;
font-size
:
40
px
;
height
:
80px
;
line-height
:
80px
;
color
:
#ffffff
;
...
...
@@ -86,31 +91,40 @@
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.
6
);
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.
5
);
@include
border-top-radius
(
8px
);
@include
ellipsis
(
1
);
}
.iconfont
{
font-size
:
160px
;
.play
{
@extend
.fcc
;
width
:
132px
;
height
:
132px
;
border-radius
:
132px
;
font-weight
:
normal
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
160
px
;
top
:
72
px
;
margin
:
0
auto
;
text-align
:
center
;
font-weight
:
bold
;
// color: #efefef;
color
:
#ffffff
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.7
);
.iconfont
{
font-size
:
48px
;
color
:
#ffffff
;
margin-left
:
12px
;
}
}
}
&
-func
{
@extend
.bb
;
padding
:
24
px
24px
;
height
:
120px
;
padding
:
12
px
24px
;
//
height: 120px;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
src/pages/personal-list/personal-list.wxml
View file @
4fe4fc2
...
...
@@ -9,20 +9,21 @@
<image class="portrait" mode="aspectFill" src="{{personInfo.headImage}}" />
</view>
<view class="content">
<view class="list">
<view class="list">
<view wx:for="{{dataList}}" wx:key="index" class="list-item">
<view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="list-item-video">
<view class="tit">{{item.videoName}}</view> -->
<image src="{{item.thumbnail}}" mode="aspectFill" />
<image class="img" src="{{item.thumbnail}}" mode="aspectFill" />
<view class="tit">{{item.videoName}}</view>
<span class="iconfont iconicon-test16"></span>
<div class="play">
<span class="iconfont iconplay"></span>
</div>
</view>
<view class="list-item-func">
<view class="user">
<image class="portrait" mode="aspectFill" src="{{
personInfo
.headImage}}" />
<text class="name">{{
personInfo
.accountName || ""}}</text>
<view
bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}"
class="user">
<image class="portrait" mode="aspectFill" src="{{
item
.headImage}}" />
<text class="name">{{
item
.accountName || ""}}</text>
</view>
<button class="share
ani-scl
" open-type="share">
<button class="share" open-type="share">
<span class="t1 iconfont iconwechat"></span>
<span class="t1">分享</span>
</button>
...
...
Please
register
or
sign in
to post a comment