Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-luck
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
肖亚东
2019-06-21 10:47:59 +0800
Commit
f8eacca3b4b24cc3f3e761d504a9a6721b6fbdc7
1 parent
fa61bdc8
首页按钮动画等
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
26 deletions
app.json
pages/zeroSell/components/product-item-status.js
pages/zeroSell/components/product-item-status.wxml
pages/zeroSell/components/product-item-status.wxss
pages/zeroSell/detail.wxml
pages/zeroSell/detail.wxss
sitemap40.json
app.json
View file @
f8eacca
{
"pages"
:
[
"pages/zeroSell/index"
,
"pages/zeroSell/detail"
,
"pages/zeroSell/snapshootShare"
,
"pages/zeroSell/h5Page"
,
"pages/zeroSell/error"
,
"pages/bindPhoneNumber/bindPhoneNumber"
,
"pages/choosecountry/choosecountry"
,
"login/login-page/login-page"
],
"window"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarBackgroundColor"
:
"#3a3a3a"
,
"backgroundColor"
:
"#fff"
,
"backgroundTextStyle"
:
"dark"
,
"onReachBottomDistance"
:
100
},
"navigateToMiniProgramAppIdList"
:
[
"wx207f18be42db9028"
,
"wx68c7dd3634272f71"
,
"wxf9bac5064053057a"
]
}
"pages"
:
[
"pages/zeroSell/index"
,
"pages/zeroSell/detail"
,
"pages/zeroSell/snapshootShare"
,
"pages/zeroSell/h5Page"
,
"pages/zeroSell/error"
,
"pages/bindPhoneNumber/bindPhoneNumber"
,
"pages/choosecountry/choosecountry"
,
"login/login-page/login-page"
],
"window"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarBackgroundColor"
:
"#3a3a3a"
,
"backgroundColor"
:
"#fff"
,
"backgroundTextStyle"
:
"dark"
,
"onReachBottomDistance"
:
100
},
"navigateToMiniProgramAppIdList"
:
[
"wx207f18be42db9028"
,
"wx68c7dd3634272f71"
,
"wxf9bac5064053057a"
],
"sitemapLocation"
:
"sitemap40.json"
}
\ No newline at end of file
...
...
pages/zeroSell/components/product-item-status.js
View file @
f8eacca
...
...
@@ -7,6 +7,29 @@ Component({
},
tabIdx
:
String
},
data
:
{
animation
:
null
,
},
ready
:
function
()
{
let
animation
=
wx
.
createAnimation
({
duration
:
400
,
timingFunction
:
'ease'
,
});
//放大缩小循环动画
var
next
=
true
;
setInterval
(
function
()
{
if
(
next
)
{
animation
.
scale
(
1.05
).
step
()
next
=
!
next
;
}
else
{
animation
.
scale
(
1
).
step
()
next
=
!
next
;
}
this
.
setData
({
animation
:
animation
.
export
()
})
}.
bind
(
this
),
400
)
},
methods
:
{
onClick
()
{
router
.
go
(
'detail'
,
{
...
...
pages/zeroSell/components/product-item-status.wxml
View file @
f8eacca
...
...
@@ -8,7 +8,7 @@
</block>
<block wx:elif="{{product.status === 2}}">
<view class="btn ok" catchtap="onClick">参加抽奖</view>
<view class="btn ok" catchtap="onClick"
animation="{{animation}}"
>参加抽奖</view>
</block>
<block wx:elif="{{product.status === 3}}">
...
...
pages/zeroSell/components/product-item-status.wxss
View file @
f8eacca
...
...
@@ -11,7 +11,7 @@
}
.ok {
background: #
222
;
background: #
CE0A24
;
}
.cancel {
...
...
pages/zeroSell/detail.wxml
View file @
f8eacca
...
...
@@ -2,6 +2,9 @@
<product-header product="{{product}}" shareFlag="{{shareFlag}}" avatars="{{avatars}}"></product-header>
</view>
<image class="jion-tips-image" src="./images/Group@2x.png"></image>
<view class="machine {{shareFlag ? 'machine-t-m' : 'machine-t-l'}}">
<view class="open-shadow"></view>
<view class="code-list" animation="{{animation}}">
...
...
pages/zeroSell/detail.wxss
View file @
f8eacca
...
...
@@ -108,6 +108,12 @@
border-top: 1rpx solid #E0E0E0;
}
.jion-tips-image {
width: 100%;
height: 80rpx;
margin-top: 20rpx;
}
.machine {
background-image: url('https://img10.static.yhbimg.com/yhb-img01/2018/12/27/19/011f45717237b3cbf7301833e8dc28f994.png');
background-size: contain;
...
...
sitemap40.json
0 → 100644
View file @
f8eacca
{
"desc"
:
"关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html"
,
"rules"
:
[{
"action"
:
"allow"
,
"page"
:
"*"
}]
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment