index.html 9.1 KB

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>萨米公众号</title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
    <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
    <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_tu2va42yqo.css" />
    <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
    </script>
    <link rel="stylesheet" href="__TMPL__/static/index.css" />
    <style type="text/css">
        .swiper-container {
            height: 3.6rem;
        }
        .swiper-container-horizontal>.swiper-pagination-bullets,
        .swiper-pagination-custom,
        .swiper-pagination-fraction {
            left: 1.7%;
            bottom: -0.49rem;
        }
        .lis .iconfont {
            /*color:#999999;*/
            font-size: 0.5rem;
        }
        .active {

        }
        .piclist:last-child {
            margin-bottom: 4rem;
        }
        title{text-align: center;width: 100%;}
    </style>
</head>
<body>
<!--轮播图-->
<div class='pic'>
    <div class="swiper-container ">
        <div class="swiper-wrapper">
            <volist name="result.banner" id="vo">
            <div class="swiper-slide">
                <img src="{$vo.image}" alt="" />
            </div>
            </volist>
        </div>
        <div class="swiper-pagination">
            <img src="__TMPL__/static/images/banner.png" alt="" />
        </div>
    </div>
</div>
<!--图标-->
<div class="list">
    <ul>
        <volist name="result.type" id="vo">
        <li class='activity_li'>
            <a href="{:url('activity/Activity/_list',['t_id'=>$vo['t_id']])}">
                <div class="li_imgbox"><img src="{$vo.type_icon}" alt="" /></div>
                <div class="zhou zhou_txt">{$vo.type_name}</div>
            </a>
        </li>
        </volist>
        <li>
            <a href="html/popular.html">
                <div class="li_imgbox"><img src="__TMPL__/static/images/people.png" alt="" /></div>
                <div class="zhou zhou_txt">人气最多</div>
            </a>
        </li>
        <li>
            <a href="{:url('activity/Activity/daysFifteen',['t_id'=>6])}">
                <div class="li_imgbox"><img src="__TMPL__/static/images/fa.png" alt="" /></div>
                <div class="zhou zhou_txt">即将出发</div>
            </a>
        </li>
        <li>
            <a href="{:url('team/Team/teamCustomization')}">
                <div class="li_imgbox"><img src="__TMPL__/static/images/tuan.png" alt="" /></div>
                <div class="zhou zhou_txt">团队定制</div>
            </a>
        </li>

        <li>
            <a href="{:url('news/News/newsList')}">
                <div class="li_imgbox"><img src="__TMPL__/static/images/hu.png" alt="" /></div>
                <div class="zhou zhou_txt">户外频道</div>
            </a>
        </li>
    </ul>
</div>
<a href="{:url('activity/Activity/journeyCalendar')}">
    <div class="riliout">
        <div class="rili">

            <i class='iconfont icon-rili'></i>
            <span>行程日历</span>
        </div>
    </div>
</a>
<!--===============最新活动==========-->

<div class="piclist">
    <div class="active">
        <span>——最新活动——</span>
    </div>
    <volist name="result.is_new" id="vo">
    <div class='center_mian' data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
        <div class="new_pic">
            <img src="{$vo.thumb}" alt="" style="height: 180px" />
        </div>
        <div class="newxia">
            <div class="left">
                <div class="qing">
                    {$vo.name}
                </div>
                <div class="nianout">
                    <div class="nian">
                        <i class='iconfont icon-calendar'></i>
                        <span class="active_year">{$vo.schedule.start_time}</span>
                    </div>
                    <div class="ji" data-id="{$vo.id}">
                        <i <if condition="$vo.is_collect eq '1'">class='iconfont icon-wuxing'<else/>class='iconfont icon-shoucang'</if>></i>
                        <span class="showcang">收藏</span>
                    </div>
                </div>
            </div>
            <div class="right">
                <div class="jia">
                    <span><span></span>{$vo.schedule.price}</span>
                </div>
                <div class="show">
							<span class="showspan">
							<span>售{$vo.schedule.sales_num}</span>
							</span>
                    <span class="sheng">
							剩{$vo.schedule.residue_num}
						</span>
                </div>
            </div>
        </div>
    </div>
    </volist>
</div>
<div class="piclist">
    <div class="active">
        <span>——热门活动——</span>
    </div>
    <volist name="result.is_hot" id="vo">
        <div class='center_mian' data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
            <div class="new_pic">
                <img src="{$vo.thumb}" alt="" style="height: 180px" />
            </div>
            <div class="newxia">
                <div class="left">
                    <div class="qing">
                        {$vo.name}
                    </div>
                    <div class="nianout">
                        <div class="nian">
                            <i class='iconfont icon-calendar'></i>
                            <span class="active_year">{$vo.schedule.start_time}</span>
                        </div>
                        <div class="ji" data-id="{$vo.id}">
                            <i <if condition="$vo.is_collect eq '1'">class='iconfont icon-wuxing'<else/>class='iconfont icon-shoucang'</if>></i>
                            <span class="showcang">收藏</span>
                        </div>
                    </div>
                </div>
                <div class="right">
                    <div class="jia">
                        <span><span></span>{$vo.schedule.price}</span>
                    </div>
                    <div class="show">
							<span class="showspan">
							<span>售{$vo.schedule.sales_num}</span>
							</span>
                        <span class="sheng">
							剩{$vo.schedule.residue_num}
						</span>
                    </div>
                </div>
            </div>
        </div>
    </volist>
</div>

<!--====底部=====-->
<div class="base">
    <div class="base_img">
        <!--<img src="images/bei.png" alt=""/>-->
        <ul class="baselist">
            <a href="{:url('Index/index')}">
                <li class="base_index baselis">
                    <img class="first" src="__TMPL__/static/images/first2.png" alt=""  />
                    <span class="base_options common checked_active">首页</span>
                </li>
            </a>
            <a href="{:url('activity/Activity/journeyCalendar')}">
                <li class="base_travel baselis">
								<span class="base_circle">
									<i class='iconfont icon-rili base_rili mark '></i>
								</span>
                    <span class="common">行程日历</span>
                </li>
            </a>
            <a href="{:url('user/Center/index')}">
                <li class="base_our baselis">
                    <!--<div class="person">-->
                    <img class="first" src="__TMPL__/static/images/person1.png" alt="" />
                    <!--</div>-->
                    <span class="my common">我的</span>
                </li>
            </a>
        </ul>
    </div>

</div>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<script type="text/javascript" src="__TMPL__/static/index.js"></script>
<script>
    var mySwiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        autoplay: 1500, //可选选项,自动滑动
        loop: true
    })
</script>
</body>
</html>
<script>
    $('.ji').click(function(event) {
        event.stopPropagation();
        if($(this).find('.iconfont').attr('class')=='iconfont icon-wuxing'){
            $(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
        }else{
            $(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
        }
        $.ajax({
            url:"{:url('activity/Activity/collectDo')}",
            data:{
                id:$(this).attr('data-id')
            },
            type:"POST",
            dataType:"JSON"
        })
    });
    $('.center_mian').click(function(){
        if(''){

        }
        window.location.href=$(this).attr('data-target');
    })
    $('.nian').click(function(event) {
        event.stopPropagation();
    });

    $(".piclist:last").css('margin-bottom','1rem');
    $('.list li div').click(function(){
        $(this).css('background','#FFEEDA')
    })

</script>