Authored by xuqi

static img in html -> css use

var $ = require('yoho.zepto'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.lazyload');
lazyLoad = require('yoho.zeptolazyload');
var $curNav,
$navList = $('#discount-nav'),
... ...
... ... @@ -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>
... ...