Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-limited-sell-miniapp
·
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
肖亚东
6 years ago
Commit
7827d26b39519e3602d5311d697efcd893aa3348
1 parent
dd1f599e
UI变更以及验收问题修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
19 deletions
app/pages/product/detail/components/count-down-by-now/index.wxml
app/pages/product/detail/components/count-down-by-now/index.wxss
app/pages/product/detail/detail.js
app/pages/product/detail/components/count-down-by-now/index.wxml
View file @
7827d26
<view wx:if="{{label}}" class="comp-count-dow-by-now">
<text class="tips">{{label}}</text>
<!-- <text class="number">{{days}}</text>
<text class="number">{{hours}}:</text>
<text class="number">{{minutes}}:</text>
<text class="number">{{seconds}}</text> -->
<text class="time">{{days}}</text>
<text class="text">天</text>
<text class="time">{{hours}}</text>
<text class="text">时</text>
<text class="time">{{minutes}}</text>
<text class="text">分</text>
<text class="time">{{seconds}}</text>
<text class="text">秒</text>
<
text class="time">{{fullContent}}</text
>
<
!-- <text class="time">{{fullContent}}</text> --
>
</view>
...
...
app/pages/product/detail/components/count-down-by-now/index.wxss
View file @
7827d26
...
...
@@ -22,9 +22,20 @@
.comp-count-dow-by-now .time {
display: inline-block;
font-size:
72
rpx;
font-size:
60
rpx;
font-family: PingFang-SC-Heavy;
font-weight: bold;
color: #222222;
letter-spacing: -0.31px;
}
.comp-count-dow-by-now .text {
font-family: PingFang-SC-Heavy;
font-weight: bold;
font-size: 20rpx;
color: #222222;
letter-spacing: -0.31px;
margin-top: 28rpx;
margin-left: 6rpx;
margin-right: 6rpx;
}
\ No newline at end of file
...
...
app/pages/product/detail/detail.js
View file @
7827d26
...
...
@@ -403,6 +403,7 @@ Page(Object.assign({
isNew
:
res
.
data
.
isNew
?
res
.
data
.
isNew
:
''
,
currentTime
:
res
.
data
.
currentTime
?
res
.
data
.
currentTime
:
''
,
oldSaleTime
:
res
.
data
.
oldSaleTime
?
res
.
data
.
oldSaleTime
:
''
,
isApp
:
res
.
data
.
isApp
==
'Y'
?
true
:
false
,
});
}
else
{
return
Promise
.
reject
();
...
...
@@ -512,6 +513,15 @@ Page(Object.assign({
}
},
assistShare
(
e
)
{
if
(
this
.
data
.
isApp
)
{
wx
.
showModal
({
title
:
''
,
content
:
'请打开有货APP参与活动'
,
showCancel
:
false
})
return
;
}
if
(
!
app
.
getUid
())
{
this
.
goLogin
();
return
;
...
...
@@ -667,19 +677,17 @@ Page(Object.assign({
3、限定球鞋每周免费送'
,
confirmText
:
'去关注'
,
showCancel
:
false
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
setClipboardData
({
data
:
'YOHOBUY有货'
,
success
(
res
)
{
wx
.
showToast
({
icon
:
'none'
,
title
:
'公众号“YOHOBUY有货”,已复制成功,打开微信去搜索关注吧!'
,
duration
:
3000
});
}
})
}
complete
()
{
wx
.
setClipboardData
({
data
:
'YOHOBUY有货'
,
complete
()
{
wx
.
showToast
({
icon
:
'none'
,
title
:
'公众号“YOHOBUY有货”,已复制成功,打开微信去搜索关注吧!'
,
duration
:
3000
});
}
})
}
})
},
...
...
Please
register
or
login
to post a comment