Authored by 王水玲

购物车滑动到第一个选中商品位置

... ... @@ -22,15 +22,15 @@ module.exports = {
},
cookieDomain: 'yohoblk.com',
domains: {
// singleApi: 'http://single.yoho.cn/',
// api: 'http://api.yoho.yohoops.org/',
// service: 'http://service.yoho.yohoops.org/',
// search: 'http://search.yohoops.org/yohosearch/'
singleApi: 'http://single.yoho.cn/',
api: 'http://api.yoho.yohoops.org/',
service: 'http://service.yoho.yohoops.org/',
search: 'http://search.yohoops.org/yohosearch/'
api: 'http://dev-api.yohops.com:9999/',
service: 'http://dev-service.yohops.com:9999/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test1.yohops.com:9999/'
//api: 'http://dev-api.yohops.com:9999/',
//service: 'http://dev-service.yohops.com:9999/',
//liveApi: 'http://testapi.live.yohops.com:9999/',
//singleApi: 'http://api-test1.yohops.com:9999/'
// api: 'http://api-test3.yohops.com:9999/',
... ...
... ... @@ -15,7 +15,7 @@
{{/if}}
</li>
<li><a href="{{https siteUrl}}/me">个人中心</a></li>
<li><a href="{{https siteUrl}}/help">帮助中心</a></li>
<li><a href="{{https siteUrl}}/help/index">帮助中心</a></li>
</ul>
</div>
</div>
... ...
... ... @@ -14,6 +14,8 @@ require('../common/return-top');
$(function() {
var $this;
var editable = true;
var $goodsChk = $('.pros-group .chk-group');
var chkLen = $goodsChk.length;
// 关闭info-bar
$('.info-bar .close').on('click', function() {
... ... @@ -148,4 +150,8 @@ $(function() {
recProduct.init({
dom: '.recommend-product'
});
if (chkLen > 0) {
$(window).scrollTop($goodsChk.eq(0)[0].offsetTop);
}
});
... ...
... ... @@ -51,7 +51,7 @@
text-align: left;
a {
margin: 0 10px;
margin: 0 8px;
display: inline-block;
}
... ...