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
da9a4f1f
authored
2019-11-27 20:37:16 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
d32de68d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
17 deletions
src/app.scss
src/assets/scss/_var.scss
src/component/shortcut/shortcut.wxml
src/pages/detail/detail.wxml
src/pages/index/index.scss
src/pages/index/index.wxml
src/pages/personal-list/personal-list.wxml
src/app.scss
View file @
da9a4f1
...
...
@@ -12,6 +12,8 @@
// 原子类
@import
"assets/scss/utils"
;
@import
"assets/scss/animate"
;
// 图标
// @import 'styles/iconfont.wxss';
...
...
@@ -29,6 +31,7 @@
box-sizing
:
border-box
;
font-family
:
-
apple-system-font
,
Helvetica
Neue
,
Helvetica
,
sans-serif
,
FZY3JW-GB1-0
;
color
:
#333333
;
font-size
:
36px
;
}
button
:
:
after
{
...
...
@@ -101,14 +104,42 @@ button {
.red-p
{
.comp
{
bottom
:
auto
;
top
:
15
%
;
top
:
50
%
;
}
}
.van-tab
{
font-size
:
32
px
!
important
;
font-size
:
40
px
!
important
;
font-weight
:
bold
!
important
;
color
:
#444444
!
important
;
padding
:
0
32px
!
important
;
}
.ani-tada
{
animation
:
tada
2s
infinite
;
}
.ani-scl
{
animation
:
ani-scal-key
2s
infinite
;
}
@keyframes
ani-scal-key
{
0
%
{
transform
:
scale
(
1
);
}
25
%
{
transform
:
scale
(
1
.1
);
}
50
%
{
transform
:
scale
(
1
);
}
75
%
{
transform
:
scale
(
1
.1
);
}
}
...
...
@@ -126,6 +157,7 @@ button {
font-style
:
normal
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
font-weight
:
normal
!
important
;
}
.iconclose1
:before
{
...
...
src/assets/scss/_var.scss
View file @
da9a4f1
...
...
@@ -23,4 +23,4 @@ $fontSizeLarger: 44px;
$colorMain
:
#3680EB
;
$pageBottom
:
80px
;
$contentWidth
:
69
0px
;
$contentWidth
:
73
0px
;
...
...
src/component/shortcut/shortcut.wxml
View file @
da9a4f1
...
...
@@ -3,6 +3,6 @@
<span class="iconfont {{typeIconMap[item+''] }}"></span>
</view>
<view wx:for="{{pics}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn">
<image mode="aspectFit" src="
../../image/shortcut/red-package.png" class="pics
" />
<image mode="aspectFit" src="
{{'../../image/shortcut/'+item+'.png'}}" class="pics ani-tada
" />
</view>
</view>
...
...
src/pages/detail/detail.wxml
View file @
da9a4f1
...
...
@@ -8,11 +8,11 @@
<view class="detail">
<video objectFit="cover" class="vid" poster="{{detailData.thumbnail}}" src="{{detailData.videoUrl}}" />
<view class="btn-wrap">
<button open-type="share" class="
btn
">
<button open-type="share" class="
btn btn2
">
<span class="t1 iconfont iconplane"></span>
<span class="t1">分享给好友</span>
</button>
<button open-type="share" class="
btn btn2
">
<button open-type="share" class="
ani-scl btn
">
<span class="t1 iconfont iconplane"></span>
<span class="t1">分享到群</span>
</button>
...
...
src/pages/index/index.scss
View file @
da9a4f1
...
...
@@ -2,11 +2,11 @@
@import
'../../assets/scss/utils'
;
.page
{
$contentWidth
:
67
0px
;
$contentWidth
:
73
0px
;
padding-bottom
:
$pageBottom
;
color
:
#333333
;
font-
size
:
24px
;
font-
weight
:
bold
;
.bgc
{
background-color
:
#efefef
;
...
...
@@ -30,12 +30,12 @@
.swiper
{
width
:
$contentWidth
;
height
:
28
0px
;
height
:
32
0px
;
margin
:
0
auto
;
.swiper-image
{
width
:
$contentWidth
;
height
:
25
0px
;
height
:
32
0px
;
}
}
...
...
@@ -43,15 +43,16 @@
position
:
absolute
;
bottom
:
12px
;
width
:
750px
;
height
:
64
px
;
line-height
:
64
px
;
height
:
80
px
;
line-height
:
80
px
;
left
:
0
;
right
:
0
;
margin
:
0
auto
;
text-align
:
center
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.7
);
color
:
#ffffff
;
font-size
:
30px
;
font-size
:
36px
;
font-weight
:
bold
;
}
}
...
...
@@ -74,6 +75,10 @@
width
:
$contentWidth
;
background-color
:
#dddddd
;
.img
{
width
:
$contentWidth
;
}
.vid
{
@include
border-top-radius
(
16px
);
width
:
$contentWidth
;
...
...
@@ -98,6 +103,7 @@
.iconfont
{
font-size
:
160px
;
font-weight
:
normal
;
position
:
absolute
;
left
:
0
;
right
:
0
;
...
...
@@ -131,6 +137,7 @@
.name
{
padding-left
:
24px
;
font-size
:
32px
;
@include
ellipsis
(
1
);
}
}
...
...
src/pages/index/index.wxml
View file @
da9a4f1
...
...
@@ -14,7 +14,7 @@
<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 class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
<image
bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}"
class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
</swiper-item>
</block>
</swiper>
...
...
@@ -27,7 +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">
<!-- <video objectFit="cover" class="vid" poster="{{item.thumbnail}}" src="{{item.videoUrl}}" /> -->
<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>
</view>
...
...
@@ -36,7 +36,7 @@
<image class="portrait" mode="aspectFill" src="{{item.headImage}}" />
<text class="name">{{item.accountName || ""}}</text>
</view>
<button class="share" open-type="share">
<button class="share
ani-scl
" open-type="share">
<span class="t1 iconfont iconwechat"></span>
<span class="t1">分享</span>
</button>
...
...
src/pages/personal-list/personal-list.wxml
View file @
da9a4f1
...
...
@@ -23,7 +23,7 @@
<image class="portrait" mode="aspectFill" src="{{personInfo.headImage}}" />
<text class="name">{{personInfo.accountName || ""}}</text>
</view>
<button class="share" open-type="share">
<button class="share
ani-scl
" open-type="share">
<span class="t1 iconfont iconwechat"></span>
<span class="t1">分享</span>
</button>
...
...
Please
register
or
sign in
to post a comment