index.html 18.4 KB
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>YO'HOPE</title>
    <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="grey">
    <link rel="stylesheet" href="images/anchor.css" media="all"/>
    <link rel="stylesheet" href="images/swiper.min.css" media="all"/>
    <script type="text/javascript" src="js/zepto.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <style>
        ul{list-style:none; padding:0; margin:0;}
        .con{ width:92%; margin: 0 auto; overflow:hidden;}
        .con img{ display:block;}

        .swiper-container {
            width: 100%;
            height: 100%;
        }
        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }

        #float_bottom {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            display: block;
            z-index: 100;
        }

        .vote{
            width: 35.6%;
            height: 8.89%;
            background: url("images/click_off.jpg") 0 0 no-repeat;
            background-size: 100%;
            position: absolute;
            right: 10.3%;
            top: 87.1%;
        }

        .vote_click{
            background: url("images/click_on.jpg") 0 0 no-repeat;
            background-size: 100%;
        }
        .diaCover-p{
            position: fixed;
            background: black;
            top: 50px;
            font-size: 15px;
            left: 50%;
            height: 40px;
            width: 400px;
            margin-left: -200px;
            color: white;
            text-align: center;
            line-height: 40px;
            border-radius: 10px;
            opacity: 0.8;
        }
    </style>
</head>
<body class="keBody">
<input id="shareLink" type="hidden" value="http://feature.yoho.cn/0812/0812YOHOPE/index.html">
<input id="shareDesc" type="hidden" value="激情夏日,狂欢不停,最实惠的IN季潮品都在这儿了!">
<input id="shareImg" type="hidden" value="http://file.static.yhbimg.com/2016/08/11/20/0811SHARE2/images/yohope.jpg">
<input id="shareTitle" type="hidden" value="YO’HOPE年中热促最终章,限时激价!上装¥49封,裤装¥99封!">
<script type="text/javascript" charset="utf-8" src="js/wx-share.js"></script>


<div class="views">
    <div class="page_activity page_type_h5">

        <div class="module_row MOD_ID img_height">
            <div class="mod_row">
                <div class="simple-banner">
                    <img src="images/bg_01.jpg" class="banner-img">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_02.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID detail_click">
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img icon" src="images/bg_03.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID detail" style="display: none;">
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_04.jpg">
                </div>
            </div>
        </div>
<!--1-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_05.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d1" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_06.jpg">
                </div>
            </div>
        </div>
<!--2-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_07.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d2" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_08.jpg">
                </div>
            </div>
        </div>
<!--3-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_09.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d3" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_10.jpg">
                </div>
            </div>
        </div>
<!--4-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_11.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d4" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_12.jpg">
                </div>
            </div>
        </div>
<!--5-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_13.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d5" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_14.jpg">
                </div>
            </div>
        </div>
<!--6-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_15.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d6" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_16.jpg">
                </div>
            </div>
        </div>
<!--7-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_17.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d7" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_18.jpg">
                </div>
            </div>
        </div>
<!--8-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_19.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d8" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_20.jpg">
                </div>
            </div>
        </div>
<!--9-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_21.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d9" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_22.jpg">
                </div>
            </div>
        </div>
<!--10-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_23.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d10" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_24.jpg">
                </div>
            </div>
        </div>
<!--11-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_25.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d11" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_26.jpg">
                </div>
            </div>
        </div>
<!--12-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_27.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d12" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_28.jpg">
                </div>
            </div>
        </div>
<!--13-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_29.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d13" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_30.jpg">
                </div>
            </div>
        </div>
<!--14-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_31.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <a class="anchor" style="width: 44%; height: 15%; left: 0; top: 85%;" href=''></a>
                <a class="anchor" style="width: 55%; height: 60%; left: 45%; top: 0;" href=''></a>
                <div id="d14" class="vote"></div>
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_32.jpg">
                </div>
            </div>
        </div>
<!--底悬浮-->
        <div class="module_row MOD_ID" >
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_33.jpg">
                </div>
            </div>
        </div>

        <div class="module_row MOD_ID" id="float_bottom">
            <div class="mod_row">
                <div class="simple-banner">
                    <img class="banner-img" src="images/bg_33.jpg">
                </div>
            </div>
        </div>


    </div>
</div>


<script type="text/javascript" src="http://cdn.yoho.cn/huodong/libs/jquery.min.js"></script>
<script type="text/javascript">
	var voteNum = 0;//已选投票数目
	var limitVoteNum = 3;//最大投票数目
    var uid;//用户ID
    var setOut = "";
    //活动细则
    $('.detail_click').click(function(){
        if($(this).hasClass('isclick')){
            $('.detail').slideUp(500);
            $('.icon').attr('src','images/bg_03.jpg');
            $(this).removeClass('isclick');
        }else{
            $('.detail').slideDown(500);
            $('.icon').attr('src','images/bg_033.jpg');
            $(this).addClass('isclick');
        }
    });

    //点击投票
    $('.vote').click(function(e){
        if(e.currentTarget.classList.contains('vote_click')){
            e.currentTarget.classList.remove('vote_click');
        }else{
            e.currentTarget.classList.add('vote_click');
        }
                voteNum = $(".vote_click").length;
        if (voteNum <= limitVoteNum) {
            //alert(voteNum);
        } else {
            diaCover("最多只能选3个!!!");
            $(this).removeClass("vote_click");
        }
    });

    //AJAX获取数据
    // $.ajax({
    //     url:"",
    //     type:"post",
    //     data:"",
    //     success: function () {

    //     },
    //     error:function(){

    //     },
    //     complete:function(){

    //     }

    // });

    //判定登录,确认投票
    $('#float_bottom').click(function(){
        var dataRequestUrl="http://m.yohobuy.com/passport/login/user";
        $.getJSON(dataRequestUrl+"?callback=?",
            function(json) {
                if (json.code === 200) {
                    var num=$('.vote_click').length;
                    //alert(num);
                    if(num>limitVoteNum){
                        diaCover("您最多只能选择三位设计师!");
                    }else if(num<=0){
                        diaCover("至少选一位!");
                    } else{
                    	var arr = new Array(num);
                    	for (var i = 0; i < num; i ++) {
                    		arr[i] = $('.vote_click:eq('+ i +')').attr("id");
                    	}
                        uid = json.data;
                        //diaCover('投票成功!投票账号a为:' + json.data + ',投票数为:' + num + ',所投id是:' + arr);
                    }
                } else {
                    diaCover("请先登录!!!");
   					var url = `https://m.yohobuy.com/signin.html?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/localhost\/YOHOPE\/index.html","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}`;
                    window.location.href=url;
                }
            }
        );  
    });

    function diaCover(msg) {
        clearTimeout(setOut);
        $(".diaCover-p").remove();
        $("body").append("<div class='diaCover-p'>" + msg + "</div>");
        setOut = setTimeout("$('.diaCover-p').remove();",3000);
    }



    //统计点击量
    (function(w, d, s, j, f) {
        var a = d.createElement(s);
        var m = d.getElementsByTagName(s)[0];

        w.YohoAcquisitionObject = f;

        w[f] = function() {
            w[f].p = arguments;
        };

        a.async = 1;
        a.src = j;
        m.parentNode.insertBefore(a, m);
    })(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas');
</script>
</body>

</html>