审查视图

public/themes/simpleboot3/collect/collect.html 5.6 KB
lihan authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

<!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/css/Peripheral-short-term.css" />
    <link rel="stylesheet" href="__TMPL__/static/css/myselect.css" />
    <style type="text/css">
        .swiper-container {
            height: 3.6rem;
        }

        .swiper-container-horizontal>.swiper-pagination-bullets,
        .swiper-pagination-custom,
        .swiper-pagination-fraction {
            left: 44%;
        }

        .year {
            padding-left: 0.3rem;
            margin-top: 0.12rem;
        }

        .qing {
            margin-top: 0.2rem;
            padding: 0 0 0 0;
            display: flex;
            justify-content: space-between;
        }
    </style>
</head>

<body id="body">
<div class="con" style="margin-bottom: 30px">
    <div class="collect">
        <span class="coll">套餐收藏</span>
        <a href="{:url('collect/Collect/index',['is_news'=>1])}">
            <span>资讯收藏</span>
        </a>
    </div>
</div>
<div style="margin-top: 1.02rem">
lihan authored
52 53 54 55 56 57 58
    <!--图片-->
    <volist name="data.activity" id="vo">
        <div class="center_mian" style="margin-bottom: 10px" data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
            <div class="picture" id="picture">
                <img src="{$vo.thumb}" alt="" />
            </div>
            <div class="qing">
lihan authored
59 60 61 62 63 64 65 66
		<span class="qing_out qing_out_box">
            <span class="run">
                {$vo.name}
            </span>
			<div class="year">
                <div class="act acts">
                    <!--<i class="iconfont  icon-calendar"></i>-->
                    <!--<span class="txt">-->
lihan authored
67
                    <!--2018.08.13-->
lihan authored
68 69
                    <!--</span>-->
                </div>
lihan authored
70
                <div class="act actlist" data-id="{$vo.id}">
lihan authored
71 72 73 74 75 76 77
                    <i class="iconfont icon-wuxing"></i>
                    <span class="txt">
                        取消收藏
                    </span>
                </div>
            </div>
		</span>
lihan authored
78 79 80
            </div>
        </div>
    </volist>
lihan authored
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
</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="../index.js"></script>-->
<script>
    //确认取消弹出框
    $('.confirm_main').click(function(event) {
        event.stopPropagation();
    });
    $('.confirm_main').click(function(event) {
        event.stopPropagation();
    });
    $('.confirm_no').click(function(event) {
        $('.confirm_cancel').css('display','none');
    });
    $('.confirm_yes').click(function(event) {
        $('.confirm_cancel').css('display','none');
    });
    $('.confirm_cancel').click(function(event) {
        $('.confirm_cancel').css('display','none');
    });
    $('.can').click(function() {
        var id = $(this).parents('.good_out').data("id");
        console.log(id);
        $('.confirm_cancel').css('display', 'block');
        $('.confirm_yes').click(function() {
            console.log("点击确定按钮获取整个li的id为:" + id);
            $('.confirm_cancel').css('display', 'none');
        })
        $('.confirm_no').click(function() {
            $('.confirm_cancel').css('display', 'none');
        })
        $('.confirm_main').click(function() {
            event.stopPropagation();
            //	 	$(this).css('display','none');
        })
    })
    $('.actlist').click(function(){
        $('.confirm_cancel').css('display','block');
    })

    //阻止按钮的点击冒泡
    $('.btnlist').click(function(event) {
        event.stopPropagation();
    });
    $('.choice .swiper-slide').click(function() {
        $(this).addClass("active_top").siblings().removeClass("active_top");;
    })

    //点击跳转到已退款页面
    $('.good_out_refundmoney').click(function() {
        window.location.href = 'refundmoney.html';
    })
    var mySwiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        autoplay: 1500, //可选选项,自动滑动
        loop: true
    })
    $('.actlist').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");
        }
lihan authored
150 151 152 153 154 155 156 157 158
        $.ajax({
            url:"{:url('activity/Activity/collectDo')}",
            data:{
                id:$(this).attr('data-id')
            },
            type:"POST",
            dataType:"JSON"
        })
lihan authored
159 160 161 162 163 164 165 166 167 168 169 170 171 172
    });
    $('.center_mian').click(function() {
        window.location.href = $(this).attr('data-target');
    })
    $('.act_show').click(function(event) {
        event.stopPropagation();
    });
    $('.acts').click(function(event) {
        event.stopPropagation();
    })
</script>
</body>

</html>