Showing
3 changed files
with
138 additions
and
21 deletions
@@ -2516,12 +2516,145 @@ define("js/home/fastclick", [], function(require, exports, module){ | @@ -2516,12 +2516,145 @@ define("js/home/fastclick", [], function(require, exports, module){ | ||
2516 | 2516 | ||
2517 | options = options || {}; | 2517 | options = options || {}; |
2518 | 2518 | ||
2519 | +<<<<<<< HEAD | ||
2520 | +}); | ||
2521 | +define("js/index/coupon", ["jquery","swiper","index"], function(require, exports, module){ | ||
2522 | +/** | ||
2523 | + * Created by Administrator on 2016/4/13. | ||
2524 | + */ | ||
2525 | +var $ = require("jquery"), | ||
2526 | + Swiper = require("swiper"), | ||
2527 | + $receive = $('.main-right-receive'), | ||
2528 | + $mask = $('.floor-mask'), | ||
2529 | + $message = $('.floor-message'), | ||
2530 | + $tooltip = $('.floor-tooltip'), | ||
2531 | + tip = require("js/plugin/tip"); | ||
2532 | + | ||
2533 | +var bannerSwiper; | ||
2534 | + | ||
2535 | +// 获取url中的参数 | ||
2536 | +function getUrlParam(name) { | ||
2537 | + | ||
2538 | + // 构造一个含有目标参数的正则表达式对象 | ||
2539 | + var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); | ||
2540 | + | ||
2541 | + // 匹配目标参数 | ||
2542 | + var r = window.location.search.substr(1).match(reg); | ||
2543 | + | ||
2544 | + // 返回参数值 | ||
2545 | + if (r != null) { | ||
2546 | + return r[2]; | ||
2547 | + } | ||
2548 | + | ||
2549 | + return null; | ||
2550 | +} | ||
2551 | + | ||
2552 | +$receive.on('click', function() { | ||
2553 | + var $curDom = $(this); | ||
2554 | + | ||
2555 | + $.ajax({ | ||
2556 | + url: '/coupon/receiveCoupon', | ||
2557 | + data: { | ||
2558 | + couponID: $curDom.parents('.coupon-floor').attr('coupon-id') | ||
2559 | + }, | ||
2560 | + dataType: 'json', | ||
2561 | + success: function(data) { | ||
2562 | + var msg = data.msg, | ||
2563 | + status = data.status; | ||
2564 | + | ||
2565 | + if (data.noLogin === true) { | ||
2566 | + var newUrl = data.url + '?code=' + getUrlParam('code'); | ||
2567 | + if ($('#intimacy-link').length <= 0) { | ||
2568 | + $('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' + | ||
2569 | + '<span class="intimacy-link"></span></a>'); | ||
2570 | + } | ||
2571 | + | ||
2572 | + $('.intimacy-link').click(); | ||
2573 | + } else { | ||
2574 | + if (status) { | ||
2575 | + $curDom.hide(); | ||
2576 | + $curDom.next().show(); | ||
2577 | + $tooltip.show(); | ||
2578 | + | ||
2579 | + setTimeout(function() { | ||
2580 | + $tooltip.hide(); | ||
2581 | + }, 3000); | ||
2582 | + } else { | ||
2583 | + $message.find('.coupon-message-content').text(msg); | ||
2584 | + $mask.show(); | ||
2585 | + $message.show(); | ||
2586 | + } | ||
2587 | + } | ||
2588 | + }, | ||
2589 | + error:function() { | ||
2590 | + tip.show('网络异常!'); | ||
2591 | + } | ||
2592 | + }); | ||
2593 | +}); | ||
2594 | + | ||
2595 | +$('.coupon-floor a, .banner-top a').on('click', function() { | ||
2596 | + if ($(this).attr('href').length <= 0 || $(this).attr('href') === '#') { | ||
2597 | + return false; | ||
2598 | + } | ||
2599 | +}); | ||
2600 | + | ||
2601 | +if ($('.banner-swiper').find('li').size() > 1) { | ||
2602 | + bannerSwiper = new Swiper('.banner-swiper', { | ||
2603 | + lazyLoading: true, | ||
2604 | + lazyLoadingInPrevNext: true, | ||
2605 | + loop: true, | ||
2606 | + autoplay: 3000, | ||
2607 | + autoplayDisableOnInteraction: false, | ||
2608 | + paginationClickable: true, | ||
2609 | + slideElement: 'li', | ||
2610 | + pagination: '.banner-top .pagination-inner' | ||
2611 | + }); | ||
2612 | +} | ||
2613 | + | ||
2614 | +$('.coupon-message-op-rel').on('click',function(){ | ||
2615 | + location.reload(); | ||
2616 | +}); | ||
2617 | + | ||
2618 | + | ||
2619 | +}); | ||
2620 | +define("js/passport/entry", ["jquery","handlebars","source-map","hammer"], function(require, exports, module){ | ||
2621 | +/** | ||
2622 | + * 注册、登录、密码找回打包入口 | ||
2623 | + * @author: xuqi<qi.xu@yoho.cn> | ||
2624 | + * @date: 2015/10/8 | ||
2625 | + */ | ||
2626 | + | ||
2627 | +//注册 | ||
2628 | +require("js/passport/register/register"); | ||
2629 | +require("js/passport/register/code"); | ||
2630 | +require("js/passport/register/password"); | ||
2631 | + | ||
2632 | +//登录 | ||
2633 | +require("js/passport/login/login"); | ||
2634 | +require("js/passport/login/international"); | ||
2635 | + | ||
2636 | +//密码找回 | ||
2637 | +require("js/passport/back/mobile"); | ||
2638 | +require("js/passport/back/code"); | ||
2639 | +require("js/passport/back/email"); | ||
2640 | +require("js/passport/back/email-success"); | ||
2641 | +require("js/passport/back/new-password"); | ||
2642 | + | ||
2643 | +//绑定手机 | ||
2644 | +require("js/passport/bind/bind"); | ||
2645 | +require("js/passport/bind/code"); | ||
2646 | +require("js/passport/bind/password"); | ||
2647 | + | ||
2648 | +// 关联手机 | ||
2649 | +require("js/passport/bind/relate"); | ||
2650 | +======= | ||
2519 | /** | 2651 | /** |
2520 | * Whether a click is currently being tracked. | 2652 | * Whether a click is currently being tracked. |
2521 | * | 2653 | * |
2522 | * @type boolean | 2654 | * @type boolean |
2523 | */ | 2655 | */ |
2524 | this.trackingClick = false; | 2656 | this.trackingClick = false; |
2657 | +>>>>>>> 0b01671d6ca5354acb1807f1a78fc30ecf10840e | ||
2525 | 2658 | ||
2526 | 2659 | ||
2527 | /** | 2660 | /** |
@@ -3860,8 +3993,7 @@ var $ = require("jquery"), | @@ -3860,8 +3993,7 @@ var $ = require("jquery"), | ||
3860 | $receive = $('.main-right-receive'), | 3993 | $receive = $('.main-right-receive'), |
3861 | $mask = $('.floor-mask'), | 3994 | $mask = $('.floor-mask'), |
3862 | $message = $('.floor-message'), | 3995 | $message = $('.floor-message'), |
3863 | - $tooltip = $('.floor-tooltip'), | ||
3864 | - tip = require("js/plugin/tip"); | 3996 | + $tooltip = $('.floor-tooltip'); |
3865 | 3997 | ||
3866 | var bannerSwiper; | 3998 | var bannerSwiper; |
3867 | 3999 | ||
@@ -3896,13 +4028,7 @@ $receive.on('click', function() { | @@ -3896,13 +4028,7 @@ $receive.on('click', function() { | ||
3896 | status = data.status; | 4028 | status = data.status; |
3897 | 4029 | ||
3898 | if (data.noLogin === true) { | 4030 | if (data.noLogin === true) { |
3899 | - var newUrl = data.url + '?code=' + getUrlParam('code'); | ||
3900 | - if ($('#intimacy-link').length <= 0) { | ||
3901 | - $('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' + | ||
3902 | - '<span class="intimacy-link"></span></a>'); | ||
3903 | - } | ||
3904 | - | ||
3905 | - $('.intimacy-link').click(); | 4031 | + location.href = data.url + '?code=' + getUrlParam('code'); |
3906 | } else { | 4032 | } else { |
3907 | if (status) { | 4033 | if (status) { |
3908 | $curDom.hide(); | 4034 | $curDom.hide(); |
@@ -3918,15 +4044,12 @@ $receive.on('click', function() { | @@ -3918,15 +4044,12 @@ $receive.on('click', function() { | ||
3918 | $message.show(); | 4044 | $message.show(); |
3919 | } | 4045 | } |
3920 | } | 4046 | } |
3921 | - }, | ||
3922 | - error:function() { | ||
3923 | - tip.show('网络异常!'); | ||
3924 | } | 4047 | } |
3925 | }); | 4048 | }); |
3926 | }); | 4049 | }); |
3927 | 4050 | ||
3928 | -$('.coupon-floor a, .banner-top a').on('click', function() { | ||
3929 | - if ($(this).attr('href').length <= 0 || $(this).attr('href') === '#') { | 4051 | +$('.coupon-floor a').on('click', function() { |
4052 | + if ($(this).attr('href').length <= 0) { | ||
3930 | return false; | 4053 | return false; |
3931 | } | 4054 | } |
3932 | }); | 4055 | }); |
@@ -3943,12 +4066,6 @@ if ($('.banner-swiper').find('li').size() > 1) { | @@ -3943,12 +4066,6 @@ if ($('.banner-swiper').find('li').size() > 1) { | ||
3943 | pagination: '.banner-top .pagination-inner' | 4066 | pagination: '.banner-top .pagination-inner' |
3944 | }); | 4067 | }); |
3945 | } | 4068 | } |
3946 | - | ||
3947 | -$('.coupon-message-op-rel').on('click',function(){ | ||
3948 | - location.reload(); | ||
3949 | -}); | ||
3950 | - | ||
3951 | - | ||
3952 | }); | 4069 | }); |
3953 | define("js/passport/entry", ["jquery","handlebars","source-map","hammer"], function(require, exports, module){ | 4070 | define("js/passport/entry", ["jquery","handlebars","source-map","hammer"], function(require, exports, module){ |
3954 | /** | 4071 | /** |
This diff could not be displayed because it is too large.
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | padding-bottom: 24px; | 3 | padding-bottom: 24px; |
4 | 4 | ||
5 | .massage-list { | 5 | .massage-list { |
6 | - padding: 12px 18px 12px 24px; | 6 | + padding: 12px 100px 12px 24px; |
7 | border-bottom: 1px solid #f8f8f8; | 7 | border-bottom: 1px solid #f8f8f8; |
8 | position: relative; | 8 | position: relative; |
9 | overflow: hidden; | 9 | overflow: hidden; |
-
Please register or login to post a comment