Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
biao
9 years ago
Commit
aeb2b9cb4fb6b1cd00dd923f35e28ebe1b25afc9
1 parent
ef3346bd
优化skn获取代码
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
static/js/product/detail/like.js
template/m.yohobuy.com/actions/product/detail/index.phtml
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
static/js/product/detail/like.js
View file @
aeb2b9c
...
...
@@ -11,7 +11,7 @@ var $ = require('jquery'),
var
productId
=
$
(
'#productId'
).
val
();
var
skn
=
$
(
'#pr
eferenceUrl'
).
val
().
split
(
'?'
)[
1
].
split
(
'&'
)[
0
].
split
(
'='
)[
1
]
,
var
skn
=
$
(
'#pr
oductSkn'
).
val
()
,
productCode
=
$
(
'#limitProductCode'
).
val
();
$
(
'#likeBtn'
).
on
(
'touchstart'
,
function
()
{
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
aeb2b9c
...
...
@@ -177,6 +177,8 @@
<input
id=
"preferenceUrl"
type=
"hidden"
value=
"{{preferenceUrl}}"
>
{
{/if
}
}
<input
id=
"productSkn"
type=
"hidden"
value=
"{{productSkn}}"
>
{
{#loginUrl
}
}
<input
type=
"hidden"
name=
"loginUrl"
id=
"loginUrl"
value=
"{{.}}"
>
{
{/loginUrl
}
}
...
...
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
aeb2b9c
...
...
@@ -169,6 +169,8 @@ class DetailModel
$result
[
'preferenceUrl'
]
=
Helpers
::
url
(
'/product/detail/preference'
,
array
(
'productSkn'
=>
$baseInfo
[
'erpProductId'
],
'brandId'
=>
$baseInfo
[
'brand'
][
'id'
]),
''
);
}
$result
[
'productSkn'
]
=
$baseInfo
[
'erpProductId'
];
// 商品信息
if
(
!
empty
(
$baseInfo
[
'goodsList'
]))
{
$colorGroup
=
array
();
...
...
Please
register
or
login
to post a comment