...
|
...
|
@@ -9,6 +9,25 @@ |
|
|
<link rel="stylesheet" href="__INDEX__/css/swiper.min.css">
|
|
|
<script type="text/javascript" src="__INDEX__/js/base.js"></script>
|
|
|
<title>天生红积分商城</title>
|
|
|
<style>
|
|
|
.notice_text{
|
|
|
width:6rem;
|
|
|
height:18px;
|
|
|
overflow: hidden;
|
|
|
margin-top: 0.15rem;
|
|
|
position:relative;
|
|
|
}
|
|
|
.companynotice{
|
|
|
height:max-content;
|
|
|
font-size: 0.26rem;
|
|
|
color:#1A1A1A;
|
|
|
margin-left: 0.17rem;
|
|
|
position:absolute;
|
|
|
left:0;
|
|
|
top:0
|
|
|
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<!--绑定手机号-->
|
...
|
...
|
@@ -31,7 +50,7 @@ |
|
|
<div class="swiper-wrapper">
|
|
|
<volist name="data.banner" id="vo">
|
|
|
<div class="swiper-slide">
|
|
|
<a href="{$vo.url}"><img src="{$vo.image}" alt="" ></a>
|
|
|
<a href="{$vo.url}"><img src="{$vo.image}"></a>
|
|
|
</div>
|
|
|
</volist>
|
|
|
</div>
|
...
|
...
|
@@ -40,17 +59,19 @@ |
|
|
</div>
|
|
|
<div class="notice">
|
|
|
<p class="iconfont icon-laba"></p>
|
|
|
<p class="companynotice">公司公告</p>
|
|
|
<div class="notice_text">
|
|
|
<p class="companynotice">{$data.notice.title}:{$data.notice.content}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="special">
|
|
|
<p class="memberarea">
|
|
|
<a href="{:url('goods/Goods/goodsList',['cid'=>1])}"><img src="__INDEX__/img/aicon01@2x.png" alt=""></a>
|
|
|
<a href="{:url('goods/Goods/goodsList',['cid'=>1])}"><img src="__INDEX__/img/aicon01@2x.png"></a>
|
|
|
</p>
|
|
|
<p class="cashzone">
|
|
|
<a href="{:url('goods/Goods/goodsList',['cid'=>2])}"><img src="__INDEX__/img/aicon02@2x.png" alt=""></a>
|
|
|
<a href="{:url('goods/Goods/goodsList',['cid'=>2])}"><img src="__INDEX__/img/aicon02@2x.png"></a>
|
|
|
</p>
|
|
|
<p class="intergralarea">
|
|
|
<a href="{:url('goods/Goods/goodsList',['cid'=>3])}"><img src="__INDEX__/img/money.png" alt=""></a>
|
|
|
<a href="{:url('goods/Goods/goodsList',['cid'=>3])}"><img src="__INDEX__/img/money.png"></a>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="specialword">
|
...
|
...
|
@@ -78,11 +99,11 @@ |
|
|
{$vo.intro}
|
|
|
</p>
|
|
|
<p class="good_points">
|
|
|
购买可获得40积分
|
|
|
<if condition="$vo.caid eq 1">购买可获得{$vo.price*2}积分<else>该商品无积分奖励</if>
|
|
|
</p>
|
|
|
<div class="people">
|
|
|
<p class="people_price">¥<span class="money">{$vo.price}</span></p>
|
|
|
<p class="people_comment">40人好评</p>
|
|
|
<p class="people_comment">{$vo.eva}人好评</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</volist>
|
...
|
...
|
@@ -139,11 +160,39 @@ |
|
|
})
|
|
|
|
|
|
$(".shopcart").click(function(){
|
|
|
window.location.href='shopcar/cart.html'
|
|
|
window.location.href="{:url('cart/zj_cart/cart')}"
|
|
|
})
|
|
|
$(".membercenter").click(function(){
|
|
|
window.location.href="{:url('user/Center/index')}";
|
|
|
})
|
|
|
|
|
|
//系统消息
|
|
|
var otoutiaoCt=document.querySelectorAll('.companynotice')[0];
|
|
|
var otoutiaoC=document.querySelectorAll('.notice_text')[0];
|
|
|
// console.log($('.companynotice').css('height'));
|
|
|
// console.log(otoutiaoCt.offsetHeight);
|
|
|
var timer0=null;
|
|
|
otoutiaoCt.style.top=otoutiaoC.offsetHeight+'px';
|
|
|
var tt=otoutiaoC.offsetHeight;
|
|
|
console.log(tt)
|
|
|
console.log(otoutiaoCt.offsetTop);
|
|
|
console.log(otoutiaoCt.offsetHeight);
|
|
|
console.log(otoutiaoCt.style.top);
|
|
|
// // console.log( otoutiaoCt.style.top)
|
|
|
// console.log(otoutiaoCt.offsetTop)
|
|
|
|
|
|
timer0=setInterval(function(){
|
|
|
if(otoutiaoCt.offsetTop<=-otoutiaoCt.offsetHeight-2){
|
|
|
tt=otoutiaoC.offsetHeight;
|
|
|
otoutiaoCt.style.top=tt +'px';
|
|
|
// console.log( otoutiaoCt.style.Top)
|
|
|
}else{
|
|
|
tt=tt-1;
|
|
|
otoutiaoCt.style.top=tt+'px';
|
|
|
// console.log(otoutiaoCt.offsetTop)
|
|
|
var ll=-otoutiaoCt.offsetHeight-2+"px";
|
|
|
}
|
|
|
},4000/60)
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
...
|
...
|
|