Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-brand-shop
·
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
李奇
2018-02-26 11:12:35 +0800
Commit
7776aacae7af7467cba20dfc70ac29b454e1e03a
1 parent
8fc395da
首页修改
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
20 deletions
app/app.json
app/components/product/item.js
app/components/product/list.js
app/pages/index/images/search@2x.png
app/project.config.json
app/app.json
View file @
7776aac
...
...
@@ -32,10 +32,9 @@
"pages/bindPhoneNumber/bindPhoneNumber"
,
"pages/envelopesActivity/envelopesActivity"
,
"pages/goodsList/brandStore"
,
"pages/cart/ensure/ensure"
,
"pages/cart/invoice/invoice"
,
"pages/home/address/list"
,
"pages/home/address/list"
],
"window"
:
{
"backgroundTextStyle"
:
"light"
,
...
...
app/components/product/item.js
View file @
7776aac
...
...
@@ -2,24 +2,13 @@ Component({
properties
:
{
item
:
{
type
:
Object
,
value
:
{
default_images
:
'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80'
,
product_name
:
'测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的'
,
salePriceStr
:
'3'
,
originPriceStr
:
'3'
,
showOriginPrice
:
false
,
skn
:
512587352
}
value
:
{}
}
},
methods
:
{
goDetail
:
function
(
e
)
{
const
productSkn
=
this
.
properties
.
item
.
skn
;
console
.
log
(
productSkn
)
goDetail
:
function
()
{
wx
.
navigateTo
({
url
:
`
/
pages
/
goodsDetail
/
goodsDetail
?
productSkn
=
$
{
productS
kn
}
`
url
:
`
/
pages
/
goodsDetail
/
goodsDetail
?
productSkn
=
$
{
this
.
properties
.
item
.
s
kn
}
`
});
}
}
...
...
app/components/product/list.js
View file @
7776aac
...
...
@@ -9,7 +9,8 @@ Component({
product_name
:
'测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的'
,
salePriceStr
:
'3'
,
originPriceStr
:
'3'
,
showOriginPrice
:
true
showOriginPrice
:
true
,
skn
:
512587352
},
{
...
...
@@ -17,7 +18,8 @@ Component({
product_name
:
'测试商品名'
,
salePriceStr
:
'3'
,
originPriceStr
:
'3'
,
showOriginPrice
:
false
showOriginPrice
:
false
,
skn
:
512587352
},
{
...
...
@@ -25,7 +27,8 @@ Component({
product_name
:
'测试商品名'
,
salePriceStr
:
'3'
,
originPriceStr
:
'3'
,
showOriginPrice
:
false
showOriginPrice
:
false
,
skn
:
512587352
}
]
}
...
...
app/pages/index/images/search@2x.png
0 → 100644
View file @
7776aac
969 Bytes
app/project.config.json
View file @
7776aac
...
...
@@ -9,7 +9,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"1.9.1"
,
"appid"
:
"wx
084ab813d88c594b
"
,
"appid"
:
"wx
e8bfc9b404772199
"
,
"projectname"
:
"%E7%BA%A2%E4%BA%BA%E5%B0%8F%E5%BA%97"
,
"condition"
:
{
"search"
:
{
...
...
Please
register
or
login
to post a comment