togiftcardfromgroup.html 7.22 KB
<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <title>您的好友赠送您- {$tpshop_config['shop_info_store_title']}</title>
    <link rel="stylesheet" href="__STATIC__/css/giftuser/common_new.css?v3" />
    <link rel="stylesheet" href="__STATIC__/css/giftuser/receive_gift_new.css?v3" />
    <link rel="stylesheet" href="__STATIC__/css/giftuser/xinyi/css/xinyi.css" />
</head>
<body>
<div id="win" class="win_none">
    <div class="tips"></div>
</div>
<div class="layout card">
    <div class="stage">
        <!--赠言start!-->
        <div class="msg">一点心意,希望您喜欢!</div>
        <div class="scenegoods">
            <div class="scenemsgvoice">
                <span class="rotate"></span>
                <div class="layoutscene">
                </div>
            </div>
            <!--商品图start!-->
            <div class="layoutpic">
                <span class="rotate"></span>
                <img src="http://youzhipai.b0.upaiyun.com/uploads/pic/12/1512625394788.jpeg" />
            </div>
            <!--商品图end!-->
        </div>
    </div>
    <div class="layout_gift">
        <div>
            <h3>您的好友赠送您</h3>
            <div>
				<span class="giftlist">
                    <i class="child">
                        <i>
                            <i>美国进口卡富芮氏全脂巴氏鲜牛奶 355ml</i>
                            <i>X1</i>
                        </i>

                    </i>
				</span>
            </div>
        </div>
    </div>

    <div class="btn_b donation">
        <a class="btn" href="/warehouse/receiveGiftFormGroup/GC1520924474092MznW/2?isAnonymous=0">立即领取</a>
        <a class="btn" id="shareToOtherFromShoppingCart" href="javascript:void(0);">转赠他人</a>
        <input type="hidden" id="giftCode" value="GC1520924474092MznW" />
    </div>
    <div class="prompt">
        为保障隐私,收礼人地址信息不会透露给送礼人。
    </div>
    <!-- #BeginLibraryItem "/Library/copyright.lbi" -->
    <!-- #EndLibraryItem -->
</div>
</body>
<input type="hidden" id="title" value="Season送*nin*份礼品【卡富芮氏巴氏鲜奶355ml】1份" />
<input type="hidden" id="desc" value="快来填写收货地址完成领取吧!" />
<input type="hidden" id="link" value="https://weixin.youzhipai.cn/warehouse/newShareRecieveLink/" />
<input type="hidden" id="imgUrl" value="http://other.youzhipai.cn/staticImg/box.png" />
<input type="hidden" id="recFlag" value="2" />
<input type="hidden" id="sid" value="12" />
<input type="hidden" id="isAnonymous" value="0" />
<input type="hidden" id="fromOpenId" value="ofj4bwMF2M6c1wX7TSqGpxPVkagM" />
<input type="hidden" id="sceneHtml" value="&lt;div class=&quot;xinyi&quot;&gt;
	&lt;div class=&quot;box2&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;box&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;flower&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;chestnut&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;envelope&quot;&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;/li&gt;
			&lt;li&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
	&lt;div class=&quot;fireworks&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;fireworks2&quot;&gt;&lt;/div&gt;
&lt;/div&gt;" />
<script src="__STATIC__/js/jquery.js" type="text/javascript"></script>
<script src="__STATIC__/giftuser/js/fastclick.js" type="text/javascript"></script>
<div>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script type="text/javascript" src="__STATIC__/giftuser/js/wechat_common.js"></script>
</div>
<script src="__STATIC__/giftuser/js/redirect_url_handle.js"></script>
<script type="text/javascript">
    /*<![CDATA[*/
    $(function(){
        var sceneHtml = $("#sceneHtml").val();
        if(sceneHtml){
            $('.layoutscene').html(sceneHtml);
        }
        $('#shareToOther').on('click',function(){
            $("#win").attr("class","win");
            var shareObject = {
                shareTitle: $("#title").val(),
                shareDesc: $("#desc").val(),
                shareLink: $("#link").url_handle()+$("#recCode").val()+"/"+$("#recFlag").val()+"/1"+"?sceneId=0&isAnonymous=1&fromOpenId="+$("#fromOpenId").val(),
                shareImgUrl: $("#imgUrl").val(),
                shareType: 'link',
                successCallback: function () {
                    $(".win").attr("class","win_none");
                },
                cancelCallback: function () {
                    $(".win").attr("class","win_none");
                }
            };
            wechat_common.wechat_share_app_message(shareObject);
        });
        $('#shareToOtherFromShoppingCart').on('click',function(){
            $("#win").attr("class","win");
            var shareObject = {
                shareTitle: $("#title").val().replace("*nin*","您1"),
                shareDesc: $("#desc").val(),
                shareLink: $("#link").url_handle()+$("#giftCode").val()+"/"+$("#recFlag").val()+"/2"+"?sceneId=0&isAnonymous=1&fromOpenId="+$("#fromOpenId").val(),
                shareImgUrl: $("#imgUrl").val(),
                shareType: 'link',
                successCallback: function () {
                    $(".win").attr("class","win_none");
                },
                cancelCallback: function () {
                    $(".win").attr("class","win_none");
                }
            };
            wechat_common.wechat_share_app_message(shareObject);
        })
        $("body").on('click','.win',function(){
            $(this).attr("class","win_none");
        });
    })
    /*]]>*/

    //
    $(function($) {
        var appHeight = $(window).height();
        $(".layout").css({
            "min-height" : appHeight
        });

        //定时播放场景动画
        setTimeout(function() {
            $(".layoutscene *").show();
        }, 1000)
        //礼物超过2件折叠
        var childlength=$(".giftlist > i").children("i").length;
        if(childlength>2) {
            $(".giftlist").addClass("More");
            $(".giftlist").on("click",function(e){
                $(".giftlist").toggleClass("fold")
            });
        }
        //翻转
        var goodspicnum=$(".scenegoods").find(".layoutpic").length;
        if(goodspicnum==1) {
            $(".scenegoods").addClass("flip");
            $(".scenegoods").css("animation-delay","5s");
            $(".voice").on("click", function(e) {
                $(".scenegoods").removeClass("flip");
                $(".scenegoods").removeAttr("style");
            });
            $(".layoutpic").on("click",function(e){
                $(".scenegoods").removeClass("flip");
                $(".scenegoods").removeAttr("style");
                $(".scenegoods").addClass("flip2");
            });
            $(".scenemsgvoice").on("click",function(e){
                $(".scenegoods").removeClass("flip2");
                $(".scenegoods").addClass("flip");
            });
        } else {return false}

    })

</script>
<script src="__STATIC__/giftuser/js/aboutOpenId.js" type="text/javascript"></script>
<script src="__STATIC__/giftuser/js/voice.js" type="text/javascript"></script>
</html>