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
hf
2016-03-14 12:19:44 +0800
Commit
2082e0e88657bb0d3106ea56c4c77e657bc16cda
1 parent
d76c1147
code review by fei.hong: do merge yang.yang and shaofeng.zhou fixes bugs codes
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
web-static/js/product/item.js
yohobuy/www.yohobuy.com/application/controllers/Common.php
yohobuy/www.yohobuy.com/application/models/Product/Item.php
web-static/js/product/item.js
View file @
2082e0e
...
...
@@ -502,7 +502,7 @@ lazyLoad($('#details-html img'));
}
if
(
hasOnlyOneSize
)
{
$sizes
.
find
(
'li'
).
click
();
$sizes
.
eq
(
0
).
find
(
'li'
).
click
();
}
}());
...
...
yohobuy/www.yohobuy.com/application/controllers/Common.php
View file @
2082e0e
...
...
@@ -31,7 +31,10 @@ class CommonController extends WebAction
// 首页资源品牌,采用内存存储
$key
=
WebCacheConfig
::
KEY_WEB_INDEX_BRANDS_LIST_DATA
.
'_'
.
$type
;
// array('logoBrand'=>'','moreBrand'=>'')
$data
=
Cache
::
get
(
$key
);
$data
=
Cache
::
get
(
$key
,
'master'
);
if
(
empty
(
$data
))
{
//从slave取数据
$data
=
Cache
::
get
(
$key
,
'slave'
);
}
}
while
(
false
);
...
...
yohobuy/www.yohobuy.com/application/models/Product/Item.php
View file @
2082e0e
...
...
@@ -170,7 +170,7 @@ class ItemModel
}
}
//分享相关
$goodsInfo
[
'weixinUrl'
]
=
Helpers
::
U
rl
(
$_SERVER
[
'REQUEST_URI'
],
array
(),
'item'
);
$goodsInfo
[
'weixinUrl'
]
=
Helpers
::
u
rl
(
$_SERVER
[
'REQUEST_URI'
],
array
(),
'item'
);
$goodsInfo
[
'sharedTitle'
]
=
$goodsInfo
[
'name'
];
$goodsInfo
[
'shareImg'
]
=
$goodsInfo
[
'img'
];
$goodsInfo
[
'shareDesc'
]
=
$baseInfo
[
'phrase'
];
...
...
Please
register
or
login
to post a comment