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
htoooth
7 years ago
Commit
a842fbdb32f7cf61d53fcc21547e4c629c722334
1 parent
7192b89b
fix
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
app/pages/product/detail/detail.js
app/pages/product/detail/detail.wxml
app/pages/product/detail/detail.wxss
app/project.config.json
app/static/images/banner.png
app/pages/product/detail/detail.js
View file @
a842fbd
...
...
@@ -163,6 +163,9 @@ Page(Object.assign({
};
}
else
if
(
res
.
from
===
'button'
)
{
// 用户点击分享按钮
console
.
log
(
`
/
pages
/
product
/
detail
/
detail
?
limitProductCode
=
$
{
this
.
data
.
limitProductCode
}
&
originUid
=
$
{
app
.
getUid
()}
&
originUnionID
=
$
{
app
.
getUnionID
()}
`
);
return
{
title
:
params
.
TITLE
,
// 分享标题
desc
:
params
.
DESC
,
// 分享描述
...
...
@@ -268,12 +271,12 @@ Page(Object.assign({
}
this
.
setData
({
productSkn
:
res
.
data
.
productSkn
,
productName
:
res
.
data
.
productName
,
price
:
res
.
data
.
price
,
saleTime
:
res
.
data
.
saleTime
,
reminderNum
:
res
.
data
.
reminderNum
,
limitProductType
:
res
.
data
.
limitProductType
,
productSkn
:
res
.
data
.
productSkn
?
res
.
data
.
productSkn
:
''
,
productName
:
res
.
data
.
productName
?
res
.
data
.
productName
:
''
,
price
:
res
.
data
.
price
?
res
.
data
.
price
:
'即将开售'
,
saleTime
:
res
.
data
.
saleTime
?
res
.
data
.
saleTime
:
''
,
reminderNum
:
res
.
data
.
reminderNum
?
res
.
data
.
reminderNum
:
0
,
limitProductType
:
res
.
data
.
limitProductType
?
res
.
data
.
limitProductType
:
4
,
showStatus
:
res
.
data
.
showStatus
?
res
.
data
.
showStatus
:
0
,
assisLimit
:
res
.
data
.
helpLimit
?
res
.
data
.
helpLimit
:
0
,
queueType
:
res
.
data
.
queueType
?
res
.
data
.
queueType
:
QUEUE_TYPE
.
READY
,
...
...
app/pages/product/detail/detail.wxml
View file @
a842fbd
...
...
@@ -23,6 +23,7 @@
<view class="detail-btn" bindtap="buyNow">查看商品详情</view>
</view>
<view class="line"></view>
<image class="banner-image" bindtap="goList" src="../../../static/images/banner.png"></image>
<view class="detail-container">
<view class="goodsInfo">
<view wx:for="{{productDesc}}">
...
...
app/pages/product/detail/detail.wxss
View file @
a842fbd
...
...
@@ -151,6 +151,9 @@
font-size: 28rpx;
background-color: #d0021b;
right: 30rpx;
top:50%;
transform:translateY(-50%);
}
.top-assis-action {
...
...
@@ -254,3 +257,8 @@
border-radius: 40rpx;
color: white;
}
.banner-image {
width: 100%;
height: 290rpx;
}
\ No newline at end of file
...
...
app/project.config.json
View file @
a842fbd
...
...
@@ -33,7 +33,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
7
,
"current"
:
5
,
"list"
:
[
{
"id"
:
0
,
...
...
app/static/images/banner.png
0 → 100644
View file @
a842fbd
229 KB
Please
register
or
login
to post a comment