Authored by 梁志锋

update

... ... @@ -6,7 +6,7 @@
var $ = require('yoho.zepto'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.lazyload'),
lazyLoad = require('yoho.zeptolazyload'),
IScroll = require('iscroll/iscroll-probe');
var $authorIntro = $('.author .intro');
... ...
... ... @@ -6,7 +6,7 @@
var $ = require('yoho.zepto'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.lazyload');
lazyLoad = require('yoho.zeptolazyload');
var tip = require('../plugin/tip');
... ...
... ... @@ -6,7 +6,7 @@
var $ = require('yoho.zepto'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.lazyload');
lazyLoad = require('yoho.zeptolazyload');
var $intro = $('#intro'),
$imt = $('#intro-more-txt'),
... ...
... ... @@ -5,7 +5,7 @@
*/
var $ = require('yoho.zepto'),
lazyLoad = require('yoho.lazyload'),
lazyLoad = require('yoho.zeptolazyload'),
Swiper = require('yoho.iswiper');
var $navs = $('#nav-tab > li'),
... ...
/**
* 男首
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
var $ = require('yoho.zepto'),
lazyLoad = require('yoho.zeptolazyload');
//Init LazyLoad
lazyLoad($('img.lazy'));
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@
*/
var $ = require('yoho.zepto'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.lazyload'),
lazyLoad = require('yoho.zeptolazyload'),
bannerSwiper,
recommendSwiper,
trendTopicSwiper,
... ...
... ... @@ -5,8 +5,8 @@
*/
var $ = require('yoho.zepto'),
lazyLoad = require('yoho.lazyload'),
tip = require('../plugin/tip');
tip = require('../plugin/tip'),
lazyLoad = require('yoho.zeptolazyload');
var winH = $(window).height(),
loadMoreH = $('#load-more').height(),
... ...
var $ = require('yoho.zepto'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.lazyload');
lazyLoad = require('yoho.zeptolazyload');
var $curNav,
$navList = $('#discount-nav'),
... ...
var $ = require('yoho.zepto'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.lazyload');
lazyLoad = require('yoho.zeptolazyload');
var $curNav,
$navList = $('#newarrival-nav'),
... ...
... ... @@ -18,11 +18,11 @@
"dependencies": {
"yoho.zepto": "1.1.60",
"yoho.jquery": "1.8.3",
"yoho.lazyload": "1.1.0",
"mlellipsis": "0.0.6",
"yoho.iswiper": "3.0.1",
"iscroll": "5.1.2",
"import-style": "1.0.0"
"import-style": "1.0.0",
"yoho.zeptolazyload": "0.0.1"
},
"devDependencies": {
"expect.js": "0.3.1"
... ... @@ -46,4 +46,4 @@
"test": "spm test",
"build": "spm build"
}
}
}
\ No newline at end of file
... ...
... ... @@ -17,11 +17,14 @@ body.passport-body {
margin: 20px 0 30px;
.go-back {
display: block;
position: absolute;
height: 30px;
width: 30px;
top: 5px;
left: 0;
background: image-url('passport/go-back.png') no-repeat;
background-size: 100% 100%;
}
.title {
... ... @@ -33,6 +36,9 @@ body.passport-body {
.img-header {
width: 68px;
height: 40px;
background: image-url('passport/yoho-family.png') no-repeat;
background-size: 100% 100%;
margin: 0 auto;
}
}
... ...
... ... @@ -22,15 +22,15 @@
}());
})(document, window);
</script>
{{#if rlsEnv}}
<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/{{version}}/index.css">
{{/if}}
{{#if testEnv}}
<link rel="stylesheet" href="http://static.wap.yohobuy.com/css/index.css">
{{/if}}
{{#if devEnv}}
<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css">
{{/if}}
{{#if rlsEnv}}
<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/{{version}}/index.css">
{{/if}}
{{#if testEnv}}
<link rel="stylesheet" href="http://static.wap.yohobuy.com/css/index.css">
{{/if}}
{{#if devEnv}}
<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css">
{{/if}}
</head>
<body {{#if isPassportPage}}class=passport-body{{/if}}>
{{> layout/page_header}}
\ No newline at end of file
... ...
<div class="header">
{{#backUrl}}
<a class="go-back" href={{.}}>
<img src="http://static.dev.yohobuy.com/img/passport/go-back.png">
</a>
<a class="go-back" href={{.}}></a>
{{/backUrl}}
{{#showHeaderImg}}
<img class="img-header" src="http://static.dev.yohobuy.com/img/passport/yoho-family.png">
<div class="img-header"></div>
{{/showHeaderImg}}
{{#headerText}}
<p class="title">{{.}}</p>
... ...