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
3cac5f95
authored
2019-12-17 12:11:00 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
c037ebcf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
10 deletions
src/component/shortcut/shortcut.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/component/shortcut/shortcut.wxml
View file @
3cac5f9
...
...
@@ -2,9 +2,9 @@
<view wx:for="{{types}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn point">
<span class="iconfont {{typeIconMap[item+''] }}"></span>
</view>
<view wx:for="{{pics}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn">
<
!-- <
view wx:for="{{pics}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn">
<image mode="aspectFit" src="{{'../../image/shortcut/'+item+'.png'}}" class="pics ani-tada" />
</view>
</view>
-->
<button class="btn point" wx:if="{{contact}}" open-type="contact" bindcontact="handleContact">
<span class="iconfont iconicon-test3 contact"></span>
</button>
...
...
src/pages/index/index.scss
View file @
3cac5f9
...
...
@@ -45,11 +45,21 @@
right
:
0
;
margin
:
0
auto
;
text-align
:
center
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.7
);
color
:
#ffffff
;
font-size
:
36px
;
font-weight
:
bold
;
@include
ellipsis
(
1
);
}
.tit-bg
{
opacity
:
.5
;
height
:
80px
;
color
:
#ffffff
;
position
:
absolute
;
width
:
100%
;
height
:
110px
;
bottom
:
0
;
background-image
:
linear-gradient
(
to
top
,
#000000
,
#666666
);
}
}
...
...
@@ -94,7 +104,6 @@
}
.tit
{
opacity
:
.8
;
font-size
:
40px
;
height
:
80px
;
line-height
:
80px
;
...
...
@@ -104,11 +113,18 @@
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
// background-color: rgba($color: #000000, $alpha: 0.5);
@include
border-top-radius
(
8px
);
@include
ellipsis
(
1
);
background-image
:
linear-gradient
(
to
bottom
,
#000000
,
#ffffff
);
}
.tit-bg
{
opacity
:
.5
;
height
:
80px
;
color
:
#ffffff
;
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
@include
border-top-radius
(
8px
);
background-image
:
linear-gradient
(
to
top
,
#000000
,
#666666
);
}
.play
{
...
...
src/pages/index/index.wxml
View file @
3cac5f9
...
...
@@ -14,6 +14,7 @@
<block wx:for="{{bannerList}}" wx:key="{{index}}">
<swiper-item>
<image bindtap="onBannerHandler" data-data="{{item}}" data-index="{{index}}" class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
<view class="tit-bg"></view>
<view wx:if="{{curBanner && curBanner.bannerTitle}}" class="tit">
{{curBanner && curBanner.bannerTitle || ""}}
</view>
...
...
@@ -26,6 +27,7 @@
<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-bg"></view>
<view class="tit">{{item.videoName}}</view>
<div class="play">
<span class="iconfont iconplay"></span>
...
...
src/pages/personal-list/personal-list.scss
View file @
3cac5f9
...
...
@@ -80,7 +80,6 @@
width
:
$contentWidth
;
pointer-events
:
none
;
}
.tit
{
font-size
:
40px
;
height
:
80px
;
...
...
@@ -91,10 +90,18 @@
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.5
);
@include
border-top-radius
(
8px
);
@include
ellipsis
(
1
);
}
.tit-bg
{
opacity
:
.5
;
height
:
80px
;
color
:
#ffffff
;
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
@include
border-top-radius
(
8px
);
background-image
:
linear-gradient
(
to
top
,
#000000
,
#666666
);
}
.play
{
...
...
src/pages/personal-list/personal-list.wxml
View file @
3cac5f9
...
...
@@ -13,6 +13,7 @@
<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-bg"></view>
<view class="tit">{{item.videoName}}</view>
<div class="play">
<span class="iconfont iconplay"></span>
...
...
Please
register
or
sign in
to post a comment