<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
        <meta name="format-detection" content="telephone=no">
        <title>宝贝,因“喂”爱你</title>
        <link rel="stylesheet" href="css/activity.css">
        <link rel="stylesheet" href="css/toast.css">
        <!-- <link rel="stylesheet" href="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css">
        <link rel="stylesheet" href="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"> -->
        <!-- <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotosjs/js/jquery-3.4.1.min.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/pageJson/userJson.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/shareModal.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/voteModal.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/autoFontsize.min.js"></script>
        <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> -->
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/jquery-3.4.1.min.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/toast.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/pageJson/userJson.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/shareModal.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/voteModal.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/removeAttr.js"></script>
        <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/autoFontsize.min.js"></script>
        <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
        <script type="text/javascript">
            var data = {
                "id": "17",
                "pageNumber": "1",
                "backgroundColor": "",
                "htmlJson": {
                    "node": "root",
                    "child": [
                    {
                    "node": "element",
                    "tag": "div",
                    "attr": {
                    "id": "html-template-3",
                    "class": "container"
                    },
                    "child": [
                    {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "class": "full-width"
                        },
                        "child": [
                        {
                        "node": "element",
                        "tag": "img",
                        "attr": {
                        "id": "act31044562973012",
                        "c_typename": "logo",
                        "c_type": "image",
                        "c_width": "135",
                        "c_height": "50",
                        "c_desc": "建议上传135X50的图片",
                        "src": "http://qnfile.icareyou.net/f6ec1cb23c0740d0995c91de7a9964c21560411548597.jpg",
                        "class": "act-logo"
                        }
                        },
                        {
                        "node": "text",
                        "text": " "
                        },
                        {
                        "node": "element",
                        "tag": "img",
                        "attr": {
                        "id": "act3105344332423",
                        "c_typename": "mainBanner",
                        "c_type": "image",
                        "c_width": "375",
                        "c_height": "367",
                        "c_desc": "建议上传375X367的图片",
                        "src": "http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg",
                        "class": "full-width"
                        }
                        },
                        {
                        "node": "text",
                        "text": " "
                        },
                        {
                        "node": "element",
                        "tag": "img",
                        "attr": {
                        "id": "act3110143885264",
                        "c_typename": "returnBack",
                        "c_type": "image",
                        "c_width": "154",
                        "c_height": "64",
                        "c_desc": "建议上传154X64的图片",
                        "src": "http://qnfile.icareyou.net/fa5b58b475bf40b9968804c3496845631560913467100",
                        "class": "return-back"
                        }
                        }
                        ]
                    },
                    {
                        "node": "text",
                        "text": " "
                    },
                    {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "class": "content"
                        },
                        "child": [
                        {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "id": "act31142119991744",
                        "class": "countdown"
                        },
                        "child": [
                        {
                            "node": "text",
                            "text": "             投票结束倒计时:"
                        },
                        {
                            "node": "element",
                            "tag": "span",
                            "child": [
                            {
                            "node": "text",
                            "text": "0天00时00分"
                            }
                            ]
                        }
                        ]
                        },
                        {
                        "node": "text",
                        "text": " "
                        },
                        {
                        "node": "element",
                        "tag": "ul",
                        "attr": {
                        "class": [
                            "tab-list",
                            "m-b"
                        ]
                        },
                        "child": [
                        {
                            "node": "element",
                            "tag": "li",
                            "child": [
                            {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "id": "act31119351441050",
                            "c_typename": "playerVotingBtn",
                            "c_type": "image",
                            "c_width": "184",
                            "c_height": "82",
                            "c_desc": "建议上传184X82的图片",
                            "src": "http://qnfile.icareyou.net/2706845413b541fcbcaaaea37a8a5a061560914799693"
                            }
                            }
                            ]
                        },
                        {
                            "node": "text",
                            "text": " "
                        },
                        {
                            "node": "element",
                            "tag": "li",
                            "child": [
                            {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "id": "act31119414834381",
                            "c_typename": "playerVotedBtn",
                            "c_type": "image",
                            "c_width": "184",
                            "c_height": "82",
                            "c_desc": "建议上传184X82的图片",
                            "src": "http://qnfile.icareyou.net/fcec94d65cb145518fd1b701465796f21560914835104"
                            }
                            }
                            ]
                        }
                        ]
                        },
                        {
                        "node": "text",
                        "text": " "
                        },
                        {
                        "node": "element",
                        "tag": "form",
                        "attr": {
                        "id": "act3932189955",
                        "class": "sign-form"
                        },
                        "child": [
                        {
                            "node": "element",
                            "tag": "div",
                            "attr": {
                            "class": [
                            "user-info",
                            "m-b"
                            ]
                            },
                            "child": [
                            {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "src": "http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg",
                            "class": "inner-pic"
                            }
                            },
                            {
                            "node": "text",
                            "text": " "
                            },
                            {
                            "node": "element",
                            "tag": "div",
                            "attr": {
                            "class": "inner-info"
                            },
                            "child": [
                            {
                                "node": "element",
                                "tag": "div",
                                "attr": {
                                "class": "userName"
                                },
                                "child": [
                                {
                                "node": "text",
                                "text": "                         姓名:"
                                },
                                {
                                "node": "element",
                                "tag": "span",
                                "child": [
                                {
                                    "node": "text",
                                    "text": "hehe"
                                }
                                ]
                                }
                                ]
                            },
                            {
                                "node": "text",
                                "text": " "
                            },
                            {
                                "node": "element",
                                "tag": "div",
                                "attr": {
                                "class": "userNo"
                                },
                                "child": [
                                {
                                "node": "text",
                                "text": "                         编号:"
                                },
                                {
                                "node": "element",
                                "tag": "span",
                                "child": [
                                {
                                    "node": "text",
                                    "text": "hehe"
                                }
                                ]
                                }
                                ]
                            },
                            {
                                "node": "text",
                                "text": " "
                            },
                            {
                                "node": "element",
                                "tag": "div",
                                "attr": {
                                "class": "userRank"
                                },
                                "child": [
                                {
                                "node": "text",
                                "text": "                         排名:"
                                },
                                {
                                "node": "element",
                                "tag": "span",
                                "child": [
                                {
                                    "node": "text",
                                    "text": "hehe"
                                }
                                ]
                                }
                                ]
                            },
                            {
                                "node": "text",
                                "text": " "
                            },
                            {
                                "node": "element",
                                "tag": "div",
                                "attr": {
                                "class": "userVoteNum"
                                },
                                "child": [
                                {
                                "node": "text",
                                "text": "                         票数:"
                                },
                                {
                                "node": "element",
                                "tag": "span",
                                "child": [
                                {
                                    "node": "text",
                                    "text": "hehe"
                                }
                                ]
                                }
                                ]
                            }
                            ]
                            }
                            ]
                        },
                        {
                            "node": "text",
                            "text": " "
                        },
                        {
                            "node": "element",
                            "tag": "div",
                            "attr": {
                            "class": [
                            "form-row",
                            "m-b"
                            ]
                            },
                            "child": [
                            {
                            "node": "element",
                            "tag": "div",
                            "attr": {
                            "class": "form-input-group"
                            },
                            "child": [
                            {
                                "node": "element",
                                "tag": "div",
                                "attr": {
                                "class": "form-input-group-inner"
                                },
                                "child": [
                                {
                                "node": "element",
                                "tag": "input",
                                "attr": {
                                "type": "text",
                                "name": "note",
                                "c_remove": "readonly",
                                "placeholder": "请输入介绍/拉票宣言等,字数仅限XXX",
                                "class": "userState"
                                }
                                }
                                ]
                            }
                            ]
                            }
                            ]
                        },
                        {
                            "node": "text",
                            "text": " "
                        },
                        {
                            "node": "element",
                            "tag": "div",
                            "attr": {
                            "class": [
                            "form-row",
                            "text-center",
                            "m-b"
                            ]
                            },
                            "child": [
                            {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "src": "http://qnfile.icareyou.net/728ba828fe094d4c8dac41828561bdd61560926221478",
                            "class": "show-pic"
                            }
                            }
                            ]
                        }
                        ]
                        }
                        ]
                    },
                    {
                        "node": "text",
                        "text": " "
                    },
                    {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "class": "index-bottom"
                        },
                        "child": [
                        {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "class": "btn-group-info"
                        },
                        "child": [
                        {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "id": "act41612547506702",
                            "c_typename": "rangeListBtn",
                            "c_type": "image",
                            "c_width": "154",
                            "c_height": "64",
                            "c_desc": "建议上传154x64的图片",
                            "src": "http://qnfile.icareyou.net/1b560d6dfe2d4e8e8a05fe90336cc5f61560411872708.jpg"
                            }
                        }
                        ]
                        },
                        {
                        "node": "text",
                        "text": " "
                        },
                        {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "class": "btn-group-info"
                        },
                        "child": [
                        {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "id": "act4161336684689",
                            "c_typename": "playerIndexBtn",
                            "c_type": "image",
                            "c_width": "154",
                            "c_height": "64",
                            "c_desc": "建议上传154x64的图片",
                            "src": "http://qnfile.icareyou.net/1c24d979349f482aafd737c2d5acb8e11560411839686.jpg"
                            }
                        }
                        ]
                        },
                        {
                        "node": "text",
                        "text": " "
                        },
                        {
                        "node": "element",
                        "tag": "div",
                        "attr": {
                        "class": "btn-group-info"
                        },
                        "child": [
                        {
                            "node": "element",
                            "tag": "img",
                            "attr": {
                            "id": "act41613113951133",
                            "c_typename": "ruleBtn",
                            "c_type": "image",
                            "c_width": "154",
                            "c_height": "64",
                            "c_desc": "建议上传154x64的图片",
                            "src": "http://qnfile.icareyou.net/c5f549aeb74749ac9529b28cc78c715f1560411823738.jpg"
                            }
                        }
                        ]
                        }
                        ]
                    }
                    ]
                    }
                    ]
                },   //页面
                "dataJson": "",
                "relationship": "",   // 弹框
                "createTime": "2019-07-02 15:46:09",
                "updateTime": "2019-07-09 17:15:13",
                "playerVote1": {
                    "id": "17",
                    "pageNumber": "1",
                    "backgroundColor": "",
                    "htmlJson": {"node":"root","child":[{"node":"element","tag":"div","attr":{"id":"html-template-4"},"child":[{"node":"element","tag":"div","attr":{"id":"act21721403452449","class":"c-modal-wrap"},"child":[{"node":"element","tag":"div","attr":{"class":"mshe-mask"}},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"c-modal"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-dialog"},"child":[{"node":"element","tag":"div","attr":{"id":"act1174937205684","c_desc":"投票成功<br/>今天还可投<span>{{数量}}</span>票","c_type":"dialog","c_typename":"dialog_playerVote1","c_onesrc":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg","c_twosrc":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg","class":"modal-content"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-header"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg","class":"header-pic"}}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-body"},"child":[{"node":"element","tag":"p","attr":{"id":"act1185354268270","class":"struct"},"child":[{"node":"text","text":"投票成功"},{"node":"element","tag":"br"},{"node":"text","text":"今天还可投"},{"node":"element","tag":"span","child":[{"node":"text","text":"{{数量}}"}]},{"node":"text","text":"票"}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act21728433893489","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"}}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act2172989331265","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"}}]}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-close"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"}}]}]}]}]}]}]}]},   //页面
                    "dataJson": "",
                },
                "playerVote1": {
                    "id": "17",
                    "pageNumber": "1",
                    "backgroundColor": "",
                    "htmlJson": {"node":"root","child":[{"node":"element","tag":"div","attr":{"id":"html-template-4"},"child":[{"node":"element","tag":"div","attr":{"id":"act21721403452449","class":"c-modal-wrap"},"child":[{"node":"element","tag":"div","attr":{"class":"mshe-mask"}},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"c-modal"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-dialog"},"child":[{"node":"element","tag":"div","attr":{"id":"act1174937205684","c_desc":"投票成功<br/>今天还可投<span>{{数量}}</span>票","c_type":"dialog","c_typename":"dialog_playerVote1","c_onesrc":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg","c_twosrc":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg","class":"modal-content"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-header"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg","class":"header-pic"}}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-body"},"child":[{"node":"element","tag":"p","attr":{"id":"act1185354268270","class":"struct"},"child":[{"node":"text","text":"投票成功"},{"node":"element","tag":"br"},{"node":"text","text":"今天还可投"},{"node":"element","tag":"span","child":[{"node":"text","text":"{{数量}}"}]},{"node":"text","text":"票"}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act21728433893489","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"}}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act2172989331265","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"}}]}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-close"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"}}]}]}]}]}]}]}]},   //页面
                    "dataJson": "",
                },
                "playerVote1": {
                    "id": "17",
                    "pageNumber": "1",
                    "backgroundColor": "",
                    "htmlJson": {"node":"root","child":[{"node":"element","tag":"div","attr":{"id":"html-template-4"},"child":[{"node":"element","tag":"div","attr":{"id":"act21721403452449","class":"c-modal-wrap"},"child":[{"node":"element","tag":"div","attr":{"class":"mshe-mask"}},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"c-modal"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-dialog"},"child":[{"node":"element","tag":"div","attr":{"id":"act1174937205684","c_desc":"投票成功<br/>今天还可投<span>{{数量}}</span>票","c_type":"dialog","c_typename":"dialog_playerVote1","c_onesrc":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg","c_twosrc":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg","class":"modal-content"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-header"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg","class":"header-pic"}}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-body"},"child":[{"node":"element","tag":"p","attr":{"id":"act1185354268270","class":"struct"},"child":[{"node":"text","text":"投票成功"},{"node":"element","tag":"br"},{"node":"text","text":"今天还可投"},{"node":"element","tag":"span","child":[{"node":"text","text":"{{数量}}"}]},{"node":"text","text":"票"}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act21728433893489","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"}}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act2172989331265","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"}}]}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-close"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"}}]}]}]}]}]}]}]},   //页面
                    "dataJson": "",
                },
                "playerVote1": {
                    "id": "17",
                    "pageNumber": "1",
                    "backgroundColor": "",
                    "htmlJson": {"node":"root","child":[{"node":"element","tag":"div","attr":{"id":"html-template-4"},"child":[{"node":"element","tag":"div","attr":{"id":"act21721403452449","class":"c-modal-wrap"},"child":[{"node":"element","tag":"div","attr":{"class":"mshe-mask"}},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"c-modal"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-dialog"},"child":[{"node":"element","tag":"div","attr":{"id":"act1174937205684","c_desc":"投票成功<br/>今天还可投<span>{{数量}}</span>票","c_type":"dialog","c_typename":"dialog_playerVote1","c_onesrc":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg","c_twosrc":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg","class":"modal-content"},"child":[{"node":"element","tag":"div","attr":{"class":"modal-header"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg","class":"header-pic"}}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-body"},"child":[{"node":"element","tag":"p","attr":{"id":"act1185354268270","class":"struct"},"child":[{"node":"text","text":"投票成功"},{"node":"element","tag":"br"},{"node":"text","text":"今天还可投"},{"node":"element","tag":"span","child":[{"node":"text","text":"{{数量}}"}]},{"node":"text","text":"票"}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act21728433893489","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"}}]},{"node":"text","text":" "},{"node":"element","tag":"a","attr":{"href":"javascript:;","id":"act2172989331265","class":"goon-vote"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"}}]}]},{"node":"text","text":" "},{"node":"element","tag":"div","attr":{"class":"modal-close"},"child":[{"node":"element","tag":"img","attr":{"src":"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"}}]}]}]}]}]}]}]},   //页面
                    "dataJson": "",
                }
            }

            var rules = {
                "acActivity": {
                    "id": "5",
                    "createTime": "2019-06-11 15:48:59",
                    "updateTime": "2019-07-02 23:24:51",
                    "createUserId": "1",
                    "updateUserId": "1",
                    "organizerOrgId": "5235",
                    "activityStatus": 2,
                    "name": "活动通版晒照测试1",
                    "code": "hdtbsztest1",
                    "startTime": "2019-06-11 15:44:45",
                    "endTime": "2019-09-12 15:44:50",
                    "lcTimeType": 3,
                    "bindOrg": true,
                    "kgMpId": "0",
                    "qrCodeMessage": "",
                    "kgAcActivityTypeId": "1"
                },
                "acActivityOrgs": [],
                "acActivityRegistrationAudit": "",
                "settings": {
                    "szText": {
                        "id": "7",
                        "kgAcActivityId": "5",
                        "shareTitile": "share title",
                        "shareSubtitle": "share cotentn",
                        "shareIcon": "",
                        "pullTitile": "sha",
                        "pullSubtitle": "hhhh",
                        "h5Title": "",
                        "createTime": "2019-06-23 03:04:27",
                        "updateTime": "2019-07-05 16:29:38"
                    },
                    "szRule": {
                        "id": "9",
                        "kgAcActivityId": "5",
                        "registeringWx": true,
                        "registeringOrg": false,
                        "voteWx": false,
                        "voteOrg": false,
                        "voteNumDay": 50,
                        "voteNumPeople": 9999,
                        "createTime": "2019-06-23 03:04:21",
                        "updateTime": "2019-07-06 03:25:17"
                    }
                }
            }

            var user = {
                id:'',
                token: 'admin.725.b9d085900b8546fcb26e1683e8f4e7bb',
                status: '' // 报名状态
            }
        </script>
        <script type="text/javascript">
            wx.config({
                debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
                appId: '${appId!}', // 必填,公众号的唯一标识
                timestamp:'${timestamp!}', // 必填,生成签名的时间戳
                nonceStr: '${noncestr!}', // 必填,生成签名的随机串
                signature: '${signature!}',// 必填,签名,见附录1
                jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','startRecord','stopRecord','onVoiceRecordEnd','playVoice','pauseVoice','stopVoice','onVoicePlayEnd'
                            ,'uploadVoice','downloadVoice','chooseImage','previewImage','uploadImage','downloadImage','translateVoice','openLocation'
                            ,'getLocation','hideOptionMenu','showOptionMenu','hideMenuItems','showMenuItems','scanQRCode','chooseWXPay','addCard','chooseCard','openCard'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
            });
        </script>
    </head>
    <body>
        
    </body>
</html>
<script type="text/javascript">

    // 公共变量
    var pageNumber = "1";
    var baseUrl = "https://space-api.check.icaremgt.com";

    $('body').prepend(json2html(userObj));
    $('body').prepend(json2html(shareModal));
    $('body').prepend(json2html(voteModal));
    $('body').prepend(json2html(voteEmptyModal));
    $('#html-template-4').addClass('global-none');
    $('#html-template-5').addClass('global-none')
    $('#html-template-8').addClass('global-none');
    var gb_vote_loaded = false
    
    $(function(){
        btnBindClick();// 绑定点击事件
        userCountDown(10,$('#act31142119991744 span'));  //倒计时
        userTabInfo();
        wxpermission();
    });

    // 微信鉴权
    function wxpermission() {
        wx.ready(function(){
            var shareData = {
                title: "",
                imgUrl: "",
                desc: "",
                link: ""
            }
            /**
             *分享给朋友
            */
            wx.onMenuShareAppMessage({
                title: shareData.title, // 分享标题
                desc: shareData.desc, // 分享描述
                link: shareData.link, // 分享链接
                imgUrl: shareData.imgUrl, // 分享图标
                type: 'link', // 分享类型,music、video或link,不填默认为link
                dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
            /**
             *分享到朋友圈
            */
            wx.onMenuShareTimeline({
                title: shareData.title, // 分享标题
                desc: shareData.desc, // 分享描述
                link: shareData.link, // 分享链接
                imgUrl: shareData.imgUrl, // 分享图标
                success: function () {
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
        });
    }

    // 元素点击事件绑定
    function btnBindClick() {
        // 返回首页
        $("#act3110143885264").off("click").on("click",function(){
            window.location.href = '/index.html'
        });
        // 拉票
        $('#act31119351441050').off("click").on("click",function(){
            $('#html-template-8').fadeIn()
        });
        // 分享弹框关闭
        $(document).on('click','#html-template-8 .modal-close',function(){
            $('#html-template-8').fadeOut()
        });
        // 投票
        $('#act31119414834381').off("click").on("click",function(){
            voteClickFn()
        });
        // 我要拉票
        $('#act2172989331265').off("click").on("click",function(){
            $('#html-template-8').fadeIn()
        });
        // 继续投票
        $('#act21728433893489').off("click").on("click",function(){
            voteClickFn()
        });
        // 投票弹框关闭
        $(document).on('click','#html-template-4 .modal-close',function(){
            $('#html-template-4').fadeOut()
        });

        // 排行榜
        $("#act41612547506702").off('click').on("click", function(){
            window.location.href = '/index.html'
        });

        // 选手主页    
        $("#act4161336684689").off("click").on("click", function(){
            window.location.href = '/user.html'
        });

        // 活动秘籍    
        $("#act41613113951133").off("click").on("click", function(){
            $('#html-template-8').fadeIn()
        });
    }
    // 倒计时
    function userCountDown(times,ids){
      var timer=null;
      var self = this
      var times = times
      timer=setInterval(function(){
        var day=0,
          hour=0,
          minute=0,
          second=0;//时间默认值
        if(times > 0){
          day = Math.floor(times / (60 * 60 * 24));
          hour = Math.floor(times / (60 * 60)) - (day * 24);
          minute = Math.floor(times / 60) - (day * 24 * 60) - (hour * 60);
          second = Math.floor(times) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
        }
        if (day <= 9) day = '0' + day;
        if (hour <= 9) hour = '0' + hour;
        if (minute <= 9) minute = '0' + minute;
        if (second <= 9) second = '0' + second;
        ids.html((day != 00 ? day + "天" : '')+hour+"时"+minute+"分"+second+"秒")
        times--;
        if(times<0){
            clearInterval(timer);
            ids.parent().addClass('global-none')
          }
      },1000);
    }

    // 个人信息展示
    function userTabInfo() {
        var activityCode = rules.acActivity.code
        var id = getQueryString('UserId')?getQueryString('UserId'):user.id;
        var params = {
            id: id,
            reviewStatus:1  // 审核状态
        }
        $.ajax({
            type: 'GET',
            url: baseUrl + '/ACTIVITY/sz/search/' + activityCode,
            data: params,
            success: function(data) {
                if(data.status == 200) {
                    var userInfoObj = data.result && data.result.records && data.result.records[0]
                    $('#act3932189955 .user-info .inner-pic').attr('src',userInfoObj.wechatAvatarUrl);
                    var innerInfo = $('#act3932189955 .user-info .inner-info')
                    innerInfo.find('.userName span').text(userInfoObj.name)
                    innerInfo.find('.userNo span').text(userInfoObj.userNumber)
                    innerInfo.find('.userRank span').text(userInfoObj.userRank)   // 排名
                    innerInfo.find('.userVoteNum span').text(userInfoObj.voteNum)
                    $('#act3932189955 .userState').val(userInfoObj.declaration)
                    $('#act3932189955 .userState').attr('readOnly','readOnly')
                    $('#act3932189955 .show-pic').attr('src',userInfoObj.imageUrl);
                }
            },
            error: function() {
                showMessage('请求超时,请尝试刷新页面!',3000,true);
            }
        })
    }  
    
    // 投票按钮
    function voteClickFn(){
      var id = getQueryString('UserId')?getQueryString('UserId'):user.id;
      var _this = $(this)
      var params = {
        userId: id
      }
      var activityCode = rules.acActivity.code;
      if(gb_vote_loaded) {
        return
      }
      gb_vote_loaded = true
      $.ajax({
        type: 'PUT',
        url: baseUrl + '/ACTIVITY/sz/vote/' + activityCode,
        data: params,
        success: function(data) {
            gb_vote_loaded = false
            if(data.status == 200) {
                $('#act1185354268270 span').text(data.result.voteNumDay)
                $('#act3932189955 .user-info .inner-info').find('.userVoteNum span').text(data.result.voteNum)
                $('#html-template-4').fadeIn()
            }else if(data.status == 201) {
                $('#act51626389412499 span').text(rules.szRule.voteNumDay)    // 模板参数中获取
                $('#html-template-5').fadeIn()
            }
        },
        error: function() {
            gb_vote_loaded = false
        }
      })
    }

    // 获取URL中指定参数
    function getQueryString(name) {
        var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            return unescape(r[2]);
        }
        return null;
    }

    // 页面跳转
    function transPage(_pageNumber,_activityCode, _token, _urlParam){
        var url = ''
        if(typeof _urlParam !=='undefined' && _urlParam !== ''){
            url = baseUrl + "/ACTIVITY/view/"+ _activityCode +"/" + _pageNumber + '?' + _urlParam;
        }else {
            url = baseUrl + "/ACTIVITY/view/"+ _activityCode +"/" + _pageNumber;
        }

        var _form = document.createElement('form');
        _form.action = url;
        _form.method = "post";
        _form.style.display = "none";
        
        var inputToken = document.createElement('input');
        inputToken.value = _token;
        inputToken.name = 'x-token';
        _form.appendChild(inputToken);
        document.body.appendChild(_form);
        _form.submit();
    }       
</script>