xuguohong

udpate sdk

No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<projectDescription>
3 + <name>sdk_3</name>
4 + <comment></comment>
5 + <projects>
6 + </projects>
7 + <buildSpec>
8 + <buildCommand>
9 + <name>com.aptana.editor.php.aptanaPhpBuilder</name>
10 + <arguments>
11 + </arguments>
12 + </buildCommand>
13 + <buildCommand>
14 + <name>com.aptana.ide.core.unifiedBuilder</name>
15 + <arguments>
16 + </arguments>
17 + </buildCommand>
18 + </buildSpec>
19 + <natures>
20 + <nature>com.aptana.projects.webnature</nature>
21 + <nature>com.aptana.editor.php.phpNature</nature>
22 + </natures>
23 + <filteredResources>
24 + <filter>
25 + <id>1489975865951</id>
26 + <name></name>
27 + <type>26</type>
28 + <matcher>
29 + <id>org.eclipse.ui.ide.multiFilter</id>
30 + <arguments>1.0-name-matches-false-false-node_modules</arguments>
31 + </matcher>
32 + </filter>
33 + </filteredResources>
34 +</projectDescription>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <html> 2 <html>
3 3
4 <head> 4 <head>
5 - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> 5 + <meta name="viewport" content="width=device-width, user-scalable=no" />
6 <meta name="apple-mobile-web-app-capable" content="yes" /> 6 <meta name="apple-mobile-web-app-capable" content="yes" />
7 <meta name="apple-mobile-web-app-status-bar-style" content="black" /> 7 <meta name="apple-mobile-web-app-status-bar-style" content="black" />
8 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 8 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
...@@ -10,41 +10,39 @@ ...@@ -10,41 +10,39 @@
10 <meta name="screen-orientation" content="portrait"> 10 <meta name="screen-orientation" content="portrait">
11 <meta name="full-screen" content="yes"> 11 <meta name="full-screen" content="yes">
12 <meta http-equiv="x-ua-compatible" content="IE=edge" /> 12 <meta http-equiv="x-ua-compatible" content="IE=edge" />
13 -
14 - <link href="skin/login.css?v=20150923001" type="text/css" rel="stylesheet" />
15 <title> 13 <title>
16 - 游娱手游平台支付 14 + 手游平台支付
17 </title> 15 </title>
16 + <style>
17 + h4,p{font-size: 24px;
18 + font-weight: normal;
19 + padding: 0 20px;font-family: "微软雅黑"; width: 100%;}
20 + p{ text-indent: 2em;}
21 + </style>
18 </head> 22 </head>
19 23
20 <body> 24 <body>
21 - <!-- 协议模块 --> 25 + <div class="mask"></div>
22 - <section id="agreement"> 26 + <div class="horizontal" style="height: 220px;">
23 - <div class="new-sdk-container"> 27 + <h4>1. 海豹游戏服务条款的接受</h4>
24 - <div class="SDK-titlebox"></div> 28 + <p>1.1 海豹游戏由广州游爱兄弟信息技术有限公司(以下简称“游爱兄弟”)及其关联公司合法运营,海豹游戏在本用户服务协议的条款和要求下提供服务。</p>
25 - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> 29 + <p>1.2 当用户访问、浏览及使用海豹游戏提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p>
26 - <div class="new-sdk-content"> 30 + <p>1.3 本服务协议所称的用户是指完全同意本服务协议所有条款(以下简称“服务条款”)并访问或浏览海豹游戏相关页面的服务接受者。</p>
27 - <h3>游娱网络服务协议</h3>
28 - <div class="content-main">
29 - <h4>1. 游娱账号服务条款的接受</h4>
30 - <p>1.1 游娱账号由上海游爱之星信息科技有限公司(以下简称“游爱之星”)及其关联公司所有并合法运营,游爱之星及其关联公司并在本用户服务协议的条款和要求下提供服务。</p>
31 - <p>1.2 当用户访问、浏览及使用游娱账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p>
32 - <p>1.3 本服务协议所称的用户是指完全同意本服务协议所有条款(以下简称“服务条款”)并访问或浏览游娱账号相关页面的服务接受者。</p>
33 <h4>2. 服务条款的变更和修改</h4> 31 <h4>2. 服务条款的变更和修改</h4>
34 - <p>游爱之星保留依其自主判断在将来的任何时间变更、修改、增加或删除本服务协议条款的权利。所有修改的协议均构成本服务协议的一部分。游爱之星有权随时对服务条款进行修改,一旦发生服务条款的变动,游爱之星将公示修改的内容;当用户使用游娱账号的任何服务时,应接受游娱账号随时提供的与该服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的服务;如果用户继续享用服务,则视为用户已经接受服务条款的修改。</p> 32 + <p>海豹游戏保留依其自主判断在将来的任何时间变更、修改、增加或删除本服务协议条款的权利。所有修改的协议均构成本服务协议的一部分。海豹游戏有权随时对服务条款进行修改,一旦发生服务条款的变动,海豹游戏将公示修改的内容;当用户使用海豹游戏的任何服务时,应接受海豹游戏随时提供的与该服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的服务;如果用户继续享用服务,则视为用户已经接受服务条款的修改。</p>
35 <h4>3. 服务说明</h4> 33 <h4>3. 服务说明</h4>
36 - <p>3.1 游爱之星运用自己的操作系统通过国际互联网向用户提供丰富的网上资源,包括网盘、书签、邮箱、皮肤、微博、空间、游戏、论坛、SNS社区和实时定位、好友识别等其它个性化服务(以下简称本服务)。除非另有明确规定,基于增强或强化目前服务目的所新增的任何新功能、服务、新产品,均无条件地适用本服务条款。</p> 34 + <p>3.1 海豹游戏运用自己的操作系统通过国际互联网向用户提供丰富的网上资源,包括网盘、书签、邮箱、皮肤、微博、空间、游戏、论坛、SNS社区和实时定位、好友识别等其它个性化服务(以下简称本服务)。除非另有明确规定,基于增强或强化目前服务目的所新增的任何新功能、服务、新产品,均无条件地适用本服务条款。</p>
37 - <p>3.2 除非本协议中另有规定,否则游爱之星对服务不承担任何责任,即用户对服务的使用承担风险。游爱之星不保证服务一定会满足用户的使用要求,也不保证服务不会中断,对服务的及时性、安全性、准确性也不作担保。</p> 35 + <p>3.2 除非本协议中另有规定,否则海豹游戏对服务不承担任何责任,即用户对服务的使用承担风险。海豹游戏不保证服务一定会满足用户的使用要求,也不保证服务不会中断,对服务的及时性、安全性、准确性也不作担保。</p>
38 <p>3.3 为使用本服务,用户必须自行配备接入国际互联网所必需的设备,包括计算机、手机、掌上电脑及其他存取装置或接受服务所需其它设备,并自行支付与此服务有关的费用。 </p> 36 <p>3.3 为使用本服务,用户必须自行配备接入国际互联网所必需的设备,包括计算机、手机、掌上电脑及其他存取装置或接受服务所需其它设备,并自行支付与此服务有关的费用。 </p>
39 - <p>3.4 游爱之星保留在日后对全部或部分服务项目收取费用的权利。</p> 37 + <p>3.4 海豹游戏保留在日后对全部或部分服务项目收取费用的权利。</p>
40 <p>3.5 用户接受本服务时,须提供完整、真实、准确、最新的个人资料并按其变更情况不断更新账号资料。</p> 38 <p>3.5 用户接受本服务时,须提供完整、真实、准确、最新的个人资料并按其变更情况不断更新账号资料。</p>
41 - <p>3.6 若用户提供任何错误、不实、过时或不完整的资料,或者游爱之星有合理理由怀疑前述资料为错误、不实、过时或不完整,游爱之星有权暂停或终止用户的账号,并拒绝其现在或将来使用本服务的全部或一部分。</p> 39 + <p>3.6 若用户提供任何错误、不实、过时或不完整的资料,或者海豹游戏有合理理由怀疑前述资料为错误、不实、过时或不完整,海豹游戏有权暂停或终止用户的账号,并拒绝其现在或将来使用本服务的全部或一部分。</p>
42 - <p>3.7 游爱之星有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件信息或其他上载内容的时间、限制本服务一个账号可接收信息的数量等措施。如游娱账号未能储存或删除本服务的内容或其他信息,游爱之星不负担任何责任。对于用户3个月未使用的账号,游爱之星有权(但无义务)予以删除。</p> 40 + <p>3.7 海豹游戏有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件信息或其他上载内容的时间、限制本服务一个账号可接收信息的数量等措施。如海豹游戏未能储存或删除本服务的内容或其他信息,海豹游戏不负担任何责任。对于用户3个月未使用的账号,海豹游戏有权(但无义务)予以删除。</p>
43 - <p>3.8 由于用户经由本服务张贴、上传或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三方提出权利主张或使游爱之星遭受任何形式的罚款或处罚,用户同意以适当方式充分消除对游爱之星的不利影响,赔偿游爱之星及其分公司、关联公司、代理人或其他合作伙伴及员工的损失,并使其免受损害。</p> 41 + <p>3.8 由于用户经由本服务张贴、上传或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三方提出权利主张或使海豹游戏遭受任何形式的罚款或处罚,用户同意以适当方式充分消除对海豹游戏的不利影响,赔偿海豹游戏及其分公司、关联公司、代理人或其他合作伙伴及员工的损失,并使其免受损害。</p>
44 <h4>4. 用户应遵守以下法律及法规</h4> 42 <h4>4. 用户应遵守以下法律及法规</h4>
45 - <p>用户同意遵守中华人民共和国相关法律、法规的规定,在使用游娱账号时,不得侵犯任何第三方的合法权益。在任何情况下,如果游爱之星有合理理由认为用户的行为可能违反上述法律、法规或侵犯第三方的合法权益,游爱之星可以在任何时候,不经事先通知终止向该用户提供服务。用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p> 43 + <p>用户同意遵守中华人民共和国相关法律、法规的规定,在使用海豹游戏时,不得侵犯任何第三方的合法权益。在任何情况下,如果海豹游戏有合理理由认为用户的行为可能违反上述法律、法规或侵犯第三方的合法权益,海豹游戏可以在任何时候,不经事先通知终止向该用户提供服务。用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p>
46 <h4>5. 用户隐私权</h4> 44 <h4>5. 用户隐私权</h4>
47 - <p>用户在遵守上述协议要求的前提下,游爱之星将充分保护用户享有个人隐私。除非因以下原因,未经用户授权,本网站不公开、编辑或透露其个人账号资料:</p> 45 + <p>用户在遵守上述协议要求的前提下,海豹游戏将充分保护用户享有个人隐私。除非因以下原因,未经用户授权,本网站不公开、编辑或透露其个人账号资料:</p>
48 <p>根据有关法律法规的要求;</p> 46 <p>根据有关法律法规的要求;</p>
49 <p>按照相关政府主管部门的要求;</p> 47 <p>按照相关政府主管部门的要求;</p>
50 <p>维护社会个体和公众的安全;</p> 48 <p>维护社会个体和公众的安全;</p>
...@@ -53,16 +51,16 @@ ...@@ -53,16 +51,16 @@
53 <p>事先获得用户的明确授权;</p> 51 <p>事先获得用户的明确授权;</p>
54 <p>符合其他相关的要求。</p> 52 <p>符合其他相关的要求。</p>
55 <h4>6. 用户账号、密码和安全</h4> 53 <h4>6. 用户账号、密码和安全</h4>
56 - <p>6.1 用户一旦注册成功,便成为游爱之星的注册用户,将得到一个密码和账号。用户有义务保证密码和账号的安全。用户对利用该密码和账号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,游爱之星无法也不会承担任何责任。</p> 54 + <p>6.1 用户一旦注册成功,便成为海豹游戏的注册用户,将得到一个密码和账号。用户有义务保证密码和账号的安全。用户对利用该密码和账号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,海豹游戏无法也不会承担任何责任。</p>
57 - <p>6.2 用户的密码和账号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知游爱之星。用户在每次连线结束,应结束账号使用,否则用户可能得不到游娱账号的安全保护。</p> 55 + <p>6.2 用户的密码和账号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知海豹游戏。用户在每次连线结束,应结束账号使用,否则用户可能得不到海豹游戏的安全保护。</p>
58 - <p>6.3 游爱之星禁止用户交易游娱账号,游爱之星有权收回用户交易的游娱账号。如果因用户交易游娱账号引起的任何纠纷,游爱之星不承担任何责任。</p> 56 + <p>6.3 海豹游戏禁止用户交易海豹游戏,海豹游戏有权收回用户交易的海豹游戏。如果因用户交易海豹游戏引起的任何纠纷,海豹游戏不承担任何责任。</p>
59 <h4>7. 对用户信息的存储和限制</h4> 57 <h4>7. 对用户信息的存储和限制</h4>
60 - <p>游爱之星不对用户在游娱账号任何服务下发布信息的删除或储存失败负责。游爱之星有权判断用户的行为是否符合游娱账号服务条款的规定,如果游爱之星认为用户违反了服务条款的规定,游爱之星有权删除用户发布或发送的信息,直至中断或终止向其提供服务。</p> 58 + <p>海豹游戏不对用户在海豹游戏任何服务下发布信息的删除或储存失败负责。海豹游戏有权判断用户的行为是否符合海豹游戏服务条款的规定,如果海豹游戏认为用户违反了服务条款的规定,海豹游戏有权删除用户发布或发送的信息,直至中断或终止向其提供服务。</p>
61 <h4>8. 禁止用户从事以下行为:</h4> 59 <h4>8. 禁止用户从事以下行为:</h4>
62 <p>8.1 上载、张贴、发送或传送任何非法、淫秽、色情、低俗的,胁迫、骚扰、中伤他人的,诽谤、侵害他人隐私或诋毁他人名誉或商誉的,其他违反国家法律法规、社会主义道德规范及不适当的信息或电子邮件,包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息、视频或其他资料(以下简称内容)。</p> 60 <p>8.1 上载、张贴、发送或传送任何非法、淫秽、色情、低俗的,胁迫、骚扰、中伤他人的,诽谤、侵害他人隐私或诋毁他人名誉或商誉的,其他违反国家法律法规、社会主义道德规范及不适当的信息或电子邮件,包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息、视频或其他资料(以下简称内容)。</p>
63 <p>8.2 以任何方式危害未成年人。</p> 61 <p>8.2 以任何方式危害未成年人。</p>
64 <p>8.3 冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为与任何人或任何机构有关。</p> 62 <p>8.3 冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为与任何人或任何机构有关。</p>
65 - <p>8.4 伪造标题或以其他方式操控识别资料,使人误认为该内容为游爱之星所传送。</p> 63 + <p>8.4 伪造标题或以其他方式操控识别资料,使人误认为该内容为海豹游戏所传送。</p>
66 <p>8.5 上载、张贴、发送电子邮件或以其他方式传送无权传送的内容。</p> 64 <p>8.5 上载、张贴、发送电子邮件或以其他方式传送无权传送的内容。</p>
67 <p>8.6 上载、张贴、发送电子邮件或以其他方式传送侵犯任何人的专利、商标、著作权、商业秘密或其他民事权利之内容。</p> 65 <p>8.6 上载、张贴、发送电子邮件或以其他方式传送侵犯任何人的专利、商标、著作权、商业秘密或其他民事权利之内容。</p>
68 <p>8.7 上载、张贴、发送电子邮件或以其他方式传送广告函件、促销资料、垃圾邮件等。</p> 66 <p>8.7 上载、张贴、发送电子邮件或以其他方式传送广告函件、促销资料、垃圾邮件等。</p>
...@@ -70,18 +68,18 @@ ...@@ -70,18 +68,18 @@
70 <p>8.9 违反任何相关的中国法律、法规、规章、条例等其他具有法律约束力的规范。</p> 68 <p>8.9 违反任何相关的中国法律、法规、规章、条例等其他具有法律约束力的规范。</p>
71 <p>8.10 跟踪或以其他方式骚扰他人。</p> 69 <p>8.10 跟踪或以其他方式骚扰他人。</p>
72 <p>8.11 窃取他人密码、账号和其它数字化信息或财产。</p> 70 <p>8.11 窃取他人密码、账号和其它数字化信息或财产。</p>
73 - <p>8.12 其他被游爱之星视为不适当的行为。</p> 71 + <p>8.12 其他被海豹游戏视为不适当的行为。</p>
74 - <p>8.13 游爱之星有权对用户载、张贴、发送的内容进行审核,有任何违反法律法规或本协议之有关规定的内容,游爱之星有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> 72 + <p>8.13 海豹游戏有权对用户载、张贴、发送的内容进行审核,有任何违反法律法规或本协议之有关规定的内容,海豹游戏有权立即将其删除或屏蔽,且不需要对用户另行通知。</p>
75 - <p>8.14 游娱账号封号规则</p> 73 + <p>8.14 海豹游戏封号规则</p>
76 <p>1.无视国家规定,在姓名、游戏角色名等地方中使用违规词语或不文明词语、非法字符</p> 74 <p>1.无视国家规定,在姓名、游戏角色名等地方中使用违规词语或不文明词语、非法字符</p>
77 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> 75 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
78 <p>2.涉及到侵入、拦截、破坏、复制、修改游戏程序,以及宣扬、叫卖和使用各种辅助性程序或恶性非法程序,即使用外挂程序、或在游戏中宣传外挂程序的行为。</p> 76 <p>2.涉及到侵入、拦截、破坏、复制、修改游戏程序,以及宣扬、叫卖和使用各种辅助性程序或恶性非法程序,即使用外挂程序、或在游戏中宣传外挂程序的行为。</p>
79 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> 77 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
80 <p>3.以任何弄虚作假的形式来蒙蔽或者欺骗其他用户,如发布模仿官方并带有病毒的网站、非官方中奖信息、非法广告、游戏代码、木马、外挂、病毒、色情信息、垃圾广告等信息</p> 78 <p>3.以任何弄虚作假的形式来蒙蔽或者欺骗其他用户,如发布模仿官方并带有病毒的网站、非官方中奖信息、非法广告、游戏代码、木马、外挂、病毒、色情信息、垃圾广告等信息</p>
81 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> 79 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
82 - <p>4.通过游娱账号发布非法网站,宣传或使用私服、游戏代码、木马、外挂、病毒、色情信息、垃圾广告、非法广告等信息</p> 80 + <p>4.通过海豹游戏发布非法网站,宣传或使用私服、游戏代码、木马、外挂、病毒、色情信息、垃圾广告、非法广告等信息</p>
83 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> 81 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
84 - <p>5.通过游娱账号发布触犯政府法令的文字如:煽动、反动、猥亵、暴力、种族歧视、宗教歧视等字眼,包含这类相关字的反向书写。</p> 82 + <p>5.通过海豹游戏发布触犯政府法令的文字如:煽动、反动、猥亵、暴力、种族歧视、宗教歧视等字眼,包含这类相关字的反向书写。</p>
85 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p> 83 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p>
86 <p>6.宣传或贩卖BUG、攻击服务器运行、牟取个人利益、影响游戏公平性,以及影响其他玩家正常进行游戏等行为</p> 84 <p>6.宣传或贩卖BUG、攻击服务器运行、牟取个人利益、影响游戏公平性,以及影响其他玩家正常进行游戏等行为</p>
87 <p>处罚规则:查证核实后,将暂停账号,并清除所有非法物品;视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> 85 <p>处罚规则:查证核实后,将暂停账号,并清除所有非法物品;视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
...@@ -90,28 +88,28 @@ ...@@ -90,28 +88,28 @@
90 <p>8.侮辱、毁谤、猥亵、威胁、辱骂其他用户,扭曲事实、恶意散布不实谣言,恶意影响游戏环境等行为</p> 88 <p>8.侮辱、毁谤、猥亵、威胁、辱骂其他用户,扭曲事实、恶意散布不实谣言,恶意影响游戏环境等行为</p>
91 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> 89 <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
92 <h4>9. 内容及其披露</h4> 90 <h4>9. 内容及其披露</h4>
93 - <p>9.1 用户对经由本服务上载、张贴或传送的内容负全部责任;对于经由本服务而传送的内容,游爱之星不保证前述内容的正确性、完整性或及时性。在任何情况下,游爱之星均不对任何用户提供的内容负责,包括但不限于任何内容发生任何错误或纰漏以及衍生的任何损失或损害,用户负责处理与其提供的内容相关的任何及全部纠纷。游爱之星有权(但无义务)拒绝或删除经由本服务提供的任何内容。用户使用上述内容,应自行承担风险。</p> 91 + <p>9.1 用户对经由本服务上载、张贴或传送的内容负全部责任;对于经由本服务而传送的内容,海豹游戏不保证前述内容的正确性、完整性或及时性。在任何情况下,海豹游戏均不对任何用户提供的内容负责,包括但不限于任何内容发生任何错误或纰漏以及衍生的任何损失或损害,用户负责处理与其提供的内容相关的任何及全部纠纷。海豹游戏有权(但无义务)拒绝或删除经由本服务提供的任何内容。用户使用上述内容,应自行承担风险。</p>
94 - <p>9.2 游爱之星有权利在下述情况下,对内容进行保存或披露:</p> 92 + <p>9.2 海豹游戏有权利在下述情况下,对内容进行保存或披露:</p>
95 <p>法律程序所规定</p> 93 <p>法律程序所规定</p>
96 <p>本服务条款规定</p> 94 <p>本服务条款规定</p>
97 <p>被侵害的第三人提出权利主张</p> 95 <p>被侵害的第三人提出权利主张</p>
98 - <p>为保护游娱账号、其使用者及社会公众的权利、财产或人身安全</p> 96 + <p>为保护海豹游戏、其使用者及社会公众的权利、财产或人身安全</p>
99 - <p>其他游爱之星认为有必要的情况。</p> 97 + <p>其他海豹游戏认为有必要的情况。</p>
100 <h4>10. 电子公告栏的张贴内容</h4> 98 <h4>10. 电子公告栏的张贴内容</h4>
101 <p>10.1 “电子公告栏”包括空间、论坛、SNS社区和其它一般公众可以使用的区域;</p> 99 <p>10.1 “电子公告栏”包括空间、论坛、SNS社区和其它一般公众可以使用的区域;</p>
102 - <p>10.2 用户一旦在本服务电子公告栏上传或张贴内容,即视为用户授予游爱之星该内容著作权之免费及非独家、永久的许可使用权,游爱之星有权为展示、传播及推广前述内容之目的,对上述内容进行复制、修改、出版。由此展示、传播及推广行为所产生的损失或利润,均由游爱之星承担或享受。游爱之星有权自主决定是否给予此类用户鼓励或奖励。</p> 100 + <p>10.2 用户一旦在本服务电子公告栏上传或张贴内容,即视为用户授予海豹游戏该内容著作权之免费及非独家、永久的许可使用权,海豹游戏有权为展示、传播及推广前述内容之目的,对上述内容进行复制、修改、出版。由此展示、传播及推广行为所产生的损失或利润,均由海豹游戏承担或享受。海豹游戏有权自主决定是否给予此类用户鼓励或奖励。</p>
103 <p>10.3 因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户须承担全部责任。</p> 101 <p>10.3 因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户须承担全部责任。</p>
104 - <p>10.4 非经游爱之星事先许可,用户不得对他人上传或张贴在电子公告栏或本服务其他内容进行复制、出售或用作其他商业用途。</p> 102 + <p>10.4 非经海豹游戏事先许可,用户不得对他人上传或张贴在电子公告栏或本服务其他内容进行复制、出售或用作其他商业用途。</p>
105 - <h4>11. 游娱账号服务使用规则</h4> 103 + <h4>11. 海豹游戏服务使用规则</h4>
106 <p>11.1 用户必须保证,拥有上传之照片、文字等作品之著作权或已获得合法授权,在本网站之上传行为未侵犯任何第三方之合法权益。否则,将由用户承担由此带来的一切法律责任;用户不得将任何内部资料、机密资料、涉及他人隐私资料或侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、或以其他方式传送。</p> 104 <p>11.1 用户必须保证,拥有上传之照片、文字等作品之著作权或已获得合法授权,在本网站之上传行为未侵犯任何第三方之合法权益。否则,将由用户承担由此带来的一切法律责任;用户不得将任何内部资料、机密资料、涉及他人隐私资料或侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、或以其他方式传送。</p>
107 - <p>11.2 用户不得利用本服务进行故意制作、传播计算机病毒等破坏性程序,不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则,否则游爱之星将保留追究其法律责任的权利并有权将其提交给相关部门处理。</p> 105 + <p>11.2 用户不得利用本服务进行故意制作、传播计算机病毒等破坏性程序,不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则,否则海豹游戏将保留追究其法律责任的权利并有权将其提交给相关部门处理。</p>
108 - <p>11.3 游爱之星有权对用户上传的图片、添加的文字等内容进行审核,有任何违反法律法规或本协议之有关规定的图片、文字,游爱之星有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> 106 + <p>11.3 海豹游戏有权对用户上传的图片、添加的文字等内容进行审核,有任何违反法律法规或本协议之有关规定的图片、文字,海豹游戏有权立即将其删除或屏蔽,且不需要对用户另行通知。</p>
109 <p>11.4 用户不得将广告函件、促销资料、垃圾邮件等,加以上载、张贴、发送电子邮件或以其他方式传送。</p> 107 <p>11.4 用户不得将广告函件、促销资料、垃圾邮件等,加以上载、张贴、发送电子邮件或以其他方式传送。</p>
110 - <p>11.5 游爱之星郑重提请用户注意,任何经由本服务以上载、张贴、发送的资料、文字、照片、图形、视讯、信息、用户的登记资料或其他资料(以下简称“内容”),无论系公开还是私下传送,均由内容提供者承担责任。游爱之星无法控制经由本服务传送之内容,也无法对用户的使用行为进行全面控制,因此不保证内容的合法性、正确性、完整性、真实性或品质;用户已预知使用本服务时,可能会接触到令人不快、不适当或令人厌恶之内容,并同意将自行加以判断并承担所有风险,而不依赖于游爱之星。但在任何情况下,游爱之星有权依法停止传输任何前述内容并采取相应行动,包括但不限于暂停用户使用本服务的全部或部分,保存有关记录,并向有关机关报告。但游爱之星有权(但无义务)依其自行之考量,拒绝和删除可经由本服务提供之违反本条款的或其他引起游爱之星或用户反感的任何内容。</p> 108 + <p>11.5 海豹游戏郑重提请用户注意,任何经由本服务以上载、张贴、发送的资料、文字、照片、图形、视讯、信息、用户的登记资料或其他资料(以下简称“内容”),无论系公开还是私下传送,均由内容提供者承担责任。海豹游戏无法控制经由本服务传送之内容,也无法对用户的使用行为进行全面控制,因此不保证内容的合法性、正确性、完整性、真实性或品质;用户已预知使用本服务时,可能会接触到令人不快、不适当或令人厌恶之内容,并同意将自行加以判断并承担所有风险,而不依赖于海豹游戏。但在任何情况下,海豹游戏有权依法停止传输任何前述内容并采取相应行动,包括但不限于暂停用户使用本服务的全部或部分,保存有关记录,并向有关机关报告。但海豹游戏有权(但无义务)依其自行之考量,拒绝和删除可经由本服务提供之违反本条款的或其他引起海豹游戏或用户反感的任何内容。</p>
111 - <p>11.6 用户完全理解并同意,若第三方在用户不知情或未经用户同意的前提下,将其文字、图片作品上传于游娱账号空间及由此所产生的任何可能侵害其权益的行为,游爱之星均不对任何人承担任何责任。</p> 109 + <p>11.6 用户完全理解并同意,若第三方在用户不知情或未经用户同意的前提下,将其文字、图片作品上传于海豹游戏空间及由此所产生的任何可能侵害其权益的行为,海豹游戏均不对任何人承担任何责任。</p>
112 - <p>11.7 游爱之星有权根据政府机关或权利人的要求删除用户上载、张贴、发送的内容,无论游爱之星事先是否通知。</p> 110 + <p>11.7 海豹游戏有权根据政府机关或权利人的要求删除用户上载、张贴、发送的内容,无论海豹游戏事先是否通知。</p>
113 - <p>11.8 游爱之星有权根据服务的需要,收回用户所用的空间域名或减少用户所用空间的大小,无论游爱之星事先是否通知。</p> 111 + <p>11.8 海豹游戏有权根据服务的需要,收回用户所用的空间域名或减少用户所用空间的大小,无论海豹游戏事先是否通知。</p>
114 - <h4>12. 游娱论坛规则</h4> 112 + <h4>12. 海豹游戏论坛规则</h4>
115 <p>12.1 关于用户名和昵称</p> 113 <p>12.1 关于用户名和昵称</p>
116 <p>不得使用党和国家领导人或其他知名人士的真实姓名、字号、艺名、笔名作为用户名和昵称;</p> 114 <p>不得使用党和国家领导人或其他知名人士的真实姓名、字号、艺名、笔名作为用户名和昵称;</p>
117 <p>不得使用国家机构或其他机构的名称作为用户名和昵称;</p> 115 <p>不得使用国家机构或其他机构的名称作为用户名和昵称;</p>
...@@ -124,79 +122,65 @@ ...@@ -124,79 +122,65 @@
124 <p>不得出现宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的信息内容;</p> 122 <p>不得出现宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的信息内容;</p>
125 <p>不得出现有侮辱性言语、挑衅、辱骂其他人以及不健康内容;</p> 123 <p>不得出现有侮辱性言语、挑衅、辱骂其他人以及不健康内容;</p>
126 <p>不得出现广告性质的内容以及本公司以外其他网站的链接;</p> 124 <p>不得出现广告性质的内容以及本公司以外其他网站的链接;</p>
127 - <p>游爱之星有权在不需要通知和解释的情况下除去违反以上规定的签名内容,并对情节严重者予以封号处理。</p> 125 + <p>海豹游戏有权在不需要通知和解释的情况下除去违反以上规定的签名内容,并对情节严重者予以封号处理。</p>
128 <p>12.3 关于发贴内容</p> 126 <p>12.3 关于发贴内容</p>
129 <p>遵守相关法规,严禁发表违反法律法规及社会主义道德规定的内容;</p> 127 <p>遵守相关法规,严禁发表违反法律法规及社会主义道德规定的内容;</p>
130 <p>使用文明用语,不得张贴对任何人进行人身攻击、谩骂、诋毁的言论;</p> 128 <p>使用文明用语,不得张贴对任何人进行人身攻击、谩骂、诋毁的言论;</p>
131 <p>不得张贴未经公开报道、未经证实的消息;</p> 129 <p>不得张贴未经公开报道、未经证实的消息;</p>
132 <p>不得张贴与所在论坛主题无关的消息、言论和图片;</p> 130 <p>不得张贴与所在论坛主题无关的消息、言论和图片;</p>
133 - <p>未经游爱之星同意,不得张贴带有商业性质的内容或任何形式的广告,不得张贴游爱之星及其关联公司以外其他网站的链接;</p> 131 + <p>未经海豹游戏同意,不得张贴带有商业性质的内容或任何形式的广告,不得张贴海豹游戏及其关联公司以外其他网站的链接;</p>
134 <p>不得恶意灌水,内容相同的帖子不得一文多发;</p> 132 <p>不得恶意灌水,内容相同的帖子不得一文多发;</p>
135 <p>不得在帖子中(标题和内容)加入各种奇形怪状的符号;</p> 133 <p>不得在帖子中(标题和内容)加入各种奇形怪状的符号;</p>
136 <p>转贴文章应注明原始出处和时间;</p> 134 <p>转贴文章应注明原始出处和时间;</p>
137 - <p>对于违反以上规定的内容,在不需要通知和解释的情况下,游爱之星以及版主有权予以删除,并对情节严重者予以封账号处理。</p> 135 + <p>对于违反以上规定的内容,在不需要通知和解释的情况下,海豹游戏以及版主有权予以删除,并对情节严重者予以封账号处理。</p>
138 <p>12.4 关于贴图</p> 136 <p>12.4 关于贴图</p>
139 <p>不得张贴宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的图片;</p> 137 <p>不得张贴宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的图片;</p>
140 <p>不得出现带有侮辱性、挑衅、辱骂其他人以及不健康内容的图片;</p> 138 <p>不得出现带有侮辱性、挑衅、辱骂其他人以及不健康内容的图片;</p>
141 <p>请勿使用易产生歧义、引起他人误解的图片;</p> 139 <p>请勿使用易产生歧义、引起他人误解的图片;</p>
142 <p>摘录、转贴的图片请注明出处及作者,禁止张贴侵犯他人著作权、版权等知识产权的图片;</p> 140 <p>摘录、转贴的图片请注明出处及作者,禁止张贴侵犯他人著作权、版权等知识产权的图片;</p>
143 <p>不得张贴与论坛主题无关的图片;</p> 141 <p>不得张贴与论坛主题无关的图片;</p>
144 - <p>游爱之星有权在不需要通知和解释的情况下删除违反以上规定的图片,并对情节严重者予以封账号处理。</p> 142 + <p>海豹游戏有权在不需要通知和解释的情况下删除违反以上规定的图片,并对情节严重者予以封账号处理。</p>
145 - <h4>13. 游娱账号游戏规则</h4> 143 + <h4>13. 海豹游戏游戏规则</h4>
146 <p>13.1 用户应当遵守游戏公约、玩家守则及不时发布的游戏规则、公告等;</p> 144 <p>13.1 用户应当遵守游戏公约、玩家守则及不时发布的游戏规则、公告等;</p>
147 - <p>13.2 用户不得通过不正当的手段或其他不公平的手段使用游娱账号的游戏产品和服务或参与游娱账号的游戏活动。用户不得干扰游爱之星正常地提供产品和服务,包括但不限于:攻击、侵入游爱之星的网站服务器或使网站服务器过载;制作、发布、传播、使用任何形式的妨碍游戏公平性的辅助工具或程序(外挂);利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);不合理地干扰或阻碍他人使用游爱之星所提供的产品和服务。</p> 145 + <p>13.2 用户不得通过不正当的手段或其他不公平的手段使用海豹游戏的游戏产品和服务或参与海豹游戏的游戏活动。用户不得干扰海豹游戏正常地提供产品和服务,包括但不限于:攻击、侵入海豹游戏的网站服务器或使网站服务器过载;制作、发布、传播、使用任何形式的妨碍游戏公平性的辅助工具或程序(外挂);利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);不合理地干扰或阻碍他人使用海豹游戏所提供的产品和服务。</p>
148 - <p>13.3 为维护游戏的公平性,如果游爱之星发现用户数据异常,无论用户对该异常数据产生是否负有过错,游爱之星均有权根据本规则、游戏公约、玩家守则及后期不时发布的游戏公告等,采取相应措施:包括但不限于对该账号的冻结、终止、删除;用户在此承诺游爱之星有权采取上述行动,并承诺不得就上述行为要求游爱之星做任何补偿或退费。</p> 146 + <p>13.3 为维护游戏的公平性,如果海豹游戏发现用户数据异常,无论用户对该异常数据产生是否负有过错,海豹游戏均有权根据本规则、游戏公约、玩家守则及后期不时发布的游戏公告等,采取相应措施:包括但不限于对该账号的冻结、终止、删除;用户在此承诺海豹游戏有权采取上述行动,并承诺不得就上述行为要求海豹游戏做任何补偿或退费。</p>
149 - <p>13.4 游爱之星在此特别提示用户:</p> 147 + <p>13.4 海豹游戏在此特别提示用户:</p>
150 - <p>游爱之星提供的游戏将按照现状提供,用户明确知道游戏中存在已知和未知的漏洞和错误(Bug)。尽管游爱之星将尽最大努力解决已知的漏洞和错误(Bug),但用户知道或应该知道游戏中仍可能包含未知的漏洞和错误(Bug)等。用户同意不向游爱之星及其关联公司因任何漏洞和错误(Bug)主张任何赔偿。游爱之星不提倡虚拟物品之间的交易,并不对该交易中产生的任何问题进行支持和保障。</p> 148 + <p>海豹游戏提供的游戏将按照现状提供,用户明确知道游戏中存在已知和未知的漏洞和错误(Bug)。尽管海豹游戏将尽最大努力解决已知的漏洞和错误(Bug),但用户知道或应该知道游戏中仍可能包含未知的漏洞和错误(Bug)等。用户同意不向海豹游戏及其关联公司因任何漏洞和错误(Bug)主张任何赔偿。海豹游戏不提倡虚拟物品之间的交易,并不对该交易中产生的任何问题进行支持和保障。</p>
151 <h4>14. 手机特色功能说明</h4> 149 <h4>14. 手机特色功能说明</h4>
152 - <p>14.1 用户明确知道,游爱之星提供的实时定位服务将向用户及用户的不特定游娱账号好友提供用户的实时空间位置信息。</p> 150 + <p>14.1 用户明确知道,海豹游戏提供的实时定位服务将向用户及用户的不特定海豹游戏好友提供用户的实时空间位置信息。</p>
153 - <p>14.2 用户可选择向游娱账号导入手机通讯簿上所对应的好友关系链,但游爱之星确保将不导入好友关系链之外的任何信息(包括好友姓名及其他任何相关信息) </p> 151 + <p>14.2 用户可选择向海豹游戏导入手机通讯簿上所对应的好友关系链,但海豹游戏确保将不导入好友关系链之外的任何信息(包括好友姓名及其他任何相关信息) </p>
154 - <p>14.3 游爱之星将对好友关系链通过不可逆转的方式加密存储,包括游娱账号和您的任何好友都将无法获知您的真实好友关系链和真实手机号码。</p> 152 + <p>14.3 海豹游戏将对好友关系链通过不可逆转的方式加密存储,包括海豹游戏和您的任何好友都将无法获知您的真实好友关系链和真实手机号码。</p>
155 - <h4>15. 游爱之星的知识产权及其他权利</h4> 153 + <h4>15. 海豹游戏的知识产权及其他权利</h4>
156 - <p>15.1 游爱之星对本服务及本服务所使用的软件和受知识产权相关法律或其他法律保护的资料享有相应的权利。</p> 154 + <p>15.1 海豹游戏对本服务及本服务所使用的软件和受知识产权相关法律或其他法律保护的资料享有相应的权利。</p>
157 - <p>15.2 经由本服务传送的内容,受到著作权法、商标法、专利法或其他法律的保护;未经游爱之星明示授权许可,用户不得进行修改、出租、散布或衍生其他作品,用户本人创作并在公开使用区域张贴的内容除外。</p> 155 + <p>15.2 经由本服务传送的内容,受到著作权法、商标法、专利法或其他法律的保护;未经海豹游戏明示授权许可,用户不得进行修改、出租、散布或衍生其他作品,用户本人创作并在公开使用区域张贴的内容除外。</p>
158 <p>15.3 用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。</p> 156 <p>15.3 用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。</p>
159 - <p>15.4 游娱账号及其他游娱账号图样、产品及服务名称,均为游爱之星及其关联公司所享有的商标,未经游爱之星所事先书面授权,任何人不得使用、 复制或用作其他用途。</p> 157 + <p>15.4 海豹游戏及其他海豹游戏图样、产品及服务名称,均为海豹游戏及其关联公司所享有的商标,未经海豹游戏所事先书面授权,任何人不得使用、 复制或用作其他用途。</p>
160 <h4>16. 免责声明</h4> 158 <h4>16. 免责声明</h4>
161 - <p>16.1 游爱之星对于本服务包含的或用户经由或从任何与本服务有关的途径所获得的任何内容、信息或广告,不保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,游爱之星不负保证责任。用户自行承担担使用本服务的风险。</p> 159 + <p>16.1 海豹游戏对于本服务包含的或用户经由或从任何与本服务有关的途径所获得的任何内容、信息或广告,不保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,海豹游戏不负保证责任。用户自行承担担使用本服务的风险。</p>
162 - <p>16.2 游爱之星有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。</p> 160 + <p>16.2 海豹游戏有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。</p>
163 - <p>16.3 游爱之星不保证以下事项(包括但不限于):</p> 161 + <p>16.3 海豹游戏不保证以下事项(包括但不限于):</p>
164 <p>本服务适合用户的使用要求;</p> 162 <p>本服务适合用户的使用要求;</p>
165 <p>本服务不受干扰,及时、安全、可靠或不出现错误;</p> 163 <p>本服务不受干扰,及时、安全、可靠或不出现错误;</p>
166 <p>用户经由本服务取得的任何产品、服务或其他材料符合用户的期望;</p> 164 <p>用户经由本服务取得的任何产品、服务或其他材料符合用户的期望;</p>
167 <p>16.4 用户使用经由本服务下载的或取得的任何资料,其风险自行负担;因该使用而导致用户手机或其他设备系统损坏或资料流失,用户应负完全责任;</p> 165 <p>16.4 用户使用经由本服务下载的或取得的任何资料,其风险自行负担;因该使用而导致用户手机或其他设备系统损坏或资料流失,用户应负完全责任;</p>
168 - <p>16.5 对基于以下原因而造成的利润、商业信誉、资料的损失或其他有形或无形损失,游爱之星不承担任何直接、间接、附带、衍生或惩罚性的赔偿:</p> 166 + <p>16.5 对基于以下原因而造成的利润、商业信誉、资料的损失或其他有形或无形损失,海豹游戏不承担任何直接、间接、附带、衍生或惩罚性的赔偿:</p>
169 <p>本服务使用或无法使用;</p> 167 <p>本服务使用或无法使用;</p>
170 <p>经由本服务购买或取得的任何产品、资料或服务;</p> 168 <p>经由本服务购买或取得的任何产品、资料或服务;</p>
171 <p>用户资料遭到未授权的使用或修改;</p> 169 <p>用户资料遭到未授权的使用或修改;</p>
172 <p>用户资料丢失或被删除;</p> 170 <p>用户资料丢失或被删除;</p>
173 <p>其他与本服务相关的事宜。</p> 171 <p>其他与本服务相关的事宜。</p>
174 - <p>16.6 用户在浏览网际网路时自行判断使用游娱账号的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,游爱之星没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p> 172 + <p>16.6 用户在浏览网际网路时自行判断使用海豹游戏的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,海豹游戏没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p>
175 <h4>17. 服务的修改和终止</h4> 173 <h4>17. 服务的修改和终止</h4>
176 - <p>游爱之星有权在未事前通知的情况下在任何时候,暂时或永久地修改或终止本服务或其中任何一部分。游爱之星对本服务的修改或终止对用户和任何第三人不承担任何责任。游爱之星有权基于任何理由,终止用户的账号、密码或拒绝其使用本服务,或删除、转移用户存储、发布在本服务的内容,游爱之星采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p> 174 + <p>海豹游戏有权在未事前通知的情况下在任何时候,暂时或永久地修改或终止本服务或其中任何一部分。海豹游戏对本服务的修改或终止对用户和任何第三人不承担任何责任。海豹游戏有权基于任何理由,终止用户的账号、密码或拒绝其使用本服务,或删除、转移用户存储、发布在本服务的内容,海豹游戏采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p>
177 <h4>18. 通知</h4> 175 <h4>18. 通知</h4>
178 - <p>游爱之星向用户发出的通知,可以采用电子邮件、页面公告、常规信件、电话或游爱之星认为适合的形式。服务条款的修改或其他事项变更时,游爱之星将会以上述形式进行通知。</p> 176 + <p>海豹游戏向用户发出的通知,可以采用电子邮件、页面公告、常规信件、电话或海豹游戏认为适合的形式。服务条款的修改或其他事项变更时,海豹游戏将会以上述形式进行通知。</p>
179 <h4>19. 全部协议</h4> 177 <h4>19. 全部协议</h4>
180 - <p>本服务协议和游爱之星的其他服务条款构成完整的协议。</p> 178 + <p>本服务协议和海豹游戏的其他服务条款构成完整的协议。</p>
181 <h4>20. 法律的适用和管辖</h4> 179 <h4>20. 法律的适用和管辖</h4>
182 <p>本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交广州仲裁委员会裁决。如果本服务协议中某项条款因与中华人民共和国现行法律相抵触而导致无效,将不影响其他部分的效力。</p> 180 <p>本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交广州仲裁委员会裁决。如果本服务协议中某项条款因与中华人民共和国现行法律相抵触而导致无效,将不影响其他部分的效力。</p>
183 <h4>21. 生效条件</h4> 181 <h4>21. 生效条件</h4>
184 - <p>本协议自用户访问、浏览及使用游娱账号之时开始生效。</p> 182 + <p>本协议自用户访问、浏览及使用海豹游戏之时开始生效。</p>
185 - </div>
186 - </div>
187 -
188 - <div class="only-btn inline-btn">
189 - <a href="login.html#register" class="submit btn-orange">确定</a>
190 - <div class="agreement l" style="margin-right: 0;">
191 - <div class="checkbox checkbox-2 l" >
192 - <i class="iconfont icon-xuanzhong"></i>
193 - </div>
194 - <p class="l">已阅读</p>
195 </div> 183 </div>
196 - </div>
197 - </div>
198 -
199 - </section>
200 <!-- end --> 184 <!-- end -->
201 <script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script> 185 <script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script>
202 <script type="text/javascript" src="js/zepto.min.js?20150923001"></script> 186 <script type="text/javascript" src="js/zepto.min.js?20150923001"></script>
...@@ -208,6 +192,10 @@ ...@@ -208,6 +192,10 @@
208 }); 192 });
209 </script> 193 </script>
210 <script type="text/javascript" src="js/core.min.js?20150923001" ></script> 194 <script type="text/javascript" src="js/core.min.js?20150923001" ></script>
195 + <script type="text/javascript" src="js/simpScroller-min.js"></script>
196 + <script>
197 + simpScroller(document.querySelector(".horizontal"), {});
198 + </script>
211 </body> 199 </body>
212 200
213 </html> 201 </html>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -10,17 +10,17 @@ ...@@ -10,17 +10,17 @@
10 <meta name="full-screen" content="yes"> 10 <meta name="full-screen" content="yes">
11 <meta http-equiv="x-ua-compatible" content="IE=edge" /> 11 <meta http-equiv="x-ua-compatible" content="IE=edge" />
12 12
13 -<link href="skin/login.css?v=20150923001" type="text/css" rel="stylesheet" /> 13 +<link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" />
14 <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> 14 <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" />
15 15
16 16
17 <title> 17 <title>
18 -游娱手游平台登录 18 +平台登录
19 </title> 19 </title>
20 </head> 20 </head>
21 <body> 21 <body>
22 - 22 +<input type="hidden" name="loginUserName" value="">
23 - 23 +<input type="hidden" name="loginPassword" value="">
24 <div class="mask"> 24 <div class="mask">
25 <div class="container_load" id="loading"> 25 <div class="container_load" id="loading">
26 <div class="content"> 26 <div class="content">
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
40 <form action="/sdk/login" method="post" class="ajax align-left clearfix"> 40 <form action="/sdk/login" method="post" class="ajax align-left clearfix">
41 <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> 41 <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
42 <div class="new-sdk-main"> 42 <div class="new-sdk-main">
43 - <div class="inputbox clearfix"> 43 + <div class="inputbox clearfix" style="position: relative;">
44 <div class="ileft">账号:</div> 44 <div class="ileft">账号:</div>
45 <div class="iright"> 45 <div class="iright">
46 46
47 - <input type="text" name="username" placeholder="请输入账号"> 47 + <input type="text" name="username" placeholder="请输入账号" id="js_login_username">
48 <div class="bottom-icon drop-down"> 48 <div class="bottom-icon drop-down">
49 <i class="iconfont icon-xiangxia"></i> 49 <i class="iconfont icon-xiangxia"></i>
50 </div> 50 </div>
...@@ -57,10 +57,10 @@ ...@@ -57,10 +57,10 @@
57 </div> 57 </div>
58 <div class="inputbox clearfix"> 58 <div class="inputbox clearfix">
59 <div class="ileft">密码:</div> 59 <div class="ileft">密码:</div>
60 - <div class="iright"><input type="password" name="password" placeholder="请输入密码"></div> 60 + <div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div>
61 </div> 61 </div>
62 <div class="other-login clearfix"> 62 <div class="other-login clearfix">
63 - <p>第三方登录 63 + <!--<p>第三方登录
64 <a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="sina hide"> 64 <a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="sina hide">
65 <i class=" iconfont icon-unie61d"></i> 65 <i class=" iconfont icon-unie61d"></i>
66 </a> 66 </a>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
70 70
71 <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide"> 71 <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide">
72 </a> 72 </a>
73 - </p> 73 + </p>-->
74 74
75 <label><a href="#find_pwd" class="forgetpsw">找回密码</a></label> 75 <label><a href="#find_pwd" class="forgetpsw">找回密码</a></label>
76 <div class="clear"></div> 76 <div class="clear"></div>
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
150 <div class="checkbox checkbox-2 l" > 150 <div class="checkbox checkbox-2 l" >
151 <i class="iconfont icon-xuanzhong"></i> 151 <i class="iconfont icon-xuanzhong"></i>
152 </div> 152 </div>
153 - <p class="l">接受<a href="agreement.html">游娱网络服务协议</a></p> 153 + <p class="l">接受<a href="agreement.html">网络服务协议</a></p>
154 </span> 154 </span>
155 155
156 </div> 156 </div>
...@@ -174,13 +174,13 @@ ...@@ -174,13 +174,13 @@
174 <div class="SDK-titlebox"></div> 174 <div class="SDK-titlebox"></div>
175 <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> 175 <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
176 <div class="new-sdk-content"> 176 <div class="new-sdk-content">
177 - <h3>游娱网络服务协议</h3> 177 + <h3>网络服务协议</h3>
178 <div class="content-main"> 178 <div class="content-main">
179 - <p>欢迎申请游娱手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> 179 + <p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
180 <h4>一、账号注册</h4> 180 <h4>一、账号注册</h4>
181 - <p>欢迎申请游娱手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> 181 + <p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
182 <h4>二、账号注册</h4> 182 <h4>二、账号注册</h4>
183 - <p>欢迎申请游娱手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> 183 + <p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
184 </div> 184 </div>
185 </div> 185 </div>
186 186
...@@ -256,6 +256,7 @@ ...@@ -256,6 +256,7 @@
256 </section> 256 </section>
257 <!-- 找回密码模块 --> 257 <!-- 找回密码模块 -->
258 <section id="find_pwd" class="hide" data-replace="1"> 258 <section id="find_pwd" class="hide" data-replace="1">
259 + <input type="hidden" name="pwd_code" value="">
259 <div class="new-sdk-container"> 260 <div class="new-sdk-container">
260 <div class="SDK-titlebox"></div> 261 <div class="SDK-titlebox"></div>
261 <div class="user-center" style="border-bottom: none;"> 262 <div class="user-center" style="border-bottom: none;">
...@@ -266,59 +267,98 @@ ...@@ -266,59 +267,98 @@
266 </div> 267 </div>
267 <div class="pwd_box"> 268 <div class="pwd_box">
268 <ul class="step-tab"> 269 <ul class="step-tab">
270 + <li><a href="javascript:;">通过手机找回</a></li>
269 <li><a href="javascript:;">通过密保找回</a></li> 271 <li><a href="javascript:;">通过密保找回</a></li>
270 - <li><a href="javascript:;">通过邮箱找回</a></li> 272 + <!--<li><a href="javascript:;">通过邮箱找回</a></li>-->
271 <li><a href="javascript:;">联系客服</a></li> 273 <li><a href="javascript:;">联系客服</a></li>
272 </ul> 274 </ul>
275 +
273 <div class="step-box"> 276 <div class="step-box">
277 + <div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;">
278 + <div class="new-sdk-box">
279 + <div class="input" style="padding: 15px 0;">
280 + <input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;">
281 + </div>
282 + <div class="input" style="padding: 15px 0;">
283 + <input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;">
284 + </div>
285 + <div class="inputCode clearfix">
286 + <div class="input fl" style="padding: 15px 0;">
287 + <input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;">
288 + </div>
289 + <a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a>
290 + </div>
291 + <ul class="inline-btn" style="margin-top: 15px;">
292 + <li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>
293 + <li style="background: none; border-radius: 20px;"><a class="btn" href="#home">返回</a></li>
294 + </ul>
295 + </div>
296 + </div>
274 <div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form"> 297 <div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form">
275 <div class="question-input-box clearfix"> 298 <div class="question-input-box clearfix">
276 <div class="pull-left qib-txt"> 299 <div class="pull-left qib-txt">
277 您的账户: 300 您的账户:
278 </div> 301 </div>
279 - <div class="pull-right qib-input"> 302 + <div class="pull-left qib-input">
280 <input type="text" name="username" placeholder="输入您的账号" style="text-align: left;" class="function-input username" required/> 303 <input type="text" name="username" placeholder="输入您的账号" style="text-align: left;" class="function-input username" required/>
281 </div> 304 </div>
282 </div> 305 </div>
283 306
284 <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a> 307 <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a>
285 </div> 308 </div>
286 - <div id="email_get_pwd_form" action="/user/password_by_mail" todo="password_by_mail_callback" class="function-list-content ajax hide form"> 309 + <!--<div id="email_get_pwd_form" action="/user/password_by_mail" todo="password_by_mail_callback" class="function-list-content ajax hide form">
287 - <input type="text" name="email" placeholder="输入您绑定的邮箱地址" class="function-input mail"/> 310 +
311 + <input type="text" name="email" placeholder="输入您绑定的邮箱地址" class="function-input mail" style="margin: 0 0 30px;"/>
288 <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a> 312 <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a>
289 - </div> 313 + </div>-->
290 <div class="function-list-content hide"> 314 <div class="function-list-content hide">
291 <div class="pwd_txt"> 315 <div class="pwd_txt">
292 - <p>客服QQ:<a href="javascript:;" id="js_kefu_qq">2739920773</a></p> 316 + <div class="default_text" style="display: none;">
293 - <p>客服电话:<a href="tel:020-87510588">020-87510588</a></p> 317 + <p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
294 - <p>玩家交流群:<a href="javascript:;" id="js_player">167355030</a></p> 318 + <p>客服电话:<a href="tel:"></a></p>
319 + <p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
295 </div> 320 </div>
296 - <a href="javascript:;" class="pwd_btn">确定</a> 321 + <div class="get_text"></div>
322 + </div>
323 + <a href="javascript:;" class="kefu_subbtn">确定</a>
324 + </div>
325 + <div class="reset_psw_mobile hide" style="border-top: 1px solid #fff;">
326 + <div class="new-sdk-box">
327 + <div class="acount-name">
328 + <p style="margin-top: 0;">账号:<span id="js_UserName" style="color: #000;"></span></p>
329 + </div>
330 + <div class="inputCode clearfix">
331 + <div class="input fl" style="width: 100%; padding:15px 0;">
332 + <input type="text" required placeholder="请输入新密码" id="js_reset_newpsw" style="margin: 0; text-align: left; padding: 0 20px;">
333 + </div>
334 + </div>
335 + <div class="ag-tx clearfix">
336 + <span data-action="">
337 + <div class="checkbox checkbox-2 l">
338 + <i class="iconfont icon-xuanzhong"></i>
339 + </div>
340 + <p class="l" style="margin-top: 0;">显示密码</p>
341 + </span>
342 + </div>
343 + <a href="javascript:;" class="btn-orange" id="js_confirm_resetnewpsw">保存修改</a>
297 </div> 344 </div>
298 </div> 345 </div>
299 </div> 346 </div>
300 -
301 </div> 347 </div>
302 348
303 - 349 + </div>
304 -
305 </section> 350 </section>
306 <!-- end --> 351 <!-- end -->
307 <section id="help" class="hide" data-auth="1"> 352 <section id="help" class="hide" data-auth="1">
308 <div class="header"> 353 <div class="header">
309 - <span class="title">游娱手游平台</span> 354 + <span class="title">手游平台</span>
310 <a class="btn pull-left op-back" href="#home">返回</a> 355 <a class="btn pull-left op-back" href="#home">返回</a>
311 </div> 356 </div>
312 357
313 <div class="container"> 358 <div class="container">
314 <div class="box_info_center"> 359 <div class="box_info_center">
315 <div class='align-left'> 360 <div class='align-left'>
316 - <p class="">登陆游娱手游平台官网(<span class='text-error'> www.9133.com</span>)就可以:</p> 361 +
317 - <p class="text-indent">1.上传酷炫头像,设置更多个性资料</p>
318 - <p class="text-indent">2.绑定微博帐号,绑定邮箱,增强帐号安全</p>
319 - <p class="text-indent">3.用电脑方便充值还能获得返利</p>
320 - <p class="text-indent">4.海量精品游戏免费下载,附带攻略大全</p>
321 - <p class="text-indent">5.更多玩法,等你发现...</p>
322 </div> 362 </div>
323 </div> 363 </div>
324 </div> 364 </div>
...@@ -335,6 +375,10 @@ ...@@ -335,6 +375,10 @@
335 <section id="answer_question" data-attr="dot" class="hide"></section> 375 <section id="answer_question" data-attr="dot" class="hide"></section>
336 <!-- 绑定模块 --> 376 <!-- 绑定模块 -->
337 <section id="bind" data-attr="dot" class="hide" data-auth="1"></section> 377 <section id="bind" data-attr="dot" class="hide" data-auth="1"></section>
378 +<!-- 绑定手机 -->
379 +<section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section>
380 +<!-- 解绑手机模块 -->
381 +<section id="unbindMobile" data-attr="dot" class="hide" data-auth="1"></section>
338 <!-- 绑定邮箱模块 --> 382 <!-- 绑定邮箱模块 -->
339 <section id="mail" data-attr="dot" class="hide" data-auth="1"></section> 383 <section id="mail" data-attr="dot" class="hide" data-auth="1"></section>
340 <!-- doT模板 --> 384 <!-- doT模板 -->
...@@ -360,13 +404,13 @@ ...@@ -360,13 +404,13 @@
360 </div> 404 </div>
361 </script> 405 </script>
362 <script id="home_template" type="text/x-jquery-tmpl"> 406 <script id="home_template" type="text/x-jquery-tmpl">
363 - 407 + <input type="hidden" name="initUserName" value="{{=Core.Data.nickname}}" />
364 <div class="new-sdk-container"> 408 <div class="new-sdk-container">
365 <div class="new-container-box"> 409 <div class="new-container-box">
366 <div class="SDK-titlebox"></div> 410 <div class="SDK-titlebox"></div>
367 <div class="user-center"> 411 <div class="user-center">
368 用户中心 412 用户中心
369 - 413 + <a href="/sdk/logout" class="op-logout">切换账户</a>
370 </div> 414 </div>
371 415
372 {{? Core.Data.is_guest == 1}} 416 {{? Core.Data.is_guest == 1}}
...@@ -380,22 +424,37 @@ ...@@ -380,22 +424,37 @@
380 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> 424 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
381 </div> 425 </div>
382 </div> 426 </div>
383 - <div class="bind-user clearfix"> 427 + <div class="bind-user">
384 - <div class="pull-left w_50 txt"> 428 + <div class="w_50 txt" style="display: inline-block; vertical-align: middle;">
385 您当前还是游客,为保证账号安全,请升级账号! 429 您当前还是游客,为保证账号安全,请升级账号!
386 </div> 430 </div>
387 - <div class="pull-right inline-btn w_45"> 431 + <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;">
388 <a class="btn btn-bind" href="#modify_pwd">马上升级</a> 432 <a class="btn btn-bind" href="#modify_pwd">马上升级</a>
389 </div> 433 </div>
390 </div> 434 </div>
435 + </div>
436 + {{?? Core.Data.is_guest == 2}}
437 + <div class="user-center-box">
438 + <div class="top clearfix" style="border-bottom: none;">
439 + <div class="pull-left txt w_45">
440 + <p>欢迎您!</p>
441 + <p>{{=Core.Data.nickname}}</p>
442 + </div>
443 + <div class="inline-btn pull-right w_45">
444 + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
445 + </div>
446 + </div>
391 <ul class="list-item clearfix"> 447 <ul class="list-item clearfix">
392 - <li><a href="#activity">活动公告</a></li> 448 + {{? Core.Data.bind_phone === ""}}
393 - <li><a href="#mail">绑定邮箱</a></li> 449 + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
394 - <!--<li><a href="#mibao">设置密保</a></li> 450 + {{??}}
395 - <li><a href="#modify_pwd">修改密码</a></li>--> 451 + <li><a href="#unbindMobile">解绑手机</a></li>
452 + {{?}}
453 + <!--<li><a href="#mail">绑定邮箱</a></li>-->
454 + <li><a href="#mibao">设置密保</a></li>
455 + <li><a href="#modify_pwd">修改密码</a></li>
396 </ul> 456 </ul>
397 </div> 457 </div>
398 -
399 {{??}} 458 {{??}}
400 <div class="user-center-box"> 459 <div class="user-center-box">
401 <div class="top clearfix" style="border-bottom: none;"> 460 <div class="top clearfix" style="border-bottom: none;">
...@@ -408,8 +467,12 @@ ...@@ -408,8 +467,12 @@
408 </div> 467 </div>
409 </div> 468 </div>
410 <ul class="list-item clearfix"> 469 <ul class="list-item clearfix">
411 - <li><a href="#activity">活动公告</a></li> 470 + {{? Core.Data.bind_phone === ""}}
412 - <li><a href="#mail">绑定邮箱</a></li> 471 + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
472 + {{??}}
473 + <li><a href="#unbindMobile">解绑手机</a></li>
474 + {{?}}
475 + <!--<li><a href="#mail">绑定邮箱</a></li> -->
413 <li><a href="#mibao">设置密保</a></li> 476 <li><a href="#mibao">设置密保</a></li>
414 <li><a href="#modify_pwd">修改密码</a></li> 477 <li><a href="#modify_pwd">修改密码</a></li>
415 </ul> 478 </ul>
...@@ -420,7 +483,6 @@ ...@@ -420,7 +483,6 @@
420 </div> 483 </div>
421 </div> 484 </div>
422 </script> 485 </script>
423 -
424 <script id="mail_template" type="text/x-jquery-tmpl" > 486 <script id="mail_template" type="text/x-jquery-tmpl" >
425 487
426 <div class="new-sdk-container"> 488 <div class="new-sdk-container">
...@@ -505,7 +567,6 @@ ...@@ -505,7 +567,6 @@
505 567
506 </div> 568 </div>
507 </script> 569 </script>
508 -
509 <script id="modify_pwd_template" type="text/x-jquery-tmpl"> 570 <script id="modify_pwd_template" type="text/x-jquery-tmpl">
510 571
511 572
...@@ -515,27 +576,27 @@ ...@@ -515,27 +576,27 @@
515 <a href="#home" class="lefticon"> 576 <a href="#home" class="lefticon">
516 <i class="iconfont icon-fanhui"></i> 577 <i class="iconfont icon-fanhui"></i>
517 </a> 578 </a>
518 - {{? Core.Data.is_guest >= 1}}升级账号{{??}}修改密码{{?}} 579 + {{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}}
519 </div> 580 </div>
520 <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > 581 <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" >
521 <div class="new-sdk-box"> 582 <div class="new-sdk-box">
522 <div class="input new-sdk-psw clearfix"> 583 <div class="input new-sdk-psw clearfix">
523 - <i>{{? Core.Data.is_guest >= 1}}正式账号:{{??}}旧密码:{{?}}</i> 584 + <i>{{? Core.Data.is_guest == 1}}正式账号:{{??}}旧密码:{{?}}</i>
524 <label> 585 <label>
525 586
526 - <input {{? Core.Data.is_guest >= 1}}type="text"{{??}}type="password"{{?}} class="old_pwd required " name="{{? Core.Data.is_guest >= 1}}username{{??}}password{{?}}" value="{{? Core.Data.new_pwd}}{{=Core.Data.new_pwd}}{{?}}" required="required" placeholder="{{? Core.Data.is_guest >= 1}}请输入6-18位字母或数字{{??}}请输入旧密码{{?}}" required/> 587 + <input {{? Core.Data.is_guest == 1}}type="text"{{??}}type="password"{{?}} class="old_pwd required " name="{{? Core.Data.is_guest >= 1}}username{{??}}password{{?}}" value="{{? Core.Data.new_pwd}}{{=Core.Data.new_pwd}}{{?}}" required="required" placeholder="{{? Core.Data.is_guest == 1}}请输入6-18位字母或数字{{??}}请输入旧密码{{?}}" required/>
527 </label> 588 </label>
528 </div> 589 </div>
529 <div class="input new-sdk-psw clearfix"> 590 <div class="input new-sdk-psw clearfix">
530 - <i>{{? Core.Data.is_guest >= 1}}正式密码:{{??}}新密码:{{?}}</i> 591 + <i>{{? Core.Data.is_guest == 1}}正式密码:{{??}}新密码:{{?}}</i>
531 <label> 592 <label>
532 593
533 - <input class="" name="newpwd" required type="text" placeholder="{{? Core.Data.is_guest >= 1}}请输入6-16位字母或数字{{??}}请输入密码{{?}}" /> 594 + <input class="" name="newpwd" required type="text" placeholder="{{? Core.Data.is_guest == 1}}请输入6-16位字母或数字{{??}}请输入密码{{?}}" />
534 595
535 596
536 </label> 597 </label>
537 </div> 598 </div>
538 - {{? Core.Data.is_guest >= 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} 599 + {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}}
539 600
540 </div> 601 </div>
541 602
...@@ -549,7 +610,6 @@ ...@@ -549,7 +610,6 @@
549 610
550 611
551 </script> 612 </script>
552 -
553 <script id="mibao_template" type="text/x-jquery-tmpl" > 613 <script id="mibao_template" type="text/x-jquery-tmpl" >
554 {{? Core.Data.safe_question == "" }} 614 {{? Core.Data.safe_question == "" }}
555 <div class="new-sdk-container"> 615 <div class="new-sdk-container">
...@@ -592,8 +652,6 @@ ...@@ -592,8 +652,6 @@
592 <div class="new-sdk-box"> 652 <div class="new-sdk-box">
593 <p>问题:{{=Core.Data.safe_question}}</p> 653 <p>问题:{{=Core.Data.safe_question}}</p>
594 <p>答案:{{=Core.Data.safe_answer}}</p> 654 <p>答案:{{=Core.Data.safe_answer}}</p>
595 -
596 - <p>修改密保设置请访问<a href="javascript:Core.goTo('http://m.9133.com')">www.9133.com</a></p>
597 </div> 655 </div>
598 </form> 656 </form>
599 </div> 657 </div>
...@@ -601,8 +659,6 @@ ...@@ -601,8 +659,6 @@
601 659
602 660
603 </script> 661 </script>
604 -
605 -
606 <script id="answer_question_template" type="text/x-jquery-tmpl" > 662 <script id="answer_question_template" type="text/x-jquery-tmpl" >
607 <div class="new-sdk-container"> 663 <div class="new-sdk-container">
608 <div class="SDK-titlebox"></div> 664 <div class="SDK-titlebox"></div>
...@@ -637,10 +693,6 @@ ...@@ -637,10 +693,6 @@
637 693
638 694
639 </script> 695 </script>
640 -
641 -
642 -
643 -
644 <script id="bind_template" type="text/x-jquery-tmpl" > 696 <script id="bind_template" type="text/x-jquery-tmpl" >
645 <div class="new-sdk-container"> 697 <div class="new-sdk-container">
646 <div class="SDK-titlebox"></div> 698 <div class="SDK-titlebox"></div>
...@@ -648,19 +700,27 @@ ...@@ -648,19 +700,27 @@
648 <a href="#login" class="lefticon"> 700 <a href="#login" class="lefticon">
649 <i class="iconfont icon-fanhui"></i> 701 <i class="iconfont icon-fanhui"></i>
650 </a> 702 </a>
651 - 绑定手机号码 703 + 绑定手机
652 </div> 704 </div>
653 705
654 - <div class="new-sdk-box" style="border-top: 1px solid #c4c3c3;"> 706 + <div class="new-sdk-box">
655 707
656 {{? Core.Data.bind_phone == "" && Core.Data.bind_statu == 0 }} 708 {{? Core.Data.bind_phone == "" && Core.Data.bind_statu == 0 }}
709 + <div class="acount-name">
710 + 账号:{{=Core.Data.username}}
711 + </div>
657 <form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" > 712 <form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" >
658 - <div class="new-sdk-box"> 713 + <div class="input" style="padding: 0;">
659 - <div class="input" style="padding: 0;"><input type="text" required name="mobile" placeholder="输入想要绑定的手机号"></div> 714 + <input id="js_iphone" type="text" required name="mobile" placeholder="请输入您要绑定的手机号码">
660 - <p>可通过绑定的手机号码快速找回密码、修改密码、解除账号锁定</p> 715 + </div>
716 + <div class="inputCode clearfix">
717 + <div class="input fl">
718 + <input id="js_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码">
719 + </div>
720 + <a href="javascript:;" class="getCode" id="js_getcode">获取验证码</a>
661 </div> 721 </div>
662 <ul class="inline-btn"> 722 <ul class="inline-btn">
663 - <li><a class="larg btn btn-orange submit" value="" >保存设置</a></li> 723 + <li><a class="larg btn btn-orange submit" id="js_conform" value="" >确定</a></li>
664 <li><a class="btn" href="#home">返回</a></li> 724 <li><a class="btn" href="#home">返回</a></li>
665 </ul> 725 </ul>
666 </form> 726 </form>
...@@ -697,6 +757,66 @@ ...@@ -697,6 +757,66 @@
697 </div> 757 </div>
698 758
699 </script> 759 </script>
760 +<script id="bindMobile_template" type="text/x-jquery-tmpl">
761 + <div class="new-sdk-container">
762 + <div class="SDK-titlebox"></div>
763 + <div class="user-center">
764 + <a href="#home" class="lefticon">
765 + <i class="iconfont icon-fanhui"></i>
766 + </a>
767 + 绑定手机
768 + </div>
769 + <div class="new-sdk-box">
770 + <div class="acount-name">
771 + 账号:{{=Core.Data.username}}
772 + </div>
773 + <form id="bind_mobile_form" action="/user/bind_mobile">
774 + <div class="input" style="padding: 0;">
775 + <input id="js_iphone" type="text" required placeholder="请输入您要绑定的手机号码">
776 + </div>
777 + <div class="inputCode clearfix">
778 + <div class="input fl">
779 + <input id="js_ranks" type="text" required placeholder="请输入短信验证码">
780 + </div>
781 + <a href="javascript:;" class="getCode" id="js_getcode" style="padding: 20px 0;">获取验证码</a>
782 + </div>
783 + <ul class="inline-btn">
784 + <li><a class="larg btn btn-orange" id="js_conform" value="" >确定</a></li>
785 + <li><a class="btn" href="#home">返回</a></li>
786 + </ul>
787 + </form>
788 + </div>
789 + </div>
790 +</script>
791 +<script id="unbindMobile_template" type="text/x-jquery-tmpl">
792 + <div class="new-sdk-container">
793 + <div class="SDK-titlebox"></div>
794 + <div class="user-center">
795 + <a href="#home" class="lefticon">
796 + <i class="iconfont icon-fanhui"></i>
797 + </a>
798 + 解绑手机
799 + </div>
800 + <div class="new-sdk-box">
801 + <div class="acount-name">
802 + <p style="margin-top: 0;">账号:{{=Core.Data.username}}</p>
803 + <p>手机:<span class="phoneMobile"></span></p>
804 + </div>
805 + <form id="unbind_mobile_form" action="/user/bind_mobile">
806 + <div class="inputCode clearfix">
807 + <div class="input fl">
808 + <input id="js_unbind_ranks" type="text" required placeholder="请输入短信验证码">
809 + </div>
810 + <a href="javascript:;" class="getCode" id="js_unbind_getcode" style="padding:20px 0;">获取验证码</a>
811 + </div>
812 + <ul class="inline-btn" style="margin-top: 25px;">
813 + <li><a class="larg btn btn-orange" id="js_unbind" value="" >确定</a></li>
814 + <li><a class="btn" href="#home">返回</a></li>
815 + </ul>
816 + </form>
817 + </div>
818 + </div>
819 +</script>
700 <script id="message_detail_template" type="text/x-jquery-tmpl"> 820 <script id="message_detail_template" type="text/x-jquery-tmpl">
701 <div class="header"> 821 <div class="header">
702 <a class="btn pull-left op-back" href="#message">返回</a> 822 <a class="btn pull-left op-back" href="#message">返回</a>
...@@ -801,17 +921,17 @@ ...@@ -801,17 +921,17 @@
801 <script type="text/javascript" src="js/doT.min.js?20150923001" ></script> 921 <script type="text/javascript" src="js/doT.min.js?20150923001" ></script>
802 <script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script> 922 <script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script>
803 <script type="text/javascript"> 923 <script type="text/javascript">
804 -
805 window.isGetData = 0; 924 window.isGetData = 0;
806 $(function() { 925 $(function() {
807 FastClick.attach(document.body); 926 FastClick.attach(document.body);
808 }); 927 });
809 </script> 928 </script>
810 <script type="text/javascript" src="js/core.min.js?20150923001" ></script> 929 <script type="text/javascript" src="js/core.min.js?20150923001" ></script>
811 -<script type="text/javascript" src="js/login.min.js?20150923001" ></script> 930 +<script type="text/javascript" src="js/login.min.js?2016111" ></script>
812 <script type="text/javascript" src="js/loader.min.js?20150923001"></script> 931 <script type="text/javascript" src="js/loader.min.js?20150923001"></script>
813 932
814 <script type="text/javascript"> 933 <script type="text/javascript">
934 +window.onload = window.onresize = initMatching;
815 (function(){ 935 (function(){
816 getData('/sdk/login/json'); 936 getData('/sdk/login/json');
817 })(); 937 })();
......
1 -(function(){localStorage.setItem("auto",false);e();function e(e){if(e){$(e).appendTo($("body .mask"))}var t=function(e){Module.call(this,e)};Core.inherit(t,Module);t.prototype.bind=function(){var e=this;e.$c.on("click","label.help, img",function(e){e.preventDefault();e.stopPropagation();if(Core.cur_mod=="help")return;Core.showMod("help");return false})};Core.registerMod("home",t);var o=function(e){Module.call(this,e)};Core.inherit(o,Module);Core.registerMod("help",o);var i=function(e){Module.call(this,e)};Core.inherit(i,Module);i.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.mibao_cb,e);return false})};i.prototype.mibao_cb=function(e){var t=e.code;var o=e.msg;if(0==t){Core.Data.safe_question=o.question;Core.Data.safe_answer=o.answer}Core.showTips("成功设置密保!",true);Core.showMod("home")};Core.registerMod("mibao",i);var r=function(e){Module.call(this,e)};Core.inherit(r,Module);Core.registerMod("sub_menu",r);var a=function(e){Module.call(this,e)};Core.inherit(a,Module);a.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.bind_cb,e);return false});e.$c.on("click","#bind-mobile",function(t){t.preventDefault();e.$c.find("#bind_phone_form").show();return false});e.$c.on("click","#bind-check",function(t){t.preventDefault();Core.ajax_do($(t.target),e.bind_ch,e);return false})};a.prototype.bind_ch=function(e){var t=e.code;Core.Data.bind_statu=e.msg.bind_statu;if(e.msg.bind_statu==1){Core.showTips("电话绑定未成功",false)}Core.updateMod("bind")};a.prototype.bind_cb=function(e){var t=e.code;if(t!=0)return;$(".bind_phone_tip").html(Core.Data.bind_mobile_tips);Core.Data.bind_statu=1;Core.Data.bind_phone=this.$c.find("input[name=mobile]").val();this.$c.find("span.text-info").html(this.$c.find("input[name=mobile]").val());Core.showTips("通过电话确认后可绑定手机!",true);this.$c.find("#bind_phone_form").hide();this.isValid=false;setTimeout(function(){Core.updateMod("bind")},1e3)};Core.registerMod("bind",a);var n=function(e){Module.call(this,e)};Core.inherit(n,Module);n.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.mail_cb,e);return false});e.$c.on("click","#bind-mail",function(t){t.preventDefault();e.$c.find("#bind_mail_form").show();return false});e.$c.on("click",".op-primary",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.mail_cb,e);return false})};n.prototype.mail_cb=function(e){var t=e.code;Core.Data.bind_mail_statu=1;Core.Data.mail=this.$c.find("input[name=email]").val();this.$c.find("span.text-info").html(this.$c.find("input[name=email]").val());Core.showTips("请登录您的邮箱,完成邮箱认证功能。",true);this.$c.find("#bind_mail_form").hide();this.isValid=false;setTimeout(function(){Core.updateMod("mail")},1e3)};Core.registerMod("mail",n);var l=function(e){Module.call(this,e)};Core.inherit(l,Module);l.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.modify_cb,e);return false})};l.prototype.modify_cb=function(e){var t=e.code;var o=e.msg;if(t==0){if(Core.Data.is_guest==1){localStorage.removeItem("guest_n");Core.showTips("账号升级成功, 请记住登录名和新密码。",true)}else{Core.showTips("成功修改密码, 请记住新密码。",true)}if(!Core.user_names)Core.user_names={};Core.user_names[o.username]=this.$c.find("input[name=newpwd]").val();localStorage.setItem("user_names",JSON.stringify(Core.user_names));Core.Data.is_guest=o.is_guest;Core.Data.username=o.username;Core.Data.nickname=o.nickname;this.isValid=false;Core.updateMod("home")}else{Core.showTips(o,false)}};l.prototype.show_after=function(){var e=Core.last_mod?Core.last_mod:"home";this.$c.find("a.btn.pull-left").attr("href","#"+e)};Core.registerMod("modify_pwd",l);var s=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(s,Module);s.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();if(Core.cur_mod=="activity_detail")return;var o=$(t.target);if(!o.is("a"))o=o.parent();var i=o.attr("data-id");if(i==e.cur_id){Core.Data.activity_update=false;Core.showMod("activity_detail");return false}e.cur_id=i;Core.Data.activity_update=true;Core.showTips("加载中...",true,5e3);o.data("path","/sdk/notice/view/?id="+i);Core.load_json(o,function(e){Core.Data.activity_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("activity_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};s.prototype.refresh=function(){this.myScroll.refresh()};s.prototype.show_after=function(){if(this.$c.find(".activity-list").children().length==0){Core.load_html(this.$c.find(".activity-list"),this.act_cb,this)}var e=this.$c.find(".badge");if(e.length==0){if(Core.Data.msg_count>0){var t=this.$c.find(".badge_msg");t.html('<span class="badge">'+Core.Data.msg_count+"</span>"+t.html())}}};s.prototype.act_cb=function(e){this.myScroll=new iScroll("activity_wrapper")};Core.registerMod("activity",s);var c=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(c,Module);c.prototype.bind=function(){var e=this};c.prototype.show_after=function(){var e=this;if(Core.Data.activity_update){console.log("new scroller");this.myScroll=new iScroll("detail_scroller");e.myScroll.refresh();this.$c.find(".scroll img").on("load",function(t){console.log("img loaded in scroll");e.myScroll.refresh()})}};Core.registerMod("activity_detail",c);var u=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(u,Module);u.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();t.stopPropagation();if(Core.cur_mod=="question_detail")return;var o=$(t.target);while(!o.is("a"))o=o.parent();var i=o.attr("data-id");if(i==e.cur_id){Core.Data.question_update=false;Core.showMod("question_detail");return false}e.cur_id=i;Core.Data.question_update=true;o.data("path","/user/question/view?id="+i+"&format=json");Core.load_json(o,function(e){Core.Data.question_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("question_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};u.prototype.refresh=function(){this.myScroll.refresh()};u.prototype.show_after=function(){if(this.$c.find(".kefu-list").children().length==0){$ol=this.$c.find(".kefu-list");if($ol.attr("data-params-url").indexOf("undefined")==-1)Core.load_html(this.$c.find(".kefu-list"),this.act_cb,this)}};u.prototype.act_cb=function(e){this.myScroll=new iScroll("kefu_wrapper")};Core.registerMod("kefu_list",u);var f=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(f,Module);f.prototype.bind=function(){var e=this;e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};f.prototype.refresh=function(){this.myScroll.refresh()};f.prototype.show_after=function(){if(this.$c.find(".invite-list").children().length==0){Core.load_html(this.$c.find(".invite-list"),this.act_cb,this)}};f.prototype.act_cb=function(e){this.myScroll=new iScroll("invite_wrapper")};Core.registerMod("invite_list",f);var d=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(d,Module);d.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();t.stopPropagation();if(Core.cur_mod=="message_detail")return;var o=$(t.currentTarget);var i=o.attr("data-id");if(i==e.cur_id){Core.showMod("message_detail");return false}e.cur_id=i;o.data("path","/message/"+i+".html?format=json");Core.load_json(o,function(e){Core.Data.message_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("message_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};d.prototype.refresh=function(){this.myScroll.refresh()};d.prototype.show_after=function(){if(this.$c.find(".message-list").children().length==0){Core.load_html(this.$c.find(".message-list"),this.act_cb,this)}};d.prototype.act_cb=function(e){this.myScroll=new iScroll("message_wrapper")};Core.registerMod("message",d);var p=function(e){Module.call(this,e)};Core.inherit(p,Module);Core.registerMod("message_detail",p);var h=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(h,Module);h.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();t.stopPropagation();if(Core.cur_mod=="topic_detail")return;var o=$(t.target);while(!o.is("a"))o=o.parent();var i=o.attr("data-id");if(i==e.cur_id){Core.Data.topic_update=false;Core.showMod("topic_detail");return false}e.cur_id=i;Core.Data.topic_update=true;Core.Data.topic_id=i;o.data("path","/topic/view?id="+i+"&order=recent&format=json");Core.load_json(o,function(e){Core.Data.topic_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("topic_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};h.prototype.refresh=function(){this.myScroll.refresh()};h.prototype.show_after=function(){if(this.$c.find(".topic-list").children().length==0){this.cur_id=null;var e=this.$c.find(".topic-list");if(e.attr("data-params-url").indexOf("undefined")==-1)Core.load_html(e,this.act_cb,this)}};h.prototype.act_cb=function(e){this.myScroll=new iScroll("topic_wrapper")};Core.registerMod("topic_list",h);var m=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(m,Module);m.prototype.bind=function(){var e=this;e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false});e.$c.on("click",".op-primary",function(e){e.preventDefault();Core.updateMod("topic_reply");return false})};m.prototype.refresh=function(){this.myScroll.refresh();var e=this;this.$c.find(".scroll img").on("load",function(t){e.myScroll.refresh()})};m.prototype.show_after=function(){if(Core.Data.topic_update){if(this.myScroll)this.myScroll.destroy();this.myScroll=new iScroll("topic_detail_scroller");this.refresh()}};Core.registerMod("topic_detail",m);var _=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(_,Module);_.prototype.bind=function(){var e=this;e.$c.on("click",".op-primary.submit",function(t){t.preventDefault();if(e.$c.find("textarea").val()==""){Core.showTips("请填写相应的描述!",false);return false}Core.ajax_do(e.$c.find(".ajax"),e.sq_cb,e);return false})};_.prototype.sq_cb=function(e){if(e.code==0){Core.showTips(e.msg,true,3e3);this.$c.find("input[name=title]").val("");this.$c.find("textarea").val("");setTimeout(function(){Core.updateMod("topic_list")},2e3)}else{Core.showTips(e.msg,false)}};Core.registerMod("topic",_);var C=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(C,Module);C.prototype.bind=function(){var e=this;e.$c.on("click",".op-primary.submit",function(t){t.preventDefault();if(e.$c.find("textarea").val().length>150){Core.showTips("帖子描述超出了150个字符!",false);return false}Core.ajax_do(e.$c.find(".ajax"),e.sq_cb,e);return false})};C.prototype.sq_cb=function(e){if(e.code==0){var t=this;Core.showTips(e.msg,true,2e3);var o=Core.Data.topic_id;var i=t.$c.find(".op-primary.submit");i.data("path","/topic/view?id="+o+"&order=recent&format=json");Core.load_json(i,function(e){Core.Data.topic_update=true;Core.Data.topic_detail=e;Core.showTips("回复成功!",true,2e3);Core.updateMod("topic_detail")},t)}else{Core.showTips(e.msg,false)}};Core.registerMod("topic_reply",C);var v=function(e){this.myScroll=null;this.$e=null;Module.call(this,e)};Core.inherit(v,Module);v.prototype.bind=function(){var e=this;e.$c.on("click","li>p>a",function(t){t.preventDefault();var o=$(t.target);e.$e=o;Core.ajax_do(o,e.post_cb,e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};v.prototype.refresh=function(){var e=this;setTimeout(function(){e.myScroll.refresh()},300)};v.prototype.show_after=function(){if(this.$c.find(".prize-list").children().length==0){Core.load_html(this.$c.find(".prize-list"),this.act_cb,this)}};v.prototype.post_cb=function(e){Core.showTips(e.msg.msg,e.code==0?true:false,2e3);if(e.code==0){console.log(this);this.$e.replaceWith('<sapn class="pull-right text-info btn-small">已经领取</span>')}};v.prototype.act_cb=function(e){this.myScroll=new iScroll("prize_wrapper")};Core.registerMod("prize_list",v);var y=function(e){this.myScroll=null;this.$score=null;Module.call(this,e)};Core.inherit(y,Module);y.prototype.bind=function(){var e=this;e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false});e.$c.on("click","li p > a",function(t){t.preventDefault();e.$score=$(t.target);Core.ajax_do($(t.target),e.jude_cb,e);return false})};y.prototype.jude_cb=function(e){Core.showTips(e.msg);if(e.code==0){var t=this.$score.html();this.$score.parent().empty().html('您的评价:&nbsp;&nbsp;<span class="btn">'+t+"</span>")}};y.prototype.refresh=function(){var e=this;setTimeout(function(){e.myScroll.refresh()},300)};y.prototype.show_after=function(){if(Core.Data.question_update){if(this.myScroll)this.myScroll.destory();this.myScroll=new iScroll("question_detail_scroller")}};Core.registerMod("question_detail",y);var g=function(e){Module.call(this,e)};Core.inherit(g,Module);g.prototype.bind=function(){var e=this;e.$c.on("click",".op-primary.submit",function(t){t.preventDefault();if(e.$c.find("select").val()==""||e.$c.find("textarea").val()==""){Core.showTips("请选择问题类型,并填写相应的描述!",false);return false}if(e.$c.find("textarea").val().length>150){Core.showTips("问题描述超出了150个字符!",false);return false}Core.ajax_do(e.$c.find(".ajax"),e.sq_cb,e);return false})};g.prototype.sq_cb=function(e){Core.showTips(e.msg,true,2e3);this.isValid=false;Core.updateMod("kefu_list")};Core.registerMod("submit_question",g);var b=function(e){Module.call(this,e)};Core.inherit(b,Module);b.prototype.bind=function(){var e=this;e.$c.on("click","#share a",function(e){e.preventDefault();var t=$(e.target);var o=[];var i=t.attr("title");var r=t.attr("href");var a=Core.Data.game_icon;var n=Core.Data.invite_url;var l="title="+encodeURIComponent("我在玩"+Core.Data.game_name+",游戏很棒,一起来玩吧!");n="url="+encodeURIComponent(n);if(t.hasClass("s_tqq")){o.push("c=share");o.push("a=index")}if(t.hasClass("s_qzone")){a="pics="+encodeURIComponent(a)}else if(t.hasClass("s_tsina")){o.push("searchpic=true");o.push("style=number")}else{a="pic="+encodeURIComponent(a)}o.push(a);o.push(n);o.push(l);var s=t.attr("data-appkey");if(s){s="appkey="+s;o.push(s)}r=r+"?"+o.join("&");Core.Data.frame_title=i+"分享";Core.Data.frame_src=r;Core.updateMod("frame")})};Core.registerMod("invite_menu",b);var M=function(e){Module.call(this,e)};Core.inherit(M,Module);M.prototype.bind=function(){var e=this;e.$c.on("click",".go_frame",function(e){e.preventDefault();var t=$(e.target);var o=t.attr("data-url");var i=t.attr("data-title");Core.Data.frame_title=i;Core.Data.frame_src=o;Core.updateMod("frame")})};Core.registerMod("assistant",M);var w=function(e){Module.call(this,e)};Core.inherit(w,Module);w.prototype.show_after=function(){var e=this;var t=Core.last_mod?Core.last_mod:"home";this.$c.find("a.btn.pull-left").attr("href","#"+t);this.$c.find("iframe")[0].onload=function(){e.$c.find("#loading_frame").hide()}};Core.registerMod("frame",w);if(window.isGetData==1){$("#loading").hide();Core.init()}else{window.isGetData=1}}})();
...\ No newline at end of file ...\ No newline at end of file
1 +(function() {
2 + localStorage.setItem('auto', false);
3 +
4 + init_data();
5 +
6 +
7 +
8 + function init_data(response) {
9 + if (response) {
10 + $(response).appendTo($('body .mask'));
11 + }
12 + // Home模块
13 + var Home = function(modId) {
14 + Module.call(this, modId);
15 + }
16 + // 继承基础模块
17 + Core.inherit(Home, Module);
18 +
19 + Home.prototype.bind = function() {
20 + // 绑定模块事件到section
21 + var that = this;
22 + that.$c.on('click', 'label.help, img', function(e) {
23 + e.preventDefault();
24 + e.stopPropagation();
25 + /*
26 + * @todo-list bug fixed in android,the click event fired twice!
27 + */
28 + if (Core.cur_mod == 'help')
29 + return;
30 + Core.showMod('help');
31 + return false;
32 + });
33 +
34 + }
35 +
36 + Core.registerMod('home', Home);
37 +
38 + // 帮助信息模块
39 + var Help = function(modId) {
40 + Module.call(this, modId);
41 + }
42 + Core.inherit(Help, Module);
43 + Core.registerMod('help', Help);
44 + // Mibao模块
45 + var Mibao = function(modId) {
46 + Module.call(this, modId);
47 + }
48 + // 继承基础模块
49 + Core.inherit(Mibao, Module);
50 + Mibao.prototype.bind = function() {
51 + var that = this;
52 + that.$c.on('click', '[type=submit]', function(e) {
53 + e.preventDefault();
54 + Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that);
55 + return false;
56 + });
57 + }
58 + Mibao.prototype.mibao_cb = function(data) {
59 + var status_code = data.code;
60 + var msg = data.msg;
61 + if (0 == status_code) {
62 + Core.Data.safe_question = msg.question;
63 + Core.Data.safe_answer = msg.answer;
64 + }
65 + // 显示一个成功信息,并跳转到home
66 + Core.showTips("成功设置密保!", true);
67 + Core.showMod('home');
68 + }
69 + Core.registerMod('mibao', Mibao);
70 +
71 + // 用户安全菜单模块
72 + var Sub_menu = function(modId) {
73 + Module.call(this, modId);
74 + }
75 + Core.inherit(Sub_menu, Module);
76 + Core.registerMod('sub_menu', Sub_menu);
77 + // var Message_menu = function(modId) {
78 + // Module.call(this, modId);
79 + // }
80 + // Core.inherit(Message_menu, Module);
81 + // Message_menu.prototype.show_after = function(){
82 + // var $badge = this.$c.find('.badge');
83 + // if($badge.length ==0){
84 + // if(Core.Data.msg_count > 0){
85 + // var $btn = this.$c.find('.msg');
86 + // $btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html());
87 + // }
88 + // }
89 + // }
90 + // Core.registerMod('message_menu', Message_menu);
91 + // //找回密码模块
92 + // var Find_pwd = function(modId){
93 + // Module.call(this, modId);
94 + // }
95 + // Core.inherit(Find_pwd, Module);
96 + // Find_pwd.prototype.bind = function(){
97 + // var that = this;
98 + // that.$c.on('click', '.op-primary', function(e){
99 + // var $form = that.$c.find('.step-tab
100 + // input:checked').parent().parent().find('form')
101 + // e.preventDefault();
102 + // Core.ajax_do($form, that.findpwd_cb, that);
103 + // return false;
104 + // });
105 + // }
106 + // Find_pwd.prototype.findpwd_cb = function(data){
107 + // var code = data.code;
108 + // var msg = data.msg;
109 + //
110 + // if (0 != code){
111 + // Core.showTips(msg, false);
112 + // return;
113 + // }
114 + // if(typeof msg == 'object'){
115 + // //回答密保
116 + // Core.Data.ans_temp = msg;
117 + // Core.updateMod('answer_question');
118 + // } else{
119 + // //通过邮箱
120 + // Core.showTips(msg, true);
121 + // Core.showMod("login");
122 + // }
123 + // }
124 + // Core.registerMod('find_pwd', Find_pwd);
125 +
126 + // Mibao模块
127 + var Bind = function(modId) {
128 + Module.call(this, modId);
129 + }
130 + // 继承基础模块
131 + Core.inherit(Bind, Module);
132 + Bind.prototype.bind = function() {
133 + var that = this;
134 + that.$c.on('click', '[type=submit]', function(e) {
135 + e.preventDefault();
136 + Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that);
137 + return false;
138 + });
139 + that.$c.on('click', '#bind-mobile', function(e) {
140 + e.preventDefault();
141 + that.$c.find('#bind_phone_form').show();
142 + return false;
143 + });
144 + that.$c.on('click', '#bind-check', function(e){
145 + e.preventDefault();
146 + Core.ajax_do($(e.target), that.bind_ch, that);
147 + return false;
148 + });
149 + }
150 + Bind.prototype.bind_ch = function(data){
151 + var code = data.code;
152 + Core.Data.bind_statu = data.msg.bind_statu;
153 + if(data.msg.bind_statu == 1){
154 + Core.showTips('电话绑定未成功', false);
155 + }
156 + Core.updateMod('bind');
157 + }
158 + Bind.prototype.bind_cb = function(data) {
159 + var code = data.code;
160 + if (code != 0)
161 + return;
162 + $(".bind_phone_tip").html(Core.Data.bind_mobile_tips);
163 + Core.Data.bind_statu = 1;
164 + Core.Data.bind_phone = this.$c.find('input[name=mobile]').val();
165 + this.$c.find('span.text-info').html(this.$c.find('input[name=mobile]').val());
166 + Core.showTips('通过电话确认后可绑定手机!', true);
167 + this.$c.find('#bind_phone_form').hide();
168 + this.isValid = false;
169 + setTimeout(function() {
170 + Core.updateMod('bind');
171 + }, 1000);
172 + }
173 + Core.registerMod('bind', Bind);
174 +
175 + // Mail模块
176 + var Mail = function(modId) {
177 + Module.call(this, modId);
178 + }
179 + // 继承基础模块
180 + Core.inherit(Mail, Module);
181 + Mail.prototype.bind = function() {
182 + var that = this;
183 + that.$c.on('click', '[type=submit]', function(e) {
184 + e.preventDefault();
185 + Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
186 + return false;
187 + });
188 + that.$c.on('click', '#bind-mail', function(e) {
189 + e.preventDefault();
190 + that.$c.find('#bind_mail_form').show();
191 + return false;
192 + });
193 + that.$c.on('click', '.op-primary', function(e) {
194 + e.preventDefault();
195 + Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
196 + return false;
197 + });
198 + }
199 + Mail.prototype.mail_cb = function(data) {
200 + var code = data.code;
201 + Core.Data.bind_mail_statu = 1;
202 + Core.Data.mail = this.$c.find('input[name=email]').val();
203 + this.$c.find('span.text-info').html(this.$c.find('input[name=email]').val());
204 + Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true);
205 + this.$c.find('#bind_mail_form').hide();
206 + this.isValid = false;
207 + setTimeout(function() {
208 + Core.updateMod('mail');
209 + }, 1000);
210 + }
211 + Core.registerMod('mail', Mail);
212 +
213 + // // 重置密码模块
214 + // var Reset_pwd = function(modId) {
215 + // Module.call(this, modId);
216 + // }
217 + // // 继承基础模块
218 + // Core.inherit(Reset_pwd, Module);
219 +
220 + // Reset_pwd.prototype.bind = function() {
221 + // this.$c.on('click', '.op-primary', function() {
222 + // Core.updateMod("modify_pwd");
223 + // });
224 + // }
225 + // Core.registerMod('reset_pwd', Reset_pwd);
226 +
227 + var Modify_pwd = function(modId) {
228 + Module.call(this, modId);
229 + }
230 + Core.inherit(Modify_pwd, Module);
231 +
232 + Modify_pwd.prototype.bind = function() {
233 + var that = this;
234 + that.$c.on('click', '[type=submit]', function(e) {
235 + e.preventDefault();
236 + Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
237 + return false;
238 + });
239 +
240 + }
241 + Modify_pwd.prototype.modify_cb = function(data) {
242 + var status_code = data.code;
243 + var msg = data.msg;
244 + if (status_code == 0) {
245 + if(Core.Data.is_guest == 1){
246 + //游客帐号转正
247 + localStorage.removeItem('guest_n');
248 + Core.showTips('账号升级成功, 请记住登录名和新密码。', true);
249 + }else{
250 + Core.showTips('成功修改密码, 请记住新密码。', true);
251 + }
252 + if (!Core.user_names) Core.user_names = {}
253 + Core.user_names[msg.username] = this.$c.find('input[name=newpwd]').val();
254 + localStorage.setItem('user_names', JSON.stringify(Core.user_names));
255 + Core.Data.is_guest = msg.is_guest;
256 + Core.Data.username = msg.username;
257 + Core.Data.nickname = msg.nickname;
258 + // 强制更新显示home模块,模块自刷新
259 + this.isValid = false;
260 + Core.updateMod('home');
261 + } else {
262 + Core.showTips(msg, false);
263 + }
264 + }
265 + Modify_pwd.prototype.show_after = function(){
266 + var _des = Core.last_mod ? Core.last_mod : 'home';
267 + this.$c.find('a.btn.pull-left').attr('href', '#'+_des);
268 + }
269 + Core.registerMod('modify_pwd', Modify_pwd);
270 +
271 + /**
272 + * 公告活动记录模块
273 + */
274 + var Activity = function(modId) {
275 + this.myScroll = null;
276 + this.cur_id = null;
277 + Module.call(this, modId);
278 + }
279 + Core.inherit(Activity, Module);
280 + Activity.prototype.bind = function() {
281 + var that = this;
282 + that.$c.on('click', 'li>a.item', function(e) {
283 + e.preventDefault();
284 + /*
285 + * @todo-list bug fixed in android,the click event fired twice!
286 + */
287 + if (Core.cur_mod == 'activity_detail')
288 + return;
289 + var $e = $(e.target);
290 + if (!$e.is('a'))
291 + $e = $e.parent();
292 + var id = $e.attr('data-id');
293 + if (id == that.cur_id) {
294 + Core.Data.activity_update = false;
295 + Core.showMod('activity_detail');
296 + return false;
297 + }
298 + that.cur_id = id;
299 + Core.Data.activity_update = true;
300 + Core.showTips('加载中...', true, 5000);
301 + $e.data('path', '/sdk/notice/view/?id=' + id);
302 + Core.load_json($e, function(data){
303 + Core.Data.activity_detail = data;
304 + Core.showTips('加载完成!', true, 2000);
305 + Core.updateMod('activity_detail');
306 + }, that);
307 + // $.getJSON('/sdk/notice/view/?id=' + id, function(data) {
308 + // Core.Data.activity_detail = data;
309 + // Core.showTips('加载完成!', true, 2000);
310 + // Core.updateMod('activity_detail');
311 + // });
312 + return false;
313 + });
314 + that.$c.on('click', 'li.more a', function(e) {
315 + e.preventDefault();
316 + Core.load_html($(e.target), that.refresh, that);
317 + return false;
318 + });
319 + }
320 + Activity.prototype.refresh = function() {
321 + this.myScroll.refresh();
322 + }
323 + Activity.prototype.show_after = function() {
324 + if (this.$c.find('.activity-list').children().length == 0) {
325 + Core.load_html(this.$c.find('.activity-list'),
326 + this.act_cb, this);
327 + }
328 + var $badge = this.$c.find('.badge');
329 + if($badge.length ==0){
330 + if(Core.Data.msg_count > 0){
331 + var $btn = this.$c.find('.badge_msg');
332 + $btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html());
333 + }
334 + }
335 + }
336 + Activity.prototype.act_cb = function(data) {
337 + this.myScroll = new iScroll('activity_wrapper');
338 + }
339 + Core.registerMod('activity', Activity);
340 +
341 + /**
342 + * 公告活动详细模块
343 + */
344 + var Activity_detail = function(modId) {
345 + this.myScroll = null;
346 + Module.call(this, modId);
347 + }
348 + Core.inherit(Activity_detail, Module);
349 + Activity_detail.prototype.bind = function() {
350 + var that = this;
351 + }
352 + Activity_detail.prototype.show_after = function() {
353 + var that = this;
354 + if (Core.Data.activity_update) {
355 + console.log('new scroller');
356 + this.myScroll = new iScroll('detail_scroller');
357 + that.myScroll.refresh();
358 + this.$c.find('.scroll img').on('load', function(e){
359 + console.log('img loaded in scroll');
360 + that.myScroll.refresh();
361 + });
362 + }
363 + }
364 +
365 + Core.registerMod('activity_detail', Activity_detail);
366 +
367 + /**
368 + * 客服问题列表模块
369 + */
370 + var Kefu_list = function(modId) {
371 + this.myScroll = null;
372 + this.cur_id = null;
373 + Module.call(this, modId);
374 + }
375 + Core.inherit(Kefu_list, Module);
376 + Kefu_list.prototype.bind = function() {
377 + var that = this;
378 + that.$c.on('click', 'li>a.item', function(e) {
379 + e.preventDefault();
380 + e.stopPropagation();
381 + /*
382 + * @todo-list bug fixed in android,the click event fired twice!
383 + */
384 + if (Core.cur_mod == 'question_detail')
385 + return;
386 + var $e = $(e.target);
387 + while (!$e.is('a'))
388 + $e = $e.parent();
389 + var id = $e.attr('data-id');
390 + if (id == that.cur_id) {
391 + Core.Data.question_update = false;
392 + Core.showMod('question_detail');
393 + return false;
394 + }
395 + that.cur_id = id;
396 + Core.Data.question_update = true;
397 + $e.data('path', '/user/question/view?id=' + id + '&format=json');
398 + Core.load_json($e, function(data){
399 + Core.Data.question_detail = data;
400 + Core.showTips('加载完成!', true, 2000);
401 + Core.updateMod('question_detail');
402 + }, that);
403 + // Core.showTips('加载中...', true, 5000);
404 + // $.getJSON('/user/question/view?id=' + id + '&format=json',
405 + // function(data) {
406 + // Core.Data.question_detail = data;
407 + // Core.showTips('加载完成!', true, 2000);
408 + // Core.updateMod('question_detail');
409 + // });
410 + return false;
411 + });
412 + that.$c.on('click', 'li.more a', function(e) {
413 + e.preventDefault();
414 + Core.load_html($(e.target), that.refresh, that);
415 + return false;
416 + });
417 + }
418 + Kefu_list.prototype.refresh = function() {
419 + this.myScroll.refresh();
420 + }
421 + Kefu_list.prototype.show_after = function() {
422 + if (this.$c.find('.kefu-list').children().length == 0) {
423 + $ol = this.$c.find('.kefu-list');
424 + if($ol.attr('data-params-url').indexOf('undefined') == -1)
425 + Core.load_html(this.$c.find('.kefu-list'), this.act_cb,
426 + this);
427 + }
428 + }
429 + Kefu_list.prototype.act_cb = function(data) {
430 + this.myScroll = new iScroll('kefu_wrapper');
431 +
432 + }
433 + Core.registerMod('kefu_list', Kefu_list);
434 +
435 + /**
436 + * 邀请列表模块
437 + */
438 + var Invite_list = function(modId) {
439 + this.myScroll = null;
440 + Module.call(this, modId);
441 + }
442 + Core.inherit(Invite_list, Module);
443 + Invite_list.prototype.bind = function() {
444 + var that = this;
445 + that.$c.on('click', 'li.more a', function(e) {
446 + e.preventDefault();
447 + Core.load_html($(e.target), that.refresh, that);
448 + return false;
449 + });
450 + }
451 + Invite_list.prototype.refresh = function() {
452 + this.myScroll.refresh();
453 + }
454 + Invite_list.prototype.show_after = function() {
455 + if (this.$c.find('.invite-list').children().length == 0) {
456 + Core.load_html(this.$c.find('.invite-list'), this.act_cb,
457 + this);
458 + }
459 + }
460 + Invite_list.prototype.act_cb = function(data) {
461 + this.myScroll = new iScroll('invite_wrapper');
462 + }
463 + Core.registerMod('invite_list', Invite_list);
464 +
465 + /**
466 + * 消息列表模块
467 + */
468 + var Message = function(modId) {
469 + this.myScroll = null;
470 + this.cur_id = null;
471 + Module.call(this, modId);
472 + }
473 + Core.inherit(Message, Module);
474 + Message.prototype.bind = function() {
475 + var that = this;
476 + that.$c.on('click', 'li>a.item', function(e) {
477 + e.preventDefault();
478 + e.stopPropagation();
479 + /*
480 + * @todo-list bug fixed in android,the click event fired twice!
481 + */
482 + if (Core.cur_mod == 'message_detail')
483 + return;
484 + var $e = $(e.currentTarget);
485 + var id = $e.attr('data-id');
486 + if (id == that.cur_id) {
487 + Core.showMod('message_detail');
488 + return false;
489 + }
490 + that.cur_id = id;
491 + $e.data('path', '/message/' + id + '.html?format=json');
492 + Core.load_json($e, function(data){
493 + Core.Data.message_detail = data;
494 + Core.showTips('加载完成!', true, 2000);
495 + Core.updateMod('message_detail');
496 + }, that);
497 + return false;
498 + });
499 + that.$c.on('click', 'li.more a', function(e) {
500 + e.preventDefault();
501 + Core.load_html($(e.target), that.refresh, that);
502 + return false;
503 + });
504 + }
505 + Message.prototype.refresh = function() {
506 + this.myScroll.refresh();
507 + }
508 + Message.prototype.show_after = function() {
509 + if (this.$c.find('.message-list').children().length == 0) {
510 + Core.load_html(this.$c.find('.message-list'), this.act_cb,
511 + this);
512 + }
513 + }
514 + Message.prototype.act_cb = function(data) {
515 + this.myScroll = new iScroll('message_wrapper');
516 + }
517 + Core.registerMod('message', Message);
518 +
519 + /**
520 + * 消息内容详细模块
521 + */
522 + var Message_detail = function(modId) {
523 + Module.call(this, modId);
524 + }
525 + Core.inherit(Message_detail, Module);
526 +
527 + Core.registerMod('message_detail', Message_detail);
528 + /**
529 + * 论坛列表模块
530 + */
531 + var Topic_list = function(modId) {
532 + this.myScroll = null;
533 + this.cur_id = null;
534 + Module.call(this, modId);
535 + }
536 + Core.inherit(Topic_list, Module);
537 + Topic_list.prototype.bind = function() {
538 + var that = this;
539 + that.$c.on('click', 'li>a.item', function(e) {
540 + e.preventDefault();
541 + e.stopPropagation();
542 + /*
543 + * @todo-list bug fixed in android,the click event fired twice!
544 + */
545 + if (Core.cur_mod == 'topic_detail')
546 + return;
547 + var $e = $(e.target);
548 + while (!$e.is('a'))
549 + $e = $e.parent();
550 + var id = $e.attr('data-id');
551 + if (id == that.cur_id) {
552 + Core.Data.topic_update = false;
553 + Core.showMod('topic_detail');
554 + return false;
555 + }
556 + that.cur_id = id;
557 + Core.Data.topic_update = true;
558 + Core.Data.topic_id = id;
559 + $e.data('path', '/topic/view?id=' + id + '&order=recent&format=json');
560 + Core.load_json($e, function(data){
561 + Core.Data.topic_detail = data;
562 + Core.showTips('加载完成!', true, 2000);
563 + Core.updateMod('topic_detail');
564 + }, that)
565 + // Core.showTips('加载中...', true, 5000);
566 + // $.getJSON('/topic/view?id=' + id + '&order=recent&format=json',
567 + // function(data) {
568 + // Core.Data.topic_detail = data;
569 + // Core.showTips('加载完成!', true, 2000);
570 + // Core.updateMod('topic_detail');
571 + // });
572 + return false;
573 + });
574 + that.$c.on('click', 'li.more a', function(e) {
575 + e.preventDefault();
576 + Core.load_html($(e.target), that.refresh, that);
577 + return false;
578 + });
579 + }
580 + Topic_list.prototype.refresh = function() {
581 + this.myScroll.refresh();
582 + }
583 + Topic_list.prototype.show_after = function() {
584 + if (this.$c.find('.topic-list').children().length == 0) {
585 + this.cur_id = null;
586 + var $ol = this.$c.find('.topic-list');
587 + if($ol.attr('data-params-url').indexOf('undefined') == -1)
588 + Core.load_html($ol, this.act_cb,
589 + this);
590 + }
591 + }
592 + Topic_list.prototype.act_cb = function(data) {
593 + this.myScroll = new iScroll('topic_wrapper');
594 + }
595 + Core.registerMod('topic_list', Topic_list);
596 +
597 + /**
598 + * 帖子详细模块
599 + */
600 + var Topic_detail = function(modId) {
601 + this.myScroll = null;
602 + Module.call(this, modId);
603 + }
604 + Core.inherit(Topic_detail, Module);
605 + Topic_detail.prototype.bind = function() {
606 + var that = this;
607 + that.$c.on('click', 'li.more a', function(e) {
608 + e.preventDefault();
609 + Core.load_html($(e.target), that.refresh, that);
610 + return false;
611 + });
612 + that.$c.on('click', '.op-primary', function(e) {
613 + e.preventDefault();
614 + Core.updateMod('topic_reply');
615 + return false;
616 + });
617 + }
618 + Topic_detail.prototype.refresh = function() {
619 + this.myScroll.refresh();
620 + var that = this;
621 + this.$c.find('.scroll img').on("load", function(e){
622 + that.myScroll.refresh();
623 + });
624 + }
625 + Topic_detail.prototype.show_after = function() {
626 + if (Core.Data.topic_update) {
627 + if (this.myScroll)
628 + this.myScroll.destroy();
629 + this.myScroll = new iScroll('topic_detail_scroller');
630 + this.refresh();
631 + }
632 + }
633 +
634 + Core.registerMod('topic_detail', Topic_detail);
635 +
636 + /**
637 + * 发帖子模块
638 + */
639 + var Topic = function(modId) {
640 + this.myScroll = null;
641 + Module.call(this, modId);
642 + }
643 + Core.inherit(Topic, Module);
644 + Topic.prototype.bind = function() {
645 + var that = this;
646 + that.$c.on('click', '.op-primary.submit', function(e) {
647 + e.preventDefault();
648 + if (that.$c.find('textarea').val() == '') {
649 + Core.showTips('请填写相应的描述!', false);
650 + return false;
651 + }
652 + /*
653 + * if(that.$c.find('textarea').val().length > 150){
654 + * Core.showTips('帖子描述超出了150个字符!', false); return false; }
655 + */
656 + Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
657 + return false;
658 + });
659 + }
660 + Topic.prototype.sq_cb = function(data) {
661 + if (data.code == 0) {
662 + Core.showTips(data.msg, true, 3000);
663 + this.$c.find('input[name=title]').val('');
664 + this.$c.find('textarea').val('');
665 + setTimeout(function() {
666 + Core.updateMod('topic_list');
667 + }, 2000);
668 + } else {
669 + Core.showTips(data.msg, false);
670 + }
671 + }
672 +
673 + Core.registerMod('topic', Topic);
674 +
675 + /**
676 + * 回复帖子模块
677 + */
678 + var Topic_reply = function(modId) {
679 + this.myScroll = null;
680 + Module.call(this, modId);
681 + }
682 + Core.inherit(Topic_reply, Module);
683 + Topic_reply.prototype.bind = function() {
684 + var that = this;
685 + that.$c.on('click', '.op-primary.submit', function(e) {
686 + e.preventDefault();
687 + if (that.$c.find('textarea').val().length > 150) {
688 + Core.showTips('帖子描述超出了150个字符!', false);
689 + return false;
690 + }
691 + Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
692 + return false;
693 + });
694 + }
695 + Topic_reply.prototype.sq_cb = function(data) {
696 + if (data.code == 0) {
697 + // 回复成功,跳转回帖子详情页
698 + var that = this;
699 + Core.showTips(data.msg, true, 2000);
700 + var id = Core.Data.topic_id;
701 + var _$ = that.$c.find('.op-primary.submit');
702 + _$.data('path', '/topic/view?id=' + id + '&order=recent&format=json');
703 + Core.load_json(_$, function(data){
704 + Core.Data.topic_update = true;
705 + Core.Data.topic_detail = data;
706 + Core.showTips('回复成功!', true, 2000);
707 + Core.updateMod('topic_detail');
708 + }, that);
709 + // $.getJSON('/topic/view?id=' + id + '&order=recent&format=json',
710 + // function(data) {
711 + // Core.Data.topic_update = true;
712 + // Core.Data.topic_detail = data;
713 + // Core.showTips('回复成功!', true, 2000);
714 + // Core.updateMod('topic_detail');
715 + // });
716 + } else {
717 + Core.showTips(data.msg, false);
718 + }
719 +
720 + }
721 +
722 + Core.registerMod('topic_reply', Topic_reply);
723 + /**
724 + * 奖励列表模块
725 + */
726 + var Prize_list = function(modId) {
727 + this.myScroll = null;
728 + this.$e = null;
729 + Module.call(this, modId);
730 + }
731 + Core.inherit(Prize_list, Module);
732 + Prize_list.prototype.bind = function() {
733 + var that = this;
734 + that.$c.on('click', 'li>p>a', function(e) {
735 + e.preventDefault();
736 + var $e = $(e.target);
737 + that.$e = $e;
738 + Core.ajax_do($e, that.post_cb, that);
739 + return false;
740 + });
741 + that.$c.on('click', 'li.more a', function(e) {
742 + e.preventDefault();
743 + Core.load_html($(e.target), that.refresh, that);
744 + return false;
745 + });
746 + }
747 + Prize_list.prototype.refresh = function() {
748 + var that = this;
749 + setTimeout(function() {
750 + that.myScroll.refresh();
751 + }, 300);
752 +
753 + }
754 + Prize_list.prototype.show_after = function() {
755 + if (this.$c.find('.prize-list').children().length == 0) {
756 + Core.load_html(this.$c.find('.prize-list'), this.act_cb,
757 + this);
758 + }
759 + }
760 + Prize_list.prototype.post_cb = function(data) {
761 + Core.showTips(data.msg.msg, data.code == 0 ? true : false, 2000);
762 + if (data.code == 0) {
763 + console.log(this);
764 + this.$e.replaceWith('<sapn class="pull-right text-info btn-small">已经领取</span>');
765 + }
766 + }
767 + Prize_list.prototype.act_cb = function(data) {
768 + this.myScroll = new iScroll('prize_wrapper');
769 + }
770 + Core.registerMod('prize_list', Prize_list);
771 + /**
772 + * 客服问题详细模块
773 + */
774 + var Question_detail = function(modId) {
775 + this.myScroll = null;
776 + this.$score = null;
777 + Module.call(this, modId);
778 + }
779 + Core.inherit(Question_detail, Module);
780 + Question_detail.prototype.bind = function() {
781 + var that = this;
782 + that.$c.on('click', 'li.more a', function(e) {
783 + e.preventDefault();
784 + Core.load_html($(e.target), that.refresh, that);
785 + return false;
786 + });
787 + that.$c.on('click', 'li p > a', function(e) {
788 + e.preventDefault();
789 + that.$score = $(e.target);
790 + Core.ajax_do($(e.target), that.jude_cb, that);
791 + return false;
792 + })
793 + }
794 + Question_detail.prototype.jude_cb = function(data) {
795 + Core.showTips(data.msg);
796 + if (data.code == 0) {
797 + var score = this.$score.html();
798 + this.$score.parent().empty().html(
799 + '您的评价:&nbsp;&nbsp;<span class="btn">' + score
800 + + '</span>');
801 + }
802 + }
803 + Question_detail.prototype.refresh = function() {
804 + var that = this;
805 + setTimeout(function() {
806 + that.myScroll.refresh();
807 + }, 300);
808 +
809 + }
810 + Question_detail.prototype.show_after = function() {
811 + if (Core.Data.question_update) {
812 + if (this.myScroll)
813 + this.myScroll.destory();
814 + this.myScroll = new iScroll('question_detail_scroller');
815 + }
816 + }
817 +
818 + Core.registerMod('question_detail', Question_detail);
819 +
820 + /**
821 + * 提问客模块
822 + */
823 + var Submit_question = function(modId) {
824 + Module.call(this, modId);
825 + }
826 + Core.inherit(Submit_question, Module);
827 + Submit_question.prototype.bind = function() {
828 + var that = this;
829 + that.$c.on('click', '.op-primary.submit', function(e) {
830 + e.preventDefault();
831 + if (that.$c.find('select').val() == ''
832 + || that.$c.find('textarea').val() == '') {
833 + Core.showTips('请选择问题类型,并填写相应的描述!', false);
834 + return false;
835 + }
836 + if (that.$c.find('textarea').val().length > 150) {
837 + Core.showTips('问题描述超出了150个字符!', false);
838 + return false;
839 + }
840 + Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
841 + return false;
842 + });
843 + }
844 + Submit_question.prototype.sq_cb = function(data) {
845 + Core.showTips(data.msg, true, 2000);
846 + this.isValid = false;
847 + Core.updateMod('kefu_list');
848 + }
849 + Core.registerMod('submit_question', Submit_question);
850 +
851 +
852 + /**
853 + * 邀请菜单模块
854 + */
855 + var Invite_menu = function(modId) {
856 + Module.call(this, modId);
857 + }
858 + Core.inherit(Invite_menu, Module);
859 + Invite_menu.prototype.bind = function() {
860 + var that = this;
861 + // that.$c.on('click', 'input[type=submit]', function(e) {
862 + // e.preventDefault();
863 + // Core.ajax_do(that.$c.find('.ajax'), that.if_cb, that);
864 + // return false;
865 + // });
866 + that.$c.on('click', '#share a', function(e){
867 + e.preventDefault();
868 + var $e = $(e.target);
869 + var params = [];
870 + var head = $e.attr('title');
871 + var url = $e.attr('href');
872 + var pic = Core.Data.game_icon;
873 + var targetUrl = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html';
874 + var title = 'title=' + encodeURIComponent('我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!');
875 + targetUrl = 'url=' + encodeURIComponent(targetUrl);
876 + if($e.hasClass('s_tqq')){
877 + params.push('c=share');
878 + params.push('a=index');
879 + }
880 + if($e.hasClass('s_qzone')){
881 + pic = 'pics=' + encodeURIComponent(pic);
882 + }
883 + else if($e.hasClass('s_tsina')){
884 + params.push('searchpic=true');
885 + params.push('style=number');
886 + //params.push('mbweb=0');
887 + }
888 + else {
889 + pic = 'pic=' + encodeURIComponent(pic);
890 + }
891 + params.push(pic);
892 + params.push(targetUrl);
893 + params.push(title);
894 + var appkey = $e.attr('data-appkey');
895 + if(appkey){
896 + appkey = 'appkey=' + appkey;
897 + params.push(appkey);
898 + }
899 + url = url + '?' + params.join('&');
900 + Core.Data.frame_title = head + '分享';
901 + Core.Data.frame_src = url;
902 + Core.updateMod('frame');
903 +
904 + });
905 + }
906 + // Invite_menu.prototype.if_cb = function(data) {
907 + // Core.showTips(data.msg, data.code == 0 ? true : false);
908 + // this.$c.find('input[type=email]').val('');
909 + // }
910 + Core.registerMod('invite_menu', Invite_menu);
911 +
912 + /**
913 + * 平台助手模块
914 + */
915 + var Assistant = function(modId) {
916 + Module.call(this, modId);
917 + }
918 + Core.inherit(Assistant, Module);
919 + Assistant.prototype.bind = function(){
920 + var that = this;
921 + that.$c.on('click', '.go_frame', function(e){
922 + e.preventDefault();
923 + var $e = $(e.target);
924 + var site = $e.attr('data-url');
925 + var title = $e.attr('data-title');
926 + Core.Data.frame_title = title;
927 + Core.Data.frame_src = site;
928 + Core.updateMod('frame');
929 + });
930 + }
931 + Core.registerMod('assistant', Assistant);
932 +
933 + /**
934 + * iframe模块,用于显示外部页面
935 + */
936 + var Frame = function(modId) {
937 + Module.call(this, modId);
938 + }
939 + Core.inherit(Frame, Module);
940 + Frame.prototype.show_after = function() {
941 + var that = this;
942 + var _des = Core.last_mod ? Core.last_mod : 'home';
943 + this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
944 + this.$c.find('iframe')[0].onload = function() {
945 + that.$c.find('#loading_frame').hide();
946 + }
947 + }
948 + Core.registerMod('frame', Frame);
949 +
950 + if (window.isGetData == 1) {
951 + // 兼容旧版本sdk
952 + $('#loading').hide();
953 + Core.init();
954 + } else {
955 + window.isGetData = 1;
956 + }
957 + }
958 +})();
...\ No newline at end of file ...\ No newline at end of file
......
1 -var Core={};function initMatching(){var e=navigator.userAgent;Core.isIos=e.match(/i[^;]+;( U;)? CPU.+Mac OS X/)!=null;Core.isAndroid=e.indexOf("Android")>-1||e.indexOf("Linux")>-1;Core.isFile=location.href.indexOf("file")==0;Core.isWeixin=e.indexOf("MicroMessenger")!=-1;var t=window.devicePixelRatio;Core.ratio=t;var a=localStorage.getItem("last_server");if(a&&a.indexOf("http:")==0){if(Core.isFile){Core.server=a}else if(location.href.indexOf(a)==-1){location.href=location.href.replace(Core.server,a)}}var i=null;if(location.hash.indexOf("app_id")!=-1){i=location.hash.match(/.*%7C(\d+)_(\d+)&/)}else{i=location.search.match(/.*%7C(\d+)_(\d+)&/)}if(i&&i.length==3){Core.sdk_w=parseInt(i[1]);Core.sdk_h=parseInt(i[2]);if(Core.isIos&&e.indexOf("iPad")!=-1&&Core.sdk_h<600){Core.sdk_w*=2;Core.sdk_h*=2}}if(location.href.indexOf("callBackUrl")!=-1){try{Core.Data.back_url=unescape(location.href.match(/callBackUrl=([^&]+)/)[1])}catch(e){}}var o=$("head");if(Core.isAndroid){$("html").attr("data-useragent","android");if(t>1.5){$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(o)}else if(t<1){$('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(o)}else if(t==1){$('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(o)}else{$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(o)}}var r=null;if(Core.isIos){$("html").attr("data-useragent","ios");if(!Core.sdk_w)Core.sdk_w=600;_scale=1;if(t>1.5){_scale=2.3/t}else if(t<1){_scale=1.5/t}else{_scale=1}if(e.indexOf("iPad")!=-1&&Core.sdk_w>768){Core.sdk_w=Core.sdk_w/2;Core.sdk_h=Core.sdk_h/2/_scale}else{Core.sdk_h=Core.sdk_h*_scale}r=Core.sdk_w*_scale;Core.ios_w=r;$('meta[name="viewport"]').attr("content","width="+r+",maximum-scale="+_scale+",user-scalable=no");$(window.document).on("touchmove",function(e){if(e.target.tagName!="IFRAME")e.preventDefault()});$("body").addClass("ios");if($("div")[0].getAttribute("class")!="mask"){$("div")[0].remove()}}}(function(){if(typeof localStorage=="undefined"){localStorage={setItem:function(){console.log("localStorage not support!")},getItem:function(){console.log("localStorage not support!")}}}var e=navigator.userAgent;Core.isIos=e.match(/i[^;]+;( U;)? CPU.+Mac OS X/)!=null;Core.isAndroid=e.indexOf("Android")>-1||e.indexOf("Linux")>-1;Core.isFile=location.href.indexOf("file")==0;Core.isWeixin=e.indexOf("MicroMessenger")!=-1;var t=window.devicePixelRatio;Core.ratio=t;Core.server="http://youyu.9133.com";var a=localStorage.getItem("last_server");if(a&&a.indexOf("http:")==0){if(Core.isFile){Core.server=a}else if(location.href.indexOf(a)==-1){location.href=location.href.replace(Core.server,a)}}var i=null;if(location.hash.indexOf("app_id")!=-1){i=location.hash.match(/.*%7C(\d+)_(\d+)&/)}else{i=location.search.match(/.*%7C(\d+)_(\d+)&/)}if(i&&i.length==3){Core.sdk_w=parseInt(i[1]);Core.sdk_h=parseInt(i[2]);if(Core.isIos&&e.indexOf("iPad")!=-1&&Core.sdk_h<600){Core.sdk_w*=2;Core.sdk_h*=2}}if(location.href.indexOf("callBackUrl")!=-1){try{Core.Data.back_url=unescape(location.href.match(/callBackUrl=([^&]+)/)[1])}catch(e){}}var o=$("head");if(Core.isAndroid){$("html").attr("data-useragent","android");if(t>1.5){$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(o)}else if(t<1){$('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(o)}else if(t==1){$('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(o)}else{$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(o)}}var r=null;if(Core.isIos){$("html").attr("data-useragent","ios");if(!Core.sdk_w)Core.sdk_w=600;_scale=1;if(t>1.5){_scale=2/t}else if(t<1){_scale=1.5/t}else{_scale=1}if(e.indexOf("iPad")!=-1&&Core.sdk_w>768){Core.sdk_w=Core.sdk_w/2;Core.sdk_h=Core.sdk_h/2/_scale}else{Core.sdk_h=Core.sdk_h*_scale}r=Core.sdk_w*_scale;Core.ios_w=r;$('meta[name="viewport"]').attr("content","width="+r+",maximum-scale="+_scale+",user-scalable=no");$(window.document).on("touchmove",function(e){if(e.target.tagName!="IFRAME")e.preventDefault()});$("body").addClass("ios");if($("div")[0].getAttribute("class")!="mask"){$("div")[0].remove()}}})();(function(e,t){var a={},i=null;t.Data={};t.cur_mod=null;t.last_mod=null;t.getTemplate=function(e){var t=$("#"+e+"_template").html();return t};t.getMod=function(e){if(!e in a){console.error("没有对应的模块id的section:"+e);return}return a[e]};t.registerMod=function(e,t){if($("#"+e).length==0)console.error("没有对应的模块id的section:"+e);if(a[e])console.error("模块已经存在:"+e);a[e]=new t(e);a[e].init()};t.back=function(){if(!t.cur_mod||t.cur_mod=="")t.cur_mod="home";var e=$("#"+t.cur_mod);var a=e.find(".op-back");if(a.length==0){location.href="sdk://exit?action=login"}else{var i=a.attr("href");if(i.indexOf("#")==0){location.hash=i}else{location.href=i}}};t.clearFrame=function(){var e=$("#frame iframe");e.remove()};t.updateData=function(e){var t=Core.Data.app_id;if(!e){Core.Data.username=null;Core.Data.nickname=null;return}Core.Data=e;Core.Data.app_id=t;Core.Data.open_id=Core.Data.open_id+"";Core.Data.timestamp=Core.Data.timestamp+"";if(e.face){Core.Data.face=Core.server+e.face}};t.updateMod=function(e){if(!e in a){console.error("没有对应的模块id的section:"+e);return}location.hash="#"+e+"&force"};t.clearMods=function(){for(var e in a){a[e].isValid=false}};t.showMod=function(e){if(!e in a){console.error("没有对应的模块id的section:"+e);return}location.hash="#"+e};t.showTips=function(e,t,a){if(typeof e=="object")e=e.msg;if(t==undefined)t=1;if(a==undefined)a=4e3;var o=$("#alert");if(t)o.removeClass("alert-error").addClass("alert-success");else o.removeClass("alert-success").addClass("alert-error");if(i!=null){$("#alert span").html(e);clearTimeout(i);i=null;i=setTimeout(function(){$("#alert").hide();i=null},a);return}$("#alert span").html(e);o.show();i=setTimeout(function(){$("#alert").hide();i=null},a)};t.isValid=function(e){var t=true;e.find("input[required]").each(function(){if(!t){return}if($(this).val()==""){$(this).focus();t=false}});if(!t){Core.showTips("请先填写相应信息!",false,2e3);return false}return true};t.goTo=function(e){if(!t.Data.game_url){e="sdk://open?url="+encodeURIComponent(e)}location.href=e};t.getCookie=function(e){var t=document.cookie.match("\\b"+e+"=([^;]*)\\b");return t?t[1]:undefined};t.GetParameter=function(e){var a="";$(e).find("input,textarea,select").each(function(){if($(this).attr("name")==undefined||$(this).attr("name")==""){return}var e=$(this).attr("type");if(e=="button"||e=="submit")return;var t=false;if(e=="checkbox"||e=="radio")t=true;var i=false;if(t){if(!$(this)[0].checked)return}a+=$(this).attr("name")+"="+encodeURIComponent($(this).val().trim())+"&"});a+="app_id="+encodeURIComponent(t.Data.app_id?t.Data.app_id:t.Data.game_id);if(a.indexOf("_xsrf")==-1){a+="&_xsrf="+t.getCookie("_xsrf")}return a};t.ajax_do=function(e,a,i){var o="";var r=null;var s="";var n=e.find("[type=submit]");var l=n.is("button")?n.html():n.attr("value");if(e[0].tagName=="FORM"||e[0].getAttribute("action")){if(e[0].disabled){Core.showTips("请求已提交,请稍候!");return}if(!t.isValid(e))return;o=t.GetParameter(e);s=e.attr("action");d="post"}else{if(e[0].disabled){Core.showTips("请求已提交,请稍候!");return}s=e.attr("href");o=e.attr("params");var d=e.attr("method");if(!d){d="get"}}if(s.indexOf("?")!=-1){s+="&format=json"}else{s+="?format=json"}if(Core.isFile){s=t.server+s}var f={type:d,url:s,dataType:"json",contentType:"application/x-www-form-urlencoded; charset=utf-8",data:o,success:function(o,r){if(o.code==-10){}else if(o.code==0){if(a&&typeof a=="function"){i?a.call(i,o):a(o)}if(typeof o.msg=="$object"&&o.msg.msg)o.msg=o.msg.msg}if(e[0].tagName=="FORM"){e[0].disabled=false;e.find("input, button").attr("disabled",null);var s=e.find("[type=submit]");if(s.is("button")){s.html(l)}else{s.attr("value",l)}}else{e[0].disabled=false}if(o.msg!=""){if(o.code!=0)t.showTips(o.msg,false)}},cache:false,timeout:1e4,error:function(a,i){var o=a.status;var r="网络不给力,请重试!"+o;if(o==403||o==401){r="请先登录!"}else if(o==408){r="请求超时,请再尝试!"}else if(o==411){r="提交内容过长。"}if(e[0].tagName=="FORM"){t.showTips(r,false,3e3);e[0].disabled=false;e.find("input, button").attr("disabled",null);var s=e.find("[type=submit]");if(s.is("button")){s.html(l)}else{s.attr("value",l)}}else{t.showTips(r,false,3e3);e[0].disabled=false}}};if(e[0].tagName=="FORM"){e[0].disabled=true;e.find("input, button").attr("disabled",true);if(n.is("button")){n.html("提交中...")}else{n.attr("value","提交中...")}}else{e[0].disabled=true}Core.showTips("加载中...",true,5e3);$.ajax(f);return false};t.load_json=function(e,a,i){var o=e.data("path");if(e.data("disabled")==true){Core.showTips("请求已提交,请稍候。");return}if(Core.isFile){o=t.server+o}var r={type:"get",url:o,dataType:"json",timeout:1e4,success:function(t){if(a&&typeof a=="function"){i?a.call(i,t):a(t)}e.data("disabled",false)},error:function(){Core.showTips("数据加载出错,请检查网络状态。",false,3e3);e.data("disabled",false)}};e.data("disabled",true);Core.showTips("加载中...",true,5e3);$.ajax(r);return false};t.load_html=function(e,a,i){var o="";var r=false;var s=e.attr("data-params-template");if(e[0].tagName=="A"){o=e.attr("href");r=e.attr("data-params-append")=="true"?true:false}else{o=e.attr("data-params-url")}if(o=="")return;if(o.indexOf("?")!=-1){o+="&format=json"}else{o+="?format=json"}if(o.indexOf("game_id")==-1){var n=t.Data.game_id?t.Data.game_id:t.Data.app_id;o+="&game_id="+n}var l="";if(s&&s!=""){l="json"}var d="";if(Core.isFile){o=t.server+o}var f={type:"get",url:o,dataType:l,contentType:"application/x-www-form-urlencoded; charset=utf-8",success:function(t){if(t.code&&t.code!=0){Core.showTips(t.msg,false);return}d=t;if(s&&s!=""){tpl=Core.getTemplate(s);var o=doT.template(tpl);t=o(d);if(r){var n=e.parent();n.is(".more")?n.replaceWith(t):e.find(".more").replaceWith(t)}else{e.html(t)}if(a&&typeof a=="function"){i?a.call(i,t):a(t)}Core.showTips("加载完毕!",true,2e3)}else{e.html(t);if(a&&typeof a=="function"){i?a.call(i,t):a(t)}Core.showTips("加载完毕!",true,2e3)}},cache:false,timeout:5e3,error:function(e){Core.showTips("json format has error")}};Core.showTips("加载中...",true,5e3);$.ajax(f)};t.isAuths=function(){if($("#login").length==1&&!t.Data.username){return false}return true};t.inherit=function(e,t){function a(){}a.prototype=t.prototype;e.superClass_=t.prototype;e.prototype=new a;e.prototype.constructor=e};t.show_anim=function(e){e.css({zIndex:2});e.show()};t.loadFinished=function(){if(Core.isAndroid){if(!Core.Data.game_url){try{return;location.href="sdk://finishLoad?action=login"}catch(e){}}}else{console.log("not wbkit browser!")}};t.finishPay=function(){var e="sdk://exit?action=pay";t.clearFrame();if(Core.Data.game_url&&Core.Data.game_url!=""){if(Core.Data.back_url){e=Core.Data.back_url}else{e=Core.Data.game_url}}else{if(Core.Data.trade_id&&Core.Data.trade_id!=""){e="sdk://pay?order_id="+Core.Data.trade_id;e+=Core.Data.current_pay_channel?"&paytype="+Core.Data.current_pay_channel.name:""}}try{location.href=e}catch(e){}};t.finishLogin=function(){var e="sdk://exit?action=login";var t="open_id="+Core.Data.open_id+"&token="+Core.Data.token+"&timestamp="+Core.Data.timestamp;t+=Core.Data.login_count?"&login_count="+Core.Data.login_count:"";if(Core.Data.game_url&&Core.Data.game_url!=""){if(Core.Data.back_url){e=Core.Data.back_url}else{e=Core.Data.game_url}if(e.indexOf("?")!=-1){e+="&"}else{e+="?"}e+=t}else{e="sdk://login?"+t;e+="&login_key="+Core.Data.login_key}try{location.href=e}catch(e){}};t.hide=function(i){if(!i)i=t.cur_mod;if(!(i in a)){console.log("没有对应的模块id的section:"+i);return}var o=$(e).width();var r=$("#"+i);if(r.find("iframe").length>0){t.clearFrame()}r.css({zIndex:1});r.hide();t.last_mod=i};t.init=function(){if(localStorage.getItem("guest_n")||Core.user_names){t.isFresh=false}else{t.isFresh=true}$("#alert").on("click","",function(e){if(i){clearTimeout(i);i=null;$("#alert").hide()}});e.onhashchange=function(){var e=location.hash,i,o;var r=e.split("&");e=r[0];o=r[1];if(e==""){if(Core.start_page){e=Core.start_page}else{e="home"}}else{e=e.substring(1)}if(!(e in a)){console.log("没有对应的模块id的section:"+e);e="home"}t.hide();i=a[e];t.cur_mod=e;if(o&&o.indexOf("force")!=-1){if(i.isDef){i.show(false)}else{i.$c.find("ol").empty();i.show()}}else{i.show()}};var o=location.hash.split("&")[0];var r=null;if(o==""){if(Core.start_page){r=Core.start_page}else{r="home"}location.hash="#"+r}else{r=o.substring(1);onhashchange()}if(Core.Data.open_id&&Core.Data.open_id!=""&&$("#login").length!=0&&Core.Data.auto_login==1&&Core.Data.is_guest==0){var s=(new Date).getTime();var n=localStorage.getItem("auto");var l=parseInt(localStorage.getItem("auto_time"));if(n&&n=="true"){if(s-l>6e5){localStorage.setItem("auto_time",s);t.finishLogin()}else{localStorage.setItem("auto_time",s);t.loadFinished()}}else{localStorage.setItem("auto",true);localStorage.setItem("auto_time",s);Core.finishLogin()}}else{if($("#login").length!=0){var d=(new Date).getTime();localStorage.setItem("auto",true);localStorage.setItem("auto_time",d)}t.loadFinished()}};$(function(){var t,a,i,o,r;var s=e.devicePixelRatio;if(Core.sdk_h){if(s!=Core.ratio){a=Core.sdk_h*(Core.ratio/s)}else{a=Core.sdk_h}}else{t=$(e).width();a=$(e).height();o=document.documentElement.clientWidth;r=document.documentElement.clientHeight;if(o&&o>t)t=o;if(r&&r>a)a=r;if(a<450&&t==450){a=450}}if(Core.isIos&&$(e).width()<$("body").width()){$('meta[name="viewport"]').attr("content","width="+$("body").width()+",maximum-scale=0.5,user-scalable=no")}})})(window,Core);Module=function(e){this.isDef=null;this.isAuth=false;this.isReplace=false;this.moduleId=e;this.$c=$("#"+e);this.isValid=false};Module.prototype.init=function(){if(this.$c.attr("data-attr")=="dot"){this.isDef=true}else{this.isValid=true}if(this.$c.attr("data-replace")=="1"){this.isReplace=true}if(this.$c.attr("data-auth")=="1"){this.isAuth=true}if(this.bind&&typeof this.bind=="function")this.bind()};Module.prototype.show=function(e){if(e!=undefined)this.isValid=e;if(this.isAuth&&!Core.isAuths()){if(location.hash.indexOf("login")==-1){Core.isFresh?Core.showMod("login"):Core.showMod("login");return}}if(!this.isDef){if(this.isReplace){this.$c.find("[data-replace]").each(function(e){var t=$(this),a;var i=t.attr("data-replace");var o=t.attr(i);var r=/\{([\w]+)\}/.exec(o);if(r.length==2&&r[1]in Core.Data){a=Core.Data[r[1]];var s=o.replace(r[0],a);t.attr(i,s)}else{console.log("can not find variable in:"+o)}});this.isReplace=false}Core.show_anim(this.$c)}else{if(this.isValid){Core.show_anim(this.$c)}else{if(!this.tpl)this.tpl=doT.template(Core.getTemplate(this.moduleId));this.$c.html(this.tpl());Core.show_anim(this.$c);this.isValid=true}}if(this.show_after&&typeof this.show_after=="function")this.show_after()};
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 + * 言语数据加载
3 + * lang_cn.js 简体中文
4 + * lang_tw.js 繁体中文
5 + * lang_ko.js 韩文
6 + * lang_ja.js 日文
7 + */
8 +// (function(){
9 +// var type ='cn';
10 +// var lang = (navigator.language || navigator.browserLanguage).toLowerCase();
11 +// if(lang.indexOf('zh') != 1){
12 +// //中文
13 +// if(lang.indexOf('tw')!=-1 || lang.indexOf('hk') != -1){
14 +// //繁体中文
15 +// type = 'tw';
16 +// }
17 +// }else if(lang.indexOf('ko') != -1) {
18 +// type = 'ko'; //韩文
19 +// } else if(lang.indexOf('ja') != -1){
20 +// type = 'ja'; //日文
21 +// }
22 +// $('<script type="text/javascript" src="/static/js/lagn_' + type + '.js/>').appendTo($('head'));
23 +// })();
24 +
25 +/*
26 + * 定义核心模块
27 + */
28 +var Core = {};
29 +function initMatching(){
30 + var userAgent = navigator.userAgent;
31 + Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null;
32 + Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1;
33 + Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议
34 + Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1;
35 + var ratio = window.devicePixelRatio;
36 + Core.ratio = ratio;
37 +
38 +
39 + var lastServer = localStorage.getItem('last_server');
40 + if(lastServer && lastServer.indexOf('http:')==0){
41 + if(Core.isFile){
42 + Core.server = lastServer;
43 + }else if(location.href.indexOf(lastServer)==-1){
44 + location.href = location.href.replace(Core.server,lastServer);
45 + }
46 + }
47 + var ary = null;
48 + if (location.hash.indexOf('app_id') != -1) {
49 + ary = location.hash.match(/.*%7C(\d+)_(\d+)&/);
50 + } else {
51 + ary = location.search.match(/.*%7C(\d+)_(\d+)&/);
52 + }
53 + if (ary && ary.length == 3) {
54 + //成功匹配屏幕大小, 直接计算屏幕高度
55 + Core.sdk_w = parseInt(ary[1]);
56 + Core.sdk_h = parseInt(ary[2]);
57 + if(Core.isIos && userAgent.indexOf('iPad')!=-1 && Core.sdk_h < 600){
58 + Core.sdk_w *= 2;
59 + Core.sdk_h *= 2;
60 + }
61 + }
62 + if(location.href.indexOf('callBackUrl')!=-1){
63 + try{
64 + Core.Data.back_url = unescape(location.href.match(/callBackUrl=([^&]+)/)[1]);
65 + }catch(e){}
66 +
67 + }
68 +
69 + var _head = $('head');
70 + if (Core.isAndroid) {
71 + $('html').attr('data-useragent', 'android');
72 + if (ratio > 1.5) {
73 + $('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(_head);//340
74 + //Core.ratio = 1.5;
75 + } else if (ratio < 1) {
76 + $('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(_head);//260
77 + //Core.ratio = 1;
78 + } else if(ratio == 1){
79 + $('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(_head);//300
80 + //Core.ratio = 1.25;
81 + }else{
82 + $('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(_head);//340
83 + }
84 + }
85 + var _w = null;
86 + if (Core.isIos) {
87 + $('html').attr('data-useragent', 'ios');
88 +
89 + if (!Core.sdk_w) Core.sdk_w = 600;
90 + _scale = 1;
91 + if(ratio == 2){//5、6、6s(2.4)
92 + _scale = 2.4 / ratio;
93 + if(userAgent.indexOf('iPad') != -1){
94 + _scale = 2 / ratio;
95 + }
96 + }else if(ratio >2.5){//6s plus
97 + _scale = 2.7 / ratio;
98 + }else if (ratio < 1) {
99 + _scale = 1.5 / ratio;
100 + } else {
101 + _scale = 1;
102 + }
103 + if(userAgent.indexOf('iPad') != -1 && Core.sdk_w > 768){
104 + Core.sdk_w = Core.sdk_w / 2;
105 + Core.sdk_h = Core.sdk_h / 2 / _scale;
106 + }else{
107 + Core.sdk_h = Core.sdk_h * _scale;
108 + }
109 + _w = Core.sdk_w * _scale;
110 +
111 + Core.ios_w = _w;
112 +
113 + $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
114 + //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
115 + //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
116 + $(window.document).on('touchmove', function(e) {
117 + if (e.target.tagName != "IFRAME")
118 + e.preventDefault();
119 + });
120 + $('body').addClass('ios');
121 + if($("div")[0].getAttribute("class")!="mask"){
122 + $("div")[0].remove();
123 + }
124 + }
125 +};
126 +(function() {
127 + //兼容localStorage处理
128 + if(typeof(localStorage) == 'undefined'){
129 + localStorage = {
130 + setItem: function(){
131 + console.log('localStorage not support!');
132 + },
133 + getItem: function(){
134 + console.log('localStorage not support!');
135 + }
136 + }
137 + }
138 + var userAgent = navigator.userAgent;
139 + Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null;
140 + Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1;
141 + Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议
142 + Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1;
143 + var ratio = window.devicePixelRatio;
144 + Core.ratio = ratio;
145 +
146 + Core.PLATFORM_NAME = '海豹';
147 +
148 + if(Core.isIos){
149 + Core.server = 'https://sdk.uuufish.com';
150 + }else{
151 + Core.server = 'http://sdk.uuufish.com';
152 + }
153 +
154 +
155 + var lastServer = localStorage.getItem('last_server');
156 + if(lastServer && lastServer.indexOf('http:')==0){
157 + if(Core.isFile){
158 + Core.server = lastServer;
159 + }else if(location.href.indexOf(lastServer)==-1){
160 + location.href = location.href.replace(Core.server,lastServer);
161 + }
162 + }
163 + var ary = null;
164 + if (location.hash.indexOf('app_id') != -1) {
165 + ary = location.hash.match(/.*%7C(\d+)_(\d+)&/);
166 + } else {
167 + ary = location.search.match(/.*%7C(\d+)_(\d+)&/);
168 + }
169 + if (ary && ary.length == 3) {
170 + //成功匹配屏幕大小, 直接计算屏幕高度
171 + Core.sdk_w = parseInt(ary[1]);
172 + Core.sdk_h = parseInt(ary[2]);
173 + if(Core.isIos && userAgent.indexOf('iPad')!=-1 && Core.sdk_h < 600){
174 + Core.sdk_w *= 2;
175 + Core.sdk_h *= 2;
176 + }
177 + }
178 + if(location.href.indexOf('callBackUrl')!=-1){
179 + try{
180 + Core.Data.back_url = unescape(location.href.match(/callBackUrl=([^&]+)/)[1]);
181 + }catch(e){}
182 +
183 + }
184 +
185 + var _head = $('head');
186 + if (Core.isAndroid) {
187 + $('html').attr('data-useragent', 'android');
188 + if (ratio > 1.5) {
189 + $('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(_head);//340
190 + //Core.ratio = 1.5;
191 + } else if (ratio < 1) {
192 + $('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(_head);//260
193 + //Core.ratio = 1;
194 + } else if(ratio == 1){
195 + $('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(_head);//300
196 + //Core.ratio = 1.25;
197 + }else{
198 + $('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(_head);//340
199 + }
200 + }
201 + var _w = null;
202 + if (Core.isIos) {
203 + $('html').attr('data-useragent', 'ios');
204 +
205 + if (!Core.sdk_w) Core.sdk_w = 600;
206 + _scale = 1;
207 + if (ratio > 1.5){//6s plus,
208 + _scale = 2.8 / ratio;
209 + } else if (ratio < 1) {
210 + _scale = 1.5 / ratio;
211 + } else {
212 + _scale = 1;
213 + }
214 + if(userAgent.indexOf('iPad') != -1 && Core.sdk_w > 768){
215 + Core.sdk_w = Core.sdk_w / 2;
216 + Core.sdk_h = Core.sdk_h / 2 / _scale;
217 + }else{
218 + Core.sdk_h = Core.sdk_h * _scale;
219 + }
220 + _w = Core.sdk_w * _scale;
221 +
222 + Core.ios_w = _w;
223 +
224 + $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
225 + //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
226 + //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
227 + $(window.document).on('touchmove', function(e) {
228 + if (e.target.tagName != "IFRAME")
229 + e.preventDefault();
230 + });
231 + $('body').addClass('ios');
232 + if($("div")[0].getAttribute("class")!="mask"){
233 + $("div")[0].remove();
234 + }
235 + }
236 +})();
237 +(function(window, core) {
238 +
239 + var modules = {}, tip_timeOut = null;
240 + // 数据
241 + core.Data = {};
242 + core.cur_mod = null;
243 + core.last_mod = null;
244 + // 加载Script模板
245 + core.getTemplate = function(moduleId) {
246 + var tpl = $("#" + moduleId + "_template").html();
247 + return tpl;
248 + };
249 + core.getMod = function(modId){
250 + if (!modId in modules) {
251 + console.error('没有对应的模块id的section:' + modId);
252 + return;
253 + }
254 + return modules[modId];
255 + };
256 + // 模块注册
257 + core.registerMod = function(modId, modCreator) {
258 + if ($('#' + modId).length == 0)
259 + console.error('没有对应的模块id的section:' + modId);
260 + if (modules[modId])
261 + console.error('模块已经存在:' + modId);
262 +
263 + modules[modId] = new modCreator(modId);
264 + modules[modId].init();
265 + };
266 + //绑定客户端返回按钮
267 + core.back = function() {
268 + if (!core.cur_mod || core.cur_mod == '') core.cur_mod = 'home';
269 + var _$ = $('#' + core.cur_mod);
270 + var _$btn = _$.find('.op-back');
271 + if (_$btn.length == 0) {
272 + location.href = 'sdk://exit?action=login';
273 + } else {
274 + var path = _$btn.attr('href');
275 + if (path.indexOf('#') == 0) {
276 + //模块跳转
277 + location.hash = path;
278 + } else {
279 + location.href = path;
280 + }
281 + }
282 + };
283 + //清除iframe内容
284 + core.clearFrame = function() {
285 + var _$ = $('#frame iframe');
286 + _$.remove();
287 + //if (_$.length > 0) {
288 + // setTimeout(function(){
289 + // _$.remove();
290 + // },3000);
291 + //}
292 + }
293 + core.get_url = function(url){
294 + var url = url
295 + if (core.isFile) {
296 + url = Core.server + url;
297 + }
298 + if (core.Data.open_id && core.Data.login_key){
299 + var connect_str = url.indexOf('?') >=0 ? '&' : '?'
300 + url = url + connect_str + 'open_id=' + core.Data.open_id + '&login_key=' + core.Data.login_key;
301 + }
302 + return url
303 + }
304 + //格式化输出字符串
305 + // core.format = function(str){
306 + // var params = Array.prototype.slice.call(arguments, 1);
307 + // var re = null;
308 + // for(var i=1, l=params.length; i<=l; i++){
309 + // re = new RegExp('\\$' + i, 'g');
310 + // if(params[i-1] == undefined) break;
311 + // str = str.replace(re, params[i-1]);
312 + // }
313 + // return str;
314 + // }
315 +
316 + core.updateData = function(data) {
317 + var appId = Core.Data.app_id; //保留app_id
318 + if (!data) {
319 + Core.Data.username = null;
320 + Core.Data.nickname = null;
321 +
322 + return;
323 + }
324 + Core.Data = data
325 + Core.Data.app_id = appId;
326 + Core.Data.open_id = Core.Data.open_id + '';
327 + Core.Data.timestamp = Core.Data.timestamp + '';
328 + if(data.face){
329 + Core.Data.face = Core.server + data.face;
330 + }
331 +
332 + }
333 +
334 + /**
335 + * 强行更新一个模块,并显示出来
336 + */
337 + core.updateMod = function(modId) {
338 + if (!modId in modules) {
339 + console.error('没有对应的模块id的section:' + modId);
340 + modId = 'home'
341 + //return;
342 + }
343 + location.hash = "#" + modId + '&force';
344 + }
345 +
346 + /**
347 + * 强行重绘所有模块,在用户登出操作后
348 + */
349 + core.clearMods = function() {
350 + for(var mod in modules){
351 + modules[mod].isValid = false;
352 + }
353 + }
354 +
355 + /**
356 + * 显示指定的模块
357 + */
358 + core.showMod = function(modId) {
359 + if (!modId in modules) {
360 + console.error('没有对应的模块id的section:' + modId);
361 + return;
362 + }
363 + //location.replace = "#" + modId;
364 + location.hash = "#" + modId;
365 + }
366 +
367 + // 显示信息type=1: success, type=0: error, type=2: info, time默认2秒
368 + core.showTips = function(msg, type, time) {
369 + if (typeof msg == 'object') msg = msg.msg;
370 + if (type == undefined)
371 + type = 1;
372 + if (time == undefined)
373 + time = 4000;
374 + var $alert = $('#alert');
375 + if (type)
376 + $alert.removeClass('alert-error').addClass('alert-success');
377 + else
378 + $alert.removeClass('alert-success').addClass('alert-error');
379 + if (tip_timeOut != null) {
380 + // 上一个消息没消失,替换内容
381 + $('#alert span').html(msg);
382 + clearTimeout(tip_timeOut);
383 + tip_timeOut = null;
384 + tip_timeOut = setTimeout(function() {
385 + $('#alert').hide();
386 + tip_timeOut = null;
387 + }, time);
388 + return;
389 + }
390 + // 显示信息
391 + $('#alert span').html(msg);
392 + $alert.show();
393 + tip_timeOut = setTimeout(function() {
394 + $('#alert').hide();
395 + tip_timeOut = null;
396 + }, time);
397 + };
398 +
399 + core.isValid = function($form) {
400 + var isvalid = true;
401 + $form.find('input[required]').each(function() {
402 + if (!isvalid) {
403 + //已经出错了,直接return;
404 + return;
405 + }
406 + if ($(this).val() == '') {
407 + $(this).focus();
408 + isvalid = false;
409 + }
410 + });
411 + if (!isvalid) {
412 + Core.showTips('请先填写相应信息!', false, 2000);
413 + return false;
414 + }
415 + return true;
416 + }
417 +
418 + /**
419 + * sdk跳转功能,浏览器下打开新页跳转
420 + */
421 + core.goTo = function(url){
422 + if(!core.Data.game_url){
423 + url = 'sdk://open?url=' + encodeURIComponent(url);
424 + }
425 + location.href = url;
426 + }
427 +
428 + core.getCookie = function(name) {
429 + var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
430 + return r ? r[1] : undefined;
431 + }
432 +
433 + core.GetParameter = function(the_form) {
434 + var result = "";
435 + $(the_form).find("input,textarea,select").each(
436 + function() {
437 + if ($(this).attr('name') == undefined || $(this).attr('name') == '') {
438 + return;
439 + }
440 + // 过滤不需要的input
441 + var type = $(this).attr('type');
442 + if (type == "button" || type == "submit")
443 + return;
444 +
445 + var chk_box = false;
446 + if (type == "checkbox" || type == "radio")
447 + chk_box = true;
448 +
449 + var chk = false;
450 +
451 + if (chk_box) {
452 + if (!$(this)[0].checked)
453 + return;
454 + // 等于 each中的continue;
455 + }
456 +
457 + result += $(this).attr('name') + "=" + encodeURIComponent($(this).val().trim()) + "&";
458 +
459 + });
460 + result += 'app_id=' + encodeURIComponent(core.Data.app_id ? core.Data.app_id : core.Data.game_id);
461 + if (result.indexOf('_xsrf') == -1) {
462 + result += "&_xsrf=" + core.getCookie("_xsrf");
463 + }
464 + return result;
465 + }
466 + core.ajax = function(settings){
467 + //跨域修复https://github.com/imweb/mobile/issues/6
468 + settings.url = Core.get_url(settings.url)
469 + settings.beforeSend = function(xhr) {
470 + try {
471 + xhr.withCredentials = true;
472 + } catch (e) {
473 + var nativeOpen = xhr.open;
474 + xhr.open = function() {
475 + var result = nativeOpen.apply(xhr, arguments);
476 + xhr.withCredentials = true;
477 + return result;
478 + };
479 + }
480 + }
481 +
482 + return $.ajax(settings);
483 + },
484 + core.ajax_do = function($obj, func, context) {
485 + var param = '';
486 + var action_methon = null;
487 + var post_url = '';
488 + var $sub_btn = $obj.find('[type=submit]');
489 + var temp = $sub_btn.is('button') ? $sub_btn.html() : $sub_btn
490 + .attr('value');
491 +
492 + if ($obj[0].tagName == "FORM" || $obj[0].getAttribute('action')) {
493 + if ($obj[0].disabled) {
494 + Core.showTips('请求已提交,请稍候!');
495 + return;
496 + }
497 + if (!core.isValid($obj))
498 + return;
499 + param = core.GetParameter($obj);
500 + post_url = $obj.attr('action');
501 + action_method = "post";
502 + } else {
503 + if ($obj[0].disabled) {
504 + //点击重入
505 + Core.showTips('请求已提交,请稍候!');
506 + return;
507 + }
508 + post_url = $obj.attr('href');
509 + param = $obj.attr('params');
510 + var action_method = $obj.attr('method');
511 + if (!action_method) {
512 + action_method = "get";
513 + }
514 + }
515 + if (post_url.indexOf('?') != -1) {
516 + post_url += '&format=json';
517 + } else {
518 + post_url += '?format=json';
519 + }
520 +
521 +
522 + var options = {
523 + type: action_method,
524 + url: post_url,
525 + dataType: 'json',
526 + contentType: "application/x-www-form-urlencoded; charset=utf-8",
527 + data: param,
528 + beforeSend: function(xhr) {
529 + try {
530 + xhr.withCredentials = true;
531 + } catch (e) {
532 + var nativeOpen = xhr.open;
533 + xhr.open = function() {
534 + var result = nativeOpen.apply(xhr, arguments);
535 + xhr.withCredentials = true;
536 + return result;
537 + };
538 + }
539 + },
540 + success: function(result, textStatus) {
541 + if (result.code == -10) {
542 + // 未登录,跳转的登录界面
543 + } else if (result.code == 0) {
544 +
545 + if (func && typeof func == "function") {
546 + context ? func.call(context, result) : func(result);
547 + }
548 + if (typeof(result.msg) == '$object' && result.msg.msg)
549 + result.msg = result.msg.msg;
550 +
551 + }
552 + if ($obj[0].tagName == "FORM") {
553 + $obj[0].disabled = false;
554 + $obj.find("input, button").attr('disabled', null);
555 + var $but_input = $obj.find('[type=submit]');
556 + if ($but_input.is('button')) {
557 + $but_input.html(temp);
558 + } else {
559 + $but_input.attr('value', temp);
560 + }
561 + } else {
562 + $obj[0].disabled = false;
563 + }
564 + if (result.msg != '') {
565 + if (result.code != 0)
566 + core.showTips(result.msg, false);
567 + }
568 +
569 + },
570 + cache: false,
571 + timeout: 10000,
572 + error: function(XMLHttpRequest, textStatus) {
573 + var response_status = XMLHttpRequest.status;
574 + var msg = "网络不给力,请重试!" + response_status;
575 +
576 + if (response_status == 403 || response_status == 401) {
577 + msg = '请先登录!';
578 + } else if (response_status == 408) {
579 + msg = '请求超时,请再尝试!';
580 + } else if (response_status == 411) {
581 + msg = '提交内容过长。';
582 + }
583 + if ($obj[0].tagName == "FORM") {
584 + core.showTips(msg, false, 3000);
585 + $obj[0].disabled = false;
586 + $obj.find("input, button").attr('disabled', null);
587 + var $but_input = $obj.find('[type=submit]');
588 + if ($but_input.is('button')) {
589 + $but_input.html(temp);
590 + } else {
591 + $but_input.attr('value', temp);
592 + }
593 +
594 + } else {
595 + core.showTips(msg, false, 3000);
596 + $obj[0].disabled = false;
597 + }
598 + }
599 + }
600 + if ($obj[0].tagName == "FORM") {
601 + $obj[0].disabled = true;
602 + $obj.find("input, button").attr('disabled', true);
603 + if ($sub_btn.is('button')) {
604 + $sub_btn.html("提交中...");
605 + } else {
606 + $sub_btn.attr('value', "提交中...");
607 + }
608 + } else {
609 + //a标签触发的请求
610 + $obj[0].disabled = true;
611 + }
612 + Core.showTips('加载中...', true, 5000);
613 + Core.ajax(options);
614 + return false;
615 + }
616 +
617 + core.load_json = function($obj, func, context) {
618 + var path = $obj.data('path');
619 + if ($obj.data('disabled') == true) {
620 + Core.showTips('请求已提交,请稍候。');
621 + return;
622 + }
623 +
624 + var options = {
625 + type: "get",
626 + url: path,
627 + dataType: 'json',
628 + timeout: 10000,
629 + success: function(data) {
630 + if (func && typeof func == "function") {
631 + context ? func.call(context, data) : func(data);
632 + }
633 + $obj.data('disabled', false);
634 + },
635 + error: function() {
636 + //数据加载出错
637 + Core.showTips('数据加载出错,请检查网络状态。', false, 3000);
638 + $obj.data('disabled', false);
639 + }
640 + }
641 + $obj.data('disabled', true);
642 + Core.showTips('加载中...', true, 5000);
643 + Core.ajax(options);
644 + return false;
645 + }
646 +
647 + core.load_html = function($obj, func, context) {
648 + var data_url = '';
649 + var isAppend = false;
650 + var data_tpl_url = $obj.attr('data-params-template');
651 + if ($obj[0].tagName == "A") {
652 + data_url = $obj.attr('href');
653 + isAppend = $obj.attr('data-params-append') == 'true' ? true : false;
654 + } else {
655 + data_url = $obj.attr('data-params-url');
656 + }
657 + if (data_url == '')
658 + return;
659 + if (data_url.indexOf('?') != -1) {
660 + data_url += '&format=json';
661 + } else {
662 + data_url += '?format=json';
663 + }
664 + if (data_url.indexOf('game_id') == -1) {
665 + var _id = core.Data.game_id ? core.Data.game_id : core.Data.app_id;
666 + data_url += '&game_id=' + _id;
667 + }
668 + var dataType = '';
669 + if (data_tpl_url && data_tpl_url != "") {
670 + dataType = 'json';
671 + }
672 + var data_result = '';
673 +
674 + var options = {
675 + type: "get",
676 + url: data_url,
677 + dataType: dataType,
678 + contentType: "application/x-www-form-urlencoded; charset=utf-8",
679 + success: function(result) {
680 + if(result.code && result.code != 0){
681 + //出错
682 + Core.showTips(result.msg, false);
683 + return;
684 + }
685 + data_result = result;
686 + if (data_tpl_url && data_tpl_url != "") {
687 + // 加载模板
688 + tpl = Core.getTemplate(data_tpl_url);
689 + var doTpl = doT.template(tpl);
690 + result = doTpl(data_result);
691 + if (isAppend) {
692 + // 删除最后一项,并将新的内容append进去
693 + var $wrap = $obj.parent();
694 + $wrap.is('.more') ? $wrap.replaceWith(result) : $obj
695 + .find('.more').replaceWith(result);
696 + } else {
697 + $obj.html(result);
698 + }
699 + if (func && typeof func == "function") {
700 + context ? func.call(context, result) : func(result);
701 + }
702 + Core.showTips('加载完毕!', true, 2000);
703 + } else {
704 + $obj.html(result);
705 + if (func && typeof func == "function") {
706 + context ? func.call(context, result) : func(result);
707 + }
708 + Core.showTips('加载完毕!', true, 2000);
709 + }
710 +
711 + },
712 + cache: false,
713 + timeout: 5000,
714 + error: function(e) {
715 + Core.showTips('json format has error');
716 + }
717 + }
718 + Core.showTips('加载中...', true, 5000);
719 + Core.ajax(options);
720 + }
721 + // 判断用户是否登录,使用两个
722 + core.isAuths = function() {
723 + if($('#login').length == 1 && !core.Data.username){
724 + return false;
725 + }
726 + return true;
727 + }
728 + // 继承
729 + core.inherit = function(childCtor, parentCtor) {
730 + /** @constructor */
731 +
732 + function temCtor() {}
733 + temCtor.prototype = parentCtor.prototype;
734 + childCtor.superClass_ = parentCtor.prototype;
735 + childCtor.prototype = new temCtor();
736 + /** @override */
737 + childCtor.prototype.constructor = childCtor;
738 + }
739 + // 动画显示模块
740 + core.show_anim = function($target) {
741 + $target.css({
742 + zIndex: 2
743 + });
744 + $target.show();
745 + }
746 +
747 + /**
748 + * sdk.loadfinished
749 + */
750 + core.loadFinished = function() {
751 + if (Core.isAndroid) { //If WebKit browser
752 + if(!Core.Data.game_url){
753 + try{
754 + return;
755 + location.href="sdk://finishLoad?action=login";
756 + }catch(e){}
757 + }
758 + } else {
759 + console.log('not wbkit browser!');
760 + }
761 + }
762 + core.finishPay = function() {
763 + var pay_url = "sdk://exit?action=pay";
764 + core.clearFrame()
765 + if(Core.Data.game_url && Core.Data.game_url != ''){
766 + if(Core.Data.back_url){
767 + pay_url = Core.Data.back_url;
768 + }else{
769 + pay_url = Core.Data.game_url;
770 + }
771 + }else{
772 + if(Core.Data.trade_id && Core.Data.trade_id != ''){
773 + pay_url = "sdk://pay?order_id=" + Core.Data.trade_id;
774 + pay_url += Core.Data.current_pay_channel ? '&paytype=' + Core.Data.current_pay_channel.name : ''
775 + }
776 + }
777 + try{
778 + location.href = pay_url;
779 + }catch(e){}
780 + }
781 + core.finishLogin = function() {
782 + var login_url = 'sdk://exit?action=login';
783 + var login_params = "open_id=" + Core.Data.open_id + "&token=" + Core.Data.token + "&timestamp=" + Core.Data.timestamp ;
784 + login_params += Core.Data.login_count ? '&login_count=' + Core.Data.login_count : '' ;
785 + if(Core.Data.game_url && Core.Data.game_url != ''){
786 + if(Core.Data.back_url){
787 + login_url = Core.Data.back_url;
788 + }else{
789 + login_url = Core.Data.game_url;
790 + }
791 + if(login_url.indexOf("?")!=-1){
792 + login_url +="&";
793 + }else{
794 + login_url +="?";
795 + }
796 + login_url += login_params;
797 + }else{
798 + login_url = "sdk://login?"+login_params;
799 + login_url += "&login_key=" + Core.Data.login_key;
800 + }
801 +
802 + try{
803 + location.href = login_url;
804 + }catch(e){}
805 + }
806 +
807 + // 隐藏指定模块
808 + core.hide = function(modId) {
809 + if (!modId)
810 + modId = core.cur_mod;
811 + if (!(modId in modules)) {
812 + console.log('没有对应的模块id的section:' + modId);
813 + return;
814 + }
815 + var page_w = $(window).width();
816 + var $target = $('#' + modId);
817 + if ($target.find('iframe').length > 0) {
818 + core.clearFrame();
819 + }
820 +
821 + $target.css({
822 + zIndex: 1
823 + });
824 +
825 + $target.hide();
826 + core.last_mod = modId;
827 +
828 + }
829 +
830 + // 核心初始化,注册事件
831 + core.init = function() {
832 + // $('#loading').hide();
833 + if(localStorage.getItem('guest_n') || Core.user_names){
834 + core.isFresh = false;
835 + } else {
836 + core.isFresh = true;
837 + }
838 +
839 + // 注册提示框的关闭按钮
840 + $('#alert').on('click', '', function(e) {
841 + if (tip_timeOut) {
842 + clearTimeout(tip_timeOut);
843 + tip_timeOut = null;
844 + $('#alert').hide();
845 + }
846 + });
847 + window.onhashchange = function() {
848 +
849 + var hash = location.hash,
850 + module, params;
851 + var strs = hash.split('&');
852 + hash = strs[0];
853 + params = strs[1];
854 + if (hash == '') {
855 +
856 + if (Core.start_page) {
857 + hash = Core.start_page;
858 + } else {
859 + hash = 'home';
860 + }
861 + } else {
862 + hash = hash.substring(1);
863 + }
864 + if (!(hash in modules)) {
865 + console.log('没有对应的模块id的section:' + hash);
866 + hash = 'home';
867 + }
868 + core.hide();
869 +
870 + module = modules[hash];
871 + core.cur_mod = hash;
872 + if (params && params.indexOf('force') != -1) {
873 + if (module.isDef) {
874 + module.show(false); // 强制更新面板
875 + } else { // 列表更新
876 + //Core.showTips('update list');
877 + module.$c.find('ol').empty();
878 + module.show();
879 + }
880 + } else {
881 + module.show();
882 + }
883 + }
884 + // 监听hashChange事件
885 + var lochash = location.hash.split('&')[0];
886 + var mod = null;
887 + if (lochash == '') {
888 + if (Core.start_page) {
889 + mod = Core.start_page;
890 + } else {
891 + mod = 'home';
892 + }
893 +
894 + location.hash = "#" + mod;
895 + } else {
896 + mod = lochash.substring(1);
897 +
898 + onhashchange();
899 + }
900 +
901 + // if(Core.isIos){
902 + //ios下,不需要自动登录和加载完成消息
903 + // return;
904 + // }
905 + //新版sdk,支持直接登录、加载后回调
906 + if (Core.Data.open_id && Core.Data.open_id != '' && $('#login').length != 0 && Core.Data.auto_login == 1 && Core.Data.is_guest == 0) {
907 + //登录模块,判定可否自动登录
908 + var d = new Date().getTime();
909 + var auto = localStorage.getItem('auto');
910 + var auto_time = parseInt(localStorage.getItem('auto_time'));
911 + if (auto && auto == 'true') {
912 + if ((d - auto_time) > 600000) {
913 + //距离上次登录10分钟,尝试自动登录
914 + localStorage.setItem('auto_time', d);
915 + core.finishLogin();
916 + } else {
917 + //距离上次登录,小于10分钟,手动登录
918 + localStorage.setItem('auto_time', d);
919 + core.loadFinished();
920 + }
921 + } else {
922 + //自动登录
923 + localStorage.setItem('auto', true);
924 + localStorage.setItem('auto_time', d);
925 + Core.finishLogin();
926 + }
927 + } else {
928 + if ($('#login').length != 0) {
929 + //第一次没有登录,进入手动登录,写入信息
930 + var f = new Date().getTime();
931 + localStorage.setItem('auto', true);
932 + localStorage.setItem('auto_time', f);
933 + }
934 + core.loadFinished();
935 + }
936 + }
937 +
938 + $(function() {
939 + // 调整页面高度适应
940 + var page_w, page_h, tag, c_w, c_h;
941 + var ratio = window.devicePixelRatio;
942 + if (Core.sdk_h) {
943 + //成功匹配屏幕大小, 直接计算屏幕高度
944 + if (ratio != Core.ratio) {
945 + page_h = Core.sdk_h * (Core.ratio / ratio);
946 + } else {
947 + page_h = Core.sdk_h;
948 + }
949 + //alert('sdk:' + page_h + ':' + ratio + ':' + Core.ratio + ':' + Core.ios_w, true, 5000);
950 + } else {
951 + //旧版sdk,只能通过高度取值
952 + page_w = $(window).width();
953 + page_h = $(window).height();
954 + c_w = document.documentElement.clientWidth;
955 + c_h = document.documentElement.clientHeight;
956 + if (c_w && c_w > page_w) page_w = c_w;
957 + if (c_h && c_h > page_h) page_h = c_h;
958 + //Core.showTips(page_h + ':' + ratio, true, 5000);
959 + if (page_h < 450 && page_w == 450) {
960 + page_h = 450;
961 + }
962 + }
963 + //Core.showTips('page_h:' + page_h + ';sdk_h:' + Core.sdk_h, true, 50000);
964 + //$('body').height(page_h);
965 + if(Core.isIos && $(window).width() < $('body').width()){
966 + $('meta[name="viewport"]').attr('content','width=' + $('body').width() + ',maximum-scale=0.5,user-scalable=no');
967 + }
968 + // var x = (page_h - 76) / page_h * 100 + '%';
969 + // $('<style>.container{height:' + x + ';}</style>').appendTo($('body'));
970 +
971 + // setTimeout(function(){
972 + // Core.showTips('page-w:' + $('body').width() + ';page-h:' + $('body').height() + 'ratio:' + core.ratio);
973 + // }, 2000);
974 + });
975 +})(window, Core);
976 +
977 +
978 +/**
979 + * 基础模块
980 + */
981 +Module = function(modId) {
982 + this.isDef = null;
983 + this.isAuth = false;
984 + this.isReplace = false; //模块内容部分信息需要在显示前替换,如login模块的app_id替换
985 + this.moduleId = modId;
986 + this.$c = $('#' + modId);
987 + this.isValid = false;
988 +}
989 +Module.prototype.init = function() {
990 + if (this.$c.attr('data-attr') == 'dot') {
991 + this.isDef = true;
992 + } else {
993 + this.isValid = true;
994 + }
995 + if(this.$c.attr('data-replace') == '1'){
996 + this.isReplace = true;
997 + }
998 + if (this.$c.attr('data-auth') == '1') {
999 + this.isAuth = true;
1000 + }
1001 + if (this.bind && typeof this.bind == 'function')
1002 + this.bind();
1003 +}
1004 +
1005 +Module.prototype.show = function(valid) {
1006 + if (valid != undefined)
1007 + this.isValid = valid;
1008 + if (this.isAuth && !Core.isAuths()) {
1009 + if (location.hash.indexOf('login') == -1) {
1010 + Core.isFresh ? Core.showMod('login') : Core.showMod('login');
1011 + return;
1012 + }
1013 + }
1014 + if (!this.isDef) {
1015 + if(this.isReplace){
1016 + //模块第一次显示,需要替换部分未知变量。
1017 + this.$c.find('[data-replace]').each(function(index){
1018 + var $elem = $(this), val;
1019 + var attr = $elem.attr('data-replace');
1020 + var oldValue = $elem.attr(attr);
1021 + var arrays = /\{([\w]+)\}/.exec(oldValue);
1022 + if(arrays.length == 2 && arrays[1] in Core.Data){
1023 + val = Core.Data[arrays[1]];
1024 + var newValue = oldValue.replace(arrays[0], val)
1025 + $elem.attr(attr, newValue);
1026 + } else {
1027 + console.log('can not find variable in:' + oldValue);
1028 + }
1029 + });
1030 + //只需在模块第一次显示时替换变量。
1031 + this.isReplace = false;
1032 + }
1033 + Core.show_anim(this.$c);
1034 + } else {
1035 + if (this.isValid) {
1036 + Core.show_anim(this.$c);
1037 + } else {
1038 + if (!this.tpl)
1039 + this.tpl = doT.template(Core.getTemplate(this.moduleId));
1040 + this.$c.html(this.tpl());
1041 + Core.show_anim(this.$c);
1042 + this.isValid = true;
1043 + }
1044 + }
1045 + if (this.show_after && typeof this.show_after == 'function')
1046 + this.show_after();
1047 +}
......
1 -(function(){function o(){var e={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},t=/&(?!#?\w+;)|<|>|"|'|\//g;return function(n){return n?n.toString().replace(t,function(t){return e[t]||t}):n}}function p(b,a,f){return(typeof a==="string"?a:a.toString()).replace(b.define||h,function(g,e,c,i){if(e.indexOf("def.")===0)e=e.substring(4);if(!(e in f))if(c===":")f[e]=i;else eval("def['"+e+"']="+i);return""}).replace(b.use||h,function(g,e){var c=eval(e);return c?p(b,c,f):c})}function l(e){return e.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var j={version:"0.2.0",templateSettings:{evaluate:/\{\{([\s\S]+?)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:true,append:true,selfcontained:false},template:undefined,compile:undefined},m=function(){return this||(0,eval)("this")}();if(typeof module!=="undefined"&&module.exports)module.exports=j;else if(typeof define==="function"&&define.amd)define(function(){return j});else m.doT=j;m.encodeHTML=o();var q={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},h=/$^/;j.template=function(e,t,n){t=t||j.templateSettings;var r=t.append?q.append:q.split,a,i=0,u;if(t.use||t.define){var c=m.def;m.def=n||{};e=p(t,e,m.def);m.def=c}e=("var out='"+(t.strip?e.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):e).replace(/'|\\/g,"\\$&").replace(t.interpolate||h,function(e,t){return r.start+l(t)+r.end}).replace(t.encode||h,function(e,t){a=true;return r.startencode+l(t)+r.end}).replace(t.conditional||h,function(e,t,n){return t?n?"';}else if("+l(n)+"){out+='":"';}else{out+='":n?"';if("+l(n)+"){out+='":"';}out+='"}).replace(t.iterate||h,function(e,t,n,r){if(!t)return"';} } out+='";i+=1;u=r||"i"+i;t=l(t);return"';var arr"+i+"="+t+";if(arr"+i+"){var "+n+","+u+"=-1,l"+i+"=arr"+i+".length-1;while("+u+"<l"+i+"){"+n+"=arr"+i+"["+u+"+=1];out+='"}).replace(t.evaluate||h,function(e,t){return"';"+l(t)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|}|^|{)out\+='';/g,"$1").replace(/\+''/g,"").replace(/(\s|;|}|^|{)out\+=''\+/g,"$1out+=");if(a&&t.selfcontained)e="var encodeHTML=("+o.toString()+"());"+e;try{return new Function(t.varname,e)}catch(t){typeof console!=="undefined"&&console.log("Could not create a template function: "+e);throw t}};j.compile=function(e,t){return j.template(e,null,t)}})();
...\ No newline at end of file ...\ No newline at end of file
1 +// Laura Doktorova https://github.com/olado/doT
2 +(function(){function o(){var b={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},a=/&(?!#?\w+;)|<|>|"|'|\//g;return function(f){return f?f.toString().replace(a,function(g){return b[g]||g}):f}}function p(b,a,f){return(typeof a==="string"?a:a.toString()).replace(b.define||h,function(g,e,c,i){if(e.indexOf("def.")===0)e=e.substring(4);if(!(e in f))if(c===":")f[e]=i;else eval("def['"+e+"']="+i);return""}).replace(b.use||h,function(g,e){var c=eval(e);return c?p(b,c,f):c})}function l(b){return b.replace(/\\('|\\)/g,
3 +"$1").replace(/[\r\t\n]/g," ")}var j={version:"0.2.0",templateSettings:{evaluate:/\{\{([\s\S]+?)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:true,append:true,selfcontained:false},template:undefined,compile:undefined},m=function(){return this||(0,eval)("this")}();
4 +if(typeof module!=="undefined"&&module.exports)module.exports=j;else if(typeof define==="function"&&define.amd)define(function(){return j});else m.doT=j;m.encodeHTML=o();var q={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},h=/$^/;j.template=function(b,a,f){a=a||j.templateSettings;var g=a.append?q.append:q.split,e,c=0,i;if(a.use||a.define){var r=m.def;m.def=f||{};b=p(a,b,m.def);m.def=r}b=("var out='"+(a.strip?b.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g,
5 +" ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):b).replace(/'|\\/g,"\\$&").replace(a.interpolate||h,function(n,d){return g.start+l(d)+g.end}).replace(a.encode||h,function(n,d){e=true;return g.startencode+l(d)+g.end}).replace(a.conditional||h,function(n,d,k){return d?k?"';}else if("+l(k)+"){out+='":"';}else{out+='":k?"';if("+l(k)+"){out+='":"';}out+='"}).replace(a.iterate||h,function(n,d,k,s){if(!d)return"';} } out+='";c+=1;i=s||"i"+c;d=l(d);return"';var arr"+c+"="+d+";if(arr"+c+"){var "+k+","+i+"=-1,l"+
6 +c+"=arr"+c+".length-1;while("+i+"<l"+c+"){"+k+"=arr"+c+"["+i+"+=1];out+='"}).replace(a.evaluate||h,function(n,d){return"';"+l(d)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|}|^|{)out\+='';/g,"$1").replace(/\+''/g,"").replace(/(\s|;|}|^|{)out\+=''\+/g,"$1out+=");if(e&&a.selfcontained)b="var encodeHTML=("+o.toString()+"());"+b;try{return new Function(a.varname,b)}catch(t){typeof console!=="undefined"&&console.log("Could not create a template function: "+
7 +b);throw t;}};j.compile=function(b,a){return j.template(b,null,a)}})();
......
1 -function FastClick(t){"use strict";var e,i=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=t;if(!t||!t.nodeType){throw new TypeError("Layer must be a document node")}this.onClick=function(){return FastClick.prototype.onClick.apply(i,arguments)};this.onMouse=function(){return FastClick.prototype.onMouse.apply(i,arguments)};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(i,arguments)};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(i,arguments)};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(i,arguments)};if(FastClick.notNeeded(t)){return}if(this.deviceIsAndroid){t.addEventListener("mouseover",this.onMouse,true);t.addEventListener("mousedown",this.onMouse,true);t.addEventListener("mouseup",this.onMouse,true)}t.addEventListener("click",this.onClick,true);t.addEventListener("touchstart",this.onTouchStart,false);t.addEventListener("touchend",this.onTouchEnd,false);t.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){t.removeEventListener=function(e,i,n){var r=Node.prototype.removeEventListener;if(e==="click"){r.call(t,e,i.hijacked||i,n)}else{r.call(t,e,i,n)}};t.addEventListener=function(e,i,n){var r=Node.prototype.addEventListener;if(e==="click"){r.call(t,e,i.hijacked||(i.hijacked=function(t){if(!t.propagationStopped){i(t)}}),n)}else{r.call(t,e,i,n)}}}if(typeof t.onclick==="function"){e=t.onclick;t.addEventListener("click",function(t){e(t)},false);t.onclick=null}}FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(t){"use strict";switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled){return true}break;case"input":if(this.deviceIsIOS&&t.type==="file"||t.disabled){return true}break;case"label":case"video":return true}return/\bneedsclick\b/.test(t.className)};FastClick.prototype.needsFocus=function(t){"use strict";switch(t.nodeName.toLowerCase()){case"textarea":case"select":return true;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}};FastClick.prototype.sendClick=function(t,e){"use strict";var i,n;if(document.activeElement&&document.activeElement!==t){document.activeElement.blur()}n=e.changedTouches[0];i=document.createEvent("MouseEvents");i.initMouseEvent("click",true,true,window,1,n.screenX,n.screenY,n.clientX,n.clientY,false,false,false,false,0,null);i.forwardedTouchEvent=true;t.dispatchEvent(i)};FastClick.prototype.focus=function(t){"use strict";var e;if(this.deviceIsIOS&&t.setSelectionRange){e=t.value.length;t.setSelectionRange(e,e)}else{t.focus()}};FastClick.prototype.updateScrollParent=function(t){"use strict";var e,i;e=t.fastClickScrollParent;if(!e||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i;t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}if(e){e.fastClickLastScrollTop=e.scrollTop}};FastClick.prototype.getTargetElementFromEventTarget=function(t){"use strict";if(t.nodeType===Node.TEXT_NODE){return t.parentNode}return t};FastClick.prototype.onTouchStart=function(t){"use strict";var e,i,n;if(t.targetTouches.length>1){return true}e=this.getTargetElementFromEventTarget(t.target);i=t.targetTouches[0];if(this.deviceIsIOS){n=window.getSelection();if(n.rangeCount&&!n.isCollapsed){return true}if(!this.deviceIsIOS4){if(i.identifier===this.lastTouchIdentifier){t.preventDefault();return false}this.lastTouchIdentifier=i.identifier;this.updateScrollParent(e)}}this.trackingClick=true;this.trackingClickStart=t.timeStamp;this.targetElement=e;this.touchStartX=i.pageX;this.touchStartY=i.pageY;if(t.timeStamp-this.lastClickTime<200){t.preventDefault()}return true};FastClick.prototype.touchHasMoved=function(t){"use strict";var e=t.changedTouches[0],i=this.touchBoundary;if(Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i){return true}return false};FastClick.prototype.findControl=function(t){"use strict";if(t.control!==undefined){return t.control}if(t.htmlFor){return document.getElementById(t.htmlFor)}return t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(t){"use strict";var e,i,n,r,s,o=this.targetElement;if(this.touchHasMoved(t)){this.trackingClick=false;this.targetElement=null}if(!this.trackingClick){return true}if(t.timeStamp-this.lastClickTime<200){this.cancelNextClick=true;return true}this.lastClickTime=t.timeStamp;i=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(this.deviceIsIOSWithBadTarget){s=t.changedTouches[0];o=document.elementFromPoint(s.pageX-window.pageXOffset,s.pageY-window.pageYOffset)||o;o.fastClickScrollParent=this.targetElement.fastClickScrollParent}n=o.tagName.toLowerCase();if(n==="label"){e=this.findControl(o);if(e){this.focus(o);if(this.deviceIsAndroid){return false}o=e}}else if(this.needsFocus(o)){if(t.timeStamp-i>100||this.deviceIsIOS&&window.top!==window&&n==="input"){this.targetElement=null;return false}this.focus(o);if(!this.deviceIsIOS4||n!=="select"){this.targetElement=null;t.preventDefault()}return false}if(this.deviceIsIOS&&!this.deviceIsIOS4){r=o.fastClickScrollParent;if(r&&r.fastClickLastScrollTop!==r.scrollTop){return true}}if(!this.needsClick(o)){t.preventDefault();this.sendClick(o,t)}return false};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=false;this.targetElement=null};FastClick.prototype.onMouse=function(t){"use strict";if(!this.targetElement){return true}if(t.forwardedTouchEvent){return true}if(!t.cancelable){return true}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(t.stopImmediatePropagation){t.stopImmediatePropagation()}else{t.propagationStopped=true}t.stopPropagation();t.preventDefault();return false}return true};FastClick.prototype.onClick=function(t){"use strict";var e;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true}if(t.target.type==="submit"&&t.detail===0){return true}e=this.onMouse(t);if(!e){this.targetElement=null}return e};FastClick.prototype.destroy=function(){"use strict";var t=this.layer;if(this.deviceIsAndroid){t.removeEventListener("mouseover",this.onMouse,true);t.removeEventListener("mousedown",this.onMouse,true);t.removeEventListener("mouseup",this.onMouse,true)}t.removeEventListener("click",this.onClick,true);t.removeEventListener("touchstart",this.onTouchStart,false);t.removeEventListener("touchend",this.onTouchEnd,false);t.removeEventListener("touchcancel",this.onTouchCancel,false)};FastClick.notNeeded=function(t){"use strict";var e;if(typeof window.ontouchstart==="undefined"){return true}if(/Chrome\/[0-9]+/.test(navigator.userAgent)){if(FastClick.prototype.deviceIsAndroid){e=document.querySelector("meta[name=viewport]");if(e&&e.content.indexOf("user-scalable=no")!==-1){return true}}else{return true}}if(t.style.msTouchAction==="none"){return true}return false};FastClick.attach=function(t){"use strict";return new FastClick(t)};if(typeof define!=="undefined"&&define.amd){define(function(){"use strict";return FastClick})}else if(typeof module!=="undefined"&&module.exports){module.exports=FastClick.attach;module.exports.FastClick=FastClick}else{window.FastClick=FastClick}
...\ No newline at end of file ...\ No newline at end of file
1 +function FastClick(layer){"use strict";var oldOnClick,self=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=layer;if(!layer||!layer.nodeType){throw new TypeError("Layer must be a document node")}this.onClick=function(){return FastClick.prototype.onClick.apply(self,arguments)};this.onMouse=function(){return FastClick.prototype.onMouse.apply(self,arguments)};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(self,arguments)};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(self,arguments)};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(self,arguments)};if(FastClick.notNeeded(layer)){return}if(this.deviceIsAndroid){layer.addEventListener("mouseover",this.onMouse,true);layer.addEventListener("mousedown",this.onMouse,true);layer.addEventListener("mouseup",this.onMouse,true)}layer.addEventListener("click",this.onClick,true);layer.addEventListener("touchstart",this.onTouchStart,false);layer.addEventListener("touchend",this.onTouchEnd,false);layer.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){layer.removeEventListener=function(type,callback,capture){var rmv=Node.prototype.removeEventListener;if(type==="click"){rmv.call(layer,type,callback.hijacked||callback,capture)}else{rmv.call(layer,type,callback,capture)}};layer.addEventListener=function(type,callback,capture){var adv=Node.prototype.addEventListener;if(type==="click"){adv.call(layer,type,callback.hijacked||(callback.hijacked=function(event){if(!event.propagationStopped){callback(event)}}),capture)}else{adv.call(layer,type,callback,capture)}}}if(typeof layer.onclick==="function"){oldOnClick=layer.onclick;layer.addEventListener("click",function(event){oldOnClick(event)},false);layer.onclick=null}}FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(target){"use strict";switch(target.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(target.disabled){return true}break;case"input":if(this.deviceIsIOS&&target.type==="file"||target.disabled){return true}break;case"label":case"video":return true}return/\bneedsclick\b/.test(target.className)};FastClick.prototype.needsFocus=function(target){"use strict";switch(target.nodeName.toLowerCase()){case"textarea":case"select":return true;case"input":switch(target.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false}return!target.disabled&&!target.readOnly;default:return/\bneedsfocus\b/.test(target.className)}};FastClick.prototype.sendClick=function(targetElement,event){"use strict";var clickEvent,touch;if(document.activeElement&&document.activeElement!==targetElement){document.activeElement.blur()}touch=event.changedTouches[0];clickEvent=document.createEvent("MouseEvents");clickEvent.initMouseEvent("click",true,true,window,1,touch.screenX,touch.screenY,touch.clientX,touch.clientY,false,false,false,false,0,null);clickEvent.forwardedTouchEvent=true;targetElement.dispatchEvent(clickEvent)};FastClick.prototype.focus=function(targetElement){"use strict";var length;if(this.deviceIsIOS&&targetElement.setSelectionRange){length=targetElement.value.length;targetElement.setSelectionRange(length,length)}else{targetElement.focus()}};FastClick.prototype.updateScrollParent=function(targetElement){"use strict";var scrollParent,parentElement;scrollParent=targetElement.fastClickScrollParent;if(!scrollParent||!scrollParent.contains(targetElement)){parentElement=targetElement;do{if(parentElement.scrollHeight>parentElement.offsetHeight){scrollParent=parentElement;targetElement.fastClickScrollParent=parentElement;break}parentElement=parentElement.parentElement}while(parentElement)}if(scrollParent){scrollParent.fastClickLastScrollTop=scrollParent.scrollTop}};FastClick.prototype.getTargetElementFromEventTarget=function(eventTarget){"use strict";if(eventTarget.nodeType===Node.TEXT_NODE){return eventTarget.parentNode}return eventTarget};FastClick.prototype.onTouchStart=function(event){"use strict";var targetElement,touch,selection;if(event.targetTouches.length>1){return true}targetElement=this.getTargetElementFromEventTarget(event.target);touch=event.targetTouches[0];if(this.deviceIsIOS){selection=window.getSelection();if(selection.rangeCount&&!selection.isCollapsed){return true}if(!this.deviceIsIOS4){if(touch.identifier===this.lastTouchIdentifier){event.preventDefault();return false}this.lastTouchIdentifier=touch.identifier;this.updateScrollParent(targetElement)}}this.trackingClick=true;this.trackingClickStart=event.timeStamp;this.targetElement=targetElement;this.touchStartX=touch.pageX;this.touchStartY=touch.pageY;if(event.timeStamp-this.lastClickTime<200){event.preventDefault()}return true};FastClick.prototype.touchHasMoved=function(event){"use strict";var touch=event.changedTouches[0],boundary=this.touchBoundary;if(Math.abs(touch.pageX-this.touchStartX)>boundary||Math.abs(touch.pageY-this.touchStartY)>boundary){return true}return false};FastClick.prototype.findControl=function(labelElement){"use strict";if(labelElement.control!==undefined){return labelElement.control}if(labelElement.htmlFor){return document.getElementById(labelElement.htmlFor)}return labelElement.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(event){"use strict";var forElement,trackingClickStart,targetTagName,scrollParent,touch,targetElement=this.targetElement;if(this.touchHasMoved(event)){this.trackingClick=false;this.targetElement=null}if(!this.trackingClick){return true}if(event.timeStamp-this.lastClickTime<200){this.cancelNextClick=true;return true}this.lastClickTime=event.timeStamp;trackingClickStart=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(this.deviceIsIOSWithBadTarget){touch=event.changedTouches[0];targetElement=document.elementFromPoint(touch.pageX-window.pageXOffset,touch.pageY-window.pageYOffset)||targetElement;targetElement.fastClickScrollParent=this.targetElement.fastClickScrollParent}targetTagName=targetElement.tagName.toLowerCase();if(targetTagName==="label"){forElement=this.findControl(targetElement);if(forElement){this.focus(targetElement);if(this.deviceIsAndroid){return false}targetElement=forElement}}else if(this.needsFocus(targetElement)){if(event.timeStamp-trackingClickStart>100||this.deviceIsIOS&&window.top!==window&&targetTagName==="input"){this.targetElement=null;return false}this.focus(targetElement);if(!this.deviceIsIOS4||targetTagName!=="select"){this.targetElement=null;event.preventDefault()}return false}if(this.deviceIsIOS&&!this.deviceIsIOS4){scrollParent=targetElement.fastClickScrollParent;if(scrollParent&&scrollParent.fastClickLastScrollTop!==scrollParent.scrollTop){return true}}if(!this.needsClick(targetElement)){event.preventDefault();this.sendClick(targetElement,event)}return false};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=false;this.targetElement=null};FastClick.prototype.onMouse=function(event){"use strict";if(!this.targetElement){return true}if(event.forwardedTouchEvent){return true}if(!event.cancelable){return true}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(event.stopImmediatePropagation){event.stopImmediatePropagation()}else{event.propagationStopped=true}event.stopPropagation();event.preventDefault();return false}return true};FastClick.prototype.onClick=function(event){"use strict";var permitted;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true}if(event.target.type==="submit"&&event.detail===0){return true}permitted=this.onMouse(event);if(!permitted){this.targetElement=null}return permitted};FastClick.prototype.destroy=function(){"use strict";var layer=this.layer;if(this.deviceIsAndroid){layer.removeEventListener("mouseover",this.onMouse,true);layer.removeEventListener("mousedown",this.onMouse,true);layer.removeEventListener("mouseup",this.onMouse,true)}layer.removeEventListener("click",this.onClick,true);layer.removeEventListener("touchstart",this.onTouchStart,false);layer.removeEventListener("touchend",this.onTouchEnd,false);layer.removeEventListener("touchcancel",this.onTouchCancel,false)};FastClick.notNeeded=function(layer){"use strict";var metaViewport;if(typeof window.ontouchstart==="undefined"){return true}if(/Chrome\/[0-9]+/.test(navigator.userAgent)){if(FastClick.prototype.deviceIsAndroid){metaViewport=document.querySelector("meta[name=viewport]");if(metaViewport&&metaViewport.content.indexOf("user-scalable=no")!==-1){return true}}else{return true}}if(layer.style.msTouchAction==="none"){return true}return false};FastClick.attach=function(layer){"use strict";return new FastClick(layer)};if(typeof define!=="undefined"&&define.amd){define(function(){"use strict";return FastClick})}else if(typeof module!=="undefined"&&module.exports){module.exports=FastClick.attach;module.exports.FastClick=FastClick}else{window.FastClick=FastClick}
...\ No newline at end of file ...\ No newline at end of file
......
1 +var surname="\u8d75|\u94b1|\u5b59|\u674e|\u5468|\u5434|\u90d1|\u738b|\u51af|\u9648|\u891a|\u536b|\u848b|\u6c88|\u97e9|\u6768|\u6731|\u79e6|\u5c24|\u8bb8|\u4f55|\u5415|\u65bd|\u5f20|\u5b54|\u66f9|\u4e25|\u534e|\u91d1|\u9b4f|\u9676|\u59dc|\u621a|\u8c22|\u90b9|\u55bb|\u67cf|\u6c34|\u7aa6|\u7ae0|\u4e91|\u82cf|\u6f58|\u845b|\u595a|\u8303|\u5f6d|\u90ce|\u9c81|\u97e6|\u660c|\u9a6c|\u82d7|\u51e4|\u82b1|\u65b9|\u4fde|\u4efb|\u8881|\u67f3|\u9146|\u9c8d|\u53f2|\u5510|\u8d39|\u5ec9|\u5c91|\u859b|\u96f7|\u8d3a|\u502a|\u6c64|\u6ed5|\u6bb7|\u7f57|\u6bd5|\u90dd|\u90ac|\u5b89|\u5e38|\u4e50|\u4e8e|\u65f6|\u5085|\u76ae|\u535e|\u9f50|\u5eb7|\u4f0d|\u4f59|\u5143|\u535c|\u987e|\u5b5f|\u5e73|\u9ec4|\u548c|\u7a46|\u8427|\u5c39|\u59da|\u90b5|\u6e5b|\u6c6a|\u7941|\u6bdb|\u79b9|\u72c4|\u7c73|\u8d1d|\u660e|\u81e7|\u8ba1|\u4f0f|\u6210|\u6234|\u8c08|\u5b8b|\u8305|\u5e9e|\u718a|\u7eaa|\u8212|\u5c48|\u9879|\u795d|\u8463|\u6881|\u675c|\u962e|\u84dd|\u95f5|\u5e2d|\u5b63|\u9ebb|\u5f3a|\u8d3e|\u8def|\u5a04|\u5371|\u6c5f|\u7ae5|\u989c|\u90ed|\u6885|\u76db|\u6797|\u5201|\u953a|\u5f90|\u90b1|\u9a86|\u9ad8|\u590f|\u8521|\u7530|\u6a0a|\u80e1|\u51cc|\u970d|\u865e|\u4e07|\u652f|\u67ef|\u661d|\u7ba1|\u5362|\u83ab|\u7ecf|\u623f|\u88d8|\u7f2a|\u5e72|\u89e3|\u5e94|\u5b97|\u4e01|\u5ba3|\u8d32|\u9093|\u90c1|\u5355|\u676d|\u6d2a|\u5305|\u8bf8|\u5de6|\u77f3|\u5d14|\u5409|\u94ae|\u9f9a|\u7a0b|\u5d47|\u90a2|\u6ed1|\u88f4|\u9646|\u8363|\u7fc1|\u8340|\u7f8a|\u65bc|\u60e0|\u7504|\u9eb4|\u5bb6|\u5c01|\u82ae|\u7fbf|\u50a8|\u9773|\u6c72|\u90b4|\u7cdc|\u677e|\u4e95|\u6bb5|\u5bcc|\u5deb|\u4e4c|\u7126|\u5df4|\u5f13|\u7267|\u9697|\u5c71|\u8c37|\u8f66|\u4faf|\u5b93|\u84ec|\u5168|\u90d7|\u73ed|\u4ef0|\u79cb|\u4ef2|\u4f0a|\u5bab|\u5b81|\u4ec7|\u683e|\u66b4|\u7518|\u94ad|\u5386|\u620e|\u7956|\u6b66|\u7b26|\u5218|\u666f|\u8a79|\u675f|\u9f99|\u53f6|\u5e78|\u53f8|\u97f6|\u90dc|\u9ece|\u84df|\u6ea5|\u5370|\u5bbf|\u767d|\u6000|\u84b2|\u90b0|\u4ece|\u9102|\u7d22|\u54b8|\u7c4d|\u8d56|\u5353|\u853a|\u5c60|\u8499|\u6c60|\u4e54|\u9633|\u90c1|\u80e5|\u80fd|\u82cd|\u53cc|\u95fb|\u8398|\u515a|\u7fdf|\u8c2d|\u8d21|\u52b3|\u9004|\u59ec|\u7533|\u6276|\u5835|\u5189|\u5bb0|\u90e6|\u96cd|\u5374|\u74a9|\u6851|\u6842|\u6fee|\u725b|\u5bff|\u901a|\u8fb9|\u6248|\u71d5|\u5180|\u50ea|\u6d66|\u5c1a|\u519c|\u6e29|\u522b|\u5e84|\u664f|\u67f4|\u77bf|\u960e|\u5145|\u6155|\u8fde|\u8339|\u4e60|\u5ba6|\u827e|\u9c7c|\u5bb9|\u5411|\u53e4|\u6613|\u614e|\u6208|\u5ed6|\u5ebe|\u7ec8|\u66a8|\u5c45|\u8861|\u6b65|\u90fd|\u803f|\u6ee1|\u5f18|\u5321|\u56fd|\u6587|\u5bc7|\u5e7f|\u7984|\u9619|\u4e1c|\u6b27|\u6bb3|\u6c83|\u5229|\u851a|\u8d8a|\u5914|\u9686|\u5e08|\u5de9|\u538d|\u8042|\u6641|\u52fe|\u6556|\u878d|\u51b7|\u8a3e|\u8f9b|\u961a|\u90a3|\u7b80|\u9976|\u7a7a|\u66fe|\u6bcb|\u6c99|\u4e5c|\u517b|\u97a0|\u987b|\u4e30|\u5de2|\u5173|\u84af|\u76f8|\u67e5|\u540e|\u8346|\u7ea2|\u6e38|\u7afa|\u6743|\u902e|\u76cd|\u76ca|\u6853|\u516c|\u4e07\u4fdf|\u53f8\u9a6c|\u4e0a\u5b98|\u6b27\u9633|\u590f\u4faf|\u8bf8\u845b|\u95fb\u4eba|\u4e1c\u65b9|\u8d6b\u8fde|\u7687\u752b|\u5c09\u8fdf|\u516c\u7f8a|\u6fb9\u53f0|\u516c\u51b6|\u5b97\u653f|\u6fee\u9633|\u6df3\u4e8e|\u5355\u4e8e|\u592a\u53d4|\u7533\u5c60|\u516c\u5b59|\u4ef2\u5b59|\u8f69\u8f95|\u4ee4\u72d0|\u949f\u79bb|\u5b87\u6587|\u957f\u5b59|\u6155\u5bb9|\u53f8\u5f92|\u53f8\u7a7a|\u53ec|\u6709|\u821c|\u53f6\u8d6b\u90a3\u62c9|\u4e1b|\u5cb3|\u5bf8|\u8d30|\u7687|\u4fa8|\u5f64|\u7aed|\u7aef|\u8d6b|\u5b9e|\u752b|\u96c6|\u8c61|\u7fe0|\u72c2|\u8f9f|\u5178|\u826f|\u51fd|\u8292|\u82e6|\u5176|\u4eac|\u4e2d|\u5915|\u4e4b|\u7ae0\u4f73|\u90a3\u62c9|\u51a0|\u5bbe|\u9999|\u679c|\u4f9d\u5c14\u6839\u89c9\u7f57|\u4f9d\u5c14\u89c9\u7f57|\u8428\u561b\u5587|\u8d6b\u820d\u91cc|\u989d\u5c14\u5fb7\u7279|\u8428\u514b\u8fbe|\u94ae\u795c\u7984|\u4ed6\u5854\u5587|\u559c\u5854\u814a|\u8bb7\u6bb7\u5bcc\u5bdf|\u53f6\u8d6b\u90a3\u5170|\u5e93\u96c5\u5587|\u74dc\u5c14\u4f73|\u8212\u7a46\u7984|\u7231\u65b0\u89c9\u7f57|\u7d22\u7ef0\u7edc|\u7eb3\u5587|\u4e4c\u96c5|\u8303\u59dc|\u78a7\u9c81|\u5f20\u5ed6|\u5f20\u7b80|\u56fe\u95e8|\u592a\u53f2|\u516c\u53d4|\u4e4c\u5b59|\u5b8c\u989c|\u9a6c\u4f73|\u4f5f\u4f73|\u5bcc\u5bdf|\u8d39\u83ab|\u8e47|\u79f0|\u8bfa|\u6765|\u591a|\u7e41|\u620a|\u6734|\u56de|\u6bd3|\u7a0e|\u8364|\u9756|\u7eea|\u6108|\u7855|\u7262|\u4e70|\u4f46|\u5de7|\u679a|\u6492|\u6cf0|\u79d8|\u4ea5|\u7ecd|\u4ee5|\u58ec|\u68ee|\u658b|\u91ca|\u5955|\u59d2|\u670b|\u6c42|\u7fbd|\u7528|\u5360|\u771f|\u7a70|\u7fe6|\u95fe|\u6f06|\u8d35|\u4ee3|\u8d2f|\u65c1|\u5d07|\u680b|\u544a|\u4f11|\u8912|\u8c0f|\u9510|\u768b|\u95f3|\u5728|\u6b67|\u79be|\u793a|\u662f|\u59d4|\u948a|\u9891|\u5b34|\u547c|\u5927|\u5a01|\u6602|\u5f8b|\u5192|\u4fdd|\u7cfb|\u6284|\u5b9a|\u5316|\u83b1|\u6821|\u4e48|\u6297|\u7962|\u7da6|\u609f|\u5b8f|\u529f|\u5e9a|\u52a1|\u654f|\u6377|\u62f1|\u5146|\u4e11|\u4e19|\u7545|\u82df|\u968f|\u7c7b|\u536f|\u4fdf|\u53cb|\u7b54|\u4e59|\u5141|\u7532|\u7559|\u5c3e|\u4f7c|\u7384|\u4e58|\u88d4|\u5ef6|\u690d|\u73af|\u77eb|\u8d5b|\u6614|\u4f8d|\u5ea6|\u65f7|\u9047|\u5076|\u524d|\u7531|\u548e|\u585e|\u655b|\u53d7|\u6cf7|\u88ad|\u8845|\u53d4|\u5723|\u5fa1|\u592b|\u4ec6|\u9547|\u85e9|\u90b8|\u5e9c|\u638c|\u9996|\u5458|\u7109|\u620f|\u53ef|\u667a|\u5c14|\u51ed|\u6089|\u8fdb|\u7b03|\u539a|\u4ec1|\u4e1a|\u8087|\u8d44|\u5408|\u4ecd|\u4e5d|\u8877|\u54c0|\u5211|\u4fce|\u4ef5|\u572d|\u5937|\u5fad|\u86ee|\u6c57|\u5b5b|\u4e7e|\u5e16|\u7f55|\u6d1b|\u6de6|\u6d0b|\u90b6|\u90f8|\u90ef|\u9097|\u909b|\u5251|\u8662|\u968b|\u84bf|\u8306|\u83c5|\u82cc|\u6811|\u6850|\u9501|\u949f|\u673a|\u76d8|\u94ce|\u659b|\u7389|\u7ebf|\u9488|\u7b95|\u5eb9|\u7ef3|\u78e8|\u8489|\u74ee|\u5f2d|\u5200|\u758f|\u7275|\u6d51|\u607d|\u52bf|\u4e16|\u4edd|\u540c|\u8681|\u6b62|\u6222|\u7762|\u51bc|\u79cd|\u6d82|\u8096|\u5df1|\u6ce3|\u6f5c|\u5377|\u8131|\u8c2c|\u8e49|\u8d67|\u6d6e|\u987f|\u8bf4|\u6b21|\u9519|\u5ff5|\u5919|\u65af|\u5b8c|\u4e39|\u8868|\u804a|\u6e90|\u59d3|\u543e|\u5bfb|\u5c55|\u51fa|\u4e0d|\u6237|\u95ed|\u624d|\u65e0|\u4e66|\u5b66|\u611a|\u672c|\u6027|\u96ea|\u971c|\u70df|\u5bd2|\u5c11|\u5b57|\u6865|\u677f|\u6590|\u72ec|\u5343|\u8bd7|\u5609|\u626c|\u5584|\u63ed|\u7948|\u6790|\u8d64|\u7d2b|\u9752|\u67d4|\u521a|\u5947|\u62dc|\u4f5b|\u9640|\u5f25|\u963f|\u7d20|\u957f|\u50e7|\u9690|\u4ed9|\u96bd|\u5b87|\u796d|\u9152|\u6de1|\u5854|\u7426|\u95ea|\u59cb|\u661f|\u5357|\u5929|\u63a5|\u6ce2|\u78a7|\u901f|\u799a|\u817e|\u6f6e|\u955c|\u4f3c|\u6f84|\u6f6d|\u8b07|\u7eb5|\u6e20|\u5948|\u98ce|\u6625|\u6fef|\u6c90|\u8302|\u82f1|\u5170|\u6a80|\u85e4|\u679d|\u68c0|\u751f|\u6298|\u767b|\u9a79|\u9a91|\u8c8a|\u864e|\u80a5|\u9e7f|\u96c0|\u91ce|\u79bd|\u98de|\u8282|\u5b9c|\u9c9c|\u7c9f|\u6817|\u8c46|\u5e1b|\u5b98|\u5e03|\u8863|\u85cf|\u5b9d|\u949e|\u94f6|\u95e8|\u76c8|\u5e86|\u559c|\u53ca|\u666e|\u5efa|\u8425|\u5de8|\u671b|\u5e0c|\u9053|\u8f7d|\u58f0|\u6f2b|\u7281|\u529b|\u8d38|\u52e4|\u9769|\u6539|\u5174|\u4e93|\u7766|\u4fee|\u4fe1|\u95fd|\u5317|\u5b88|\u575a|\u52c7|\u6c49|\u7ec3|\u5c09|\u58eb|\u65c5|\u4e94|\u4ee4|\u5c06|\u65d7|\u519b|\u884c|\u5949|\u656c|\u606d|\u4eea|\u6bcd|\u5802|\u4e18|\u4e49|\u793c|\u6148|\u5b5d|\u7406|\u4f26|\u537f|\u95ee|\u6c38|\u8f89|\u4f4d|\u8ba9|\u5c27|\u4f9d|\u72b9|\u4ecb|\u627f|\u5e02|\u6240|\u82d1|\u675e|\u5267|\u7b2c|\u96f6|\u8c0c|\u62db|\u7eed|\u8fbe|\u5ffb|\u516d|\u911e|\u6218|\u8fdf|\u5019|\u5b9b|\u52b1|\u7c98|\u8428|\u909d|\u8983|\u8f9c|\u521d|\u697c|\u57ce|\u533a|\u5c40|\u53f0|\u539f|\u8003|\u59ab|\u7eb3|\u6cc9|\u8001|\u6e05|\u5fb7|\u5351|\u8fc7|\u9ea6|\u66f2|\u7af9|\u767e|\u798f|\u8a00|\u7b2c\u4e94|\u4f5f|\u7231|\u5e74|\u7b2a|\u8c2f|\u54c8|\u58a8|\u5357\u5bab|\u8d4f|\u4f2f|\u4f74|\u4f58|\u725f|\u5546|\u897f\u95e8|\u4e1c\u95e8|\u5de6\u4e18|\u6881\u4e18|\u7434|\u540e|\u51b5|\u4ea2|\u7f11|\u5e05|\u5fae\u751f|\u7f8a\u820c|\u6d77|\u5f52|\u547c\u5ef6|\u5357\u95e8|\u4e1c\u90ed|\u767e\u91cc|\u94a6|\u9122|\u6c5d|\u6cd5|\u95eb|\u695a|\u664b|\u8c37\u6881|\u5bb0\u7236|\u5939\u8c37|\u62d3\u8dcb|\u58e4\u9a77|\u4e50\u6b63|\u6f06\u96d5|\u516c\u897f|\u5deb\u9a6c|\u7aef\u6728|\u989b\u5b59|\u5b50\u8f66|\u7763|\u4ec9|\u53f8\u5bc7|\u4e93\u5b98|\u9c9c\u4e8e|\u953a\u79bb|\u76d6|\u902f|\u5e93|\u90cf|\u9022|\u9634|\u8584|\u5389|\u7a3d|\u95fe\u4e18|\u516c\u826f|\u6bb5\u5e72|\u5f00|\u5149|\u64cd|\u745e|\u772d|\u6ce5|\u8fd0|\u6469|\u4f1f|\u94c1|\u8fee|";
2 +
3 +function IsIdCard(idcard)
4 +{
5 + idcard = idcard.toUpperCase();
6 + var area={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",
7 + 31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",
8 + 43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",
9 + 61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"};
10 + var retflag=false;
11 + var idcard,Y,JYM;
12 + var S,M;
13 + var idcard_array = new Array();
14 + idcard_array = idcard.split("");
15 + //地区检验
16 + if(area[parseInt(idcard.substr(0,2))]==null) return false;
17 + //身份号码位数及格式检验
18 + switch(idcard.length)
19 + {
20 + case 15:
21 + if ((parseInt(idcard.substr(6,2))+1900) % 4 == 0 ||
22 + ((parseInt(idcard.substr(6,2))+1900) % 100 == 0 && (parseInt(idcard.substr(6,2))+1900) % 4 == 0 ))
23 + {
24 + ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/;//测试出生日期的合法性
25 + }
26 + else
27 + {
28 + ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/;//测试出生日期的合法性
29 + }
30 + if(ereg.test(idcard)) return true;
31 + else return false;
32 + break;
33 + case 18:
34 + //18位身份号码检测
35 + //出生日期的合法性检查
36 + //闰年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))
37 + //平年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))
38 + if ( parseInt(idcard.substr(6,4)) % 4 == 0 ||
39 + (parseInt(idcard.substr(6,4)) % 100 == 0 &&parseInt(idcard.substr(6,4))%4 == 0 ))
40 + {
41 + ereg=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/;//闰年出生日期的合法性正则表达式
42 + }
43 + else
44 + {
45 + ereg=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/;//平年出生日期的合法性正则表达式
46 + }
47 + if(ereg.test(idcard))
48 + {//测试出生日期的合法性
49 + //计算校验位
50 + S = (parseInt(idcard_array[0]) + parseInt(idcard_array[10])) * 7
51 + + (parseInt(idcard_array[1]) + parseInt(idcard_array[11])) * 9
52 + + (parseInt(idcard_array[2]) + parseInt(idcard_array[12])) * 10
53 + + (parseInt(idcard_array[3]) + parseInt(idcard_array[13])) * 5
54 + + (parseInt(idcard_array[4]) + parseInt(idcard_array[14])) * 8
55 + + (parseInt(idcard_array[5]) + parseInt(idcard_array[15])) * 4
56 + + (parseInt(idcard_array[6]) + parseInt(idcard_array[16])) * 2
57 + + parseInt(idcard_array[7]) * 1
58 + + parseInt(idcard_array[8]) * 6
59 + + parseInt(idcard_array[9]) * 3 ;
60 + Y = S % 11;
61 + M = "F";
62 + JYM = "10X98765432";
63 + M = JYM.substr(Y,1);//判断校验位
64 + if(M == idcard_array[17]) true; //检测ID的校验位
65 + else return false;
66 + }
67 + else return false;
68 + break;
69 + default:
70 + return false;
71 + break;
72 + }
73 + return true;
74 +}
...\ No newline at end of file ...\ No newline at end of file
1 -!function(){var e=Math,t=function(e){return e>>0},o=/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":"opera"in window?"O":"",i=/android/gi.test(navigator.appVersion),n=/iphone|ipad/gi.test(navigator.appVersion),r=/playbook/gi.test(navigator.appVersion),s=/hp-tablet/gi.test(navigator.appVersion),l="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,a="ontouchstart"in window&&!s,c=o+"Transform"in document.documentElement.style,p=n||r,u=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,17)}}(),f=function(){return window.cancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),m="onorientationchange"in window?"orientationchange":"resize",h=a?"touchstart":"mousedown",d=a?"touchmove":"mousemove",w=a?"touchend":"mouseup",b=a?"touchcancel":"mouseup",S="translate"+(l?"3d(":"("),v=l?",0)":")",x=function(e,t){var i=this,n=document,r;this._events={};i.wrapper=typeof e=="object"?e:n.getElementById(e);i.wrapper.style.overflow="hidden";i.scroller=i.wrapper.children[0];i.options={hScroll:true,vScroll:true,x:0,y:0,bounce:true,bounceLock:false,momentum:true,lockDirection:true,useTransform:true,useTransition:false,mouseWheel:true,onRefresh:null,onBeforeScrollStart:function(e){var t=e.target;while(t.nodeType!=1)t=t.parentNode;if(t.tagName!="SELECT"&&t.tagName!="INPUT"&&t.tagName!="TEXTAREA")e.preventDefault()},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null};for(r in t)i.options[r]=t[r];i.x=i.options.x;i.y=i.options.y;i.options.useTransform=c?i.options.useTransform:false;i.options.hScrollbar=i.options.hScroll&&i.options.hScrollbar;i.options.vScrollbar=i.options.vScroll&&i.options.vScrollbar;i.options.useTransition=p&&i.options.useTransition;i.options.invertWheelDirection=i.options.invertWheelDirection?-1:1;i.scroller.style[o+"TransitionProperty"]=i.options.useTransform?"-"+o.toLowerCase()+"-transform":"top left";i.scroller.style[o+"TransitionDuration"]="0";i.scroller.style[o+"TransformOrigin"]="0 0";if(i.options.useTransition)i.scroller.style[o+"TransitionTimingFunction"]="cubic-bezier(0.33,0.66,0.66,1)";if(i.options.useTransform)i.scroller.style[o+"Transform"]=S+i.x+"px,"+i.y+"px"+v;else i.scroller.style.cssText+=";position:absolute;top:"+i.y+"px;left:"+i.x+"px";if(i.options.mouseWheel)i._initWheel();i.refresh();i._bind(m,window);i._bind(h);if(!a)i._bind("mouseout",i.wrapper)};x.prototype={enabled:true,x:0,y:0,steps:[],scale:1,handleEvent:function(e){var t=this;switch(e.type){case h:if(!a&&e.button!==0)return;t._start(e);break;case d:t._move(e);break;case w:case b:t._end(e);break;case m:t._resize();break;case"mouseout":t._mouseout(e);break;case"webkitTransitionEnd":t._transitionEnd(e);break;case"mousewheel":t._wheel(e);break}},_resize:function(){this.refresh()},_pos:function(e,i){e=this.hScroll?e:0;i=this.vScroll?i:0;if(this.options.useTransform){this.scroller.style[o+"Transform"]=S+e+"px,"+i+"px"+v+" scale("+this.scale+")"}else{e=t(e);i=t(i);this.scroller.style.left=e+"px";this.scroller.style.top=i+"px"}this.x=e;this.y=i},_start:function(e){var t=this,i=a?e.touches[0]:e,n,r,s;if(!t.enabled)return;if(t.options.onBeforeScrollStart)t.options.onBeforeScrollStart.call(t,e);if(t.options.useTransition)t._transitionTime(0);t.moved=false;t.animating=false;t.zoomed=false;t.distX=0;t.distY=0;t.absDistX=0;t.absDistY=0;t.dirX=0;t.dirY=0;if(t.options.momentum){if(t.options.useTransform){n=getComputedStyle(t.scroller,null)[o+"Transform"].replace(/[^0-9-.,]/g,"").split(",");r=n[4]*1;s=n[5]*1}else{r=getComputedStyle(t.scroller,null).left.replace(/[^0-9-]/g,"")*1;s=getComputedStyle(t.scroller,null).top.replace(/[^0-9-]/g,"")*1}if(r!=t.x||s!=t.y){if(t.options.useTransition)t._unbind("webkitTransitionEnd");else f(t.aniTime);t.steps=[];t._pos(r,s)}}t.startX=t.x;t.startY=t.y;t.pointX=i.pageX;t.pointY=i.pageY;t.startTime=e.timeStamp||Date.now();if(t.options.onScrollStart)t.options.onScrollStart.call(t,e);t._bind(d);t._bind(w);t._bind(b)},_move:function(t){var o=this,i=a?t.touches[0]:t,n=i.pageX-o.pointX,r=i.pageY-o.pointY,s=o.x+n,l=o.y+r,c=t.timeStamp||Date.now();if(o.options.onBeforeScrollMove)o.options.onBeforeScrollMove.call(o,t);o.pointX=i.pageX;o.pointY=i.pageY;if(s>0||s<o.maxScrollX){s=o.options.bounce?o.x+n/2:s>=0||o.maxScrollX>=0?0:o.maxScrollX}if(l>0||l<o.maxScrollY){l=o.options.bounce?o.y+r/2:l>=0||o.maxScrollY>=0?0:o.maxScrollY}o.distX+=n;o.distY+=r;o.absDistX=e.abs(o.distX);o.absDistY=e.abs(o.distY);if(o.absDistX<6&&o.absDistY<6){return}if(o.options.lockDirection){if(o.absDistX>o.absDistY+5){l=o.y;r=0}else if(o.absDistY>o.absDistX+5){s=o.x;n=0}}o.moved=true;o._pos(s,l);o.dirX=n>0?-1:n<0?1:0;o.dirY=r>0?-1:r<0?1:0;if(c-o.startTime>300){o.startTime=c;o.startX=o.x;o.startY=o.y}if(o.options.onScrollMove)o.options.onScrollMove.call(o,t)},_end:function(o){if(a&&o.touches.length!=0)return;var i=this,n=a?o.changedTouches[0]:o,r,s,l={dist:0,time:0},c={dist:0,time:0},p=(o.timeStamp||Date.now())-i.startTime,u=i.x,f=i.y,m;i._unbind(d);i._unbind(w);i._unbind(b);if(i.options.onBeforeScrollEnd)i.options.onBeforeScrollEnd.call(i,o);if(!i.moved){if(a){r=n.target;while(r.nodeType!=1)r=r.parentNode;if(r.tagName!="SELECT"&&r.tagName!="INPUT"&&r.tagName!="TEXTAREA"){s=document.createEvent("MouseEvents");s.initMouseEvent("click",true,true,o.view,1,n.screenX,n.screenY,n.clientX,n.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,0,null);s._fake=true;r.dispatchEvent(s)}}i._resetPos(200);if(i.options.onTouchEnd)i.options.onTouchEnd.call(i,o);return}if(p<300&&i.options.momentum){l=u?i._momentum(u-i.startX,p,-i.x,i.scrollerW-i.wrapperW+i.x,i.options.bounce?i.wrapperW:0):l;c=f?i._momentum(f-i.startY,p,-i.y,i.maxScrollY<0?i.scrollerH-i.wrapperH+i.y:0,i.options.bounce?i.wrapperH:0):c;u=i.x+l.dist;f=i.y+c.dist;if(i.x>0&&u>0||i.x<i.maxScrollX&&u<i.maxScrollX)l={dist:0,time:0};if(i.y>0&&f>0||i.y<i.maxScrollY&&f<i.maxScrollY)c={dist:0,time:0}}if(l.dist||c.dist){m=e.max(e.max(l.time,c.time),10);i.scrollTo(t(u),t(f),m);if(i.options.onTouchEnd)i.options.onTouchEnd.call(i,o);return}i._resetPos(200);if(i.options.onTouchEnd)i.options.onTouchEnd.call(i,o)},_initWheel:function(){this.wrapper.addEventListener("mousewheel",this);this.wrapper.addEventListener("DOMMouseScroll",this);this.on("destroy",function(){this.wrapper.removeEventListener("mousewheel",this);this.wrapper.removeEventListener("DOMMouseScroll",this)})},_wheel:function(e){var t,o,i,n,r=this;clearTimeout(this.wheelTimeout);this.wheelTimeout=setTimeout(function(){r._execEvent("scrollEnd")},400);e.preventDefault();if("wheelDeltaX"in e){t=e.wheelDeltaX/Math.abs(e.wheelDeltaX)||0;o=e.wheelDeltaY/Math.abs(e.wheelDeltaY)||0}else if("wheelDelta"in e){t=o=e.wheelDelta/Math.abs(e.wheelDelta)}else if("detail"in e){t=o=-(e.detail/Math.abs(e.detail))}else{return}t*=12;o*=12;if(!this.hasVerticalScroll){t=o}i=this.x+t*this.options.invertWheelDirection;n=this.y+o*this.options.invertWheelDirection;if(i>0){i=0}else if(i<this.maxScrollX){i=this.maxScrollX}if(n>0){n=0}else if(n<this.maxScrollY){n=this.maxScrollY}r.scrollTo(i,n,0)},on:function(e,t){if(!this._events[e]){this._events[e]=[]}this._events[e].push(t)},_execEvent:function(e){if(!this._events[e]){return}var t=0,o=this._events[e].length;if(!o){return}for(;t<o;t++){this._events[e][t].call(this)}},_resetPos:function(e){var t=this,o=t.x>=0?0:t.x<t.maxScrollX?t.maxScrollX:t.x,i=t.y>=0||t.maxScrollY>0?0:t.y<t.maxScrollY?t.maxScrollY:t.y;if(o==t.x&&i==t.y){if(t.moved){if(t.options.onScrollEnd)t.options.onScrollEnd.call(t);t.moved=false}return}t.scrollTo(o,i,e||0)},_mouseout:function(e){var t=e.relatedTarget;if(!t){this._end(e);return}while(t=t.parentNode)if(t==this.wrapper)return;this._end(e)},_transitionEnd:function(e){var t=this;if(e.target!=t.scroller)return;t._unbind("webkitTransitionEnd");t._startAni()},_startAni:function(){var t=this,o=t.x,i=t.y,n=Date.now(),r,s,l;if(t.animating)return;if(!t.steps.length){t._resetPos(400);return}r=t.steps.shift();if(r.x==o&&r.y==i)r.time=0;t.animating=true;t.moved=true;if(t.options.useTransition){t._transitionTime(r.time);t._pos(r.x,r.y);t.animating=false;if(r.time)t._bind("webkitTransitionEnd");else t._resetPos(0);return}l=function(){var a=Date.now(),c,p;if(a>=n+r.time){t._pos(r.x,r.y);t.animating=false;if(t.options.onAnimationEnd)t.options.onAnimationEnd.call(t);t._startAni();return}a=(a-n)/r.time-1;s=e.sqrt(1-a*a);c=(r.x-o)*s+o;p=(r.y-i)*s+i;t._pos(c,p);if(t.animating)t.aniTime=u(l)};l()},_transitionTime:function(e){this.scroller.style[o+"TransitionDuration"]=e+"ms"},_momentum:function(o,i,n,r,s){var l=6e-4,a=e.abs(o)/i,c=a*a/(2*l),p=0,u=0;if(o>0&&c>n){u=s/(6/(c/a*l));n=n+u;a=a*n/c;c=n}else if(o<0&&c>r){u=s/(6/(c/a*l));r=r+u;a=a*r/c;c=r}c=c*(o<0?-1:1);p=a/l;return{dist:c,time:t(p)}},_offset:function(e){var t=-e.offsetLeft,o=-e.offsetTop;while(e=e.offsetParent){t-=e.offsetLeft;o-=e.offsetTop}return{left:t,top:o}},_bind:function(e,t,o){(t||this.scroller).addEventListener(e,this,!!o)},_unbind:function(e,t,o){(t||this.scroller).removeEventListener(e,this,!!o)},destroy:function(){var e=this;e.scroller.style[o+"Transform"]="";e._unbind(m,window);e._unbind(h);e._unbind(d);e._unbind(w);e._unbind(b);e._unbind("mouseout",e.wrapper);if(e.options.useTransition)e._unbind("webkitTransitionEnd");if(e.options.onDestroy)e.options.onDestroy.call(e)},refresh:function(){var e=this,t;e.wrapperW=e.wrapper.clientWidth;e.wrapperH=e.wrapper.clientHeight;e.scrollerW=e.scroller.offsetWidth;e.scrollerH=e.scroller.offsetHeight;e.maxScrollX=e.wrapperW-e.scrollerW;e.maxScrollY=e.wrapperH-e.scrollerH;e.dirX=0;e.dirY=0;e.hScroll=e.options.hScroll&&e.maxScrollX<0;e.vScroll=e.options.vScroll&&(!e.options.bounceLock&&!e.hScroll||e.scrollerH>e.wrapperH);t=e._offset(e.wrapper);e.wrapperOffsetLeft=-t.left;e.wrapperOffsetTop=-t.top;e.scroller.style[o+"TransitionDuration"]="0";e._resetPos(200)},scrollTo:function(e,t,o,i){var n=this,r=e,s,l;n.stop();if(!r.length)r=[{x:e,y:t,time:o,relative:i}];for(s=0,l=r.length;s<l;s++){if(r[s].relative){r[s].x=n.x-r[s].x;r[s].y=n.y-r[s].y}n.steps.push({x:r[s].x,y:r[s].y,time:r[s].time||0})}n._startAni()},scrollToElement:function(t,o){var i=this,n;t=t.nodeType?t:i.scroller.querySelector(t);if(!t)return;n=i._offset(t);n.left+=i.wrapperOffsetLeft;n.top+=i.wrapperOffsetTop;n.left=n.left>0?0:n.left<i.maxScrollX?i.maxScrollX:n.left;n.top=n.top>0?0:n.top<i.maxScrollY?i.maxScrollY:n.top;o=o===undefined?e.max(e.abs(n.left)*2,e.abs(n.top)*2):o;i.scrollTo(n.left,n.top,o)},disable:function(){this.stop();this._resetPos(0);this.enabled=false;this._unbind(d);this._unbind(w);this._unbind(b)},enable:function(){this.enabled=true},stop:function(){f(this.aniTime);this.steps=[];this.moved=false;this.animating=false}};if(typeof exports!=="undefined")exports.iScroll=x;else window.iScroll=x}();
...\ No newline at end of file ...\ No newline at end of file
1 +!function(){var m=Math,mround=function(r){return r>>0},vendor=/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":"opera"in window?"O":"",isAndroid=/android/gi.test(navigator.appVersion),isIDevice=/iphone|ipad/gi.test(navigator.appVersion),isPlaybook=/playbook/gi.test(navigator.appVersion),isTouchPad=/hp-tablet/gi.test(navigator.appVersion),has3d="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,hasTouch="ontouchstart"in window&&!isTouchPad,hasTransform=vendor+"Transform"in document.documentElement.style,hasTransitionEnd=isIDevice||isPlaybook,nextFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){return setTimeout(callback,17)}}(),cancelFrame=function(){return window.cancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),RESIZE_EV="onorientationchange"in window?"orientationchange":"resize",START_EV=hasTouch?"touchstart":"mousedown",MOVE_EV=hasTouch?"touchmove":"mousemove",END_EV=hasTouch?"touchend":"mouseup",CANCEL_EV=hasTouch?"touchcancel":"mouseup",trnOpen="translate"+(has3d?"3d(":"("),trnClose=has3d?",0)":")",iScroll=function(el,options){var that=this,doc=document,i;this._events={};that.wrapper=typeof el=="object"?el:doc.getElementById(el);that.wrapper.style.overflow="hidden";that.scroller=that.wrapper.children[0];that.options={hScroll:true,vScroll:true,x:0,y:0,bounce:true,bounceLock:false,momentum:true,lockDirection:true,useTransform:true,useTransition:false,mouseWheel:true,onRefresh:null,onBeforeScrollStart:function(e){var target=e.target;while(target.nodeType!=1)target=target.parentNode;if(target.tagName!="SELECT"&&target.tagName!="INPUT"&&target.tagName!="TEXTAREA")e.preventDefault()},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null};for(i in options)that.options[i]=options[i];that.x=that.options.x;that.y=that.options.y;that.options.useTransform=hasTransform?that.options.useTransform:false;that.options.hScrollbar=that.options.hScroll&&that.options.hScrollbar;that.options.vScrollbar=that.options.vScroll&&that.options.vScrollbar;that.options.useTransition=hasTransitionEnd&&that.options.useTransition;that.options.invertWheelDirection=that.options.invertWheelDirection?-1:1;that.scroller.style[vendor+"TransitionProperty"]=that.options.useTransform?"-"+vendor.toLowerCase()+"-transform":"top left";that.scroller.style[vendor+"TransitionDuration"]="0";that.scroller.style[vendor+"TransformOrigin"]="0 0";if(that.options.useTransition)that.scroller.style[vendor+"TransitionTimingFunction"]="cubic-bezier(0.33,0.66,0.66,1)";if(that.options.useTransform)that.scroller.style[vendor+"Transform"]=trnOpen+that.x+"px,"+that.y+"px"+trnClose;else that.scroller.style.cssText+=";position:absolute;top:"+that.y+"px;left:"+that.x+"px";if(that.options.mouseWheel)that._initWheel();that.refresh();that._bind(RESIZE_EV,window);that._bind(START_EV);if(!hasTouch)that._bind("mouseout",that.wrapper)};iScroll.prototype={enabled:true,x:0,y:0,steps:[],scale:1,handleEvent:function(e){var that=this;switch(e.type){case START_EV:if(!hasTouch&&e.button!==0)return;that._start(e);break;case MOVE_EV:that._move(e);break;case END_EV:case CANCEL_EV:that._end(e);break;case RESIZE_EV:that._resize();break;case"mouseout":that._mouseout(e);break;case"webkitTransitionEnd":that._transitionEnd(e);break;case"mousewheel":that._wheel(e);break}},_resize:function(){this.refresh()},_pos:function(x,y){x=this.hScroll?x:0;y=this.vScroll?y:0;if(this.options.useTransform){this.scroller.style[vendor+"Transform"]=trnOpen+x+"px,"+y+"px"+trnClose+" scale("+this.scale+")"}else{x=mround(x);y=mround(y);this.scroller.style.left=x+"px";this.scroller.style.top=y+"px"}this.x=x;this.y=y},_start:function(e){var that=this,point=hasTouch?e.touches[0]:e,matrix,x,y;if(!that.enabled)return;if(that.options.onBeforeScrollStart)that.options.onBeforeScrollStart.call(that,e);if(that.options.useTransition)that._transitionTime(0);that.moved=false;that.animating=false;that.zoomed=false;that.distX=0;that.distY=0;that.absDistX=0;that.absDistY=0;that.dirX=0;that.dirY=0;if(that.options.momentum){if(that.options.useTransform){matrix=getComputedStyle(that.scroller,null)[vendor+"Transform"].replace(/[^0-9-.,]/g,"").split(",");x=matrix[4]*1;y=matrix[5]*1}else{x=getComputedStyle(that.scroller,null).left.replace(/[^0-9-]/g,"")*1;y=getComputedStyle(that.scroller,null).top.replace(/[^0-9-]/g,"")*1}if(x!=that.x||y!=that.y){if(that.options.useTransition)that._unbind("webkitTransitionEnd");else cancelFrame(that.aniTime);that.steps=[];that._pos(x,y)}}that.startX=that.x;that.startY=that.y;that.pointX=point.pageX;that.pointY=point.pageY;that.startTime=e.timeStamp||Date.now();if(that.options.onScrollStart)that.options.onScrollStart.call(that,e);that._bind(MOVE_EV);that._bind(END_EV);that._bind(CANCEL_EV)},_move:function(e){var that=this,point=hasTouch?e.touches[0]:e,deltaX=point.pageX-that.pointX,deltaY=point.pageY-that.pointY,newX=that.x+deltaX,newY=that.y+deltaY,timestamp=e.timeStamp||Date.now();if(that.options.onBeforeScrollMove)that.options.onBeforeScrollMove.call(that,e);that.pointX=point.pageX;that.pointY=point.pageY;if(newX>0||newX<that.maxScrollX){newX=that.options.bounce?that.x+deltaX/2:newX>=0||that.maxScrollX>=0?0:that.maxScrollX}if(newY>0||newY<that.maxScrollY){newY=that.options.bounce?that.y+deltaY/2:newY>=0||that.maxScrollY>=0?0:that.maxScrollY}that.distX+=deltaX;that.distY+=deltaY;that.absDistX=m.abs(that.distX);that.absDistY=m.abs(that.distY);if(that.absDistX<6&&that.absDistY<6){return}if(that.options.lockDirection){if(that.absDistX>that.absDistY+5){newY=that.y;deltaY=0}else if(that.absDistY>that.absDistX+5){newX=that.x;deltaX=0}}that.moved=true;that._pos(newX,newY);that.dirX=deltaX>0?-1:deltaX<0?1:0;that.dirY=deltaY>0?-1:deltaY<0?1:0;if(timestamp-that.startTime>300){that.startTime=timestamp;that.startX=that.x;that.startY=that.y}if(that.options.onScrollMove)that.options.onScrollMove.call(that,e)},_end:function(e){if(hasTouch&&e.touches.length!=0)return;var that=this,point=hasTouch?e.changedTouches[0]:e,target,ev,momentumX={dist:0,time:0},momentumY={dist:0,time:0},duration=(e.timeStamp||Date.now())-that.startTime,newPosX=that.x,newPosY=that.y,newDuration;that._unbind(MOVE_EV);that._unbind(END_EV);that._unbind(CANCEL_EV);if(that.options.onBeforeScrollEnd)that.options.onBeforeScrollEnd.call(that,e);if(!that.moved){if(hasTouch){target=point.target;while(target.nodeType!=1)target=target.parentNode;if(target.tagName!="SELECT"&&target.tagName!="INPUT"&&target.tagName!="TEXTAREA"){ev=document.createEvent("MouseEvents");ev.initMouseEvent("click",true,true,e.view,1,point.screenX,point.screenY,point.clientX,point.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);ev._fake=true;target.dispatchEvent(ev)}}that._resetPos(200);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return}if(duration<300&&that.options.momentum){momentumX=newPosX?that._momentum(newPosX-that.startX,duration,-that.x,that.scrollerW-that.wrapperW+that.x,that.options.bounce?that.wrapperW:0):momentumX;momentumY=newPosY?that._momentum(newPosY-that.startY,duration,-that.y,that.maxScrollY<0?that.scrollerH-that.wrapperH+that.y:0,that.options.bounce?that.wrapperH:0):momentumY;newPosX=that.x+momentumX.dist;newPosY=that.y+momentumY.dist;if(that.x>0&&newPosX>0||that.x<that.maxScrollX&&newPosX<that.maxScrollX)momentumX={dist:0,time:0};if(that.y>0&&newPosY>0||that.y<that.maxScrollY&&newPosY<that.maxScrollY)momentumY={dist:0,time:0}}if(momentumX.dist||momentumY.dist){newDuration=m.max(m.max(momentumX.time,momentumY.time),10);that.scrollTo(mround(newPosX),mround(newPosY),newDuration);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return}that._resetPos(200);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e)},_initWheel:function(){this.wrapper.addEventListener("mousewheel",this);this.wrapper.addEventListener("DOMMouseScroll",this);this.on("destroy",function(){this.wrapper.removeEventListener("mousewheel",this);this.wrapper.removeEventListener("DOMMouseScroll",this)})},_wheel:function(e){var wheelDeltaX,wheelDeltaY,newX,newY,that=this;clearTimeout(this.wheelTimeout);this.wheelTimeout=setTimeout(function(){that._execEvent("scrollEnd")},400);e.preventDefault();if("wheelDeltaX"in e){wheelDeltaX=e.wheelDeltaX/Math.abs(e.wheelDeltaX)||0;wheelDeltaY=e.wheelDeltaY/Math.abs(e.wheelDeltaY)||0}else if("wheelDelta"in e){wheelDeltaX=wheelDeltaY=e.wheelDelta/Math.abs(e.wheelDelta)}else if("detail"in e){wheelDeltaX=wheelDeltaY=-(e.detail/Math.abs(e.detail))}else{return}wheelDeltaX*=12;wheelDeltaY*=12;if(!this.hasVerticalScroll){wheelDeltaX=wheelDeltaY}newX=this.x+wheelDeltaX*this.options.invertWheelDirection;newY=this.y+wheelDeltaY*this.options.invertWheelDirection;if(newX>0){newX=0}else if(newX<this.maxScrollX){newX=this.maxScrollX}if(newY>0){newY=0}else if(newY<this.maxScrollY){newY=this.maxScrollY}that.scrollTo(newX,newY,0)},on:function(type,fn){if(!this._events[type]){this._events[type]=[]}this._events[type].push(fn)},_execEvent:function(type){if(!this._events[type]){return}var i=0,l=this._events[type].length;if(!l){return}for(;i<l;i++){this._events[type][i].call(this)}},_resetPos:function(time){var that=this,resetX=that.x>=0?0:that.x<that.maxScrollX?that.maxScrollX:that.x,resetY=that.y>=0||that.maxScrollY>0?0:that.y<that.maxScrollY?that.maxScrollY:that.y;if(resetX==that.x&&resetY==that.y){if(that.moved){if(that.options.onScrollEnd)that.options.onScrollEnd.call(that);that.moved=false}return}that.scrollTo(resetX,resetY,time||0)},_mouseout:function(e){var t=e.relatedTarget;if(!t){this._end(e);return}while(t=t.parentNode)if(t==this.wrapper)return;this._end(e)},_transitionEnd:function(e){var that=this;if(e.target!=that.scroller)return;that._unbind("webkitTransitionEnd");that._startAni()},_startAni:function(){var that=this,startX=that.x,startY=that.y,startTime=Date.now(),step,easeOut,animate;if(that.animating)return;if(!that.steps.length){that._resetPos(400);return}step=that.steps.shift();if(step.x==startX&&step.y==startY)step.time=0;that.animating=true;that.moved=true;if(that.options.useTransition){that._transitionTime(step.time);that._pos(step.x,step.y);that.animating=false;if(step.time)that._bind("webkitTransitionEnd");else that._resetPos(0);return}animate=function(){var now=Date.now(),newX,newY;if(now>=startTime+step.time){that._pos(step.x,step.y);that.animating=false;if(that.options.onAnimationEnd)that.options.onAnimationEnd.call(that);that._startAni();return}now=(now-startTime)/step.time-1;easeOut=m.sqrt(1-now*now);newX=(step.x-startX)*easeOut+startX;newY=(step.y-startY)*easeOut+startY;that._pos(newX,newY);if(that.animating)that.aniTime=nextFrame(animate)};animate()},_transitionTime:function(time){this.scroller.style[vendor+"TransitionDuration"]=time+"ms"},_momentum:function(dist,time,maxDistUpper,maxDistLower,size){var deceleration=6e-4,speed=m.abs(dist)/time,newDist=speed*speed/(2*deceleration),newTime=0,outsideDist=0;if(dist>0&&newDist>maxDistUpper){outsideDist=size/(6/(newDist/speed*deceleration));maxDistUpper=maxDistUpper+outsideDist;speed=speed*maxDistUpper/newDist;newDist=maxDistUpper}else if(dist<0&&newDist>maxDistLower){outsideDist=size/(6/(newDist/speed*deceleration));maxDistLower=maxDistLower+outsideDist;speed=speed*maxDistLower/newDist;newDist=maxDistLower}newDist=newDist*(dist<0?-1:1);newTime=speed/deceleration;return{dist:newDist,time:mround(newTime)}},_offset:function(el){var left=-el.offsetLeft,top=-el.offsetTop;while(el=el.offsetParent){left-=el.offsetLeft;top-=el.offsetTop}return{left:left,top:top}},_bind:function(type,el,bubble){(el||this.scroller).addEventListener(type,this,!!bubble)},_unbind:function(type,el,bubble){(el||this.scroller).removeEventListener(type,this,!!bubble)},destroy:function(){var that=this;that.scroller.style[vendor+"Transform"]="";that._unbind(RESIZE_EV,window);that._unbind(START_EV);that._unbind(MOVE_EV);that._unbind(END_EV);that._unbind(CANCEL_EV);that._unbind("mouseout",that.wrapper);if(that.options.useTransition)that._unbind("webkitTransitionEnd");if(that.options.onDestroy)that.options.onDestroy.call(that)},refresh:function(){var that=this,offset;that.wrapperW=that.wrapper.clientWidth;that.wrapperH=that.wrapper.clientHeight;that.scrollerW=that.scroller.offsetWidth;that.scrollerH=that.scroller.offsetHeight;that.maxScrollX=that.wrapperW-that.scrollerW;that.maxScrollY=that.wrapperH-that.scrollerH;that.dirX=0;that.dirY=0;that.hScroll=that.options.hScroll&&that.maxScrollX<0;that.vScroll=that.options.vScroll&&(!that.options.bounceLock&&!that.hScroll||that.scrollerH>that.wrapperH);offset=that._offset(that.wrapper);that.wrapperOffsetLeft=-offset.left;that.wrapperOffsetTop=-offset.top;that.scroller.style[vendor+"TransitionDuration"]="0";that._resetPos(200)},scrollTo:function(x,y,time,relative){var that=this,step=x,i,l;that.stop();if(!step.length)step=[{x:x,y:y,time:time,relative:relative}];for(i=0,l=step.length;i<l;i++){if(step[i].relative){step[i].x=that.x-step[i].x;step[i].y=that.y-step[i].y}that.steps.push({x:step[i].x,y:step[i].y,time:step[i].time||0})}that._startAni()},scrollToElement:function(el,time){var that=this,pos;el=el.nodeType?el:that.scroller.querySelector(el);if(!el)return;pos=that._offset(el);pos.left+=that.wrapperOffsetLeft;pos.top+=that.wrapperOffsetTop;pos.left=pos.left>0?0:pos.left<that.maxScrollX?that.maxScrollX:pos.left;pos.top=pos.top>0?0:pos.top<that.maxScrollY?that.maxScrollY:pos.top;time=time===undefined?m.max(m.abs(pos.left)*2,m.abs(pos.top)*2):time;that.scrollTo(pos.left,pos.top,time)},disable:function(){this.stop();this._resetPos(0);this.enabled=false;this._unbind(MOVE_EV);this._unbind(END_EV);this._unbind(CANCEL_EV)},enable:function(){this.enabled=true},stop:function(){cancelFrame(this.aniTime);this.steps=[];this.moved=false;this.animating=false}};if(typeof exports!=="undefined")exports.iScroll=iScroll;else window.iScroll=iScroll}();
...\ No newline at end of file ...\ No newline at end of file
......
1 -(function(){var e=function(){if(window.isGetData==1){Core.init()}else{window.isGetData=1}};var a=function(a){var t=location.hash.slice(1);var r=t.match(/app_id=(\w*)&?/);var o=t.match(/mod=(\w*)&?/);var s="";var i="?"+$("#skin").attr("data-v");if(r&&r.length==2){s=r[1]}if(o&&o.length==2){Core.start_page=o[1];console.log(Core.start_page)}location.hash="";if(s==""){t=localStorage.getItem("params_"+a);s=localStorage.getItem("app_id")}else{localStorage.setItem("params_"+a,t);localStorage.setItem("app_id",s)}Core.params=t;if(!s){Core.showTips("无法获取app_id!",false,3e3);e();$("#loading").hide();return}Core.Data.app_id=s;var l=false;var n=false;var f=localStorage.getItem("skin_"+s);if(f){$("#skin").attr("href",Core.server+"/static/sdk_3/skin/"+f+"/skin.css"+i);l=true}if($("#login").length!=0){var c=localStorage.getItem("auto");var g=parseInt(localStorage.getItem("auto_time"));var d=(new Date).getTime();if(c=="true"&&d-g<6e5){n=false}else if(c==null){n=false}else{n=true}}if(!n)e();if(Core.isFile){a=Core.server+a}$.ajax({type:"GET",url:a+"?"+t,dataType:"json",success:function(t){if(t.code==0){Core.Data=t.msg;if(Core.Data.face){Core.Data.face=Core.server+t.msg.face}var r=localStorage.getItem("last_server");if(Core.Data.new_server){if(r&&r==Core.Data.new_server){}else{var o="sdk://changeServer?addr="+Core.Data.new_server;localStorage.setItem("last_server",Core.Data.new_server);location.href=o}}if(!l&&t.skin){$("#skin").attr("href",Core.server+"/static/sdk_3/skin/"+t.skin+"/skin.css"+i);localStorage.setItem("skin_"+s,t.skin)}localStorage.setItem("data_"+a,JSON.stringify(t.msg));if(typeof window.initFunc=="function"){window.initFunc()}$("#loading").hide();if(n){e()}else{var f=Core.start_page?Core.start_page:"home";Core.updateMod(f)}}else{$("#loading").hide();$('<h2 class="error_title">出错了,正在努力抢修中...</h2>').appendTo($(".mask"));Core.showTips(t.msg,false,6e3);Core.loadFinished()}},error:function(t,r){var o=localStorage.getItem("data_"+a);if(o&&o!=""){var s=JSON.parse(o);if(typeof s=="object"){Core.Data=s;if(n){e()}else{Core.updateMod("home")}}}Core.showTips("网络出错,请检查网络状态。",false);$("#loading").hide()}})};window.getData=a})();
...\ No newline at end of file ...\ No newline at end of file
1 +(function() {
2 + // 加载数据
3 + var goInit = function() {
4 + if (window.isGetData == 1) {
5 + Core.init();
6 + } else {
7 + window.isGetData = 1;
8 + }
9 + }
10 + var getData = function(url) {
11 + var params = location.hash.slice(1);
12 + var args = params.match(/app_id=(\w*)&?/);
13 + var start_page = params.match(/mod=(\w*)&?/);
14 + var core_server = params.match(/core_server=(.*)&?/);
15 + var appId = '';
16 +
17 + var skin_v = '?' + $('#skin').attr('data-v');
18 + if (args && args.length == 2) {
19 + //匹配出app_id
20 + appId = args[1];
21 + }
22 + if(start_page && start_page.length == 2){
23 + //匹配出启动模块
24 + Core.start_page = start_page[1];
25 + console.log(Core.start_page);
26 + }
27 + if (core_server){
28 + Core.server = core_server[1]
29 + }
30 + location.hash = '';
31 + if (appId == '') {
32 + //刷新地址出错
33 + params = localStorage.getItem('params_' + url);
34 + appId = localStorage.getItem('app_id');
35 + } else {
36 + localStorage.setItem('params_' + url, params);
37 + localStorage.setItem('app_id', appId);
38 + }
39 +
40 + Core.params = params;
41 + if (!appId) {
42 + //无法获取到app_id
43 + Core.showTips('无法获取app_id!', false, 3000);
44 + goInit();
45 + $('#loading').hide();
46 + return;
47 + }
48 + Core.Data.app_id = appId;
49 + var setSkin = false;
50 + //先尝试设置皮肤,检查是否自动登录
51 + var tryAutoLogin = false;
52 + var _skin = localStorage.getItem('skin_' + appId);
53 + if (_skin) {
54 + $('#skin').attr('href', Core.server + '/static/sdk/skin/' + _skin + '/skin.css' + skin_v);
55 + setSkin = true;
56 + }
57 + if ($('#login').length != 0) {
58 + var auto = localStorage.getItem('auto');
59 + var auto_time = parseInt(localStorage.getItem('auto_time'));
60 + var d = new Date().getTime();
61 + if (auto == 'true' && (d - auto_time) < 600000) {
62 + tryAutoLogin = false;
63 + } else if (auto == null) {
64 + tryAutoLogin = false;
65 + } else {
66 + tryAutoLogin = true;
67 + }
68 + }
69 + //如果不尝试自动登录,直接初始化界面
70 + if (!tryAutoLogin)
71 + goInit();
72 +
73 +
74 +
75 +
76 + Core.ajax({
77 + type: 'GET',
78 + url: url + '?' + params,
79 + dataType: 'json',
80 + success: function(data) {
81 + if (data.code == 0) {
82 + // 成功请求
83 + Core.Data = data.msg;
84 + if (Core.Data.face) {
85 + Core.Data.face = Core.server + data.msg.face;
86 + }
87 + //更新server
88 + var lastServer = localStorage.getItem('last_server');
89 + if (Core.Data.new_server) {
90 + if (lastServer && lastServer == Core.Data.new_server) {
91 + //没有变化
92 + } else {
93 + //需要更新server
94 + var s = 'sdk://changeServer?addr=' + Core.Data.new_server;
95 + localStorage.setItem('last_server', Core.Data.new_server);
96 + location.href = s;
97 + }
98 + }
99 +
100 + if (!setSkin && data.skin) {
101 + $('#skin').attr('href', Core.server + '/static/sdk/skin/' + data.skin + '/skin.css' + skin_v);
102 + localStorage.setItem('skin_' + appId, data.skin);
103 + }
104 + localStorage.setItem('data_' + url, JSON.stringify(data.msg));
105 +
106 + //模块初始化函数,兼容旧版本sdk
107 + if (typeof(window.initFunc) == "function") {
108 + window.initFunc();
109 + }
110 + // 核心初始化
111 + $('#loading').hide();
112 + if (tryAutoLogin) {
113 + goInit();
114 + } else {
115 + var first_mod = Core.start_page? Core.start_page: 'home';
116 + Core.updateMod(first_mod);
117 + }
118 + } else {
119 + //参数出错,没有游戏服什么的.
120 + $('#loading').hide();
121 + $('<h2 class="error_title">出错了,正在努力抢修中...</h2>').appendTo($('.mask'));
122 + Core.showTips(data.msg, false, 6000);
123 + // 核心初始化
124 + Core.loadFinished();
125 + }
126 +
127 + },
128 + error: function(xhr, type) {
129 + // 请求失败,服务器崩溃
130 + //尝试从缓存中获取数据
131 + var data_str = localStorage.getItem('data_' + url);
132 + if (data_str && data_str != '') {
133 + var data = JSON.parse(data_str);
134 + if (typeof data == "object") {
135 + Core.Data = data;
136 + if (tryAutoLogin) {
137 + goInit();
138 + } else {
139 + Core.updateMod('home');
140 + }
141 + }
142 + }
143 + Core.showTips('网络出错,请检查网络状态。', false);
144 + // 核心初始化
145 + $('#loading').hide();
146 + }
147 +
148 + });
149 + }
150 + window.getData = getData;
151 +})();
...\ No newline at end of file ...\ No newline at end of file
......
1 -(function(){if(window.top!=window.self){try{parent.location.reload()}catch(e){Core.finishLogin()}}e();function e(e){if(e){$(e).appendTo($("body .mask"))}var t=function(e){Module.call(this,e)};Core.inherit(t,Module);t.prototype.bind=function(){var e=this;e.$c.on("click",".op-logout",function(t){t.preventDefault();e.logout_cb();return false});e.$c.on("click","label.help",function(e){e.preventDefault();e.stopPropagation();if(Core.cur_mod=="help")return;Core.showMod("help");return false})};t.prototype.logout_cb=function(e){Core.updateData();Core.clearMods();Core.showMod("login")};Core.registerMod("home",t);var i=function(e){Module.call(this,e)};Core.inherit(i,Module);Core.registerMod("help",i);var o=function(e){Module.call(this,e)};Core.inherit(o,Module);o.prototype.bind=function(){var e=this;var t=e.$c.find(".checkbox");var i=e.$c.find("i.icon-xuanzhong");e.$c.on("click",t,function(e){if(t.hasClass("checkbox-2")){i.parents(".checkbox").removeClass("checkbox-2");i.addClass("checkbx")}else{i.parents(".checkbox").addClass("checkbox-2");i.removeClass("checkbx")}});e.$c.on("click","[type=submit],.submit",function(t){if(e.$c.find(".checkbox-2").length<=0){Core.showTips("已阅读请打勾",1);return false}})};Core.registerMod("agreement",o);var n=function(e){this.other_login=true;Module.call(this,e)};Core.inherit(n,Module);n.prototype.bind=function(){var e=this;e.$c.on("click","input[type=submit],.submit",function(t){t.preventDefault();if(e.$c.find(".eg")[0].checked==false){Core.ajax_do(e.$c.find(".ajax"),e.login_eg_cb,e)}else{Core.ajax_do(e.$c.find(".ajax"),e.login_cb,e)}return false});e.$c.on("click",".drop-down",function(t){t.preventDefault();e.$c.find(".pull-box").toggle();return false});e.$c.on("click","ul.drop-ul li a",function(t){t.preventDefault();e.$c.find("input[name=username]").val($(t.target).html());e.$c.find("input[name=password]").val($(t.target).attr("data-p"));e.$c.find(".pull-box").hide();return false});e.$c.on("click",".op-guest",function(t){t.preventDefault();var i=localStorage.getItem("guest_n");var o=localStorage.getItem("guest_p");if(i&&i!=""){e.$c.find("input[name=username]").val(i);e.$c.find("input[name=password]").val(o);console.log("submit-u:"+i+":"+o);Core.ajax_do(e.$c.find(".ajax"),e.login_cb,e)}else{Core.ajax_do(e.$c.find(".op-guest"),e.guest_cb,e)}return false});e.$c.on("click",".iframe",function(e){e.preventDefault();var t=$(this).attr("href");var i=$(this).attr("title");if(Core.isFile){t=Core.server+t}Core.Data.frame_title=i;Core.Data.frame_src=t;Core.updateMod("frame");return false})};n.prototype.cache=function(e,t){var i=e?e:this.$c.find("input[name=username]").val(),o=t?t:this.$c.find("input[name=password]").val(),n,a,r;var s=localStorage.getItem("user_names");if(s){n=JSON.parse(s)}var l=localStorage.getItem("user_indexs");if(l){a=JSON.parse(l)}if(a==null){a=[];a.unshift(i);localStorage.setItem("user_indexs",JSON.stringify(a))}else{if($.inArray(i,a)==-1){a.unshift(i);localStorage.setItem("user_indexs",JSON.stringify(a))}}if(n==null){n={};n[i]=o;localStorage.setItem("user_names",JSON.stringify(n))}else{if(!(i in n)){n[i]=o;localStorage.setItem("user_names",JSON.stringify(n))}else{if(n[i]!=o){n[i]=o;localStorage.setItem("user_names",JSON.stringify(n))}}}Core.user_indexs=a;Core.user_names=n;$("input[name='loginUserName']").val(Core.Data.username);$("input[name='loginPassword']").val(Core.user_names[Core.Data.username])};n.prototype.login_cb=function(e){Core.updateData(e.msg);Core.first_user=this.$c.find('[name="username"]').val();Core.first_password=this.$c.find('[name="password"]').val();this.cache();Core.showTips("成功登录,欢迎使用游娱游戏平台");Core.updateMod("home")};n.prototype.login_eg_cb=function(e){Core.updateData(e.msg);this.cache();Core.showTips("成功登录,欢迎使用游娱游戏平台, 正在进入游戏");setTimeout(function(){Core.finishLogin()},1e3)};n.prototype.guest_cb=function(e){Core.updateData(e.msg);localStorage.setItem("guest_n",e.msg.username);localStorage.setItem("guest_p",e.msg.pwd);this.cache(e.msg.username,e.msg.pwd);Core.isFresh=false;Core.updateMod("home");Core.showTips("游客登录成功,请及时修改帐号和密码。",true)};n.prototype.show_after=function(){var e=localStorage.getItem("user_indexs"),t=localStorage.getItem("user_names");var i=$("input[name='loginUserName']").val(),o=$("input[name='loginPassword']").val(),n=$("input[name='initUserName']").val();this.$c.find(".forgetpsw").click(function(){$(".pwd_box").children(".step-tab").css("display","block");$(".pwd_box").children(".step-box").css("display","none")});if(t!=null){var t=JSON.parse(t);var a=JSON.parse(e);delete t["undefined"];this.$c.find(".drop-down").show();var r="";for(var s=0,l=a.length;s<l;s++){r+='<li><a data-p="'+t[a[s]]+'">'+a[s]+"</a></li>"}this.$c.find(".drop-ul").html(r);if(i!=""){this.$c.find("input#js_login_username").val(i)}else if(n!=""){this.$c.find("input#js_login_username").val(n);this.$c.find("input#js_login_password").val(Core.user_names[n])}}else{this.$c.find("input#js_login_username").val(Core.first_user);this.$c.find("input#js_login_password").val(Core.first_password)}if(Core.Data.other_login&&this.other_login){for(var c=0,l=Core.Data.other_login.length;c<l;c++){this.$c.find("."+Core.Data.other_login[c]).removeClass("hide")}this.other_login=false}if(o!=""){this.$c.find("input#js_login_password").val(o)}};Core.registerMod("login",n);var a=function(e){this.other_login=true;Module.call(this,e)};Core.inherit(a,Module);a.prototype.bind=function(){var e=this;e.$c.on("click",".login_case2",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".op-guest"),e.guest_cb,e);return false});e.$c.on("click",".login_case_qq",function(e){e.preventDefault();var t="/user/auth2/qq/login/?next=/sdk/login?app_id="+Core.Data.app_id;if(Core.isFile){t=Core.server+t}Core.Data.frame_title="QQ登录";Core.Data.frame_src=t;Core.updateMod("frame");return false})};a.prototype.cache=n.prototype.cache;a.prototype.guest_cb=n.prototype.guest_cb;a.prototype.show_after=function(){if(Core.Data.other_login&&this.other_login){for(var e=0,t=Core.Data.other_login.length;e<t;e++){this.$c.find("."+Core.Data.other_login[e]).removeClass("hide")}if(Core.Data.other_login.length==0){Core.updateMod("home")}this.other_login=false}};Core.registerMod("login_before",a);var r=function(e){this._username=null;this._pwd=null;Module.call(this,e)};Core.inherit(r,Module);r.prototype.bind=function(){var e=this;var t=e.$c.find(".checkbox");var i=e.$c.find("i.icon-xuanzhong");e.$c.on("click",t,function(e){if(t.hasClass("checkbox-2")){i.parents(".checkbox").removeClass("checkbox-2");i.addClass("checkbx")}else{i.parents(".checkbox").addClass("checkbox-2");i.removeClass("checkbx")}});e.$c.on("click","[type=submit],.submit",function(t){t.preventDefault();if(e.$c.find(".checkbox-2").length>0){Core.ajax_do(e.$c.find(".ajax"),e.register_cb,e)}else{Core.showTips("请同意游娱网络协议",1)}return false});e.$c.on("change",'[name="username"]',function(t){if(this.value==e.$c.find('[name="old_usernmae"]').val()){e.$c.find('[name="type"]').val(-1)}else{e.$c.find('[name="type"]').val(0)}})};r.prototype.set_random=function(){var e=this;var t="yy"+Math.random().toString(36).substr(-2)+(new Date).getTime().toString(36).substr(-4);var i=Math.random().toString(36).substr(-6);e.$c.find('[name="username"]').val(t);e.$c.find('[name="old_usernmae"]').val(t);e.$c.find('[name="password"]').val(i);e.$c.find('[name="type"]').val(-1)};r.prototype.cache=n.prototype.cache;r.prototype.register_cb=function(e){Core.updateData(e.msg);Core.first_user=this.$c.find('[name="username"]').val();Core.first_password=this.$c.find('[name="password"]').val();this.cache();Core.showTips("成功注册,欢迎使用游娱游戏平台");Core.updateMod("home")};r.prototype.show_after=function(){this.set_random()};Core.registerMod("register",r);var s=function(e){Module.call(this,e)};Core.inherit(s,Module);s.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit],.submit",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.mibao_cb,e);return false})};s.prototype.mibao_cb=function(e){var t=e.code;var i=e.msg;if(0==t){Core.Data.safe_question=i.question;Core.Data.safe_answer=i.answer}Core.showTips("成功设置密保!",true);this.isValid=false;Core.showMod("home")};Core.registerMod("mibao",s);var l=function(e){Module.call(this,e)};Core.inherit(l,Module);l.prototype.bind=function(){var e=this;var t=["手机找回密码","密保找回密码","邮箱找回密码","联系客服","重置密码","找回密码"];var i={0:'<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>',1:'<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>'};var o={versions:function(){var e=navigator.userAgent,t=navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")==-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")==-1}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};if(o.versions.mobile){var n=navigator.userAgent.toLowerCase();if(o.versions.ios){$("#js_kefu_qq").href="mqq://im/chat?chat_type=wpa&uin=2739920773&version=1&src_type=web";$("#js_player").href="mqq://im/chat?chat_type=wpa&uin=167355030&version=1&src_type=web"}if(o.versions.android){$("#js_kefu_qq").href="mqqwpa://im/chat?chat_type=wpa&uin=2739920773";$("#js_player").href="mqqwpa://im/chat?chat_type=wpa&uin=167355030"}}else{$("#js_kefu_qq").href="http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes";$("#js_player").href="http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes"}e.$c.on("click","#js_findPSW_getcode",function(){var e=$(this);phone=$("#js_findPSW_mobile").val();$.ajax({type:"post",url:"/sms_validate_code/?mobile="+phone,success:function(t){if(t.length==0){Core.showTips("验证码发送成功,请注意查收",true);e.addClass("disabled");var i=60;var o=setInterval(function(){if(i>0){e.text(i+"秒再获取");i--}else{clearInterval(o);e.text("获取验证码");e.removeClass("disabled")}},1e3)}else{Core.showTips(t,true)}}})});e.$c.on("click","#js_findPSW_confirm",function(){var i=e.$c.find("#js_findPSW_ranks").val(),o=$("#js_findPSW_accout").val(),n=$("#js_findPSW_mobile").val(),a=/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;if($.trim(o)==""){Core.showTips("请输入账号!",false);return false}if($.trim(n)==""){Core.showTips("请输入手机号码!",false);return false}if(!a.test(n)){Core.showTips("请输入11位手机号码!",false);return false}if($.trim(i)==""){Core.showTips("请输入验证码!",true);return false}$.ajax({type:"post",url:"/user/password_by_mobile?mobile="+n+"&username="+o+"&vcode="+i,data:{format:"json"},dataType:"json",success:function(i){if(i.code===0){var o=JSON.parse(i.msg);Core.showTips("验证成功!请设置新密码",true);e.$c.find("input[name='pwd_code']").val(o.pwd_code);e.$c.find(".user-center span").html(t[4]);e.$c.find(".step-tab").hide().siblings(".step-box").show().children("div").eq(4).removeClass("hide").siblings("div").addClass("hide");e.$c.find("#js_UserName").text(o.username);$("input[name='loginUserName']").val(o.username)}else{Core.showTips(i.msg,true)}}})});e.$c.on("click","#js_confirm_resetnewpsw",function(){var t=e.$c.find("#js_reset_newpsw").val(),i=e.$c.find("input[name='pwd_code']").val(),o=$("input[name='loginUserName']").val();var n=localStorage.getItem("user_names");n=JSON.parse(n);$.ajax({type:"post",url:"/user/reset_passwd?pwd_code="+i+"&password="+t,data:{format:"json"},dataType:"json",success:function(e){if(e.code===0){Core.showTips("重置密码成功!",true);$("input[name='loginPassword']").val(t);n[o]=t;localStorage.setItem("user_names",JSON.stringify(n));setTimeout(function(){Core.updateMod("login")},500)}else{Core.showTips(e.msg,true)}}})});var a=e.$c.find(".checkbox");var r=e.$c.find("i.icon-xuanzhong");var s=e.$c.find("input#js_reset_newpsw");e.$c.on("click",a,function(e){if(a.hasClass("checkbox-2")){r.parents(".checkbox").removeClass("checkbox-2");r.addClass("checkbx");s.attr("type","password")}else{r.parents(".checkbox").addClass("checkbox-2");r.removeClass("checkbx");s.attr("type","text")}});e.$c.on("click",".pwd_box .step-tab li a",function(o){var n=$(this).parent("li"),a=n.index();e.$c.find(".step-tab").hide().siblings(".step-box").show().children("div").eq(a).removeClass("hide").addClass("fn-icon-2").siblings("div").addClass("hide").removeClass("fn-icon-2");e.$c.find(".user-center span").html(t[a]);e.$c.find(".user-center a").replaceWith(i[1])});e.$c.on("click",".user-center a.back-btn",function(o){$(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show();e.$c.find(".user-center span").html(t[5]);e.$c.find(".user-center a").replaceWith(i[0])});e.$c.on("click",".pwd_box a.kefu_subbtn",function(o){$(this).parents(".step-box").hide().siblings(".step-tab").show();e.$c.find(".user-center span").html(t[5]);e.$c.find(".user-center a").replaceWith(i[1])});e.$c.on("click",".op-primary",function(t){var i=e.$c.find(".fn-icon-2");t.preventDefault();console.log(i);Core.ajax_do(i,e.findpwd_cb,e);return false});e.$c.on("click",".step-tab .function-list-title",function(t){e.$c.find(".step-tab .function-list-content").hide();$(t.target).parent().next().show();e.$c.find(".step-tab .function-list-icon").removeClass("function-list-icon-2");$(this).find(".function-list-icon").addClass("function-list-icon-2").addClass("function-list-icon-1");if(!$(t.target).parent().next().is(".form")){e.$c.find(".next-btn").hide()}else{e.$c.find(".next-btn").show()}})};l.prototype.findpwd_cb=function(e){var t=e.code;var i=e.msg;if(0!=t){Core.showTips(i,false);return}if(typeof i=="object"){Core.Data.ans_temp=i;Core.updateMod("answer_question");Core.showTips("加载成功.",true,100)}else{Core.showTips(i,true);Core.showMod("login")}};l.prototype.show_after=function(){var e=this;this.$c.find('input[name="username"]').val($('#login input[name="username"]').val());this.$c.find(".sms").html(Core.Data.mobile_helper_number);var t=Core.Data.kefu_info,i=JSON.stringify(t);if(typeof i!=="undefined"){localStorage.setItem("kefuInfo",i)}else{e.$c.find(".pwd_txt .default_text").css("display","block");e.$c.find(".pwd_txt .get_text").html("").css("display","none")}var o=localStorage.getItem("kefuInfo"),n=JSON.parse(o),a=/^([0-9]{3,4}-)?[0-9]{7,8}$/,r=/^((\+?86)|(\+86))?(13[012356789][0-9]{8}|15[012356789][0-9]{8}|18[02356789][0-9]{8}|147[0-9]{8}|1349[0-9]{7})$/;if(n==""){e.$c.find(".pwd_txt .default_text").css("display","block");e.$c.find(".pwd_txt .get_text").html("").css("display","none")}else{e.$c.find(".pwd_txt .default_text").css("display","none");e.$c.find(".pwd_txt .get_text").html("").css("display","block");for(var s in n){var l=/\d+/g,c=n[s],d=c.match(l),u=d.join("-");if(r.test(u)||a.test(u)){var f='<a href="tel:'+u+'">'+u+"</a>",p=c.split(":")[0];e.$c.find(".pwd_txt .get_text").append("<p>"+p+":"+f+"</p>")}else{e.$c.find(".pwd_txt .get_text").append("<p>"+n[s]+"</p>")}}}};Core.registerMod("find_pwd",l);var c=function(e){Module.call(this,e)};Core.inherit(c,Module);c.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit],.submit",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.bind_cb,e);return false});e.$c.on("click","#bind-mobile",function(t){t.preventDefault();e.$c.find("#bind_phone_form").show();return false});e.$c.on("click","#bind-check",function(t){t.preventDefault();Core.ajax_do($(t.target),e.bind_ch,e);return false})};c.prototype.bind_ch=function(e){var t=e.code;Core.Data.bind_statu=e.msg.bind_statu;if(e.msg.bind_statu==1){Core.showTips("电话绑定未成功",false)}Core.updateMod("bind")};c.prototype.bind_cb=function(e){var t=e.code;if(t!=0)return;$(".bind_phone_tip").html(Core.Data.bind_mobile_tips);Core.Data.bind_statu=1;Core.Data.bind_phone=this.$c.find("input[name=mobile]").val();this.$c.find("span.text-info").html(this.$c.find("input[name=mobile]").val());Core.showTips("通过电话确认后可绑定手机!",true);this.$c.find("#bind_phone_form").hide();this.isValid=false;setTimeout(function(){Core.updateMod("bind")},1e3)};Core.registerMod("bind",c);var d=function(e){Module.call(this,e)};Core.inherit(d,Module);d.prototype.bind=function(){var e=this;var t={mobileReg:function(e){var t=/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/,i=$(e).val();if($.trim(i)==""){Core.showTips("请输入手机号码!",false);return false}if(!t.test(i)){Core.showTips("请输入11位手机号码!",false);return false}},send:function(t,i){var o=this,n=e.$c;n.on("click",t,function(){var e=$(i).val();if(o.mobileReg(i)==false)return false;$.ajax({type:"post",url:"/sms_validate_code/?mobile="+e,success:function(e){if(e.length==0){Core.showTips("验证码发送成功,请注意查收",true);$(t).addClass("disabled");var i=60;var o=setInterval(function(){if(i>0){$(t).text(i+"秒再获取");i--}else{clearInterval(o);$(t).text("获取验证码");$(t).removeClass("disabled")}},1e3)}else{Core.showTips(e,true)}}})})},bind:function(t,i,o){var n=this,a=e.$c;a.on("click",t,function(){var e=$(o).val(),t=$(i).val();if(n.mobileReg(i)==false)return false;if($.trim(e)==""){Core.showTips("请输入验证码!",true);return false}$.ajax({type:"post",url:"/user/bind_mobile?mobile="+t+"&vcode="+e,data:{format:"json"},dataType:"json",success:function(e){if(e.code===0){Core.showTips("绑定成功!",true);Core.Data.bind_phone=t;setTimeout(function(){Core.updateMod("home")},500)}else{Core.showTips(e.msg,true)}}})})}};t.send("#js_getcode","#js_iphone");t.bind("#js_conform","#js_iphone","#js_ranks")};d.prototype.show_after=function(){};Core.registerMod("bindMobile",d);var u=function(e){Module.call(this,e)};Core.inherit(u,Module);u.prototype.bind=function(){var e=this;e.$c.on("click","#js_unbind_getcode",function(){var e=$(this),t=Core.Data.bind_phone;$.ajax({type:"post",url:"/sms_validate_code/?mobile="+t,success:function(t){if(t.length==0){Core.showTips("验证码发送成功,请注意查收",true);e.addClass("disabled");var i=60;var o=setInterval(function(){if(i>0){e.text(i+"秒再获取");i--}else{clearInterval(o);e.text("获取验证码");e.removeClass("disabled")}},1e3)}else{Core.showTips(t,true)}}})});e.$c.on("click","#js_unbind",function(){var e=$("#js_unbind_ranks").val(),t=Core.Data.bind_phone;if($.trim(e)==""){Core.showTips("请输入验证码!",true);return false}$.ajax({type:"post",url:"/user/unbind_mobile?mobile="+t+"&vcode="+e,data:{format:"json"},dataType:"json",success:function(e){if(e.code===0){Core.showTips("解绑成功!",true);Core.Data.bind_phone="";setTimeout(function(){Core.updateMod("home")},500)}else{Core.showTips(e.msg,true)}}})})};u.prototype.show_after=function(){var e=Core.Data.bind_phone,t=e.substring(0,3),i=e.substring(8,11),o=t+"****"+i;this.$c.find(".phoneMobile").html(o)};Core.registerMod("unbindMobile",u);var f=function(e){Module.call(this,e)};Core.inherit(f,Module);f.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit],.submit",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.mail_cb,e);return false});e.$c.on("click","#change-mail-btn",function(t){t.preventDefault();e.$c.find("#bind_mail_form").show();e.$c.find("#bind-mail-btn").show();$(this).hide();return false});e.$c.on("click",".op-primary",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.mail_cb,e);return false})};f.prototype.mail_cb=function(e){var t=e.code;Core.Data.bind_mail_statu=1;Core.Data.mail=this.$c.find("input[name=email]").val();this.$c.find("span.text-info").html(this.$c.find("input[name=email]").val());Core.showTips("请登录您的邮箱,完成邮箱认证功能。",true);this.$c.find("#bind_mail_form").hide();this.isValid=false;setTimeout(function(){Core.updateMod("mail")},1e3)};Core.registerMod("mail",f);var p=function(e){Module.call(this,e)};Core.inherit(p,Module);p.prototype.bind=function(){this.$c.on("click",".op-primary",function(){Core.updateMod("modify_pwd")})};Core.registerMod("reset_pwd",p);var h=function(e){Module.call(this,e)};Core.inherit(h,Module);h.prototype.bind=function(){var e=this;e.$c.on("click",".op-primary",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.aq_cb,e);return false})};h.prototype.aq_cb=function(e){var t=e.code;var i=e.msg;var o=localStorage.getItem("user_names");Core.updateData(i);Core.Data.new_pwd=i.password;if(o==null){o=null}else{o=JSON.parse(o)}o[i.nickname]=i.password;localStorage.setItem("user_names",JSON.stringify(o));Core.user_names=o;Core.updateMod("reset_pwd");Core.showTips("重置成功.",true,1e3)};Core.registerMod("answer_question",h);var m=function(e){Module.call(this,e)};Core.inherit(m,Module);m.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit],.submit",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.modify_cb,e);return false});e.$c.on("click",".op-logout",function(t){t.preventDefault();e.logout_cb();return false})};m.prototype.logout_cb=t.prototype.logout_cb;m.prototype.modify_cb=function(e){var t=e.code;var i=e.msg,o=this.$c.find("input[name=username]").val(),n=this.$c.find("input[name=newpwd]").val(),a,r;var s=localStorage.getItem("user_names"),l=localStorage.getItem("user_indexs");if(s){a=JSON.parse(s)}if(l){r=JSON.parse(l)}if(t==0){if(Core.Data.is_guest==1){localStorage.removeItem("guest_n");Core.showTips("升级账号成功!请妥善保管正式账号!",true);delete a[Core.Data.nickname];localStorage.setItem("user_names",JSON.stringify(a))}else{Core.showTips("成功修改密码, 请记住新密码。",true);a[i.username]=n;localStorage.setItem("user_names",JSON.stringify(a))}var c=Core.Data.nickname;var d=$.inArray(c,r);if(r==null){r=[];r.unshift(o);localStorage.setItem("user_indexs",JSON.stringify(r))}else{if(d==-1){r.unshift(o);localStorage.setItem("user_indexs",JSON.stringify(r))}else{r.splice(d,1);r.unshift(i.username);localStorage.setItem("user_indexs",JSON.stringify(r))}}if(a==null){a={};a[o]=n;localStorage.setItem("user_names",JSON.stringify(a))}else{if(!(o in a)){a[o]=n;localStorage.setItem("user_names",JSON.stringify(a))}else{a[i.username]=n;localStorage.setItem("user_names",JSON.stringify(a))}}Core.user_names=a;Core.user_indexs=r;Core.Data.is_guest=i.is_guest;Core.Data.username=i.username;Core.Data.nickname=i.nickname;$("input[name='loginUserName']").val(Core.Data.username);$("input[name='loginPassword']").val(Core.user_names[Core.Data.username]);this.isValid=false;Core.updateMod("home")}else{Core.showTips(i,false)}};Core.registerMod("modify_pwd",m);var _=function(e){Module.call(this,e)};Core.inherit(_,Module);_.prototype.bind=function(){var e=this;e.$c.on("click",".scroll-btn",function(t){t.preventDefault();t.stopPropagation();var i=e.$c.find("iframe");var o=i.height();var n=e.$c.find(".ios_scroll").height();var a=parseInt(i.css("margin-top"));if($(t.currentTarget).hasClass("scroll-up")){if(Math.abs(a)+20>o-n)return;i.css("margin-top",a-50)}else{if(a>=0)return;i.css("margin-top",a+50)}})};_.prototype.show_after=function(){var e=this;var t=Core.last_mod?Core.last_mod:"home";var i=e.$c.find("iframe");var o=e.$c.find(".ios_scroll");var n=e.$c.is(".fix, .nofix");this.$c.find("a.btn.pull-left").attr("href","#"+t);i[0].onload=function(){e.$c.find("#loading_frame").hide();if(Core.isAndroid&&!n){var t=i.height();var a=o.height();if(t>a){e.$c.addClass("fix")}else{e.$c.addClass("nofix")}}}};Core.registerMod("frame",_);var g=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(g,Module);g.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();if(Core.cur_mod=="activity_detail")return;var i=$(t.target);if(!i.is("a"))i=i.parent();var o=i.attr("data-id");if(o==e.cur_id){Core.Data.activity_update=false;Core.showMod("activity_detail");return false}e.cur_id=o;Core.Data.activity_update=true;Core.showTips("加载中...",true,2e3);i.data("path","/sdk/notice/view/?id="+o);Core.load_json(i,function(e){Core.Data.activity_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("activity_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};g.prototype.refresh=function(){this.myScroll.refresh()};g.prototype.show_after=function(){if(this.$c.find(".activity-list").children().length==0){Core.load_html(this.$c.find(".activity-list"),this.act_cb,this)}var e=this.$c.find(".badge");if(e.length==0){if(Core.Data.msg_count>0){var t=this.$c.find(".badge_msg");t.html('<span class="badge">'+Core.Data.msg_count+"</span>"+t.html())}}};g.prototype.act_cb=function(e){this.myScroll=new iScroll("activity_wrapper")};Core.registerMod("activity",g);var v=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(v,Module);v.prototype.bind=function(){var e=this};v.prototype.show_after=function(){var e=this;if(Core.Data.activity_update){console.log("new scroller");this.myScroll=new iScroll("detail_scroller");e.myScroll.refresh();this.$c.find(".scroll img").on("load",function(t){console.log("img loaded in scroll");e.myScroll.refresh()})}};Core.registerMod("activity_detail",v);var C=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(C,Module);C.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();t.stopPropagation();if(Core.cur_mod=="message_detail")return;var i=$(t.currentTarget);var o=i.attr("data-id");if(o==e.cur_id){Core.showMod("message_detail");return false}e.cur_id=o;i.data("path","/message/"+o+".html?format=json");Core.load_json(i,function(e){Core.Data.message_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("message_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};C.prototype.refresh=function(){this.myScroll.refresh()};C.prototype.show_after=function(){if(this.$c.find(".message-list").children().length==0){Core.load_html(this.$c.find(".message-list"),this.act_cb,this)}};C.prototype.act_cb=function(e){this.myScroll=new iScroll("message_wrapper")};Core.registerMod("message",C);var b=function(e){Module.call(this,e)};Core.inherit(b,Module);Core.registerMod("message_detail",b);function w(){var e=localStorage.getItem("user_names"),t=localStorage.getItem("user_indexs");if(e==null)e=null;else{e=JSON.parse(e);delete e["undefined"];var i=[];for(var o in e){if($.inArray(o,i)==-1){i.unshift(o)}}t=i;localStorage.setItem("user_indexs",JSON.stringify(t))}if($.isArray(e)){var n,a,r={};for(n=0,a=e.length;n<a;n++){r[e[n]]=""}e=r;localStorage.setItem("user_names",JSON.stringify(e))}Core.user_names=e;Core.user_indexs=t;if(e){for(var o in e){Core.first_user=o;Core.first_password=e[o];break}}$("input#js_login_username").val(Core.first_user);$("input#js_login_password").val(Core.first_password)}w();if(window.isGetData==1){$("#loading").hide();Core.init()}else{window.isGetData=1}}})();$(document).on("click",".mask",function(){$("input[type=password]").bind("cut copy paste",function(e){return false})});
...\ No newline at end of file ...\ No newline at end of file
1 +(function() {
2 + // iframe下更新数据,并跳转到页面
3 + if (window.top != window.self) {
4 + try {
5 + //webview 不会跳转,这里第三方登陆后,刷新父页面,自动登录
6 + parent.location.reload()
7 + //parent.Core.Data = Core.Data;
8 + //parent.location.hash = "#home&force";
9 + //parent.Core.clearFrame();
10 + } catch (e) {
11 + //跨域问题,通知sdk直接跳转到游戏
12 + Core.finishLogin();
13 + }
14 +
15 + }
16 +
17 + init_data();
18 +
19 +
20 + function init_data(response) {
21 + if (response) {
22 + $(response).appendTo($('body .mask'));
23 + }
24 + // Home模块
25 + var Home = function(modId) {
26 + Module.call(this, modId);
27 + }
28 + // 继承基础模块
29 + Core.inherit(Home, Module);
30 +
31 + Home.prototype.bind = function() {
32 + // 绑定模块事件到section
33 + var that = this;
34 + that.$c.on('click', '.op-logout', function(e) {
35 + e.preventDefault();
36 + // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb,
37 + // that);
38 + that.logout_cb();
39 + return false;
40 + });
41 + that.$c.on('click', 'label.help', function(e) {
42 + e.preventDefault();
43 + e.stopPropagation();
44 + /*
45 + * @todo-list bug fixed in android,the click event fired twice!
46 + */
47 + if (Core.cur_mod == 'help')
48 + return;
49 + Core.showMod('help');
50 + return false;
51 + });
52 + that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面
53 + e.stopPropagation();
54 + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!");
55 + });
56 + }
57 +
58 + Home.prototype.logout_cb = function(data) {
59 + Core.updateData();
60 + Core.clearMods();
61 + Core.showMod('login');
62 +
63 + }
64 + Home.prototype.show_after = function(){
65 + $('#login').hide();
66 + }
67 + Core.registerMod('home', Home);
68 +
69 + // 帮助信息模块
70 + var Help = function(modId) {
71 + Module.call(this, modId);
72 + }
73 + Core.inherit(Help, Module);
74 + Core.registerMod('help', Help);
75 +
76 + // 注册协议
77 + var Agreement = function(modId) {
78 + Module.call(this, modId);
79 + }
80 + Core.inherit(Agreement, Module);
81 + Agreement.prototype.bind = function() {
82 + var that = this;
83 + var checkbox = that.$c.find(".checkbox");
84 + var checkbox_type = that.$c.find("i.icon-xuanzhong");
85 +
86 + that.$c.on("click",checkbox,function(e){
87 + if(checkbox.hasClass('checkbox-2')){
88 + checkbox_type.parents(".checkbox").removeClass("checkbox-2");
89 + checkbox_type.addClass("checkbx");
90 + }else{
91 + checkbox_type.parents(".checkbox").addClass("checkbox-2");
92 + checkbox_type.removeClass("checkbx");
93 + }
94 + });
95 +
96 +
97 + that.$c.on('click', '[type=submit],.submit', function(e) {
98 + if (that.$c.find('.checkbox-2').length<=0 ){
99 + Core.showTips('已阅读请打勾',1);
100 + return false;
101 + }
102 +
103 + });
104 + }
105 + Core.registerMod('agreement', Agreement);
106 +
107 +
108 + // Login模块
109 + var Login = function(modId) {
110 + this.other_login = true;
111 + Module.call(this, modId);
112 + }
113 + // 继承基础模块
114 + Core.inherit(Login, Module);
115 +
116 + Login.prototype.bind = function() {
117 + var that = this;
118 + that.$c.on('click', 'input[type=submit],.submit', function(e) {
119 + e.preventDefault();
120 + if (that.$c.find('.eg')[0].checked == false) {
121 + // 直接进入游戏
122 + Core.ajax_do(that.$c.find('.ajax'), that.login_eg_cb,
123 + that);
124 + } else {
125 + Core.ajax_do(that.$c.find('.ajax'), that.login_cb,
126 + that);
127 + }
128 + return false;
129 + });
130 + that.$c.on('click', '.drop-down', function(e) {
131 + e.preventDefault();
132 + that.$c.find('.pull-box').toggle();
133 + return false;
134 + });
135 + that.$c.on('click', 'ul.drop-ul li a', function(e) {
136 + e.preventDefault();
137 + that.$c.find('input[name=username]').val(
138 + $(e.target).html());
139 + that.$c.find('input[name=password]').val($(e.target).attr('data-p'));
140 + that.$c.find('.pull-box').hide();
141 +
142 + return false;
143 + })
144 + that.$c.on('click', '.op-guest', function(e) {
145 + e.preventDefault();
146 + var _name = localStorage.getItem('guest_n');
147 + var _pwd = localStorage.getItem('guest_p');
148 + if (_name && _name != '') {
149 + //已经有游客帐号,使用游客帐号登录
150 + that.$c.find('input[name=username]').val(_name);
151 + that.$c.find('input[name=password]').val(_pwd);
152 + console.log('submit-u:' + _name + ":" + _pwd);
153 + Core.ajax_do(that.$c.find('.ajax'), that.login_cb,
154 + that);
155 + } else {
156 + Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb,
157 + that);
158 + }
159 + return false;
160 + });
161 + that.$c.on('click', '.iframe', function(e) {
162 + e.preventDefault();
163 + var src = $(this).attr('href');
164 + var title = $(this).attr('title');
165 + if (Core.isFile) {
166 + src = Core.server + src;
167 + }
168 + Core.Data.frame_title = title;
169 + Core.Data.frame_src = src;
170 + Core.updateMod('frame');
171 + return false;
172 + });
173 +
174 + }
175 +
176 + Login.prototype.cache = function(n, p) {
177 + var name = n ? n : this.$c.find('input[name=username]').val(),
178 + password = p ? p : this.$c.find('input[name=password]').val(),
179 + name_ary,index_ary,firstUser;
180 + var _d = localStorage.getItem('user_names');
181 + if (_d) {
182 + name_ary = JSON.parse(_d);
183 + }
184 + var _i = localStorage.getItem('user_indexs');
185 + if (_i) {
186 + index_ary = JSON.parse(_i);
187 + }
188 +
189 + if(index_ary == null){
190 + index_ary = [];
191 + index_ary.unshift(name);
192 + localStorage.setItem('user_indexs', JSON.stringify(index_ary));
193 + }else{
194 + if($.inArray(name,index_ary) == -1){
195 + index_ary.unshift(name);
196 + localStorage.setItem('user_indexs', JSON.stringify(index_ary));
197 + }
198 + }
199 + if (name_ary == null) {
200 + name_ary = {};
201 + name_ary[name] = password;
202 + localStorage.setItem('user_names', JSON.stringify(name_ary));
203 + } else {
204 + if (!(name in name_ary)) {
205 + name_ary[name] = password;
206 + localStorage.setItem('user_names', JSON.stringify(name_ary));
207 + } else {
208 + if (name_ary[name] != password) {
209 + name_ary[name] = password;
210 + localStorage.setItem('user_names', JSON.stringify(name_ary));
211 + }
212 + }
213 + }
214 + Core.user_indexs = index_ary;
215 + Core.user_names = name_ary;
216 +
217 + $("input[name='loginUserName']").val(Core.Data.username);
218 + $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]);
219 +
220 + }
221 + Login.prototype.login_cb = function(result) {
222 + Core.updateData(result.msg);
223 + // 显示一个登录成功信息,并跳转到home
224 + Core.first_user = this.$c.find('[name="username"]').val()
225 + Core.first_password = this.$c.find('[name="password"]').val()
226 + this.cache();
227 + Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
228 +
229 + Core.updateMod('home');
230 + }
231 + Login.prototype.login_eg_cb = function(result) {
232 + Core.updateData(result.msg);
233 + // 跳转进入游戏
234 + this.cache();
235 + Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏');
236 + setTimeout(function() {
237 + Core.finishLogin();
238 + }, 1000);
239 + }
240 + Login.prototype.guest_cb = function(data) {
241 + Core.updateData(data.msg);
242 + //保存游客用户名和密码到localstorage
243 + localStorage.setItem('guest_n', data.msg.username);
244 + localStorage.setItem('guest_p', data.msg.pwd);
245 + this.cache(data.msg.username, data.msg.pwd);
246 + Core.isFresh = false;
247 + Core.updateMod('home');
248 + Core.showTips("游客登录成功,请及时修改帐号和密码。", true);
249 + }
250 +
251 + Login.prototype.show_after = function() {
252 + var user_indexs = localStorage.getItem('user_indexs'),
253 + names = localStorage.getItem('user_names');
254 + var loginUserName = $("input[name='loginUserName']").val(),
255 + loginPassword = $("input[name='loginPassword']").val(),
256 + initUserName = $("input[name='initUserName']").val();
257 + this.$c.find(".forgetpsw").click(function(){
258 + $(".pwd_box").children(".step-tab").css("display","block");
259 + $(".pwd_box").children(".step-box").css("display","none");
260 + });
261 + var names = JSON.parse(names);
262 + var userIdx = JSON.parse(user_indexs);
263 + if (names != null) {
264 +
265 + delete names["undefined"];
266 +
267 + this.$c.find('.drop-down').show();
268 + var lis = '';
269 +
270 + for(var ele = 0,l = userIdx.length;ele<l;ele++){
271 + lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>';
272 + }
273 +
274 + this.$c.find('.drop-ul').html(lis);
275 +
276 + if(loginUserName != ""){
277 + this.$c.find("input#js_login_username").val(loginUserName);
278 + }else if(initUserName != ""){
279 + this.$c.find("input#js_login_username").val(initUserName);
280 + this.$c.find("input#js_login_password").val(Core.user_names[initUserName]);
281 + }
282 +
283 + }else{
284 + this.$c.find("input#js_login_username").val(Core.first_user);
285 + this.$c.find("input#js_login_password").val(Core.first_password);
286 + }
287 + if (Core.Data.other_login && this.other_login) {
288 + if(Core.Data.other_login.length > 0){
289 + this.$c.find(".other-login-bx").removeClass("hide");
290 + }
291 +
292 + //设置第三方登录显示
293 + for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
294 + this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
295 + }
296 + this.other_login = false;
297 + }
298 +
299 + if(loginPassword != ""){
300 + this.$c.find("input#js_login_password").val(loginPassword);
301 + }
302 +
303 + var old_pwd = localStorage.getItem('old_pwd');
304 + if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){
305 + this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]);
306 + console.log($("input#js_login_password").val());
307 + }
308 +
309 + $("#find_pwd").find(".user-center span").html("找回密码");
310 +
311 + }
312 +
313 + Core.registerMod('login', Login);
314 +
315 + // Login_before模块
316 + var Login_before = function(modId) {
317 + this.other_login = true;
318 + Module.call(this, modId);
319 + }
320 + // 继承基础模块
321 + Core.inherit(Login_before, Module);
322 +
323 + Login_before.prototype.bind = function() {
324 + var that = this;
325 + that.$c.on('click', '.login_case2', function(e) {
326 + e.preventDefault();
327 + Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that);
328 + return false;
329 + });
330 +
331 + that.$c.on('click', '.login_case_qq', function(e){
332 + e.preventDefault();
333 +
334 + var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id;
335 + if (Core.isFile) {
336 + src = Core.server + src;
337 + }
338 + Core.Data.frame_title = 'QQ登录';
339 + Core.Data.frame_src = src;
340 + Core.updateMod('frame');
341 + return false;
342 + });
343 + }
344 + //使用Login模块的业务逻辑
345 + Login_before.prototype.cache = Login.prototype.cache;
346 + Login_before.prototype.guest_cb = Login.prototype.guest_cb;
347 + Login_before.prototype.show_after = function() {
348 + if (Core.Data.other_login && this.other_login) {
349 + //设置第三方登录显示
350 + for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
351 + this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
352 + }
353 + if(Core.Data.other_login.length == 0){
354 + //没有可用的第三方登录,直接跳转到home界面
355 + Core.updateMod('home');
356 + }
357 + this.other_login = false;
358 + }
359 +
360 + }
361 + Core.registerMod('login_before', Login_before);
362 +
363 + // Register模块
364 + var Register = function(modId) {
365 + this._username = null
366 + this._pwd = null
367 + Module.call(this, modId);
368 + }
369 + // 继承基础模块
370 + Core.inherit(Register, Module);
371 + Register.prototype.bind = function() {
372 + var that = this;
373 + var checkbox = that.$c.find(".checkbox");
374 + var checkbox_type = that.$c.find("i.icon-xuanzhong");
375 +
376 + that.$c.on("click",checkbox,function(e){
377 + if(checkbox.hasClass('checkbox-2')){
378 + checkbox_type.parents(".checkbox").removeClass("checkbox-2");
379 + checkbox_type.addClass("checkbx");
380 + }else{
381 + checkbox_type.parents(".checkbox").addClass("checkbox-2");
382 + checkbox_type.removeClass("checkbx");
383 + }
384 + });
385 +
386 +
387 + that.$c.on('click', '[type=submit],.submit', function(e) {
388 + e.preventDefault();
389 + if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
390 + Core.showTips("账号不能有大写字母!");
391 + }else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){
392 + Core.showTips("密码不能有大写字母!");
393 + }else if(!that.$c.find('.checkbox-2').length>0){
394 + Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
395 + }else{
396 + //如果是游客的话则调用安卓截屏方法
397 + if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){
398 + window.android.screenShot();
399 + }
400 + Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that);
401 + }
402 + return false;
403 + });
404 +
405 + that.$c.on('change','[name="username"]',function(e){
406 + if (this.value == that.$c.find('[name="old_usernmae"]').val()){
407 + that.$c.find('[name="type"]').val(-1)
408 + } else{
409 + that.$c.find('[name="type"]').val(0)
410 + }
411 + })
412 +
413 + }
414 + Register.prototype.set_random = function(){
415 + var that = this;
416 + var random_name = 'yy' + Math.random().toString(36).substr(-2) + new Date().getTime().toString(36).substr(-4)
417 + var random_passwd = Math.random().toString(36).substr(-6)
418 + that.$c.find('[name="username"]').val(random_name)
419 + that.$c.find('[name="old_usernmae"]').val(random_name)
420 + that.$c.find('[name="password"]').val(random_passwd)
421 + that.$c.find('[name="type"]').val(-1)
422 +
423 + }
424 + Register.prototype.cache = Login.prototype.cache;
425 +
426 + Register.prototype.register_cb = function(result) {
427 + Core.updateData(result.msg);
428 + Core.first_user = this.$c.find('[name="username"]').val()
429 + Core.first_password = this.$c.find('[name="password"]').val()
430 + // 显示一个注册成功信息,并跳转到home
431 + this.cache();
432 + Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台');
433 + Core.updateMod('home');
434 + }
435 + Register.prototype.show_after = function() {
436 + this.set_random();
437 + }
438 + Core.registerMod('register', Register);
439 +
440 + // Mibao模块
441 + var Mibao = function(modId) {
442 + Module.call(this, modId);
443 + }
444 + // 继承基础模块
445 + Core.inherit(Mibao, Module);
446 + Mibao.prototype.bind = function() {
447 + var that = this;
448 + that.$c.on('click', '[type=submit],.submit', function(e) {
449 + e.preventDefault();
450 + Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that);
451 + return false;
452 + });
453 + }
454 + Mibao.prototype.mibao_cb = function(data) {
455 + var status_code = data.code;
456 + var msg = data.msg;
457 + if (0 == status_code) {
458 + Core.Data.safe_question = msg.question;
459 + Core.Data.safe_answer = msg.answer;
460 + }
461 + // 显示一个成功信息,并跳转到home
462 + Core.showTips("成功设置密保!", true);
463 + this.isValid = false;
464 + Core.showMod('home');
465 + }
466 + Core.registerMod('mibao', Mibao);
467 +
468 + // 找回密码模块
469 + var Find_pwd = function(modId) {
470 + Module.call(this, modId);
471 + }
472 + Core.inherit(Find_pwd, Module);
473 + Find_pwd.prototype.bind = function() {
474 + var that = this;
475 + var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"];
476 + var pwd_header_back = {
477 + 0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>',
478 + 1 : '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>'
479 + };
480 + var browser = {
481 + versions: function() {
482 + var u = navigator.userAgent,
483 + app = navigator.appVersion;
484 + return { //移动终端浏览器版本信息
485 + trident: u.indexOf('Trident') > -1,
486 + presto: u.indexOf('Presto') > -1,
487 + webKit: u.indexOf('AppleWebKit') > -1,
488 + gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,
489 + mobile: !!u.match(/AppleWebKit.*Mobile.*/),
490 + ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
491 + android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
492 + iPhone: u.indexOf('iPhone') > -1,
493 + iPad: u.indexOf('iPad') > -1,
494 + webApp: u.indexOf('Safari') == -1
495 + };
496 + }(),
497 + language: (navigator.browserLanguage || navigator.language).toLowerCase()
498 + };
499 + if (browser.versions.mobile) { //判断是否是移动设备打开
500 + var ua = navigator.userAgent.toLowerCase();
501 + if (browser.versions.ios) {
502 + //是否在IOS浏览器打开
503 + $("#js_kefu_qq").href = "mqq://im/chat?chat_type=wpa&uin=2739920773&version=1&src_type=web";
504 + $("#js_player").href = "mqq://im/chat?chat_type=wpa&uin=167355030&version=1&src_type=web";
505 + }
506 + if (browser.versions.android) {
507 + //是否在安卓浏览器打开
508 + $("#js_kefu_qq").href = "mqqwpa://im/chat?chat_type=wpa&uin=2739920773";
509 + $("#js_player").href = "mqqwpa://im/chat?chat_type=wpa&uin=167355030";
510 + }
511 + } else {
512 + //否则就是PC浏览器打开
513 + $("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes";
514 + $("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes";
515 + }
516 + that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码
517 + var $self = $(this)
518 + phone = $("#js_findPSW_mobile").val();
519 + Core.ajax({
520 + type:"post",
521 + url:"/sms_validate_code/?mobile="+phone,
522 + success:function(msg){
523 + if(msg.length == 0){//为空(已经发送)
524 + Core.showTips('验证码发送成功,请注意查收', true);
525 + $self.addClass("disabled");
526 + var counter = 60;
527 + var timer = setInterval(function(){
528 + if(counter > 0){
529 + $self.text(counter + "秒再获取");
530 + counter --;
531 + }else{
532 + clearInterval(timer);
533 + $self.text("获取验证码");
534 + $self.removeClass("disabled");
535 + }
536 + },1000);
537 + }else{
538 + Core.showTips(msg, true);
539 + }
540 + }
541 + });
542 + });
543 + that.$c.on("click","#js_findPSW_confirm",function(){
544 + var code = that.$c.find("#js_findPSW_ranks").val(),
545 + accout = $("#js_findPSW_accout").val(),
546 + phoneTest = $("#js_findPSW_mobile").val(),
547 + //iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
548 + iphoneReg = /^1(3|4|5|7|8)\d{9}$/;
549 + if($.trim(accout) == ""){
550 + Core.showTips('请输入账号!', false);
551 + return false;
552 + }
553 + if($.trim(phoneTest) == ""){
554 + Core.showTips('请输入手机号码!', false);
555 + return false;
556 + }
557 + if(!iphoneReg.test(phoneTest)){
558 + Core.showTips('请输入11位手机号码!', false);
559 + return false;
560 + }
561 + if($.trim(code) == ""){
562 + Core.showTips('请输入验证码!', true);
563 + return false;
564 + }
565 + Core.ajax({
566 + type:"post",
567 + url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code,
568 + data:{format:"json"},
569 + dataType:"json",
570 + success:function(res){
571 + if(res.code === 0){
572 + var message = JSON.parse(res.msg);
573 + Core.showTips('验证成功!请设置新密码', true);
574 + that.$c.find("input[name='pwd_code']").val(message.pwd_code);
575 + that.$c.find(".user-center span").html(pwd_header[4]);
576 + that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(3).removeClass("hide").siblings("div").addClass("hide");
577 + that.$c.find("#js_UserName").text(message.username);
578 + $("input[name='loginUserName']").val(message.username);
579 + }else{
580 + Core.showTips(res.msg, true);
581 + }
582 + }
583 + });
584 + });
585 + that.$c.on("click","#returnhome",function(){
586 + that.$c.find(".user-center span").html("找回密码");
587 + });
588 + that.$c.on("click","#js_confirm_resetnewpsw",function(){
589 + var NewPsw = that.$c.find("#js_reset_newpsw").val(),
590 + NewKey = that.$c.find("input[name='pwd_code']").val(),
591 + account = $("input[name='loginUserName']").val();
592 + var names = localStorage.getItem('user_names');
593 + names = JSON.parse(names);
594 + Core.ajax({
595 + type:"post",
596 + url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw,
597 + data:{format:"json"},
598 + dataType:"json",
599 + success:function(res){
600 + if(res.code === 0){
601 + Core.showTips('重置密码成功!', true);
602 + $("input[name='loginPassword']").val(NewPsw);
603 + names[account] = NewPsw;
604 + localStorage.setItem('user_names',JSON.stringify(names));
605 + Core.user_names = names;
606 + $("#js_reset_newpsw").val("");
607 + setTimeout(function() {
608 + Core.updateMod('login');
609 + }, 500);
610 + }else{
611 + Core.showTips(res.msg, true);
612 + }
613 + }
614 + });
615 + });
616 +
617 + var checkbox = that.$c.find(".checkbox");
618 + var checkbox_type = that.$c.find("i.icon-xuanzhong");
619 + var checkboxInput = that.$c.find("input#js_reset_newpsw");
620 +
621 + that.$c.on("click",checkbox,function(e){
622 + if(checkbox.hasClass('checkbox-2')){
623 + checkbox_type.parents(".checkbox").removeClass("checkbox-2");
624 + checkbox_type.addClass("checkbx");
625 + checkboxInput.attr("type","password");
626 + }else{
627 + checkbox_type.parents(".checkbox").addClass("checkbox-2");
628 + checkbox_type.removeClass("checkbx");
629 + checkboxInput.attr("type","text");
630 + }
631 + });
632 +
633 + that.$c.on('click', '.pwd_box .step-tab li a', function(e) {
634 + var ipar = $(this).parent("li"),
635 + iIndex = ipar.index();
636 +
637 + that.$c.find("#js_findPSW_ranks").val("");
638 + $("#js_findPSW_accout").val("");
639 + $("#js_findPSW_mobile").val("");
640 +
641 + that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(iIndex).removeClass("hide").addClass("fn-icon-2").siblings("div").addClass("hide").removeClass("fn-icon-2");
642 + that.$c.find(".user-center span").html(pwd_header[iIndex]);
643 + that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
644 + });
645 +
646 + that.$c.on('click', '.user-center a.back-btn', function(e) {
647 + $(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show();
648 + that.$c.find(".user-center span").html(pwd_header[4]);
649 + that.$c.find(".user-center a").replaceWith(pwd_header_back[0]);
650 + });
651 +
652 + that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) {
653 + $(this).parents(".step-box").hide().siblings(".step-tab").show();
654 + that.$c.find(".user-center span").html(pwd_header[4]);
655 + that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
656 + });
657 +
658 +
659 + that.$c.on('click', '.op-primary', function(e) {
660 +
661 + var $form = that.$c.find('.fn-icon-2');
662 + e.preventDefault();
663 + console.log($form);
664 + Core.ajax_do($form, that.findpwd_cb, that);
665 + return false;
666 + });
667 +
668 +
669 + that.$c.on('click', '.step-tab .function-list-title', function(e) {
670 +
671 + that.$c.find('.step-tab .function-list-content').hide();
672 + $(e.target).parent().next().show();
673 + that.$c.find('.step-tab .function-list-icon').removeClass('function-list-icon-2')
674 + $(this).find('.function-list-icon').addClass('function-list-icon-2').addClass('function-list-icon-1')
675 + if (!$(e.target).parent().next().is('.form')) {
676 + that.$c.find('.next-btn').hide();
677 + } else {
678 + that.$c.find('.next-btn').show();
679 + }
680 + });
681 + }
682 + Find_pwd.prototype.findpwd_cb = function(data) {
683 + var code = data.code;
684 + var msg = data.msg;
685 +
686 + if (0 != code) {
687 + Core.showTips(msg, false);
688 + return;
689 + }
690 + if (typeof msg == 'object') {
691 + // 回答密保
692 + Core.Data.ans_temp = msg;
693 + Core.updateMod('answer_question');
694 + Core.showTips('加载成功.', true,100);
695 + } else {
696 + // 通过邮箱
697 + Core.showTips(msg, true);
698 + Core.showMod("login");
699 + }
700 +
701 + }
702 + Find_pwd.prototype.show_after = function() {
703 + var that = this;
704 + this.$c.find('input[name="username"]').val($('#login input[name="username"]').val());
705 + this.$c.find('.sms').html(Core.Data.mobile_helper_number);
706 +
707 + var kefu = Core.Data.kefu_info,
708 + kefuInfo = JSON.stringify(kefu);
709 + if(typeof(kefuInfo) !== "undefined"){
710 + localStorage.setItem("kefuInfo",kefuInfo);
711 + }else{
712 + that.$c.find(".pwd_txt .default_text").css("display","block");
713 + that.$c.find(".pwd_txt .get_text").html("").css("display","none");
714 + }
715 + var getItem = localStorage.getItem("kefuInfo"),
716 + kefu_info = JSON.parse(getItem),
717 + isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/,
718 + isMob=/^((\+?86)|(\+86))?(13[012356789][0-9]{8}|15[012356789][0-9]{8}|18[02356789][0-9]{8}|147[0-9]{8}|1349[0-9]{7})$/;
719 +
720 + if(kefu_info == ""){
721 + that.$c.find(".pwd_txt .default_text").css("display","block");
722 + that.$c.find(".pwd_txt .get_text").html("").css("display","none");
723 + }else{
724 + that.$c.find(".pwd_txt .default_text").css("display","none");
725 + that.$c.find(".pwd_txt .get_text").html("").css("display","block");
726 + for(var key in kefu_info){
727 + var reg = /\d+/g,
728 + str = kefu_info[key],
729 + ms = str.match(reg),
730 + result = ms.join("-");
731 +
732 + if( isMob.test(result) || isPhone.test(result) ){
733 + var hrefTel = '<a href="tel:'+result+'">'+result+'</a>',
734 + stringTel = str.split(":")[0];
735 + that.$c.find(".pwd_txt .get_text").append('<p>'+stringTel+':'+hrefTel+'</p>');
736 + }else{
737 + that.$c.find(".pwd_txt .get_text").append('<p>'+kefu_info[key]+'</p>');
738 + }
739 + }
740 + }
741 + }
742 + Core.registerMod('find_pwd', Find_pwd);
743 +
744 + // Mibao模块
745 + var Bind = function(modId) {
746 + Module.call(this, modId);
747 + }
748 + // 继承基础模块
749 + Core.inherit(Bind, Module);
750 + Bind.prototype.bind = function() {
751 + var that = this;
752 + that.$c.on('click', '[type=submit],.submit', function(e) {
753 + e.preventDefault();
754 + Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that);
755 + return false;
756 + });
757 + that.$c.on('click', '#bind-mobile', function(e) {
758 + e.preventDefault();
759 + that.$c.find('#bind_phone_form').show();
760 + return false;
761 + });
762 + that.$c.on('click', '#bind-check', function(e) {
763 + e.preventDefault();
764 + Core.ajax_do($(e.target), that.bind_ch, that);
765 + return false;
766 + });
767 + }
768 + Bind.prototype.bind_ch = function(data) {
769 + var code = data.code;
770 + Core.Data.bind_statu = data.msg.bind_statu;
771 + if (data.msg.bind_statu == 1) {
772 + Core.showTips('电话绑定未成功', false);
773 + }
774 + Core.updateMod('bind');
775 + }
776 + Bind.prototype.bind_cb = function(data) {
777 +
778 + var code = data.code;
779 + if (code != 0)
780 + return;
781 + $(".bind_phone_tip").html(Core.Data.bind_mobile_tips);
782 + Core.Data.bind_statu = 1;
783 + Core.Data.bind_phone = this.$c.find('input[name=mobile]').val();
784 + this.$c.find('span.text-info').html(this.$c.find('input[name=mobile]').val());
785 + Core.showTips('通过电话确认后可绑定手机!', true);
786 +
787 + this.$c.find('#bind_phone_form').hide();
788 + this.isValid = false;
789 + setTimeout(function() {
790 + Core.updateMod('bind');
791 + }, 1000);
792 + }
793 + Core.registerMod('bind', Bind);
794 +
795 + //绑定手机模块
796 + var BindMobile = function(modId){
797 + Module.call(this, modId);
798 + }
799 + Core.inherit(BindMobile, Module);
800 + BindMobile.prototype.bind = function(){
801 + var that = this;
802 + var SendMsg = {
803 + mobileReg : function(iphone){
804 + var iphoneReg = /^1(3|4|5|7|8)\d{9}$/,
805 + phoneTest = $(iphone).val();
806 + if($.trim(phoneTest) == ""){
807 + Core.showTips('请输入手机号码!', false);
808 + return false;
809 + }
810 + if(!iphoneReg.test(phoneTest)){
811 + Core.showTips('请输入11位手机号码!', false);
812 + return false;
813 + }
814 + },
815 + send : function(element,iphone){
816 + var self = this,
817 + ele = that.$c;
818 + ele.on("click",element,function(){
819 + var phoneTest = $(iphone).val();
820 + if(self.mobileReg(iphone) == false) return false;
821 + Core.ajax({
822 + type:"post",
823 + url:"/sms_validate_code/?mobile="+phoneTest,
824 + success:function(msg){
825 + if(msg.length == 0){//为空(已经发送)
826 + Core.showTips('验证码发送成功,请注意查收', true);
827 + $(element).addClass("disabled");
828 + var counter = 60;
829 + var timer = setInterval(function(){
830 + if(counter > 0){
831 + $(element).text(counter + "秒再获取");
832 + counter --;
833 + }else{
834 + clearInterval(timer);
835 + $(element).text("获取验证码");
836 + $(element).removeClass("disabled");
837 + }
838 + },1000);
839 + }else{
840 + Core.showTips(msg, true);
841 + }
842 + }
843 + });
844 + });
845 + },
846 + bind : function(element,iphone,rank){
847 + var self = this,
848 + ele = that.$c;
849 + ele.on("click",element,function(){
850 + var code = $(rank).val(),
851 + phoneTest = $(iphone).val();
852 + if(self.mobileReg(iphone) == false) return false;
853 + if($.trim(code) == ""){
854 + Core.showTips('请输入验证码!', true);
855 + return false;
856 + }
857 + Core.ajax({
858 + type:"post",
859 + url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code,
860 + data:{format:"json"},
861 + dataType:"json",
862 + success:function(res){
863 + if(res.code === 0){
864 + Core.showTips('绑定成功!', true);
865 + Core.Data.bind_phone = phoneTest;
866 + setTimeout(function() {
867 + Core.updateMod('home');
868 + }, 500);
869 + }else{
870 + Core.showTips(res.msg, true);
871 + }
872 + }
873 + });
874 + });
875 + }
876 + };
877 + SendMsg.send("#js_getcode","#js_iphone");
878 + SendMsg.bind("#js_conform","#js_iphone","#js_ranks");
879 + }
880 + BindMobile.prototype.show_after = function(){
881 +
882 + }
883 + Core.registerMod('bindMobile', BindMobile);
884 +
885 + //解绑手机模块
886 + var UnBindMobile = function(modId){
887 + Module.call(this, modId);
888 + }
889 + Core.inherit(UnBindMobile, Module);
890 + UnBindMobile.prototype.bind = function(){
891 + var that = this;
892 + that.$c.on("click","#js_unbind_getcode",function(){
893 + var $self = $(this),
894 + phone = Core.Data.bind_phone;
895 + Core.ajax({
896 + type:"post",
897 + url:"/sms_validate_code/?mobile="+phone,
898 + success:function(msg){
899 + if(msg.length == 0){//为空(已经发送)
900 + Core.showTips('验证码发送成功,请注意查收', true);
901 + $self.addClass("disabled");
902 + var counter = 60;
903 + var timer = setInterval(function(){
904 + if(counter > 0){
905 + $self.text(counter + "秒再获取");
906 + counter --;
907 + }else{
908 + clearInterval(timer);
909 + $self.text("获取验证码");
910 + $self.removeClass("disabled");
911 + }
912 + },1000);
913 + }else{
914 + Core.showTips(msg, true);
915 + }
916 + }
917 + });
918 + });
919 + that.$c.on("click","#js_unbind",function(){
920 + var code = $("#js_unbind_ranks").val(),
921 + phoneTest = Core.Data.bind_phone;
922 + if($.trim(code) == ""){
923 + Core.showTips('请输入验证码!', true);
924 + return false;
925 + }
926 + Core.ajax({
927 + type:"post",
928 + url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code,
929 + data:{format:"json"},
930 + dataType:"json",
931 + success:function(res){
932 + if(res.code === 0){
933 + Core.showTips('解绑成功!', true);
934 + Core.Data.bind_phone = "";
935 + $("#js_iphone").val("");
936 + $("#js_ranks").val("");
937 + setTimeout(function() {
938 + Core.updateMod('home');
939 + }, 500);
940 + }else{
941 + Core.showTips(res.msg, true);
942 + }
943 + }
944 + });
945 + });
946 + }
947 + UnBindMobile.prototype.show_after = function(){
948 + var phoneMobile = Core.Data.bind_phone,
949 + getBefore = phoneMobile.substring(0,3),
950 + getAfter = phoneMobile.substring(8,11),
951 + phoneHtml = getBefore+"****"+getAfter;
952 + this.$c.find(".phoneMobile").html(phoneHtml);
953 + }
954 + Core.registerMod('unbindMobile', UnBindMobile);
955 +
956 + //实名认证
957 + var IdentityCard = function(modId) {
958 + Module.call(this, modId);
959 + }
960 + // 继承基础模块
961 + Core.inherit(IdentityCard, Module);
962 + IdentityCard.prototype.bind = function() {
963 + var that = this;
964 + this.$c.on('click', '.submit', function() {
965 + var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证
966 + compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名
967 + compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字
968 + if($.trim(identityCard) == ""){
969 + Core.showTips("请输入身份证号码",false);
970 + return false;
971 + }else if(IsIdCard(identityCard) == false){
972 + Core.showTips("请输入正确的身份证信息",false);
973 + return false;
974 + }else if($.trim(compellationName) == ""){
975 + Core.showTips("请输入姓名",false);
976 + return false;
977 + }else if(!compellationNameReg.test(compellationName)){
978 + Core.showTips("请输入正确的中文姓名",false);
979 + return false;
980 + }
981 + Core.ajax({
982 + type:"post",
983 + url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName,
984 + data:{format:"json"},
985 + dataType:"json",
986 + success:function(res){
987 + if(res.code === 0){
988 + Core.showTips('认证成功!', true);
989 + Core.Data.compellation_name = compellationName;
990 + Core.Data.identity_card = identityCard;
991 + setTimeout(function() {
992 + Core.updateMod('home');
993 + }, 500);
994 + }else{
995 + Core.showTips(res.msg, true);
996 + }
997 + }
998 + });
999 + });
1000 + }
1001 + IdentityCard.prototype.show_after = function(){
1002 +
1003 + }
1004 + Core.registerMod('identityCard', IdentityCard);
1005 +
1006 + //已认证
1007 + var IdentityCardOk = function(modId) {
1008 + Module.call(this, modId);
1009 + }
1010 + // 继承基础模块
1011 + Core.inherit(IdentityCardOk, Module);
1012 + IdentityCardOk.prototype.show_after = function(){
1013 + var compellation_name = Core.Data.compellation_name,//姓名
1014 + identity_card = Core.Data.identity_card;//身份证
1015 + if(compellation_name.length == 2){
1016 + var getBefore = compellation_name.substring(0,1),
1017 + nameHtml = getBefore+"*";
1018 + }else if(compellation_name.length == 3){
1019 + var getBefore = compellation_name.substring(0,1),
1020 + nameHtml = getBefore+"**";
1021 + }else if(compellation_name.length == 4){
1022 + var getBefore = compellation_name.substring(0,2),
1023 + nameHtml = getBefore+"**";
1024 + }else if(compellation_name.length > 4){
1025 + var getBefore = compellation_name.substring(0,2),
1026 + starNum = compellation_name.length,
1027 + star = "";
1028 + for(var i = 0;i<starNum - 2;i++){
1029 + star += "*";
1030 + }
1031 + nameHtml = getBefore+star;
1032 + };
1033 + if(identity_card.length == 15){
1034 + var getBefore = identity_card.substring(0,1),
1035 + getAfter = identity_card.substring(14,15),
1036 + cardHtml = getBefore+"*************"+getAfter;
1037 + }else if(identity_card.length == 18){
1038 + var getBefore = identity_card.substring(0,1),
1039 + getAfter = identity_card.substring(17,18),
1040 + cardHtml = getBefore+"****************"+getAfter;
1041 + };
1042 + this.$c.find(".compellation_name").html(nameHtml);
1043 + this.$c.find(".identity_card").html(cardHtml);
1044 + };
1045 + Core.registerMod('identityCard_ok', IdentityCardOk);
1046 +
1047 + // Mail模块
1048 + var Mail = function(modId) {
1049 + Module.call(this, modId);
1050 + }
1051 + // 继承基础模块
1052 + Core.inherit(Mail, Module);
1053 + Mail.prototype.bind = function() {
1054 + var that = this;
1055 + that.$c.on('click', '[type=submit],.submit', function(e) {
1056 + e.preventDefault();
1057 + Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
1058 + return false;
1059 + });
1060 + that.$c.on('click', '#change-mail-btn', function(e) {
1061 + e.preventDefault();
1062 + that.$c.find('#bind_mail_form').show();
1063 + that.$c.find('#bind-mail-btn').show();
1064 + $(this).hide()
1065 + return false;
1066 + });
1067 + that.$c.on('click', '.op-primary', function(e) {
1068 + e.preventDefault();
1069 + Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
1070 + return false;
1071 + });
1072 + }
1073 + Mail.prototype.mail_cb = function(data) {
1074 + var code = data.code;
1075 + Core.Data.bind_mail_statu = 1;
1076 + Core.Data.mail = this.$c.find('input[name=email]').val();
1077 + this.$c.find('span.text-info').html(this.$c.find('input[name=email]').val());
1078 + Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true);
1079 + this.$c.find('#bind_mail_form').hide();
1080 + this.isValid = false;
1081 + setTimeout(function() {
1082 + Core.updateMod('mail');
1083 + }, 1000);
1084 + }
1085 + Core.registerMod('mail', Mail);
1086 +
1087 + // 重置密码模块
1088 + var Reset_pwd = function(modId) {
1089 + Module.call(this, modId);
1090 + }
1091 + // 继承基础模块
1092 + Core.inherit(Reset_pwd, Module);
1093 +
1094 + Reset_pwd.prototype.bind = function() {
1095 + this.$c.on('click', '.op-primary', function() {
1096 + Core.updateMod("modify_pwd");
1097 + });
1098 + }
1099 + Core.registerMod('reset_pwd', Reset_pwd);
1100 +
1101 + // 回答密保模块
1102 + var Answer_question = function(modId) {
1103 + Module.call(this, modId);
1104 + }
1105 + Core.inherit(Answer_question, Module);
1106 +
1107 + Answer_question.prototype.bind = function() {
1108 + var that = this;
1109 + that.$c.on('click', '.op-primary', function(e) {
1110 + e.preventDefault();
1111 +
1112 + Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that);
1113 + return false;
1114 + });
1115 + }
1116 + Answer_question.prototype.aq_cb = function(data) {
1117 + console.log(data);
1118 + var code = data.code;
1119 + var msg = data.msg;
1120 + var name = localStorage.getItem('user_names');
1121 + Core.updateData(msg);
1122 + Core.Data.new_pwd = msg.password;
1123 +
1124 + name = JSON.parse(name);
1125 + if(name == null){
1126 + name = null;
1127 + }else{
1128 + name[msg.nickname] = msg.password;
1129 + }
1130 +
1131 + localStorage.setItem('user_names',JSON.stringify(name));
1132 + Core.user_names = name;
1133 +
1134 + // 强制更新显示重置密码模块
1135 + Core.updateMod('reset_pwd');
1136 + Core.showTips('重置成功.',true,1000);
1137 + localStorage.setItem('old_pwd',Core.Data.new_pwd);
1138 + }
1139 + Core.registerMod('answer_question', Answer_question);
1140 +
1141 + var Modify_pwd = function(modId) {
1142 + Module.call(this, modId);
1143 + }
1144 + Core.inherit(Modify_pwd, Module);
1145 +
1146 + Modify_pwd.prototype.bind = function() {
1147 + var that = this;
1148 + that.$c.on('click', '[type=submit],.submit', function(e) {
1149 + e.preventDefault();
1150 + if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
1151 + Core.showTips("账号不能有大写字母!");
1152 + }else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){
1153 + Core.showTips("密码不能有大写字母!");
1154 + }else{
1155 + Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
1156 + }
1157 +
1158 + return false;
1159 + });
1160 + that.$c.on('click', '.op-logout', function(e) {
1161 + e.preventDefault();
1162 + // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb,
1163 + // that);
1164 + that.logout_cb();
1165 + return false;
1166 + });
1167 + }
1168 + Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb;
1169 + Modify_pwd.prototype.modify_cb = function(data) {
1170 + var status_code = data.code;
1171 + var msg = data.msg,
1172 + name = this.$c.find('input[name=username]').val(),
1173 + password = this.$c.find('input[name=newpwd]').val(),
1174 + name_ary,index_ary;
1175 +
1176 + var _d = localStorage.getItem('user_names'),
1177 + _i = localStorage.getItem('user_indexs');
1178 + if (_d) {
1179 + name_ary = JSON.parse(_d);
1180 + }
1181 + if (_i) {
1182 + index_ary = JSON.parse(_i);
1183 + }
1184 +
1185 + if (status_code == 0) {
1186 + if(Core.Data.is_guest == 1){
1187 + //游客帐号转正
1188 + localStorage.removeItem('guest_n');
1189 + Core.showTips('升级账号成功!请妥善保管正式账号!', true);
1190 + delete name_ary[Core.Data.nickname];
1191 + localStorage.setItem('user_names', JSON.stringify(name_ary));
1192 + }else{
1193 + Core.showTips('成功修改密码, 请记住新密码。', true);
1194 + name_ary[msg.username] = password;
1195 + localStorage.setItem('user_names', JSON.stringify(name_ary));
1196 + }
1197 +
1198 + var getAcc = Core.Data.nickname;//升级前账号
1199 + var getIndex = $.inArray(getAcc,index_ary);
1200 +
1201 + if(index_ary == null){
1202 + index_ary = [];
1203 + index_ary.unshift(name);
1204 + localStorage.setItem('user_indexs', JSON.stringify(index_ary));
1205 + }else{
1206 + if(getIndex == -1){
1207 + index_ary.unshift(name);
1208 + localStorage.setItem('user_indexs', JSON.stringify(index_ary));
1209 + }else{
1210 + index_ary.splice(getIndex,1);
1211 + index_ary.unshift(msg.username);
1212 + localStorage.setItem('user_indexs', JSON.stringify(index_ary));
1213 + }
1214 + }
1215 + if (name_ary == null) {
1216 + name_ary = {};
1217 + name_ary[name] = password;
1218 + localStorage.setItem('user_names', JSON.stringify(name_ary));
1219 + } else {
1220 + if (!(name in name_ary)) {
1221 + name_ary[name] = password;
1222 + localStorage.setItem('user_names', JSON.stringify(name_ary));
1223 + } else {
1224 + name_ary[msg.username] = password;
1225 + localStorage.setItem('user_names', JSON.stringify(name_ary));
1226 + }
1227 + }
1228 +
1229 + Core.user_names = name_ary;
1230 + Core.user_indexs = index_ary;
1231 +
1232 + Core.Data.is_guest = msg.is_guest;
1233 + Core.Data.username = msg.username;
1234 + Core.Data.nickname = msg.nickname;
1235 + $("input[name='loginUserName']").val(Core.Data.username);
1236 + $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]);
1237 + // 强制更新显示home模块,模块自刷新
1238 + this.isValid = false;
1239 + Core.updateMod('home');
1240 + } else {
1241 + Core.showTips(msg, false);
1242 + }
1243 + }
1244 + Core.registerMod('modify_pwd', Modify_pwd);
1245 +
1246 + var Frame = function(modId) {
1247 + Module.call(this, modId);
1248 + }
1249 + Core.inherit(Frame, Module);
1250 + Frame.prototype.bind = function() {
1251 + var that = this;
1252 + that.$c.on('click', '.scroll-btn', function(e) {
1253 + e.preventDefault();
1254 + e.stopPropagation();
1255 + var $frame = that.$c.find('iframe');
1256 + var h1 = $frame.height();
1257 + var h2 = that.$c.find('.ios_scroll').height();
1258 + var top = parseInt($frame.css('margin-top'));
1259 + if ($(e.currentTarget).hasClass('scroll-up')) {
1260 + if (Math.abs(top) + 20 > (h1 - h2)) return;
1261 + $frame.css('margin-top', top - 50);
1262 + } else {
1263 + if (top >= 0) return;
1264 + $frame.css('margin-top', top + 50);
1265 + }
1266 + });
1267 + }
1268 + Frame.prototype.show_after = function() {
1269 + var that = this;
1270 + var _des = Core.last_mod ? Core.last_mod : 'home';
1271 + var $frame = that.$c.find('iframe');
1272 + var $div = that.$c.find('.ios_scroll');
1273 + var isFix = that.$c.is('.fix, .nofix');
1274 + this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
1275 + $frame[0].onload = function() {
1276 + that.$c.find('#loading_frame').hide();
1277 + if (Core.isAndroid && !isFix) {
1278 + var h1 = $frame.height();
1279 + var h2 = $div.height();
1280 + if (h1 > h2) {
1281 + //android 低版本浏览器,需要提供手动滚动iframe
1282 + that.$c.addClass('fix');
1283 + } else {
1284 + that.$c.addClass('nofix');
1285 + }
1286 + }
1287 + }
1288 + }
1289 + Core.registerMod('frame', Frame);
1290 +
1291 + /**
1292 + * 公告活动记录模块
1293 + */
1294 + var Activity = function(modId) {
1295 + this.myScroll = null;
1296 + this.cur_id = null;
1297 + Module.call(this, modId);
1298 + }
1299 + Core.inherit(Activity, Module);
1300 + Activity.prototype.bind = function() {
1301 + var that = this;
1302 + that.$c.on('click', 'li>a.item', function(e) {
1303 + e.preventDefault();
1304 + /*
1305 + * @todo-list bug fixed in android,the click event fired twice!
1306 + */
1307 + if (Core.cur_mod == 'activity_detail')
1308 + return;
1309 + var $e = $(e.target);
1310 + if (!$e.is('a'))
1311 + $e = $e.parent();
1312 + var id = $e.attr('data-id');
1313 + if (id == that.cur_id) {
1314 + Core.Data.activity_update = false;
1315 + Core.showMod('activity_detail');
1316 + return false;
1317 + }
1318 + that.cur_id = id;
1319 + Core.Data.activity_update = true;
1320 + Core.showTips('加载中...', true, 2000);
1321 + $e.data('path', '/sdk/notice/view/?id=' + id);
1322 + Core.load_json($e, function(data) {
1323 + Core.Data.activity_detail = data;
1324 + Core.showTips('加载完成!', true, 2000);
1325 + Core.updateMod('activity_detail');
1326 + }, that);
1327 + // $.getJSON('/sdk/notice/view/?id=' + id, function(data) {
1328 + // Core.Data.activity_detail = data;
1329 + // Core.showTips('加载完成!', true, 2000);
1330 + // Core.updateMod('activity_detail');
1331 + // });
1332 + return false;
1333 + });
1334 + that.$c.on('click', 'li.more a', function(e) {
1335 + e.preventDefault();
1336 + Core.load_html($(e.target), that.refresh, that);
1337 + return false;
1338 + });
1339 + }
1340 + Activity.prototype.refresh = function() {
1341 + this.myScroll.refresh();
1342 + }
1343 + Activity.prototype.show_after = function() {
1344 + if (this.$c.find('.activity-list').children().length == 0) {
1345 + Core.load_html(this.$c.find('.activity-list'),
1346 + this.act_cb, this);
1347 + }
1348 + var $badge = this.$c.find('.badge');
1349 + if ($badge.length == 0) {
1350 + if (Core.Data.msg_count > 0) {
1351 + var $btn = this.$c.find('.badge_msg');
1352 + $btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html());
1353 + }
1354 + }
1355 + }
1356 + Activity.prototype.act_cb = function(data) {
1357 + this.myScroll = new iScroll('activity_wrapper');
1358 + }
1359 + Core.registerMod('activity', Activity);
1360 +
1361 + /**
1362 + * 公告活动详细模块
1363 + */
1364 + var Activity_detail = function(modId) {
1365 + this.myScroll = null;
1366 + Module.call(this, modId);
1367 + }
1368 + Core.inherit(Activity_detail, Module);
1369 + Activity_detail.prototype.bind = function() {
1370 + var that = this;
1371 + }
1372 + Activity_detail.prototype.show_after = function() {
1373 + var that = this;
1374 + if (Core.Data.activity_update) {
1375 + console.log('new scroller');
1376 + this.myScroll = new iScroll('detail_scroller');
1377 + that.myScroll.refresh();
1378 + this.$c.find('.scroll img').on('load', function(e) {
1379 + console.log('img loaded in scroll');
1380 + that.myScroll.refresh();
1381 + });
1382 + }
1383 + }
1384 +
1385 + Core.registerMod('activity_detail', Activity_detail);
1386 + /**
1387 + * 消息列表模块
1388 + */
1389 + var Message = function(modId) {
1390 + this.myScroll = null;
1391 + this.cur_id = null;
1392 + Module.call(this, modId);
1393 + }
1394 + Core.inherit(Message, Module);
1395 + Message.prototype.bind = function() {
1396 + var that = this;
1397 + that.$c.on('click', 'li>a.item', function(e) {
1398 + e.preventDefault();
1399 + e.stopPropagation();
1400 + /*
1401 + * @todo-list bug fixed in android,the click event fired twice!
1402 + */
1403 + if (Core.cur_mod == 'message_detail')
1404 + return;
1405 + var $e = $(e.currentTarget);
1406 + var id = $e.attr('data-id');
1407 + if (id == that.cur_id) {
1408 + Core.showMod('message_detail');
1409 + return false;
1410 + }
1411 + that.cur_id = id;
1412 + $e.data('path', '/message/' + id + '.html?format=json');
1413 + Core.load_json($e, function(data) {
1414 + Core.Data.message_detail = data;
1415 + Core.showTips('加载完成!', true, 2000);
1416 + Core.updateMod('message_detail');
1417 + }, that);
1418 + return false;
1419 + });
1420 + that.$c.on('click', 'li.more a', function(e) {
1421 + e.preventDefault();
1422 + Core.load_html($(e.target), that.refresh, that);
1423 + return false;
1424 + });
1425 + }
1426 + Message.prototype.refresh = function() {
1427 + this.myScroll.refresh();
1428 + }
1429 + Message.prototype.show_after = function() {
1430 + if (this.$c.find('.message-list').children().length == 0) {
1431 + Core.load_html(this.$c.find('.message-list'), this.act_cb,
1432 + this);
1433 + }
1434 + }
1435 + Message.prototype.act_cb = function(data) {
1436 + this.myScroll = new iScroll('message_wrapper');
1437 + }
1438 + Core.registerMod('message', Message);
1439 +
1440 + /**
1441 + * 消息内容详细模块
1442 + */
1443 + var Message_detail = function(modId) {
1444 + Module.call(this, modId);
1445 + }
1446 + Core.inherit(Message_detail, Module);
1447 +
1448 + Core.registerMod('message_detail', Message_detail);
1449 +
1450 +
1451 + function login_init() {
1452 +
1453 + var names = localStorage.getItem("user_names"),
1454 + userIndexs = localStorage.getItem("user_indexs");
1455 + names = JSON.parse(names);
1456 + if (names == null){
1457 + names = null
1458 + }
1459 + else {
1460 + delete names["undefined"];
1461 + var user_indexs = [];
1462 + for (var item in names){//遍历对象,排序
1463 + if($.inArray(item,user_indexs) == -1){
1464 + user_indexs.unshift(item);
1465 + }
1466 + }
1467 + userIndexs = user_indexs;
1468 + localStorage.setItem('user_indexs', JSON.stringify(userIndexs));
1469 + }
1470 +
1471 + if ($.isArray(names)) {
1472 + //旧版本,直接清除
1473 + var i, l, _names = {};
1474 + for (i = 0, l = names.length; i < l; i++) {
1475 + _names[names[i]] = '';
1476 + }
1477 + names = _names
1478 + localStorage.setItem('user_names', JSON.stringify(names));
1479 + }
1480 + Core.user_names = names;
1481 + Core.user_indexs = userIndexs;
1482 +
1483 + if (names) {
1484 + for (var item in names) {
1485 + Core.first_user = item;
1486 + Core.first_password = names[item];
1487 + break;
1488 + }
1489 + }
1490 + $("input#js_login_username").val(Core.first_user);
1491 + $("input#js_login_password").val(Core.first_password);
1492 + }
1493 + login_init();
1494 + if (window.isGetData == 1) {
1495 + // 兼容旧版本sdk
1496 + $('#loading').hide();
1497 + Core.init();
1498 + } else {
1499 + window.isGetData = 1;
1500 + }
1501 + }
1502 +})();
1503 +
1504 +$(document).on("click", ".mask", function(){
1505 + $("input[type=password]").bind('cut copy paste', function(e){
1506 + return false;
1507 + });
1508 +});
...\ No newline at end of file ...\ No newline at end of file
......
1 -(function(){localStorage.setItem("auto",false);e();function e(e){if(e){$(e).appendTo($("body .mask"))}var t=function(e){Module.call(this,e)};Core.inherit(t,Module);t.prototype.bind=function(){var e=this;e.$c.on("click","input[type=button]",function(e){e.preventDefault();Core.Data.current_pay_channel=null;Core.Data.game_amount=parseInt($(e.target).attr("data"));var t=Core.Data.game_amount/Core.Data.exchange_rate;if(Core.Data.total_amount>=t){Core.Data.youai_star=t;Core.Data.money=Core.Data.youai_star/Core.Data.rate;Core.updateMod("exchange")}else{Core.Data.money=t/Core.Data.rate;Core.Data.youai_star=t;Core.updateMod("channel_list")}return false})};Core.registerMod("home",t);var a=function(e){var t=e.code;var a=e.msg;if("object"!=typeof a){Core.showTips(a,false);return}var r=$("#"+Core.cur_mod);var o=r.find('input[name="pay_user"]');if(o.length==0){tpl='成功使用<span class="text-info">{{=it.youai_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}},{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'}else{tpl='已向<span class="text-info">'+o.val()+'</span>发送代付<span class="text-info">{{=it.youai_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}}.'}var i=doT.template(tpl);var n=i({youai_star:a.youai_star,amount:a.amount,game_unit_name:Core.Data.game_unit_name,game_amount:a.game_amount,game_unit:Core.Data.game_unit});Core.Data.success_msg=n;Core.Data.trade_id=a.trade_id;Core.showTips("成功提交!",true,2e3);Core.updateMod("pay_result")};var r=function(e){Module.call(this,e)};Core.inherit(r,Module);r.prototype.bind=function(){var e=this;e.$c.on("click","input[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),a,e);return false})};Core.registerMod("exchange",r);var o=function(e){Module.call(this,e)};Core.inherit(o,Module);o.prototype.bind=function(){var e=this;e.$c.on("click","input[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),a,e);return false})};Core.registerMod("pay_for",o);var i=function(e){Module.call(this,e)};Core.inherit(i,Module);Core.registerMod("pay_result",i);var n=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(n,Module);n.prototype.bind=function(){var e=this;e.$c.on("click",".channel_list a.channel",function(e){e.preventDefault();var t=false;var a=Core.Data.game_pay_channel_list;var r=$(e.target);var o=r.attr("data-id");for(var i in a){var n=a[i];if(o==n.id){if(Core.Data.current_pay_channel!=n){t=true}Core.Data.current_pay_channel=n;break}}if(t){Core.updateMod("pay")}else{Core.showMod("pay")}return false})};n.prototype.refresh=function(){this.myScroll.refresh()};n.prototype.show_after=function(){Core.auto_click=true;if(!this.myScroll){this.myScroll=new iScroll("channel_list_wrapper")}Core.Data.frame_src=""};Core.registerMod("channel_list",n);var s=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(s,Module);s.prototype.bind=function(){var e=this;e.$c.on("click","input[type=submit]",function(t){t.preventDefault();var a=e.$c.find(".require_input input[type=text]").length>0;if(a&&e.check()){Core.ajax_do(e.$c.find(".ajax"),e.paycomfirm_cb,e)}else if(!a){Core.ajax_do(e.$c.find(".ajax"),e.paycomfirm_cb,e)}return false});e.$c.on("change",".card_amount",function(t){var a=parseInt($(t.target).val());if(a>Core.Data.money){var r=a-Core.Data.money;e.$c.find(".select-info").html("注:充值剩余的"+r+"元将保存为账户的游爱星.")}})};s.prototype.show_after=function(){var e=this;if(Core.auto_click){e.$c.find("input[type='submit'].zhifubaoBtn").click();Core.auto_click=false}$("#alert").hide();if(!this.myScroll){this.myScroll=new iScroll("pay_panel_wrapper")}};s.prototype.check=function(){var e=true,t=this;t.$c.find(".require_input input").each(function(){var t=$(this).val();if(""==t){Core.showTips("请输入"+$(this).attr("title"),false,2e3);e=false;return false}else{var a=$(this).attr("format");if(a){var r=RegExp(a,"g");if(""!=t.replace(r,"")){Core.showTips($(this).attr("title")+"输入格式不正确"+$(this).attr("placeholder"),false,2e3);e=false;return false}}}});if(!e)return false;var a=$(".require_input .card_amount").val();a=parseFloat(a);if(a==null||a==NaN||isNaN(a)){Core.showTips("请选择金额",false,2e3);return false}Core.Data.post_data={};t.$c.find("input[type='hidden'],input[type='text'],input[type='password'],select").each(function(){var e=$(this).attr("name");var t=$(this).val();Core.Data.post_data[e]=t});Core.Data.money=a;$("#pay_form input[name=money]").val(a);console.log(Core.Data.post_data);return true};s.prototype.refresh=function(){this.myScroll.refresh()};s.prototype.paycomfirm_cb=function(e){var t=e.code;var a=e.msg;if("object"!=typeof a){Core.showTips(a,false);return}var r=a.pay_param;if(r){if(r.next_url&&r.next_url!=""){Core.showTips("正在跳转请稍等...",true,1e3);Core.Data.frame_title="充值";Core.Data.frame_src=r.next_url;Core.updateMod("frame");return}else if(r.action_url&&r.action_url!=""){var o=r.action_url;var i=r.method;var n="";if(o.indexOf("?")!=-1){n=o.split("?")[1];o=o.split("?")[0]}var s=$("<form></form>");if(!i)i="get";s.attr("method",i);s.attr("action",o);n=n.split("&");for(var l in n){var u=n[l];s.append('<input type="hidden" name="'+u.split("=")[0]+'" value="'+unescape(u.split("=")[1])+'"/>')}Core.showTips("<h3>正在跳转请稍等...</h3>");s.submit();return}}var c="",f="";if(Core.Data.current_pay_channel){f=Core.Data.current_pay_channel.success_msg;c=Core.Data.current_pay_channel.name}else{var p=$('input[name="pay_user"]');if(p.length==0){f="使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示."}else{f="已向"+p.val()+"发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}."}}var d=doT.template(f);var h=d({pay_channel_name:c,youai_star:a.youai_star,amount:a.amount,game_unit_name:Core.Data.game_unit_name,game_amount:a.game_amount,game_unit:Core.Data.game_unit});Core.Data.success_msg=h;Core.Data.trade_id=a.trade_id;Core.showTips("成功提交!",true,2e3);Core.updateMod("pay_result")};Core.registerMod("pay",s);var l=function(e){Module.call(this,e)};Core.inherit(l,Module);l.prototype.bind=function(){var e=this;e.$c.on("click",".btn-payfor",function(t){t.preventDefault();Core.ajax_do(e.$c.find("form.ajax"),e.payproxy_cb,e);return false});e.$c.on("click",".btn-undo",function(t){t.preventDefault();Core.ajax_do(e.$c.find("a.ajax"),e.payproxy_cb,e);return false})};l.prototype.payproxy_cb=function(e){var t=e.code;var a=e.msg;Core.showTips(a,true,3e3);if(t==0){$("#proxy_scroller .trade-list").empty();setTimeout(function(){Core.showMod("proxy_record")},2e3)}};Core.registerMod("pay_proxy",l);var u=function(e){Module.call(this,e)};Core.inherit(u,Module);u.prototype.bind=function(){var e=this;e.$c.on("click",".submit",function(t){t.preventDefault();if(e.$c.find("textarea").val().length>150){Core.showTips("问题描述超出了150个字符!",false);return false}Core.ajax_do(e.$c.find(".ajax"),e.sq_cb,e);return false})};u.prototype.sq_cb=function(e){Core.showTips(e.msg,true,2e3);this.isValid=false;this.$c.find("textarea").val("");Core.showMod("pay")};Core.registerMod("pay_feedback",u);var c=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(c,Module);c.prototype.bind=function(){var e=this;e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};c.prototype.refresh=function(){this.myScroll.refresh()};c.prototype.show_after=function(){if(this.$c.find(".trade-list").children().length==0){Core.load_html(this.$c.find(".trade-list"),this.tr_cb,this)}var e=Core.last_mod?Core.last_mod:"home";this.$c.find("a.btn.pull-left").attr("href","#"+e)};c.prototype.tr_cb=function(e){if(!this.myScroll){this.myScroll=new iScroll("wrapper")}};Core.registerMod("trade_record",c);var f=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(f,Module);f.prototype.bind=function(){var e=this;e.$c.on("click",".op-payfor",function(t){t.preventDefault();var a=$(t.target);var r=a.attr("data-id");a.data("path","/pay/proxy/pay/?id="+r+"&format=json");Core.load_json(a,function(e){Core.Data.temp=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("pay_proxy")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};f.prototype.refresh=function(){this.myScroll.refresh()};f.prototype.show_after=function(){if(this.$c.find(".trade-list").children().length==0){Core.load_html(this.$c.find(".trade-list"),this.pr_cb,this)}if(Core.last_mod=="pay_proxy")return;var e=Core.last_mod?Core.last_mod:"home";this.$c.find("a.btn.pull-left").attr("href","#"+e)};f.prototype.pr_cb=function(e){if(!this.myScroll){this.myScroll=new iScroll("proxy_wrapper")}};Core.registerMod("proxy_record",f);var p=function(e){Module.call(this,e)};Core.inherit(p,Module);p.prototype.bind=function(){var e=this;e.$c.on("click","#share a",function(e){e.preventDefault();var t=$(e.target);var a=[];var r=t.attr("title");var o=t.attr("href");var i=Core.Data.game_icon;var n=Core.Data.invite_url;var s="title="+encodeURIComponent("我在玩"+Core.Data.game_name+",游戏很棒,一起来玩吧!");n="url="+encodeURIComponent(n);if(t.hasClass("s_tqq")){a.push("c=share");a.push("a=index")}if(t.hasClass("s_qzone")){i="pics="+encodeURIComponent(i)}else{i="pic="+encodeURIComponent(i)}a.push(i);a.push(n);a.push(s);var l=t.attr("data-appkey");if(l){l="appkey="+l;a.push(l)}o=o+"?"+a.join("&");Core.Data.frame_title=r+"分享";Core.Data.frame_src=o;Core.updateMod("frame")})};p.prototype.if_cb=function(e){Core.showTips(e.msg,e.code==0?true:false);this.$c.find("input[type=email]").val("")};p.prototype.show_after=function(){var e=this;if(Core.isWeixin){e.$c.find("#share_weixin").show();e.$c.find("#share").hide()}else{e.$c.find("#share_weixin").hide();e.$c.find("#share").show()}};Core.registerMod("invite_friend",p);var d=function(e){this.myScroll=null;Module.call(this,e)};Core.inherit(d,Module);d.prototype.bind=function(){var e=this;e.$c.on("click","ol.other-pay li a",function(e){e.preventDefault();var t=$(e.target);while(!t.is("a"))t=t.parent();var a=t.attr("href");window.open(a)})};Core.registerMod("other",d);var h=function(e){Module.call(this,e)};Core.inherit(h,Module);h.prototype.bind=function(){var e=this;e.$c.on("click",".scroll-btn",function(t){t.preventDefault();t.stopPropagation();var a=e.$c.find("iframe");var r=a.height();var o=e.$c.find(".ios_scroll").height();var i=parseInt(a.css("margin-top"));if($(t.currentTarget).hasClass("scroll-down")){if(Math.abs(i)+20>r-o)return;a.css("margin-top",i-50)}else{if(i>=0)return;a.css("margin-top",i+50)}})};h.prototype.show_after=function(){var e=this;var t=Core.last_mod?Core.last_mod:"home";var a=e.$c.find("iframe");var r=e.$c.find(".ios_scroll");var o=false;this.$c.find("a.btn.pull-left").attr("href","#"+t);var i=0;a[0].onload=function(){e.$c.find("#loading_frame").hide();$("#alert").hide();if(Core.isAndroid&&!o){var t=a.height();var i=r.height();if(t>i){e.$c.addClass("fix");o=true}else{e.$c.addClass("nofix")}}}};Core.registerMod("frame",h);var m=function(e){this.myScroll=null;this.cur_id=null;Module.call(this,e)};Core.inherit(m,Module);m.prototype.bind=function(){var e=this;e.$c.on("click","li>a.item",function(t){t.preventDefault();t.stopPropagation();if(Core.cur_mod=="question_detail")return;var a=$(t.target);while(!a.is("a"))a=a.parent();var r=a.attr("data-id");if(r==e.cur_id){Core.Data.question_update=false;Core.showMod("question_detail");return false}e.cur_id=r;Core.Data.question_update=true;a.data("path","/user/question/view?id="+r+"&format=json");Core.load_json(a,function(e){Core.Data.question_detail=e;Core.showTips("加载完成!",true,2e3);Core.updateMod("question_detail")},e);return false});e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false})};m.prototype.refresh=function(){this.myScroll.refresh()};m.prototype.show_after=function(){if(this.$c.find(".kefu-list").children().length==0){$ol=this.$c.find(".kefu-list");if($ol.attr("data-params-url").indexOf("undefined")==-1)Core.load_html(this.$c.find(".kefu-list"),this.act_cb,this)}this.isValid=false};m.prototype.act_cb=function(e){if(!this.myScroll){this.myScroll=new iScroll("kefu_wrapper")}};Core.registerMod("kefu_list",m);var _=function(e){Module.call(this,e)};Core.inherit(_,Module);_.prototype.bind=function(){var e=this;e.$c.on("click","[type=submit]",function(t){t.preventDefault();Core.ajax_do(e.$c.find(".ajax"),e.modify_cb,e);return false})};_.prototype.modify_cb=function(e){var t=e.code;var a=e.msg;if(t==0){if(Core.Data.is_guest==1){localStorage.removeItem("guest_n");Core.showTips("账号升级成功, 请记住登录名和新密码。",true)}if(!Core.user_names)Core.user_names={};Core.user_names[a.username]=this.$c.find("input[name=newpwd]").val();localStorage.setItem("user_names",JSON.stringify(Core.user_names));Core.Data.is_guest=a.is_guest;Core.Data.username=a.username;Core.Data.nickname=a.nickname;this.isValid=false;Core.updateMod("home")}else{Core.showTips(a,false)}};Core.registerMod("modify_pwd",_);var C=function(e){this.myScroll=null;this.$score=null;Module.call(this,e)};Core.inherit(C,Module);C.prototype.bind=function(){var e=this;e.$c.on("click","li.more a",function(t){t.preventDefault();Core.load_html($(t.target),e.refresh,e);return false});e.$c.on("click","li p > a",function(t){t.preventDefault();e.$score=$(t.target);Core.ajax_do($(t.target),e.jude_cb,e);return false})};C.prototype.jude_cb=function(e){Core.showTips(e.msg);if(e.code==0){var t=this.$score.html();this.$score.parent().empty().html('您的评价:&nbsp;&nbsp;<span class="btn">'+t+"</span>")}};C.prototype.refresh=function(){var e=this;setTimeout(function(){e.myScroll.refresh()},300)};C.prototype.show_after=function(){if(Core.Data.question_update){if(this.myScroll){this.myScroll.destory()}else{this.myScroll=new iScroll("question_detail_scroller")}}};Core.registerMod("question_detail",C);function y(){if(Core.Data.enter_game_amount>0){Core.Data.enter_amount=Core.Data.enter_game_amount/Core.Data.exchange_rate;Core.Data.pay_again=0}if(Core.Data.enter_game_amount>0&&Core.Data.enter_amount<=Core.Data.total_amount){Core.start_page="exchange";Core.Data.game_amount=Core.Data.enter_game_amount;Core.Data.youai_star=Core.Data.enter_amount;Core.Data.money=Core.Data.youai_star/Core.Data.rate}else if(Core.Data.enter_game_amount>0){Core.start_page="channel_list";Core.Data.game_amount=Core.Data.enter_game_amount;Core.Data.youai_star=Core.Data.enter_amount;Core.Data.money=Core.Data.youai_star/Core.Data.rate}else{}}function v(){var e=Core.Data.game_icon;var t=Core.Data.invite_url;var a="一起玩"+Core.Data.game_name;var r="我在玩"+Core.Data.game_name+",游戏很棒,一起来玩吧!";try{WeixinJSBridge.on("menu:share:timeline",function(o){var i={appid:"wx1d2b5cd6b11aaf3d",img_url:e,img_width:"120",img_height:"120",link:t,desc:r,title:a};alert("shareTimeline");WeixinJSBridge.invoke("shareTimeline",i,function(e){WeixinJSBridge.log(e.err_msg)})});WeixinJSBridge.on("menu:share:weibo",function(){WeixinJSBridge.invoke("shareWeibo",{content:r,url:t},function(e){})});WeixinJSBridge.on("menu:share:appmessage",function(o){WeixinJSBridge.invoke("sendAppMessage",{appid:"wx1d2b5cd6b11aaf3d",img_url:e,img_width:"120",img_height:"120",link:t,desc:r,title:a},function(e){})})}catch(e){alert(e)}}if(typeof WeixinJSBridge=="undefined"){if(document.addEventListener){document.addEventListener("WeixinJSBridgeReady",v,false)}else if(document.attachEvent){document.attachEvent("WeixinJSBridgeReady",v);document.attachEvent("onWeixinJSBridgeReady",v)}}else{v()}if(window.isGetData==1){y();$("#loading").hide();Core.init()}else{window.isGetData=1;window.initFunc=y}}})();
...\ No newline at end of file ...\ No newline at end of file
1 +(function() {
2 + localStorage.setItem('auto', false);
3 + // 加载页面内容到body下
4 +
5 + init_data();
6 +
7 + function init_data(response) {
8 + // 注册页面所有模块
9 + if (response) {
10 + $(response).appendTo($('body .mask'));
11 + }
12 + /**
13 + * 首页模块
14 + */
15 + var Home = function(modId) {
16 + Module.call(this, modId);
17 + }
18 + Core.inherit(Home, Module);
19 + Home.prototype.bind = function() {
20 + $('#loading').click(function(){$(this).hide()})
21 + var that = this;
22 + that.$c.on('click', 'input[type=button]', function(e) {
23 + // 更新要兑换的元宝
24 + e.preventDefault();
25 + Core.Data.current_pay_channel = null;
26 + Core.Data.game_amount = parseInt($(e.target).attr('data'));
27 + var youai_star_need = Core.Data.game_amount / Core.Data.exchange_rate;
28 + if (Core.Data.total_amount >= youai_star_need) {
29 + // 用户游爱星足够兑换,进入兑换模块
30 + Core.Data.youai_star = youai_star_need;
31 + Core.Data.money = Core.Data.youai_star / Core.Data.rate;
32 + Core.updateMod('exchange');
33 + } else {
34 + // 用户游爱星不足够兑换,进入充值渠道列表
35 + Core.Data.money = youai_star_need / Core.Data.rate;
36 + Core.Data.youai_star = youai_star_need;
37 + Core.updateMod('channel_list');
38 + }
39 + return false;
40 + });
41 + }
42 + Home.prototype.show_after = function(){
43 +
44 + setTimeout(function(){
45 + $('#back-btn').show();
46 + },3000)
47 + }
48 + Core.registerMod('home', Home);
49 +
50 + /**
51 + * 兑换和发起代付的回调方法
52 + */
53 + var payconfirm_cb = function(data) {
54 + var code = data.code;
55 + var msg = data.msg;
56 + if ('object' != typeof (msg)) {
57 + Core.showTips(msg, false);
58 + return;
59 + }
60 + var $cur_mod = $('#' + Core.cur_mod);
61 + var ele_pay_user = $cur_mod.find('input[name="pay_user"]');
62 + if (ele_pay_user.length == 0) {
63 + tpl = '成功使用<span class="text-info">{{=it.youai_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}},{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.';
64 + } else {
65 + tpl = '已向<span class="text-info">'
66 + + ele_pay_user.val()
67 + + '</span>发送代付<span class="text-info">{{=it.youai_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}}.';
68 + }
69 + var doTpl = doT.template(tpl);
70 + var success_msg = doTpl({
71 + "youai_star" : msg.youai_star,
72 + "amount" : msg.amount,
73 + "game_unit_name" : Core.Data.game_unit_name,
74 + "game_amount" : msg.game_amount,
75 + "game_unit" : Core.Data.game_unit
76 + });
77 + Core.Data.success_msg = success_msg;
78 + Core.Data.trade_id = msg.trade_id;
79 + Core.showTips('成功提交!', true, 2000);
80 + Core.updateMod('pay_result');
81 + }
82 +
83 + /**
84 + * 兑换模块
85 + */
86 + var Exchange = function(modId) {
87 + Module.call(this, modId);
88 + }
89 + Core.inherit(Exchange, Module);
90 + Exchange.prototype.bind = function() {
91 + var that = this;
92 + that.$c.on('click', 'input[type=submit]', function(e) {
93 + e.preventDefault();
94 + Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that);
95 + return false;
96 + });
97 + // that.$c.on('click', '#change_vc1', function(e) {
98 + // e.preventDefault();
99 + // var num = new Date().getTime();
100 + // var rand = Math.round(Math.random() * 10000);
101 + // num = num + rand;
102 + // if ($("#vdimgck1")[0]) {
103 + // $("#vdimgck1")[0].src = "/validate_code/?tag=" + num;
104 + // }
105 + // return false;
106 + // });
107 + }
108 + Core.registerMod('exchange', Exchange);
109 +
110 + /**
111 + * 发起代付模块
112 + */
113 + var Pay_for = function(modId) {
114 + Module.call(this, modId);
115 + }
116 + Core.inherit(Pay_for, Module);
117 + Pay_for.prototype.bind = function() {
118 + var that = this;
119 + that.$c.on('click', 'input[type=submit]', function(e) {
120 + e.preventDefault();
121 + Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that);
122 + return false;
123 + });
124 + }
125 + Core.registerMod('pay_for', Pay_for);
126 +
127 + /**
128 + * 显示结果模块
129 + */
130 + var Pay_result = function(modId) {
131 + Module.call(this, modId);
132 + }
133 + Core.inherit(Pay_result, Module);
134 + Core.registerMod('pay_result', Pay_result);
135 +
136 + /**
137 + * 充值方式列表模块
138 + */
139 + var Channel_list = function(modId) {
140 + this.myScroll = null;
141 + Module.call(this, modId);
142 + }
143 + Core.inherit(Channel_list, Module);
144 + Channel_list.prototype.bind = function() {
145 + var that = this;
146 + that.$c.on('click', '.channel_list a.channel', function(e) {
147 +
148 + e.preventDefault();
149 + var reload = false;
150 + var list = Core.Data.game_pay_channel_list;
151 + var $c = $(e.target);
152 + var id = $(this).attr('data-id');
153 + for ( var index in list) {
154 + var item = list[index];
155 + if (id == item.id) {
156 + if (Core.Data.current_pay_channel != item) {
157 + reload = true;
158 + }
159 + Core.Data.current_pay_channel = item;
160 + // Core.Data.game_amount =
161 + // null;
162 + break;
163 + }
164 + }
165 + if (reload) {
166 + Core.updateMod('pay');
167 + } else {
168 + Core.showMod('pay');
169 + }
170 +
171 + return false;
172 + });
173 + }
174 +
175 + Channel_list.prototype.refresh = function() {
176 + this.myScroll.refresh();
177 + }
178 + Channel_list.prototype.show_after = function() {
179 + Core.auto_click = true
180 + if (!this.myScroll){
181 + this.myScroll = new iScroll('channel_list_wrapper');
182 + }
183 + Core.Data.frame_src = ''
184 +
185 + }
186 +
187 + Core.registerMod('channel_list', Channel_list);
188 +
189 + /**
190 + * 充值模块
191 + */
192 + var Pay = function(modId) {
193 + this.myScroll = null;
194 + Module.call(this, modId);
195 + }
196 + Core.inherit(Pay, Module);
197 + Pay.prototype.bind = function() {
198 + var that = this;
199 + that.$c.on('click', 'input[type=submit]', function(e) {
200 + e.preventDefault();
201 + var isText = that.$c.find('.require_input input[type=text]').length > 0;
202 + if (isText && that.check()) {
203 + Core.ajax_do(that.$c.find('.ajax'),
204 + that.paycomfirm_cb, that);
205 + } else if (!isText) {
206 + Core.ajax_do(that.$c.find('.ajax'),
207 + that.paycomfirm_cb, that);
208 + }
209 + return false;
210 + });
211 + that.$c.on('change', '.card_amount', function(e){
212 + var value = parseInt($(e.target).val());
213 + if(value > Core.Data.money){
214 + //显示出余额提示
215 + var m = value - Core.Data.money;
216 + that.$c.find('.select-info').html('注:充值剩余的' + m + '元将保存为账户的游爱星.');
217 + }
218 + });
219 + }
220 + Pay.prototype.show_after = function(){
221 + var that = this;
222 + if (Core.auto_click){
223 + that.$c.find("input[type='submit'].zhifubaoBtn").click();
224 + Core.auto_click = false
225 + }
226 + $('#alert').hide();
227 +
228 + if (!this.myScroll){
229 + this.myScroll = new iScroll('pay_panel_wrapper');
230 + }
231 + }
232 + Pay.prototype.check = function() {
233 + var check = true, that = this;
234 + that.$c.find(".require_input input").each(
235 + function() {
236 + var value = $(this).val();
237 + if ('' == value) {
238 + Core.showTips("请输入" + $(this).attr('title'), false,
239 + 2000);
240 + check = false;
241 + return false;
242 + } else {
243 + var format = $(this).attr('format');
244 + if (format) {
245 + var re = RegExp(format, 'g')
246 + if ('' != value.replace(re, "")) {
247 + Core.showTips($(this).attr('title')
248 + + "输入格式不正确"
249 + + $(this).attr('placeholder'),
250 + false, 2000);
251 + check = false;
252 + return false;
253 + }
254 + }
255 + }
256 + });
257 + if (!check)
258 + return false;
259 + var money = $(".require_input .card_amount").val();
260 + money = parseFloat(money);
261 + if (money == null || money == NaN || isNaN(money)) {
262 + Core.showTips("请选择金额", false, 2000);
263 + return false;
264 + }
265 + Core.Data.post_data = {};
266 + that.$c
267 + .find(
268 + "input[type='hidden'],input[type='text'],input[type='password'],select")
269 + .each(function() {
270 + var name = $(this).attr('name');
271 + var value = $(this).val();
272 + Core.Data.post_data[name] = value;
273 + });
274 + // 更新当前金钱状态
275 + Core.Data.money = money;
276 + $("#pay_form input[name=money]").val(money);
277 + console.log(Core.Data.post_data);
278 + return true;
279 + }
280 +
281 + Pay.prototype.refresh = function() {
282 + this.myScroll.refresh();
283 + }
284 +
285 + Pay.prototype.paycomfirm_cb = function(data) {
286 + var code = data.code;
287 + var msg = data.msg;
288 + if ('object' != typeof (msg)) {
289 + Core.showTips(msg, false);
290 + return;
291 + }
292 +
293 + var pay_param = msg.pay_param;
294 +
295 + if (pay_param) {
296 + if (pay_param.next_url && pay_param.next_url != "") {
297 + Core.showTips('正在跳转请稍等...', true, 1000);
298 + Core.Data.frame_title = "充值";
299 + Core.Data.frame_src = pay_param.next_url;
300 + Core.updateMod('frame');
301 + return;
302 + } else if (pay_param.action_url && pay_param.action_url != "") {
303 +
304 + var action_url = pay_param.action_url;
305 + var method = pay_param.method;
306 + var params = "";
307 + if (action_url.indexOf("?") != -1) {
308 + params = action_url.split("?")[1];
309 + action_url = action_url.split("?")[0];
310 + }
311 + var go_form = $("<form></form>");
312 + if (!method)
313 + method = 'get';
314 +
315 + go_form.attr("method", method);
316 + go_form.attr("action", action_url);
317 + params = params.split("&");
318 + for ( var i in params) {
319 + var item = params[i]
320 + go_form.append('<input type="hidden" name="'
321 + + item.split("=")[0] + '" value="'
322 + + unescape(item.split("=")[1]) + '"/>');
323 +
324 + }
325 +
326 + Core.showTips('<h3>正在跳转请稍等...</h3>');
327 + go_form.submit();
328 + return;
329 + }
330 + }
331 + var pay_channel_name = '', tpl = "";
332 + if (Core.Data.current_pay_channel) {
333 + tpl = Core.Data.current_pay_channel.success_msg;
334 + pay_channel_name = Core.Data.current_pay_channel.name
335 + } else {
336 + var ele_pay_user = $('input[name="pay_user"]');
337 + if (ele_pay_user.length == 0) {
338 + tpl = '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.';
339 + } else {
340 + tpl = '已向'
341 + + ele_pay_user.val()
342 + + '发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.';
343 + }
344 + }
345 + var doTpl = doT.template(tpl);
346 + var success_msg = doTpl({
347 + "pay_channel_name" : pay_channel_name,
348 + "youai_star" : msg.youai_star,
349 + "amount" : msg.amount,
350 + "game_unit_name" : Core.Data.game_unit_name,
351 + "game_amount" : msg.game_amount,
352 + "game_unit" : Core.Data.game_unit
353 + });
354 + Core.Data.success_msg = success_msg;
355 + Core.Data.trade_id = msg.trade_id;
356 + Core.showTips('成功提交!', true, 2000);
357 + Core.updateMod('pay_result');
358 + }
359 + Core.registerMod('pay', Pay);
360 +
361 + // /**
362 + // * 确认付款(提交表单)模块
363 + // */
364 + // var Pay_confirm = function(modId){
365 + // Module.call(this, modId);
366 + // }
367 + // Core.inherit(Pay_confirm, Module);
368 + // Pay_confirm.prototype.bind = function(){
369 + // var that = this;
370 + // that.$c.on('click', '[type=submit]', function(e) {
371 + // e.preventDefault();
372 + // Core.ajax_do(that.$c.find('.ajax'),
373 + // that.paycomfirm_cb, that);
374 + // return false;
375 + // });
376 + // that.$c.on('click', '#change_vc', function(e){
377 + // e.preventDefault();
378 + // var num = new Date().getTime();
379 + // var rand = Math.round(Math.random() * 10000);
380 + // num = num + rand;
381 + // if ($("#vdimgck")[0]) {
382 + // $("#vdimgck")[0].src = "/validate_code/?tag=" + num;
383 + // }
384 + // return false;
385 + // });
386 + // that.$c.on('click', '.checkbox', function(e){
387 + // var chked = e.target.checked;
388 + // var proxy_pay = that.$c.find("div.proxy_pay");
389 + // var txt_pay_user =
390 + // that.$c.find("input[data-key='pay_user']");
391 + // if (chked){
392 + // txt_pay_user.attr('name', 'pay_user');
393 + // txt_pay_user.attr('required', 'required');
394 + // proxy_pay.show();
395 + // }else{
396 + // txt_pay_user.removeAttr('name');
397 + // txt_pay_user.removeAttr('required');
398 + // proxy_pay.hide();
399 + // }
400 + // });
401 + // }
402 + //
403 + // Pay_confirm.prototype.paycomfirm_cb = function(data){
404 + // var code = data.code;
405 + // var msg = data.msg;
406 + // if ('object' != typeof(msg)){
407 + // Core.showTips(msg, false);
408 + // return;
409 + // }
410 + //
411 + // var pay_param = msg.pay_param;
412 + // if (pay_param){
413 + // if (pay_param.next_url && pay_param.next_url!=""){
414 + // Core.showTips('<h3>正在跳转请稍等...</h3>');
415 + // document.location = pay_param.next_url;
416 + // return;
417 + // }else if(pay_param.action_url &&
418 + // pay_param.action_url!=""){
419 + // var action_url = pay_param.action_url;
420 + // var method = pay_param.method;
421 + // var params = "";
422 + // if(action_url.indexOf("?")!=-1){
423 + // params = action_url.split("?")[1];
424 + // action_url = action_url.split("?")[0];
425 + // }
426 + // var go_form = $("<form></form>");
427 + // if (!method)
428 + // method = 'get';
429 + //
430 + // go_form.attr("method", method);
431 + // go_form.attr("action", action_url);
432 + // params = params.split("&");
433 + // for(var item in params){
434 + // go_form.appendChild('<input type="hidden"
435 + // name="'+item.split("=")[0]+'"
436 + // value="'+escape(item.split("=")[1])+'"/>');
437 + // }
438 + //
439 + // Core.showTips('<h3>正在跳转请稍等...</h3>');
440 + // go_form.submit();
441 + // return;
442 + // }
443 + // }
444 + // var pay_channel_name = '', tpl = "";
445 + // if (Core.Data.current_pay_channel){
446 + // tpl = Core.Data.current_pay_channel.success_msg;
447 + // pay_channel_name = current_pay_channel.name
448 + // }else{
449 + // var ele_pay_user = $('input[name="pay_user"]');
450 + // if(ele_pay_user.length == 0){
451 + // tpl =
452 + // '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.';
453 + // }else{
454 + // tpl =
455 + // '已向'+ele_pay_user.val()+'发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.';
456 + // }
457 + // }
458 + // var doTpl = doT.template(tpl);
459 + // var success_msg =
460 + // doTpl({"pay_channel_name":pay_channel_name,
461 + // "youai_star":msg.youai_star, "amount":msg.amount,
462 + // "game_unit_name":Core.Data.game_unit_name,
463 + // "game_amount":msg.game_amount,
464 + // "game_unit":Core.Data.game_unit});
465 + // Core.Data.success_msg = success_msg;
466 + // Core.Data.trade_id = msg.trade_id;
467 + // Core.showTips('成功提交!', true, 2000);
468 + // Core.updateMod('pay_result');
469 + // }
470 + // Core.registerMod('pay_confirm', Pay_confirm);
471 +
472 + /**
473 + * 代付操作模块
474 + */
475 + var Pay_proxy = function(modId) {
476 + Module.call(this, modId);
477 + }
478 + Core.inherit(Pay_proxy, Module);
479 + Pay_proxy.prototype.bind = function() {
480 + var that = this;
481 + that.$c.on('click', '.btn-payfor', function(e) {
482 + e.preventDefault();
483 + Core.ajax_do(that.$c.find('form.ajax'), that.payproxy_cb,
484 + that);
485 + return false;
486 + });
487 + that.$c.on('click', '.btn-undo', function(e) {
488 + e.preventDefault();
489 + Core.ajax_do(that.$c.find('a.ajax'), that.payproxy_cb,
490 + that);
491 + return false;
492 + });
493 + }
494 + Pay_proxy.prototype.payproxy_cb = function(data) {
495 + var code = data.code;
496 + var msg = data.msg;
497 + Core.showTips(msg, true, 3000);
498 + if (code == 0) {
499 + // 操作导致代付列表发生变化,需要更新列表
500 + $('#proxy_scroller .trade-list').empty();
501 + setTimeout(function() {
502 + Core.showMod('proxy_record');
503 + }, 2000);
504 + }
505 + }
506 + Core.registerMod('pay_proxy', Pay_proxy);
507 +
508 + var Pay_feedback = function(modId){
509 + Module.call(this, modId);
510 + }
511 + Core.inherit(Pay_feedback, Module);
512 + Pay_feedback.prototype.bind = function(){
513 + var that = this;
514 + that.$c.on('click', '.submit', function(e){
515 + e.preventDefault();
516 + if (that.$c.find('textarea').val().length > 150) {
517 + Core.showTips('问题描述超出了150个字符!', false);
518 + return false;
519 + }
520 + Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
521 + return false;
522 + })
523 + }
524 + Pay_feedback.prototype.sq_cb = function(data) {
525 + Core.showTips(data.msg, true, 2000);
526 + this.isValid = false;
527 + this.$c.find('textarea').val('');
528 + Core.showMod('pay');
529 + }
530 + Core.registerMod('pay_feedback', Pay_feedback);
531 + /**
532 + * 兑换记录模块
533 + */
534 + var Trade_record = function(modId) {
535 + this.myScroll = null;
536 + Module.call(this, modId);
537 + }
538 + Core.inherit(Trade_record, Module);
539 + Trade_record.prototype.bind = function() {
540 + var that = this;
541 + that.$c.on('click', 'li.more a', function(e) {
542 + e.preventDefault();
543 + Core.load_html($(e.target), that.refresh, that);
544 + return false;
545 + });
546 + }
547 + Trade_record.prototype.refresh = function() {
548 + this.myScroll.refresh();
549 + }
550 + Trade_record.prototype.show_after = function() {
551 + if (this.$c.find('.trade-list').children().length == 0) {
552 + Core.load_html(this.$c.find('.trade-list'), this.tr_cb,
553 + this);
554 + }
555 +
556 + var _des = Core.last_mod ? Core.last_mod : 'home';
557 + this.$c.find('a.btn.pull-left').attr('href', '#'+_des);
558 + }
559 + Trade_record.prototype.tr_cb = function(data) {
560 + if (!this.myScroll){
561 + this.myScroll = new iScroll('wrapper');
562 + }
563 + }
564 + Core.registerMod('trade_record', Trade_record);
565 +
566 + /**
567 + * 代付记录模块
568 + */
569 + var Proxy_record = function(modId) {
570 + this.myScroll = null;
571 + Module.call(this, modId);
572 + }
573 + Core.inherit(Proxy_record, Module);
574 + Proxy_record.prototype.bind = function() {
575 + var that = this;
576 + that.$c.on('click', '.op-payfor', function(e) {
577 + e.preventDefault();
578 + var $e = $(e.target);
579 + var id = $e.attr('data-id');
580 + $e.data('path', '/pay/proxy/pay/?id=' + id + '&format=json');
581 + Core.load_json($e, function(data){
582 + Core.Data.temp = data;
583 + Core.showTips('加载完成!', true, 2000);
584 + Core.updateMod('pay_proxy');
585 + }, that);
586 + return false;
587 + });
588 + that.$c.on('click', 'li.more a', function(e) {
589 + e.preventDefault();
590 + Core.load_html($(e.target), that.refresh, that);
591 + return false;
592 + });
593 + }
594 + Proxy_record.prototype.refresh = function() {
595 + this.myScroll.refresh();
596 + }
597 + Proxy_record.prototype.show_after = function() {
598 + if (this.$c.find('.trade-list').children().length == 0) {
599 + Core.load_html(this.$c.find('.trade-list'), this.pr_cb,
600 + this);
601 + }
602 + if(Core.last_mod == 'pay_proxy') return;
603 + var _des = Core.last_mod ? Core.last_mod : 'home';
604 + this.$c.find('a.btn.pull-left').attr('href', '#'+_des);
605 + }
606 + Proxy_record.prototype.pr_cb = function(data) {
607 + if (!this.myScroll){
608 + this.myScroll = new iScroll('proxy_wrapper');
609 + }
610 + }
611 + Core.registerMod('proxy_record', Proxy_record);
612 +
613 + /**
614 + * 邀请好友模块
615 + */
616 + var Invite_friend = function(modId) {
617 + Module.call(this, modId);
618 + }
619 + Core.inherit(Invite_friend, Module);
620 + Invite_friend.prototype.bind = function() {
621 + var that = this;
622 +
623 + that.$c.on('click', '#share a', function(e){
624 + e.preventDefault();
625 + var $e = $(e.target);
626 + var params = [];
627 + var head = $e.attr('title');
628 + var url = $e.attr('href');
629 + var pic = Core.Data.game_icon;
630 + var targetUrl = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html';
631 + var title = 'title=' + encodeURIComponent('我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!');
632 + targetUrl = 'url=' + encodeURIComponent(targetUrl);
633 + if($e.hasClass('s_tqq')){
634 + params.push('c=share');
635 + params.push('a=index');
636 + }
637 + if($e.hasClass('s_qzone')){
638 + pic = 'pics=' + encodeURIComponent(pic);
639 + } else {
640 + pic = 'pic=' + encodeURIComponent(pic);
641 + }
642 + params.push(pic);
643 + params.push(targetUrl);
644 + params.push(title);
645 + var appkey = $e.attr('data-appkey');
646 + if(appkey){
647 + appkey = 'appkey=' + appkey;
648 + params.push(appkey);
649 + }
650 + url = url + '?' + params.join('&');
651 + Core.Data.frame_title = head + '分享';
652 + Core.Data.frame_src = url;
653 + Core.updateMod('frame');
654 +
655 + });
656 + }
657 + Invite_friend.prototype.if_cb = function(data) {
658 + Core.showTips(data.msg, data.code == 0 ? true : false);
659 + this.$c.find('input[type=email]').val('');
660 + }
661 + Invite_friend.prototype.show_after = function(){
662 + var that = this;
663 + if(Core.isWeixin){
664 + that.$c.find('#share_weixin').show();
665 + that.$c.find('#share').hide();
666 + }else{
667 + that.$c.find('#share_weixin').hide();
668 + that.$c.find('#share').show();
669 + }
670 +
671 + }
672 + Core.registerMod('invite_friend', Invite_friend);
673 +
674 + /**
675 + * 其他充值方式模块
676 + */
677 + var Other = function(modId) {
678 + this.myScroll = null;
679 + Module.call(this, modId);
680 + }
681 + Core.inherit(Other, Module);
682 + Other.prototype.bind = function() {
683 + var that = this;
684 + that.$c.on('click', 'ol.other-pay li a', function(e) {
685 + e.preventDefault();
686 + var $e = $(e.target);
687 + while (!$e.is('a'))
688 + $e = $e.parent();
689 + var href = $e.attr('href');
690 + window.open(href);
691 + });
692 + }
693 + Core.registerMod('other', Other);
694 + var Frame = function(modId) {
695 + Module.call(this, modId);
696 + }
697 + Core.inherit(Frame, Module);
698 + Frame.prototype.bind = function(){
699 + var that = this;
700 + that.$c.on('click', '.scroll-btn', function(e){
701 + e.preventDefault();
702 + e.stopPropagation();
703 + var $frame = that.$c.find('iframe');
704 + var h1 = $frame.height();
705 + var h2 = that.$c.find('.ios_scroll').height();
706 + var top = parseInt($frame.css('margin-top'));
707 + if($(e.currentTarget).hasClass('scroll-down')){
708 + if(Math.abs(top) + 20>(h1-h2)) return;
709 + $frame.css('margin-top', top-50);
710 + } else {
711 + if(top>=0) return;
712 + $frame.css('margin-top', top+50);
713 + }
714 + });
715 + }
716 + Frame.prototype.show_after = function() {
717 + var that = this;
718 + var _des = Core.last_mod ? Core.last_mod : 'home';
719 + var $frame = that.$c.find('iframe');
720 + var $div = that.$c.find('.ios_scroll');
721 + var isFix = false;
722 + this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
723 + var i = 0;
724 + $frame[0].onload = function() {
725 + that.$c.find('#loading_frame').hide();
726 + $('#alert').hide();
727 + if(Core.isAndroid && !isFix){
728 + var h1 = $frame.height();
729 + var h2 = $div.height();
730 + if(h1>h2){
731 + //android 低版本浏览器,需要提供手动滚动iframe
732 + that.$c.addClass('fix');
733 + isFix = true;
734 + } else {
735 + that.$c.addClass('nofix');
736 + }
737 + }
738 +
739 + }
740 +
741 +
742 + }
743 + Core.registerMod('frame', Frame);
744 +
745 + /**
746 + * 客服问题列表模块
747 + */
748 + var Kefu_list = function(modId) {
749 + this.myScroll = null;
750 + this.cur_id = null;
751 + Module.call(this, modId);
752 + }
753 + Core.inherit(Kefu_list, Module);
754 + Kefu_list.prototype.bind = function() {
755 + var that = this;
756 + that.$c.on('click', 'li>a.item', function(e) {
757 + e.preventDefault();
758 + e.stopPropagation();
759 + /*
760 + * @todo-list bug fixed in android,the click event fired twice!
761 + */
762 + if (Core.cur_mod == 'question_detail')
763 + return;
764 + var $e = $(e.target);
765 + while (!$e.is('a'))
766 + $e = $e.parent();
767 + var id = $e.attr('data-id');
768 + if (id == that.cur_id) {
769 + Core.Data.question_update = false;
770 + Core.showMod('question_detail');
771 + return false;
772 + }
773 + that.cur_id = id;
774 + Core.Data.question_update = true;
775 + $e.data('path', '/user/question/view?id=' + id + '&format=json');
776 + Core.load_json($e, function(data){
777 + Core.Data.question_detail = data;
778 + Core.showTips('加载完成!', true, 2000);
779 + Core.updateMod('question_detail');
780 + }, that);
781 + // Core.showTips('加载中...', true, 5000);
782 + // $.getJSON('/user/question/view?id=' + id + '&format=json',
783 + // function(data) {
784 + // Core.Data.question_detail = data;
785 + // Core.showTips('加载完成!', true, 2000);
786 + // Core.updateMod('question_detail');
787 + // });
788 + return false;
789 + });
790 + that.$c.on('click', 'li.more a', function(e) {
791 + e.preventDefault();
792 + Core.load_html($(e.target), that.refresh, that);
793 + return false;
794 + });
795 + }
796 + Kefu_list.prototype.refresh = function() {
797 + this.myScroll.refresh();
798 + }
799 + Kefu_list.prototype.show_after = function() {
800 + if (this.$c.find('.kefu-list').children().length == 0) {
801 + $ol = this.$c.find('.kefu-list');
802 + if($ol.attr('data-params-url').indexOf('undefined') == -1)
803 + Core.load_html(this.$c.find('.kefu-list'), this.act_cb,
804 + this);
805 + }
806 + this.isValid = false;
807 + }
808 + Kefu_list.prototype.act_cb = function(data) {
809 + if (!this.myScroll){
810 + this.myScroll = new iScroll('kefu_wrapper');
811 + }
812 +
813 + }
814 + Core.registerMod('kefu_list', Kefu_list);
815 +
816 + var Modify_pwd = function(modId) {
817 + Module.call(this, modId);
818 + }
819 + Core.inherit(Modify_pwd, Module);
820 +
821 + Modify_pwd.prototype.bind = function() {
822 + var that = this;
823 + that.$c.on('click', '[type=submit]', function(e) {
824 + e.preventDefault();
825 + Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
826 + return false;
827 + });
828 +
829 + }
830 + Modify_pwd.prototype.modify_cb = function(data) {
831 + var status_code = data.code;
832 + var msg = data.msg;
833 + if (status_code == 0) {
834 + if(Core.Data.is_guest == 1){
835 + //游客帐号转正
836 + localStorage.removeItem('guest_n');
837 + Core.showTips('账号升级成功, 请记住登录名和新密码。', true);
838 + }
839 + if (!Core.user_names) Core.user_names = {}
840 + Core.user_names[msg.username] = this.$c.find('input[name=newpwd]').val();
841 + localStorage.setItem('user_names', JSON.stringify(Core.user_names));
842 + Core.Data.is_guest = msg.is_guest;
843 + Core.Data.username = msg.username;
844 + Core.Data.nickname = msg.nickname;
845 + // 强制更新显示home模块,模块自刷新
846 + this.isValid = false;
847 + Core.updateMod('home');
848 + } else {
849 + Core.showTips(msg, false);
850 + }
851 + }
852 + Core.registerMod('modify_pwd', Modify_pwd);
853 + /**
854 + * 客服问题详细模块
855 + */
856 + var Question_detail = function(modId) {
857 + this.myScroll = null;
858 + this.$score = null;
859 + Module.call(this, modId);
860 + }
861 + Core.inherit(Question_detail, Module);
862 + Question_detail.prototype.bind = function() {
863 + var that = this;
864 + that.$c.on('click', 'li.more a', function(e) {
865 + e.preventDefault();
866 + Core.load_html($(e.target), that.refresh, that);
867 + return false;
868 + });
869 + that.$c.on('click', 'li p > a', function(e) {
870 + e.preventDefault();
871 + that.$score = $(e.target);
872 + Core.ajax_do($(e.target), that.jude_cb, that);
873 + return false;
874 + })
875 + }
876 + Question_detail.prototype.jude_cb = function(data) {
877 + Core.showTips(data.msg);
878 + if (data.code == 0) {
879 + var score = this.$score.html();
880 + this.$score.parent().empty().html(
881 + '您的评价:&nbsp;&nbsp;<span class="btn">' + score
882 + + '</span>');
883 + }
884 + }
885 + Question_detail.prototype.refresh = function() {
886 + var that = this;
887 + setTimeout(function() {
888 + that.myScroll.refresh();
889 + }, 300);
890 +
891 + }
892 + Question_detail.prototype.show_after = function() {
893 + if (Core.Data.question_update) {
894 + if (this.myScroll){
895 + this.myScroll.destory();
896 + }else{
897 + this.myScroll = new iScroll('question_detail_scroller');
898 + }
899 + }
900 + }
901 +
902 + Core.registerMod('question_detail', Question_detail);
903 +
904 + /**
905 + * enter_game_amount 进入sdk的要购买的游戏币
906 + * enter_amount 进入sdk要购买的游戏币转为平台币数量(换算)
907 + * total_amount 用户所拥有的平台币
908 + * game_amount 本次支付需要购买的游戏币
909 + * youai_star 本次支付需要支付的平台币(换算)
910 + * money 本次支付需要支付的人民币(换算)
911 + */
912 + function pay_init() {
913 + if (Core.Data.enter_game_amount > 0) {
914 + Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate;
915 + Core.Data.pay_again = 0;
916 + }
917 + //if (Core.Data.enter_game_amount > 0
918 + // && Core.Data.enter_amount <= Core.Data.total_amount) {
919 + // // 需要进入兑换页面
920 + // Core.start_page = "exchange";
921 + // Core.Data.game_amount = Core.Data.enter_game_amount;
922 + // Core.Data.youai_star = Core.Data.enter_amount;
923 + // Core.Data.money = Core.Data.youai_star / Core.Data.rate;
924 + //} else
925 + //if (Core.Data.enter_game_amount > 0) {
926 + // 需要进入渠道充值页面
927 + Core.start_page = "channel_list";
928 + Core.Data.game_amount = Core.Data.enter_game_amount;
929 + Core.Data.youai_star = Core.Data.enter_amount;
930 + Core.Data.money = Core.Data.youai_star / Core.Data.rate;
931 + //} else {
932 + // // 没有输入充值数量,进入选择数量的界面
933 + //}
934 + }
935 +
936 +function onBridgeReady() {
937 + var mainImgUrl = Core.Data.game_icon;
938 + var mainURL = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html';
939 + var mainTitle= '一起玩' + Core.Data.game_name;
940 + var mainDesc = '我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!';
941 + try{
942 + WeixinJSBridge.on("menu:share:timeline", function(e) {
943 + var data = {
944 + appid:'wx1d2b5cd6b11aaf3d',
945 + img_url:mainImgUrl,
946 + img_width: "120",
947 + img_height: "120",
948 + link: mainURL,
949 + desc: mainDesc,
950 + title: mainTitle
951 + };
952 + alert('shareTimeline');
953 + WeixinJSBridge.invoke("shareTimeline", data, function(res) {
954 + WeixinJSBridge.log(res.err_msg);
955 + });
956 + });
957 + WeixinJSBridge.on("menu:share:weibo", function() {
958 + WeixinJSBridge.invoke("shareWeibo", {
959 + "content": mainDesc,
960 + "url": mainURL
961 + }, function(res) {
962 + //alert(res.err_msg);
963 + //WeixinJSBridge.log(res.err_msg);
964 + });
965 + });
966 + WeixinJSBridge.on('menu:share:appmessage', function(argv) {
967 + WeixinJSBridge.invoke("sendAppMessage", {
968 + appid:'wx1d2b5cd6b11aaf3d',
969 + img_url: mainImgUrl,
970 + img_width: "120",
971 + img_height: "120",
972 + link: mainURL,
973 + desc: mainDesc,
974 + title: mainTitle
975 + }, function(res) {
976 + //alert(res.err_msg);
977 + //WeixinJSBridge.log(res.err_msg)
978 + });
979 + });
980 +
981 + } catch(error){alert(error);}
982 + };
983 + if (typeof WeixinJSBridge == "undefined"){
984 + if( document.addEventListener ){
985 + document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
986 + }else if (document.attachEvent){
987 + document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
988 + document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
989 + }
990 + }else{
991 + onBridgeReady();
992 + }
993 +
994 + if (window.isGetData == 1) {
995 + // 兼容旧版本sdk
996 + pay_init();
997 + $('#loading').hide();
998 + Core.init();
999 + } else {
1000 + window.isGetData = 1;
1001 + window.initFunc = pay_init;
1002 + }
1003 + }
1004 +})();
...\ No newline at end of file ...\ No newline at end of file
......
This diff could not be displayed because it is too large.
1 +/*!
2 +** create by zhangxinxu(.com) 2013-07-15
3 +** a simple method for custom scrolling
4 +** it can be used on both mobile and parts desktop browser IE9+/FF/Chrome/...
5 +*/
6 +var simpScroller=(function(){var c=!((window.DocumentTouch&&document instanceof window.DocumentTouch)||"ontouchstart" in window)*1,b={start:["touchstart","mousedown"][c],move:["touchmove","mousemove"][c],end:["touchend","mouseup"][c]};var a=function(e,l,f){var n="top",o="Top",p="height",g="Height",d="pageY";if(l=="horizontal"){n="left";o="Left";p="width";g="Width";d="pageX"}var i=null;if(f.hideScrollBar==false){i=document.createElement("div");i.className="scroller_"+l;f.container.appendChild(i)}var m=e["client"+g],h=0;var j=function(){if(i==null){return}var r=i.style[p].replace("px",""),q=e["scroll"+o]/(h-m)*(m-r);if(m-r-q<=0){q=m-r}i.style[n]=q+"px"};var k={};e.addEventListener(b.start,function(q){h=this["scroll"+g];k[d]=q.touches?q.touches[0][d]:q[d];k[n]=this["scroll"+o];document.moveFollow=true;if(i&&h>m){i.style.opacity=1;i.style[p]=(m*m/h)+"px";j()}c&&q.preventDefault()});e.addEventListener(b.move,function(q){if(c==false||(document.moveFollow==true)){this["scroll"+o]=k[n]+(k[d]-(q.touches?q.touches[0][d]:q[d]));j();f.onScroll.call(this,q)}q.preventDefault()});e.addEventListener(b.end,function(q){i&&(i.style.opacity=0)});if(c==true){document.addEventListener("mouseup",function(){this.moveFollow=false})}};return function(d,f){f=f||{};var j=new Object({verticalScroll:true,horizontalScroll:false,hideScrollBar:false,onScroll:function(){}}),g;for(g in f){j[g]=f[g]}if(window.getComputedStyle(d).position=="static"){d.style.position="relative"}var i=d.childNodes,e=document.createDocumentFragment();[].slice.call(i).forEach(function(k){e.appendChild(k)});var h=document.createElement("div");h.style.height="100%";h.style.width="100%";h.style.overflow="hidden";d.appendChild(h);h.appendChild(e);j.container=d;if(j.verticalScroll==true){a(h,"vertical",j)}if(j.horizontalScroll==true){a(h,"horizontal",j)}}})();
...\ No newline at end of file ...\ No newline at end of file
1 -(function(t){String.prototype.trim===t&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.prototype.reduce===t&&(Array.prototype.reduce=function(n){if(this===void 0||this===null)throw new TypeError;var e=Object(this),i=e.length>>>0,r=0,o;if(typeof n!="function")throw new TypeError;if(i==0&&arguments.length==1)throw new TypeError;if(arguments.length>=2)o=arguments[1];else do{if(r in e){o=e[r++];break}if(++r>=i)throw new TypeError}while(!0);while(r<i)r in e&&(o=n.call(t,o,e[r],r,e)),r++;return o})})();var Zepto=function(){function t(t){return t==null?String(t):V[J.call(t)]||"object"}function n(n){return t(n)=="function"}function e(t){return t!=null&&t==t.window}function i(t){return t!=null&&t.nodeType==t.DOCUMENT_NODE}function r(n){return t(n)=="object"}function o(t){return r(t)&&!e(t)&&t.__proto__==Object.prototype}function a(t){return t instanceof Array}function s(t){return typeof t.length=="number"}function u(t){return C.call(t,function(t){return t!=null})}function c(t){return t.length>0?j.fn.concat.apply([],t):t}function l(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function f(t){return t in k?k[t]:k[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function h(t,n){return typeof n=="number"&&!_[l(t)]?n+"px":n}function p(t){var n,e;return A[t]||(n=P.createElement(t),P.body.appendChild(n),e=$(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),e=="none"&&(e="block"),A[t]=e),A[t]}function d(t){return"children"in t?O.call(t.children):j.map(t.childNodes,function(t){if(t.nodeType==1)return t})}function m(t,n,e){for(T in n)e&&(o(n[T])||a(n[T]))?(o(n[T])&&!o(t[T])&&(t[T]={}),a(n[T])&&!a(t[T])&&(t[T]=[]),m(t[T],n[T],e)):n[T]!==E&&(t[T]=n[T])}function v(t,n){return n===E?j(t):j(t).filter(n)}function g(t,e,i,r){return n(e)?e.call(t,i,r):e}function y(t,n,e){e==null?t.removeAttribute(n):t.setAttribute(n,e)}function b(t,n){var e=t.className,i=e&&e.baseVal!==E;if(n===E)return i?e.baseVal:e;i?e.baseVal=n:t.className=n}function w(t){var n;try{return t?t=="true"||(t=="false"?!1:t=="null"?null:isNaN(n=Number(t))?/^[\[\{]/.test(t)?j.parseJSON(t):t:n):t}catch(n){return t}}function x(t,n){n(t);for(var e in t.childNodes)x(t.childNodes[e],n)}var E,T,j,S,N=[],O=N.slice,C=N.filter,P=window.document,A={},k={},$=P.defaultView.getComputedStyle,_={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},M=/^\s*<(\w+|!)[^>]*>/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,z=/^(?:body|html)$/i,R=["val","css","html","text","data","width","height","offset"],D=["after","prepend","before","append"],L=P.createElement("table"),q=P.createElement("tr"),F={tr:P.createElement("tbody"),tbody:L,thead:L,tfoot:L,td:q,th:q,"*":P.createElement("div")},B=/complete|loaded|interactive/,I=/^\.([\w-]+)$/,H=/^#([\w-]*)$/,U=/^[\w-]+$/,V={},J=V.toString,X={},W,Y,G=P.createElement("div");return X.matches=function(t,n){if(!t||t.nodeType!==1)return!1;var e=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(e)return e.call(t,n);var i,r=t.parentNode,o=!r;return o&&(r=G).appendChild(t),i=~X.qsa(r,n).indexOf(t),o&&G.removeChild(t),i},W=function(t){return t.replace(/-+(.)?/g,function(t,n){return n?n.toUpperCase():""})},Y=function(t){return C.call(t,function(n,e){return t.indexOf(n)==e})},X.fragment=function(t,n,e){t.replace&&(t=t.replace(Z,"<$1></$2>")),n===E&&(n=M.test(t)&&RegExp.$1),n in F||(n="*");var i,r,a=F[n];return a.innerHTML=""+t,r=j.each(O.call(a.childNodes),function(){a.removeChild(this)}),o(e)&&(i=j(r),j.each(e,function(t,n){R.indexOf(t)>-1?i[t](n):i.attr(t,n)})),r},X.Z=function(t,n){return t=t||[],t.__proto__=j.fn,t.selector=n||"",t},X.isZ=function(t){return t instanceof X.Z},X.init=function(t,e){if(!t)return X.Z();if(n(t))return j(P).ready(t);if(X.isZ(t))return t;var i;if(a(t))i=u(t);else if(r(t))i=[o(t)?j.extend({},t):t],t=null;else if(M.test(t))i=X.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==E)return j(e).find(t);i=X.qsa(P,t)}return X.Z(i,t)},j=function(t,n){return X.init(t,n)},j.extend=function(t){var n,e=O.call(arguments,1);return typeof t=="boolean"&&(n=t,t=e.shift()),e.forEach(function(e){m(t,e,n)}),t},X.qsa=function(t,n){var e;return i(t)&&H.test(n)?(e=t.getElementById(RegExp.$1))?[e]:[]:t.nodeType!==1&&t.nodeType!==9?[]:O.call(I.test(n)?t.getElementsByClassName(RegExp.$1):U.test(n)?t.getElementsByTagName(n):t.querySelectorAll(n))},j.contains=function(t,n){return t!==n&&t.contains(n)},j.type=t,j.isFunction=n,j.isWindow=e,j.isArray=a,j.isPlainObject=o,j.isEmptyObject=function(t){var n;for(n in t)return!1;return!0},j.inArray=function(t,n,e){return N.indexOf.call(n,t,e)},j.camelCase=W,j.trim=function(t){return t.trim()},j.uuid=0,j.support={},j.expr={},j.map=function(t,n){var e,i=[],r,o;if(s(t))for(r=0;r<t.length;r++)e=n(t[r],r),e!=null&&i.push(e);else for(o in t)e=n(t[o],o),e!=null&&i.push(e);return c(i)},j.each=function(t,n){var e,i;if(s(t)){for(e=0;e<t.length;e++)if(n.call(t[e],e,t[e])===!1)return t}else for(i in t)if(n.call(t[i],i,t[i])===!1)return t;return t},j.grep=function(t,n){return C.call(t,n)},window.JSON&&(j.parseJSON=JSON.parse),j.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,n){V["[object "+n+"]"]=n.toLowerCase()}),j.fn={forEach:N.forEach,reduce:N.reduce,push:N.push,sort:N.sort,indexOf:N.indexOf,concat:N.concat,map:function(t){return j(j.map(this,function(n,e){return t.call(n,e,n)}))},slice:function(){return j(O.apply(this,arguments))},ready:function(t){return B.test(P.readyState)?t(j):P.addEventListener("DOMContentLoaded",function(){t(j)},!1),this},get:function(t){return t===E?O.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(t){return N.every.call(this,function(n,e){return t.call(n,e,n)!==!1}),this},filter:function(t){return n(t)?this.not(this.not(t)):j(C.call(this,function(n){return X.matches(n,t)}))},add:function(t,n){return j(Y(this.concat(j(t,n))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var e=[];if(n(t)&&t.call!==E)this.each(function(n){t.call(this,n)||e.push(this)});else{var i=typeof t=="string"?this.filter(t):s(t)&&n(t.item)?O.call(t):j(t);this.forEach(function(t){i.indexOf(t)<0&&e.push(t)})}return j(e)},has:function(t){return this.filter(function(){return r(t)?j.contains(this,t):j(this).find(t).size()})},eq:function(t){return t===-1?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:j(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:j(t)},find:function(t){var n,e=this;return typeof t=="object"?n=j(t).filter(function(){var t=this;return N.some.call(e,function(n){return j.contains(n,t)})}):this.length==1?n=j(X.qsa(this[0],t)):n=this.map(function(){return X.qsa(this,t)}),n},closest:function(t,n){var e=this[0],r=!1;typeof t=="object"&&(r=j(t));while(e&&!(r?r.indexOf(e)>=0:X.matches(e,t)))e=e!==n&&!i(e)&&e.parentNode;return j(e)},parents:function(t){var n=[],e=this;while(e.length>0)e=j.map(e,function(t){if((t=t.parentNode)&&!i(t)&&n.indexOf(t)<0)return n.push(t),t});return v(n,t)},parent:function(t){return v(Y(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return d(this)}),t)},contents:function(){return this.map(function(){return O.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,n){return C.call(d(n.parentNode),function(t){return t!==n})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return j.map(this,function(n){return n[t]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null),$(this,"").getPropertyValue("display")=="none"&&(this.style.display=p(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=n(t);if(this[0]&&!e)var i=j(t).get(0),r=i.parentNode||this.length>1;return this.each(function(n){j(this).wrapAll(e?t.call(this,n):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){j(this[0]).before(t=j(t));var n;while((n=t.children()).length)t=n.first();j(t).append(this)}return this},wrapInner:function(t){var e=n(t);return this.each(function(n){var i=j(this),r=i.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):i.append(o)})},unwrap:function(){return this.parent().each(function(){j(this).replaceWith(j(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=j(this);(t===E?n.css("display")=="none":t)?n.show():n.hide()})},prev:function(t){return j(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return j(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return t===E?this.length>0?this[0].innerHTML:null:this.each(function(n){var e=this.innerHTML;j(this).empty().append(g(this,t,n,e))})},text:function(t){return t===E?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=t})},attr:function(t,n){var e;return typeof t=="string"&&n===E?this.length==0||this[0].nodeType!==1?E:t=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(t))&&t in this[0]?this[0][t]:e:this.each(function(e){if(this.nodeType!==1)return;if(r(t))for(T in t)y(this,T,t[T]);else y(this,t,g(this,n,e,this.getAttribute(t)))})},removeAttr:function(t){return this.each(function(){this.nodeType===1&&y(this,t)})},prop:function(t,n){return n===E?this[0]&&this[0][t]:this.each(function(e){this[t]=g(this,n,e,this[t])})},data:function(t,n){var e=this.attr("data-"+l(t),n);return e!==null?w(e):E},val:function(t){return t===E?this[0]&&(this[0].multiple?j(this[0]).find("option").filter(function(t){return this.selected}).pluck("value"):this[0].value):this.each(function(n){this.value=g(this,t,n,this.value)})},offset:function(t){if(t)return this.each(function(n){var e=j(this),i=g(this,t,n,e.offset()),r=e.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};e.css("position")=="static"&&(o.position="relative"),e.css(o)});if(this.length==0)return null;var n=this[0].getBoundingClientRect();return{left:n.left+window.pageXOffset,top:n.top+window.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(n,e){if(arguments.length<2&&typeof n=="string")return this[0]&&(this[0].style[W(n)]||$(this[0],"").getPropertyValue(n));var i="";if(t(n)=="string")!e&&e!==0?this.each(function(){this.style.removeProperty(l(n))}):i=l(n)+":"+h(n,e);else for(T in n)!n[T]&&n[T]!==0?this.each(function(){this.style.removeProperty(l(T))}):i+=l(T)+":"+h(T,n[T])+";";return this.each(function(){this.style.cssText+=";"+i})},index:function(t){return t?this.indexOf(j(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return N.some.call(this,function(t){return this.test(b(t))},f(t))},addClass:function(t){return this.each(function(n){S=[];var e=b(this),i=g(this,t,n,e);i.split(/\s+/g).forEach(function(t){j(this).hasClass(t)||S.push(t)},this),S.length&&b(this,e+(e?" ":"")+S.join(" "))})},removeClass:function(t){return this.each(function(n){if(t===E)return b(this,"");S=b(this),g(this,t,n,S).split(/\s+/g).forEach(function(t){S=S.replace(f(t)," ")}),b(this,S.trim())})},toggleClass:function(t,n){return this.each(function(e){var i=j(this),r=g(this,t,e,b(this));r.split(/\s+/g).forEach(function(t){(n===E?!i.hasClass(t):n)?i.addClass(t):i.removeClass(t)})})},scrollTop:function(){if(!this.length)return;return"scrollTop"in this[0]?this[0].scrollTop:this[0].scrollY},position:function(){if(!this.length)return;var t=this[0],n=this.offsetParent(),e=this.offset(),i=z.test(n[0].nodeName)?{top:0,left:0}:n.offset();return e.top-=parseFloat(j(t).css("margin-top"))||0,e.left-=parseFloat(j(t).css("margin-left"))||0,i.top+=parseFloat(j(n[0]).css("border-top-width"))||0,i.left+=parseFloat(j(n[0]).css("border-left-width"))||0,{top:e.top-i.top,left:e.left-i.left}},offsetParent:function(){return this.map(function(){var t=this.offsetParent||P.body;while(t&&!z.test(t.nodeName)&&j(t).css("position")=="static")t=t.offsetParent;return t})}},j.fn.detach=j.fn.remove,["width","height"].forEach(function(t){j.fn[t]=function(n){var r,o=this[0],a=t.replace(/./,function(t){return t[0].toUpperCase()});return n===E?e(o)?o["inner"+a]:i(o)?o.documentElement["offset"+a]:(r=this.offset())&&r[t]:this.each(function(e){o=j(this),o.css(t,g(this,n,e,o[t]()))})}}),D.forEach(function(n,e){var i=e%2;j.fn[n]=function(){var n,r=j.map(arguments,function(e){return n=t(e),n=="object"||n=="array"||e==null?e:X.fragment(e)}),o,a=this.length>1;return r.length<1?this:this.each(function(t,n){o=i?n:n.parentNode,n=e==0?n.nextSibling:e==1?n.firstChild:e==2?n:null,r.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!o)return j(t).remove();x(o.insertBefore(t,n),function(t){t.nodeName!=null&&t.nodeName.toUpperCase()==="SCRIPT"&&(!t.type||t.type==="text/javascript")&&!t.src&&window.eval.call(window,t.innerHTML)})})})},j.fn[i?n+"To":"insert"+(e?"Before":"After")]=function(t){return j(t)[n](this),this}}),X.Z.prototype=j.fn,X.uniq=Y,X.deserializeValue=w,j.zepto=X,j}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(t){function n(t){var n=this.os={},e=this.browser={},i=t.match(/WebKit\/([\d.]+)/),r=t.match(/(Android)\s+([\d.]+)/),o=t.match(/(iPad).*OS\s([\d_]+)/),a=!o&&t.match(/(iPhone\sOS)\s([\d_]+)/),s=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=s&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),l=t.match(/Silk\/([\d._]+)/),f=t.match(/(BlackBerry).*Version\/([\d.]+)/),h=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),d=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),v=t.match(/Firefox\/([\d.]+)/);if(e.webkit=!!i)e.version=i[1];r&&(n.android=!0,n.version=r[2]),a&&(n.ios=n.iphone=!0,n.version=a[2].replace(/_/g,".")),o&&(n.ios=n.ipad=!0,n.version=o[2].replace(/_/g,".")),s&&(n.webos=!0,n.version=s[2]),u&&(n.touchpad=!0),f&&(n.blackberry=!0,n.version=f[2]),h&&(n.bb10=!0,n.version=h[2]),p&&(n.rimtabletos=!0,n.version=p[2]),d&&(e.playbook=!0),c&&(n.kindle=!0,n.version=c[1]),l&&(e.silk=!0,e.version=l[1]),!l&&n.android&&t.match(/Kindle Fire/)&&(e.silk=!0),m&&(e.chrome=!0,e.version=m[1]),v&&(e.firefox=!0,e.version=v[1]),n.tablet=!!(o||d||r&&!t.match(/Mobile/)||v&&t.match(/Tablet/)),n.phone=!n.tablet&&!!(r||a||s||f||h||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||v&&t.match(/Mobile/))}n.call(t,navigator.userAgent),t.__detect=n}(Zepto),function(t){function n(t){return t._zid||(t._zid=d++)}function e(t,e,o,a){e=i(e);if(e.ns)var s=r(e.ns);return(p[n(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!o||n(t.fn)===n(o))&&(!a||t.sel==a)})}function i(t){var n=(""+t).split(".");return{e:n[0],ns:n.slice(1).sort().join(" ")}}function r(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(n,e,i){t.type(n)!="string"?t.each(n,i):n.split(/\s/).forEach(function(t){i(t,e)})}function a(t,n){return t.del&&(t.e=="focus"||t.e=="blur")||!!n}function s(t){return v[t]||t}function u(e,r,u,c,l,f){var h=n(e),d=p[h]||(p[h]=[]);o(r,u,function(n,r){var o=i(n);o.fn=r,o.sel=c,o.e in v&&(r=function(n){var e=n.relatedTarget;if(!e||e!==this&&!t.contains(this,e))return o.fn.apply(this,arguments)}),o.del=l&&l(r,n);var u=o.del||r;o.proxy=function(t){var n=u.apply(e,[t].concat(t.data));return n===!1&&(t.preventDefault(),t.stopPropagation()),n},o.i=d.length,d.push(o),e.addEventListener(s(o.e),o.proxy,a(o,f))})}function c(t,i,r,u,c){var l=n(t);o(i||"",r,function(n,i){e(t,n,i,u).forEach(function(n){delete p[l][n.i],t.removeEventListener(s(n.e),n.proxy,a(n,c))})})}function l(n){var e,i={originalEvent:n};for(e in n)!b.test(e)&&n[e]!==undefined&&(i[e]=n[e]);return t.each(w,function(t,e){i[t]=function(){return this[e]=g,n[t].apply(n,arguments)},i[e]=y}),i}function f(t){if(!("defaultPrevented"in t)){t.defaultPrevented=!1;var n=t.preventDefault;t.preventDefault=function(){this.defaultPrevented=!0,n.call(this)}}}var h=t.zepto.qsa,p={},d=1,m={},v={mouseenter:"mouseover",mouseleave:"mouseout"};m.click=m.mousedown=m.mouseup=m.mousemove="MouseEvents",t.event={add:u,remove:c},t.proxy=function(e,i){if(t.isFunction(e)){var r=function(){return e.apply(i,arguments)};return r._zid=n(e),r}if(typeof i=="string")return t.proxy(e[i],e);throw new TypeError("expected function")},t.fn.bind=function(t,n){return this.each(function(){u(this,t,n)})},t.fn.unbind=function(t,n){return this.each(function(){c(this,t,n)})},t.fn.one=function(t,n){return this.each(function(e,i){u(this,t,n,null,function(t,n){return function(){var e=t.apply(i,arguments);return c(i,n,t),e}})})};var g=function(){return!0},y=function(){return!1},b=/^([A-Z]|layer[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(n,e,i){return this.each(function(r,o){u(o,e,i,n,function(e){return function(i){var r,a=t(i.target).closest(n,o).get(0);if(a)return r=t.extend(l(i),{currentTarget:a,liveFired:o}),e.apply(a,[r].concat([].slice.call(arguments,1)))}})})},t.fn.undelegate=function(t,n,e){return this.each(function(){c(this,n,e,t)})},t.fn.live=function(n,e){return t(document.body).delegate(this.selector,n,e),this},t.fn.die=function(n,e){return t(document.body).undelegate(this.selector,n,e),this},t.fn.on=function(n,e,i){return!e||t.isFunction(e)?this.bind(n,e||i):this.delegate(e,n,i)},t.fn.off=function(n,e,i){return!e||t.isFunction(e)?this.unbind(n,e||i):this.undelegate(e,n,i)},t.fn.trigger=function(n,e){if(typeof n=="string"||t.isPlainObject(n))n=t.Event(n);return f(n),n.data=e,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(n)})},t.fn.triggerHandler=function(n,i){var r,o;return this.each(function(a,s){r=l(typeof n=="string"?t.Event(n):n),r.data=i,r.target=s,t.each(e(s,n.type||n),function(t,n){o=n.proxy(r);if(r.isImmediatePropagationStopped())return!1})}),o},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(n){t.fn[n]=function(t){return t?this.bind(n,t):this.trigger(n)}}),["focus","blur"].forEach(function(n){t.fn[n]=function(t){return t?this.bind(n,t):this.each(function(){try{this[n]()}catch(t){}}),this}}),t.Event=function(t,n){typeof t!="string"&&(n=t,t=n.type);var e=document.createEvent(m[t]||"Events"),i=!0;if(n)for(var r in n)r=="bubbles"?i=!!n[r]:e[r]=n[r];return e.initEvent(t,i,!0,null,null,null,null,null,null,null,null,null,null,null,null),e.isDefaultPrevented=function(){return this.defaultPrevented},e}}(Zepto),function(t){function n(n,e,i){var r=t.Event(e);return t(n).trigger(r,i),!r.defaultPrevented}function e(t,e,i,r){if(t.global)return n(e||v,i,r)}function i(n){n.global&&t.active++===0&&e(n,null,"ajaxStart")}function r(n){n.global&&!--t.active&&e(n,null,"ajaxStop")}function o(t,n){var i=n.context;if(n.beforeSend.call(i,t,n)===!1||e(n,i,"ajaxBeforeSend",[t,n])===!1)return!1;e(n,i,"ajaxSend",[t,n])}function a(t,n,i){var r=i.context,o="success";i.success.call(r,t,o,n),e(i,r,"ajaxSuccess",[n,i,t]),u(o,n,i)}function s(t,n,i,r){var o=r.context;r.error.call(o,i,n,t),e(r,o,"ajaxError",[i,r,t]),u(n,i,r)}function u(t,n,i){var o=i.context;i.complete.call(o,n,t),e(i,o,"ajaxComplete",[n,i]),r(i)}function c(){}function l(t){return t&&(t=t.split(";",2)[0]),t&&(t==T?"html":t==E?"json":w.test(t)?"script":x.test(t)&&"xml")||"text"}function f(t,n){return(t+"&"+n).replace(/[&?]{1,2}/,"?")}function h(n){n.processData&&n.data&&t.type(n.data)!="string"&&(n.data=t.param(n.data,n.traditional)),n.data&&(!n.type||n.type.toUpperCase()=="GET")&&(n.url=f(n.url,n.data))}function p(n,e,i,r){var o=!t.isFunction(e);return{url:n,data:o?e:undefined,success:o?t.isFunction(i)?i:undefined:e,dataType:o?r||i:i}}function d(n,e,i,r){var o,a=t.isArray(e);t.each(e,function(e,s){o=t.type(s),r&&(e=i?r:r+"["+(a?"":e)+"]"),!r&&a?n.add(s.name,s.value):o=="array"||!i&&o=="object"?d(n,s,i,e):n.add(e,s)})}var m=0,v=window.document,g,y,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,w=/^(?:text|application)\/javascript/i,x=/^(?:text|application)\/xml/i,E="application/json",T="text/html",j=/^\s*$/;t.active=0,t.ajaxJSONP=function(n){if("type"in n){var e="jsonp"+ ++m,i=v.createElement("script"),r=function(){clearTimeout(f),t(i).remove(),delete window[e]},u=function(t){r();if(!t||t=="timeout")window[e]=c;s(null,t||"abort",l,n)},l={abort:u},f;return o(l,n)===!1?(u("abort"),!1):(window[e]=function(t){r(),a(t,l,n)},i.onerror=function(){u("error")},i.src=n.url.replace(/=\?/,"="+e),t("head").append(i),n.timeout>0&&(f=setTimeout(function(){u("timeout")},n.timeout)),l)}return t.ajax(n)},t.ajaxSettings={type:"GET",beforeSend:c,success:c,error:c,complete:c,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:E,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},t.ajax=function(n){var e=t.extend({},n||{});for(g in t.ajaxSettings)e[g]===undefined&&(e[g]=t.ajaxSettings[g]);i(e),e.crossDomain||(e.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(e.url)&&RegExp.$2!=window.location.host),e.url||(e.url=window.location.toString()),h(e),e.cache===!1&&(e.url=f(e.url,"_="+Date.now()));var r=e.dataType,u=/=\?/.test(e.url);if(r=="jsonp"||u)return u||(e.url=f(e.url,"callback=?")),t.ajaxJSONP(e);var p=e.accepts[r],d={},m=/^([\w-]+:)\/\//.test(e.url)?RegExp.$1:window.location.protocol,v=e.xhr(),b;e.crossDomain||(d["X-Requested-With"]="XMLHttpRequest"),p&&(d.Accept=p,p.indexOf(",")>-1&&(p=p.split(",",2)[0]),v.overrideMimeType&&v.overrideMimeType(p));if(e.contentType||e.contentType!==!1&&e.data&&e.type.toUpperCase()!="GET")d["Content-Type"]=e.contentType||"application/x-www-form-urlencoded";e.headers=t.extend(d,e.headers||{}),v.onreadystatechange=function(){if(v.readyState==4){v.onreadystatechange=c,clearTimeout(b);var n,i=!1;if(v.status>=200&&v.status<300||v.status==304||v.status==0&&m=="file:"){r=r||l(v.getResponseHeader("content-type")),n=v.responseText;try{r=="script"?(1,eval)(n):r=="xml"?n=v.responseXML:r=="json"&&(n=j.test(n)?null:t.parseJSON(n))}catch(t){i=t}i?s(i,"parsererror",v,e):a(n,v,e)}else s(null,v.status?"error":"abort",v,e)}};var w="async"in e?e.async:!0;v.open(e.type,e.url,w);for(y in e.headers)v.setRequestHeader(y,e.headers[y]);return o(v,e)===!1?(v.abort(),!1):(e.timeout>0&&(b=setTimeout(function(){v.onreadystatechange=c,v.abort(),s(null,"timeout",v,e)},e.timeout)),v.send(e.data?e.data:null),v)},t.get=function(n,e,i,r){return t.ajax(p.apply(null,arguments))},t.post=function(n,e,i,r){var o=p.apply(null,arguments);return o.type="POST",t.ajax(o)},t.getJSON=function(n,e,i){var r=p.apply(null,arguments);return r.dataType="json",t.ajax(r)},t.fn.load=function(n,e,i){if(!this.length)return this;var r=this,o=n.split(/\s/),a,s=p(n,e,i),u=s.success;return o.length>1&&(s.url=o[0],a=o[1]),s.success=function(n){r.html(a?t("<div>").html(n.replace(b,"")).find(a):n),u&&u.apply(r,arguments)},t.ajax(s),this};var S=encodeURIComponent;t.param=function(t,n){var e=[];return e.add=function(t,n){this.push(S(t)+"="+S(n))},d(e,t,n),e.join("&").replace(/%20/g,"+")}}(Zepto),function(t){t.fn.serializeArray=function(){var n=[],e;return t(Array.prototype.slice.call(this.get(0).elements)).each(function(){e=t(this);var i=e.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&i!="submit"&&i!="reset"&&i!="button"&&(i!="radio"&&i!="checkbox"||this.checked)&&n.push({name:e.attr("name"),value:e.val()})}),n},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(n){t.push(encodeURIComponent(n.name)+"="+encodeURIComponent(n.value))}),t.join("&")},t.fn.submit=function(n){if(n)this.bind("submit",n);else if(this.length){var e=t.Event("submit");this.eq(0).trigger(e),e.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(t,n){function e(t){return i(t.replace(/([a-z])([A-Z])/,"$1-$2"))}function i(t){return t.toLowerCase()}function r(t){return a?a+t:i(t)}var o="",a,s,u,c={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},l=window.document,f=l.createElement("div"),h=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,p,d,m,v,g,y,b,w={};t.each(c,function(t,e){if(f.style[t+"TransitionProperty"]!==n)return o="-"+i(t)+"-",a=e,!1}),p=o+"transform",w[d=o+"transition-property"]=w[m=o+"transition-duration"]=w[v=o+"transition-timing-function"]=w[g=o+"animation-name"]=w[y=o+"animation-duration"]=w[b=o+"animation-timing-function"]="",t.fx={off:a===n&&f.style.transitionProperty===n,speeds:{_default:400,fast:200,slow:600},cssPrefix:o,transitionEnd:r("TransitionEnd"),animationEnd:r("AnimationEnd")},t.fn.animate=function(n,e,i,r){return t.isPlainObject(e)&&(i=e.easing,r=e.complete,e=e.duration),e&&(e=(typeof e=="number"?e:t.fx.speeds[e]||t.fx.speeds._default)/1e3),this.anim(n,e,i,r)},t.fn.anim=function(i,r,o,a){var s,u={},c,l="",f=this,x,E=t.fx.transitionEnd;r===n&&(r=.4),t.fx.off&&(r=0);if(typeof i=="string")u[g]=i,u[y]=r+"s",u[b]=o||"linear",E=t.fx.animationEnd;else{c=[];for(s in i)h.test(s)?l+=s+"("+i[s]+") ":(u[s]=i[s],c.push(e(s)));l&&(u[p]=l,c.push(p)),r>0&&typeof i=="object"&&(u[d]=c.join(", "),u[m]=r+"s",u[v]=o||"linear")}return x=function(n){if(typeof n!="undefined"){if(n.target!==n.currentTarget)return;t(n.target).unbind(E,x)}t(this).css(w),a&&a.call(this)},r>0&&this.bind(E,x),this.size()&&this.get(0).clientLeft,this.css(u),r<=0&&setTimeout(function(){f.each(function(){x.call(this)})},0),this},f=null}(Zepto),function(t,n){function e(e,i,r,o,a){typeof i=="function"&&!a&&(a=i,i=n);var s={opacity:r};return o&&(s.scale=o,e.css(t.fx.cssPrefix+"transform-origin","0 0")),e.animate(s,i,null,a)}function i(n,i,r,o){return e(n,i,0,r,function(){s.call(t(this)),o&&o.call(this)})}var r=window.document,o=r.documentElement,a=t.fn.show,s=t.fn.hide,u=t.fn.toggle;t.fn.show=function(t,i){return a.call(this),t===n?t=0:this.css("opacity",0),e(this,t,1,"1,1",i)},t.fn.hide=function(t,e){return t===n?s.call(this):i(this,t,"0,0",e)},t.fn.toggle=function(e,i){return e===n||typeof e=="boolean"?u.call(this,e):this.each(function(){var n=t(this);n[n.css("display")=="none"?"show":"hide"](e,i)})},t.fn.fadeTo=function(t,n,i){return e(this,t,n,null,i)},t.fn.fadeIn=function(t,n){var e=this.css("opacity");return e>0?this.css("opacity",0):e=1,a.call(this).fadeTo(t,e,n)},t.fn.fadeOut=function(t,n){return i(this,t,null,n)},t.fn.fadeToggle=function(n,e){return this.each(function(){var i=t(this);i[i.css("opacity")==0||i.css("display")=="none"?"fadeIn":"fadeOut"](n,e)})}}(Zepto);
...\ No newline at end of file ...\ No newline at end of file
1 +/* Zepto v1.0-3-g342d490 - polyfill zepto detect event ajax form fx fx_methods - zeptojs.com/license */
2 +(function(a){String.prototype.trim===a&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.prototype.reduce===a&&(Array.prototype.reduce=function(b){if(this===void 0||this===null)throw new TypeError;var c=Object(this),d=c.length>>>0,e=0,f;if(typeof b!="function")throw new TypeError;if(d==0&&arguments.length==1)throw new TypeError;if(arguments.length>=2)f=arguments[1];else do{if(e in c){f=c[e++];break}if(++e>=d)throw new TypeError}while(!0);while(e<d)e in c&&(f=b.call(a,f,c[e],e,c)),e++;return f})})();var Zepto=function(){function E(a){return a==null?String(a):y[z.call(a)]||"object"}function F(a){return E(a)=="function"}function G(a){return a!=null&&a==a.window}function H(a){return a!=null&&a.nodeType==a.DOCUMENT_NODE}function I(a){return E(a)=="object"}function J(a){return I(a)&&!G(a)&&a.__proto__==Object.prototype}function K(a){return a instanceof Array}function L(a){return typeof a.length=="number"}function M(a){return g.call(a,function(a){return a!=null})}function N(a){return a.length>0?c.fn.concat.apply([],a):a}function O(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function P(a){return a in j?j[a]:j[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function Q(a,b){return typeof b=="number"&&!l[O(a)]?b+"px":b}function R(a){var b,c;return i[a]||(b=h.createElement(a),h.body.appendChild(b),c=k(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),c=="none"&&(c="block"),i[a]=c),i[a]}function S(a){return"children"in a?f.call(a.children):c.map(a.childNodes,function(a){if(a.nodeType==1)return a})}function T(c,d,e){for(b in d)e&&(J(d[b])||K(d[b]))?(J(d[b])&&!J(c[b])&&(c[b]={}),K(d[b])&&!K(c[b])&&(c[b]=[]),T(c[b],d[b],e)):d[b]!==a&&(c[b]=d[b])}function U(b,d){return d===a?c(b):c(b).filter(d)}function V(a,b,c,d){return F(b)?b.call(a,c,d):b}function W(a,b,c){c==null?a.removeAttribute(b):a.setAttribute(b,c)}function X(b,c){var d=b.className,e=d&&d.baseVal!==a;if(c===a)return e?d.baseVal:d;e?d.baseVal=c:b.className=c}function Y(a){var b;try{return a?a=="true"||(a=="false"?!1:a=="null"?null:isNaN(b=Number(a))?/^[\[\{]/.test(a)?c.parseJSON(a):a:b):a}catch(d){return a}}function Z(a,b){b(a);for(var c in a.childNodes)Z(a.childNodes[c],b)}var a,b,c,d,e=[],f=e.slice,g=e.filter,h=window.document,i={},j={},k=h.defaultView.getComputedStyle,l={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},m=/^\s*<(\w+|!)[^>]*>/,n=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,o=/^(?:body|html)$/i,p=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],r=h.createElement("table"),s=h.createElement("tr"),t={tr:h.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:s,th:s,"*":h.createElement("div")},u=/complete|loaded|interactive/,v=/^\.([\w-]+)$/,w=/^#([\w-]*)$/,x=/^[\w-]+$/,y={},z=y.toString,A={},B,C,D=h.createElement("div");return A.matches=function(a,b){if(!a||a.nodeType!==1)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=D).appendChild(a),d=~A.qsa(e,b).indexOf(a),f&&D.removeChild(a),d},B=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},C=function(a){return g.call(a,function(b,c){return a.indexOf(b)==c})},A.fragment=function(b,d,e){b.replace&&(b=b.replace(n,"<$1></$2>")),d===a&&(d=m.test(b)&&RegExp.$1),d in t||(d="*");var g,h,i=t[d];return i.innerHTML=""+b,h=c.each(f.call(i.childNodes),function(){i.removeChild(this)}),J(e)&&(g=c(h),c.each(e,function(a,b){p.indexOf(a)>-1?g[a](b):g.attr(a,b)})),h},A.Z=function(a,b){return a=a||[],a.__proto__=c.fn,a.selector=b||"",a},A.isZ=function(a){return a instanceof A.Z},A.init=function(b,d){if(!b)return A.Z();if(F(b))return c(h).ready(b);if(A.isZ(b))return b;var e;if(K(b))e=M(b);else if(I(b))e=[J(b)?c.extend({},b):b],b=null;else if(m.test(b))e=A.fragment(b.trim(),RegExp.$1,d),b=null;else{if(d!==a)return c(d).find(b);e=A.qsa(h,b)}return A.Z(e,b)},c=function(a,b){return A.init(a,b)},c.extend=function(a){var b,c=f.call(arguments,1);return typeof a=="boolean"&&(b=a,a=c.shift()),c.forEach(function(c){T(a,c,b)}),a},A.qsa=function(a,b){var c;return H(a)&&w.test(b)?(c=a.getElementById(RegExp.$1))?[c]:[]:a.nodeType!==1&&a.nodeType!==9?[]:f.call(v.test(b)?a.getElementsByClassName(RegExp.$1):x.test(b)?a.getElementsByTagName(b):a.querySelectorAll(b))},c.contains=function(a,b){return a!==b&&a.contains(b)},c.type=E,c.isFunction=F,c.isWindow=G,c.isArray=K,c.isPlainObject=J,c.isEmptyObject=function(a){var b;for(b in a)return!1;return!0},c.inArray=function(a,b,c){return e.indexOf.call(b,a,c)},c.camelCase=B,c.trim=function(a){return a.trim()},c.uuid=0,c.support={},c.expr={},c.map=function(a,b){var c,d=[],e,f;if(L(a))for(e=0;e<a.length;e++)c=b(a[e],e),c!=null&&d.push(c);else for(f in a)c=b(a[f],f),c!=null&&d.push(c);return N(d)},c.each=function(a,b){var c,d;if(L(a)){for(c=0;c<a.length;c++)if(b.call(a[c],c,a[c])===!1)return a}else for(d in a)if(b.call(a[d],d,a[d])===!1)return a;return a},c.grep=function(a,b){return g.call(a,b)},window.JSON&&(c.parseJSON=JSON.parse),c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){y["[object "+b+"]"]=b.toLowerCase()}),c.fn={forEach:e.forEach,reduce:e.reduce,push:e.push,sort:e.sort,indexOf:e.indexOf,concat:e.concat,map:function(a){return c(c.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return c(f.apply(this,arguments))},ready:function(a){return u.test(h.readyState)?a(c):h.addEventListener("DOMContentLoaded",function(){a(c)},!1),this},get:function(b){return b===a?f.call(this):this[b>=0?b:b+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){return e.every.call(this,function(b,c){return a.call(b,c,b)!==!1}),this},filter:function(a){return F(a)?this.not(this.not(a)):c(g.call(this,function(b){return A.matches(b,a)}))},add:function(a,b){return c(C(this.concat(c(a,b))))},is:function(a){return this.length>0&&A.matches(this[0],a)},not:function(b){var d=[];if(F(b)&&b.call!==a)this.each(function(a){b.call(this,a)||d.push(this)});else{var e=typeof b=="string"?this.filter(b):L(b)&&F(b.item)?f.call(b):c(b);this.forEach(function(a){e.indexOf(a)<0&&d.push(a)})}return c(d)},has:function(a){return this.filter(function(){return I(a)?c.contains(this,a):c(this).find(a).size()})},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!I(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!I(a)?a:c(a)},find:function(a){var b,d=this;return typeof a=="object"?b=c(a).filter(function(){var a=this;return e.some.call(d,function(b){return c.contains(b,a)})}):this.length==1?b=c(A.qsa(this[0],a)):b=this.map(function(){return A.qsa(this,a)}),b},closest:function(a,b){var d=this[0],e=!1;typeof a=="object"&&(e=c(a));while(d&&!(e?e.indexOf(d)>=0:A.matches(d,a)))d=d!==b&&!H(d)&&d.parentNode;return c(d)},parents:function(a){var b=[],d=this;while(d.length>0)d=c.map(d,function(a){if((a=a.parentNode)&&!H(a)&&b.indexOf(a)<0)return b.push(a),a});return U(b,a)},parent:function(a){return U(C(this.pluck("parentNode")),a)},children:function(a){return U(this.map(function(){return S(this)}),a)},contents:function(){return this.map(function(){return f.call(this.childNodes)})},siblings:function(a){return U(this.map(function(a,b){return g.call(S(b.parentNode),function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return c.map(this,function(b){return b[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null),k(this,"").getPropertyValue("display")=="none"&&(this.style.display=R(this.nodeName))})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var b=F(a);if(this[0]&&!b)var d=c(a).get(0),e=d.parentNode||this.length>1;return this.each(function(f){c(this).wrapAll(b?a.call(this,f):e?d.cloneNode(!0):d)})},wrapAll:function(a){if(this[0]){c(this[0]).before(a=c(a));var b;while((b=a.children()).length)a=b.first();c(a).append(this)}return this},wrapInner:function(a){var b=F(a);return this.each(function(d){var e=c(this),f=e.contents(),g=b?a.call(this,d):a;f.length?f.wrapAll(g):e.append(g)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(b){return this.each(function(){var d=c(this);(b===a?d.css("display")=="none":b)?d.show():d.hide()})},prev:function(a){return c(this.pluck("previousElementSibling")).filter(a||"*")},next:function(a){return c(this.pluck("nextElementSibling")).filter(a||"*")},html:function(b){return b===a?this.length>0?this[0].innerHTML:null:this.each(function(a){var d=this.innerHTML;c(this).empty().append(V(this,b,a,d))})},text:function(b){return b===a?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=b})},attr:function(c,d){var e;return typeof c=="string"&&d===a?this.length==0||this[0].nodeType!==1?a:c=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(c))&&c in this[0]?this[0][c]:e:this.each(function(a){if(this.nodeType!==1)return;if(I(c))for(b in c)W(this,b,c[b]);else W(this,c,V(this,d,a,this.getAttribute(c)))})},removeAttr:function(a){return this.each(function(){this.nodeType===1&&W(this,a)})},prop:function(b,c){return c===a?this[0]&&this[0][b]:this.each(function(a){this[b]=V(this,c,a,this[b])})},data:function(b,c){var d=this.attr("data-"+O(b),c);return d!==null?Y(d):a},val:function(b){return b===a?this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(a){return this.selected}).pluck("value"):this[0].value):this.each(function(a){this.value=V(this,b,a,this.value)})},offset:function(a){if(a)return this.each(function(b){var d=c(this),e=V(this,a,b,d.offset()),f=d.offsetParent().offset(),g={top:e.top-f.top,left:e.left-f.left};d.css("position")=="static"&&(g.position="relative"),d.css(g)});if(this.length==0)return null;var b=this[0].getBoundingClientRect();return{left:b.left+window.pageXOffset,top:b.top+window.pageYOffset,width:Math.round(b.width),height:Math.round(b.height)}},css:function(a,c){if(arguments.length<2&&typeof a=="string")return this[0]&&(this[0].style[B(a)]||k(this[0],"").getPropertyValue(a));var d="";if(E(a)=="string")!c&&c!==0?this.each(function(){this.style.removeProperty(O(a))}):d=O(a)+":"+Q(a,c);else for(b in a)!a[b]&&a[b]!==0?this.each(function(){this.style.removeProperty(O(b))}):d+=O(b)+":"+Q(b,a[b])+";";return this.each(function(){this.style.cssText+=";"+d})},index:function(a){return a?this.indexOf(c(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return e.some.call(this,function(a){return this.test(X(a))},P(a))},addClass:function(a){return this.each(function(b){d=[];var e=X(this),f=V(this,a,b,e);f.split(/\s+/g).forEach(function(a){c(this).hasClass(a)||d.push(a)},this),d.length&&X(this,e+(e?" ":"")+d.join(" "))})},removeClass:function(b){return this.each(function(c){if(b===a)return X(this,"");d=X(this),V(this,b,c,d).split(/\s+/g).forEach(function(a){d=d.replace(P(a)," ")}),X(this,d.trim())})},toggleClass:function(b,d){return this.each(function(e){var f=c(this),g=V(this,b,e,X(this));g.split(/\s+/g).forEach(function(b){(d===a?!f.hasClass(b):d)?f.addClass(b):f.removeClass(b)})})},scrollTop:function(){if(!this.length)return;return"scrollTop"in this[0]?this[0].scrollTop:this[0].scrollY},position:function(){if(!this.length)return;var a=this[0],b=this.offsetParent(),d=this.offset(),e=o.test(b[0].nodeName)?{top:0,left:0}:b.offset();return d.top-=parseFloat(c(a).css("margin-top"))||0,d.left-=parseFloat(c(a).css("margin-left"))||0,e.top+=parseFloat(c(b[0]).css("border-top-width"))||0,e.left+=parseFloat(c(b[0]).css("border-left-width"))||0,{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||h.body;while(a&&!o.test(a.nodeName)&&c(a).css("position")=="static")a=a.offsetParent;return a})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(b){c.fn[b]=function(d){var e,f=this[0],g=b.replace(/./,function(a){return a[0].toUpperCase()});return d===a?G(f)?f["inner"+g]:H(f)?f.documentElement["offset"+g]:(e=this.offset())&&e[b]:this.each(function(a){f=c(this),f.css(b,V(this,d,a,f[b]()))})}}),q.forEach(function(a,b){var d=b%2;c.fn[a]=function(){var a,e=c.map(arguments,function(b){return a=E(b),a=="object"||a=="array"||b==null?b:A.fragment(b)}),f,g=this.length>1;return e.length<1?this:this.each(function(a,h){f=d?h:h.parentNode,h=b==0?h.nextSibling:b==1?h.firstChild:b==2?h:null,e.forEach(function(a){if(g)a=a.cloneNode(!0);else if(!f)return c(a).remove();Z(f.insertBefore(a,h),function(a){a.nodeName!=null&&a.nodeName.toUpperCase()==="SCRIPT"&&(!a.type||a.type==="text/javascript")&&!a.src&&window.eval.call(window,a.innerHTML)})})})},c.fn[d?a+"To":"insert"+(b?"Before":"After")]=function(b){return c(b)[a](this),this}}),A.Z.prototype=c.fn,A.uniq=C,A.deserializeValue=Y,c.zepto=A,c}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(a){function b(a){var b=this.os={},c=this.browser={},d=a.match(/WebKit\/([\d.]+)/),e=a.match(/(Android)\s+([\d.]+)/),f=a.match(/(iPad).*OS\s([\d_]+)/),g=!f&&a.match(/(iPhone\sOS)\s([\d_]+)/),h=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),i=h&&a.match(/TouchPad/),j=a.match(/Kindle\/([\d.]+)/),k=a.match(/Silk\/([\d._]+)/),l=a.match(/(BlackBerry).*Version\/([\d.]+)/),m=a.match(/(BB10).*Version\/([\d.]+)/),n=a.match(/(RIM\sTablet\sOS)\s([\d.]+)/),o=a.match(/PlayBook/),p=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),q=a.match(/Firefox\/([\d.]+)/);if(c.webkit=!!d)c.version=d[1];e&&(b.android=!0,b.version=e[2]),g&&(b.ios=b.iphone=!0,b.version=g[2].replace(/_/g,".")),f&&(b.ios=b.ipad=!0,b.version=f[2].replace(/_/g,".")),h&&(b.webos=!0,b.version=h[2]),i&&(b.touchpad=!0),l&&(b.blackberry=!0,b.version=l[2]),m&&(b.bb10=!0,b.version=m[2]),n&&(b.rimtabletos=!0,b.version=n[2]),o&&(c.playbook=!0),j&&(b.kindle=!0,b.version=j[1]),k&&(c.silk=!0,c.version=k[1]),!k&&b.android&&a.match(/Kindle Fire/)&&(c.silk=!0),p&&(c.chrome=!0,c.version=p[1]),q&&(c.firefox=!0,c.version=q[1]),b.tablet=!!(f||o||e&&!a.match(/Mobile/)||q&&a.match(/Tablet/)),b.phone=!b.tablet&&!!(e||g||h||l||m||p&&a.match(/Android/)||p&&a.match(/CriOS\/([\d.]+)/)||q&&a.match(/Mobile/))}b.call(a,navigator.userAgent),a.__detect=b}(Zepto),function(a){function g(a){return a._zid||(a._zid=d++)}function h(a,b,d,e){b=i(b);if(b.ns)var f=j(b.ns);return(c[g(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||f.test(a.ns))&&(!d||g(a.fn)===g(d))&&(!e||a.sel==e)})}function i(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function j(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function k(b,c,d){a.type(b)!="string"?a.each(b,d):b.split(/\s/).forEach(function(a){d(a,c)})}function l(a,b){return a.del&&(a.e=="focus"||a.e=="blur")||!!b}function m(a){return f[a]||a}function n(b,d,e,h,j,n){var o=g(b),p=c[o]||(c[o]=[]);k(d,e,function(c,d){var e=i(c);e.fn=d,e.sel=h,e.e in f&&(d=function(b){var c=b.relatedTarget;if(!c||c!==this&&!a.contains(this,c))return e.fn.apply(this,arguments)}),e.del=j&&j(d,c);var g=e.del||d;e.proxy=function(a){var c=g.apply(b,[a].concat(a.data));return c===!1&&(a.preventDefault(),a.stopPropagation()),c},e.i=p.length,p.push(e),b.addEventListener(m(e.e),e.proxy,l(e,n))})}function o(a,b,d,e,f){var i=g(a);k(b||"",d,function(b,d){h(a,b,d,e).forEach(function(b){delete c[i][b.i],a.removeEventListener(m(b.e),b.proxy,l(b,f))})})}function t(b){var c,d={originalEvent:b};for(c in b)!r.test(c)&&b[c]!==undefined&&(d[c]=b[c]);return a.each(s,function(a,c){d[a]=function(){return this[c]=p,b[a].apply(b,arguments)},d[c]=q}),d}function u(a){if(!("defaultPrevented"in a)){a.defaultPrevented=!1;var b=a.preventDefault;a.preventDefault=function(){this.defaultPrevented=!0,b.call(this)}}}var b=a.zepto.qsa,c={},d=1,e={},f={mouseenter:"mouseover",mouseleave:"mouseout"};e.click=e.mousedown=e.mouseup=e.mousemove="MouseEvents",a.event={add:n,remove:o},a.proxy=function(b,c){if(a.isFunction(b)){var d=function(){return b.apply(c,arguments)};return d._zid=g(b),d}if(typeof c=="string")return a.proxy(b[c],b);throw new TypeError("expected function")},a.fn.bind=function(a,b){return this.each(function(){n(this,a,b)})},a.fn.unbind=function(a,b){return this.each(function(){o(this,a,b)})},a.fn.one=function(a,b){return this.each(function(c,d){n(this,a,b,null,function(a,b){return function(){var c=a.apply(d,arguments);return o(d,b,a),c}})})};var p=function(){return!0},q=function(){return!1},r=/^([A-Z]|layer[XY]$)/,s={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};a.fn.delegate=function(b,c,d){return this.each(function(e,f){n(f,c,d,b,function(c){return function(d){var e,g=a(d.target).closest(b,f).get(0);if(g)return e=a.extend(t(d),{currentTarget:g,liveFired:f}),c.apply(g,[e].concat([].slice.call(arguments,1)))}})})},a.fn.undelegate=function(a,b,c){return this.each(function(){o(this,b,c,a)})},a.fn.live=function(b,c){return a(document.body).delegate(this.selector,b,c),this},a.fn.die=function(b,c){return a(document.body).undelegate(this.selector,b,c),this},a.fn.on=function(b,c,d){return!c||a.isFunction(c)?this.bind(b,c||d):this.delegate(c,b,d)},a.fn.off=function(b,c,d){return!c||a.isFunction(c)?this.unbind(b,c||d):this.undelegate(c,b,d)},a.fn.trigger=function(b,c){if(typeof b=="string"||a.isPlainObject(b))b=a.Event(b);return u(b),b.data=c,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(b)})},a.fn.triggerHandler=function(b,c){var d,e;return this.each(function(f,g){d=t(typeof b=="string"?a.Event(b):b),d.data=c,d.target=g,a.each(h(g,b.type||b),function(a,b){e=b.proxy(d);if(d.isImmediatePropagationStopped())return!1})}),e},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}}),["focus","blur"].forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.each(function(){try{this[b]()}catch(a){}}),this}}),a.Event=function(a,b){typeof a!="string"&&(b=a,a=b.type);var c=document.createEvent(e[a]||"Events"),d=!0;if(b)for(var f in b)f=="bubbles"?d=!!b[f]:c[f]=b[f];return c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null),c.isDefaultPrevented=function(){return this.defaultPrevented},c}}(Zepto),function($){function triggerAndReturn(a,b,c){var d=$.Event(b);return $(a).trigger(d,c),!d.defaultPrevented}function triggerGlobal(a,b,c,d){if(a.global)return triggerAndReturn(b||document,c,d)}function ajaxStart(a){a.global&&$.active++===0&&triggerGlobal(a,null,"ajaxStart")}function ajaxStop(a){a.global&&!--$.active&&triggerGlobal(a,null,"ajaxStop")}function ajaxBeforeSend(a,b){var c=b.context;if(b.beforeSend.call(c,a,b)===!1||triggerGlobal(b,c,"ajaxBeforeSend",[a,b])===!1)return!1;triggerGlobal(b,c,"ajaxSend",[a,b])}function ajaxSuccess(a,b,c){var d=c.context,e="success";c.success.call(d,a,e,b),triggerGlobal(c,d,"ajaxSuccess",[b,c,a]),ajaxComplete(e,b,c)}function ajaxError(a,b,c,d){var e=d.context;d.error.call(e,c,b,a),triggerGlobal(d,e,"ajaxError",[c,d,a]),ajaxComplete(b,c,d)}function ajaxComplete(a,b,c){var d=c.context;c.complete.call(d,b,a),triggerGlobal(c,d,"ajaxComplete",[b,c]),ajaxStop(c)}function empty(){}function mimeToDataType(a){return a&&(a=a.split(";",2)[0]),a&&(a==htmlType?"html":a==jsonType?"json":scriptTypeRE.test(a)?"script":xmlTypeRE.test(a)&&"xml")||"text"}function appendQuery(a,b){return(a+"&"+b).replace(/[&?]{1,2}/,"?")}function serializeData(a){a.processData&&a.data&&$.type(a.data)!="string"&&(a.data=$.param(a.data,a.traditional)),a.data&&(!a.type||a.type.toUpperCase()=="GET")&&(a.url=appendQuery(a.url,a.data))}function parseArguments(a,b,c,d){var e=!$.isFunction(b);return{url:a,data:e?b:undefined,success:e?$.isFunction(c)?c:undefined:b,dataType:e?d||c:c}}function serialize(a,b,c,d){var e,f=$.isArray(b);$.each(b,function(b,g){e=$.type(g),d&&(b=c?d:d+"["+(f?"":b)+"]"),!d&&f?a.add(g.name,g.value):e=="array"||!c&&e=="object"?serialize(a,g,c,b):a.add(b,g)})}var jsonpID=0,document=window.document,key,name,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/;$.active=0,$.ajaxJSONP=function(a){if("type"in a){var b="jsonp"+ ++jsonpID,c=document.createElement("script"),d=function(){clearTimeout(g),$(c).remove(),delete window[b]},e=function(c){d();if(!c||c=="timeout")window[b]=empty;ajaxError(null,c||"abort",f,a)},f={abort:e},g;return ajaxBeforeSend(f,a)===!1?(e("abort"),!1):(window[b]=function(b){d(),ajaxSuccess(b,f,a)},c.onerror=function(){e("error")},c.src=a.url.replace(/=\?/,"="+b),$("head").append(c),a.timeout>0&&(g=setTimeout(function(){e("timeout")},a.timeout)),f)}return $.ajax(a)},$.ajaxSettings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},$.ajax=function(options){var settings=$.extend({},options||{});for(key in $.ajaxSettings)settings[key]===undefined&&(settings[key]=$.ajaxSettings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host),settings.url||(settings.url=window.location.toString()),serializeData(settings),settings.cache===!1&&(settings.url=appendQuery(settings.url,"_="+Date.now()));var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),$.ajaxJSONP(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=settings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.contentType!==!1&&settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=$.extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){xhr.onreadystatechange=empty,clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:$.parseJSON(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings):ajaxSuccess(result,xhr,settings)}else ajaxError(null,xhr.status?"error":"abort",xhr,settings)}};var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async);for(name in settings.headers)xhr.setRequestHeader(name,settings.headers[name]);return ajaxBeforeSend(xhr,settings)===!1?(xhr.abort(),!1):(settings.timeout>0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)},$.get=function(a,b,c,d){return $.ajax(parseArguments.apply(null,arguments))},$.post=function(a,b,c,d){var e=parseArguments.apply(null,arguments);return e.type="POST",$.ajax(e)},$.getJSON=function(a,b,c){var d=parseArguments.apply(null,arguments);return d.dataType="json",$.ajax(d)},$.fn.load=function(a,b,c){if(!this.length)return this;var d=this,e=a.split(/\s/),f,g=parseArguments(a,b,c),h=g.success;return e.length>1&&(g.url=e[0],f=e[1]),g.success=function(a){d.html(f?$("<div>").html(a.replace(rscript,"")).find(f):a),h&&h.apply(d,arguments)},$.ajax(g),this};var escape=encodeURIComponent;$.param=function(a,b){var c=[];return c.add=function(a,b){this.push(escape(a)+"="+escape(b))},serialize(c,a,b),c.join("&").replace(/%20/g,"+")}}(Zepto),function(a){a.fn.serializeArray=function(){var b=[],c;return a(Array.prototype.slice.call(this.get(0).elements)).each(function(){c=a(this);var d=c.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||this.checked)&&b.push({name:c.attr("name"),value:c.val()})}),b},a.fn.serialize=function(){var a=[];return this.serializeArray().forEach(function(b){a.push(encodeURIComponent(b.name)+"="+encodeURIComponent(b.value))}),a.join("&")},a.fn.submit=function(b){if(b)this.bind("submit",b);else if(this.length){var c=a.Event("submit");this.eq(0).trigger(c),c.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(a,b){function s(a){return t(a.replace(/([a-z])([A-Z])/,"$1-$2"))}function t(a){return a.toLowerCase()}function u(a){return d?d+a:t(a)}var c="",d,e,f,g={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},h=window.document,i=h.createElement("div"),j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,k,l,m,n,o,p,q,r={};a.each(g,function(a,e){if(i.style[a+"TransitionProperty"]!==b)return c="-"+t(a)+"-",d=e,!1}),k=c+"transform",r[l=c+"transition-property"]=r[m=c+"transition-duration"]=r[n=c+"transition-timing-function"]=r[o=c+"animation-name"]=r[p=c+"animation-duration"]=r[q=c+"animation-timing-function"]="",a.fx={off:d===b&&i.style.transitionProperty===b,speeds:{_default:400,fast:200,slow:600},cssPrefix:c,transitionEnd:u("TransitionEnd"),animationEnd:u("AnimationEnd")},a.fn.animate=function(b,c,d,e){return a.isPlainObject(c)&&(d=c.easing,e=c.complete,c=c.duration),c&&(c=(typeof c=="number"?c:a.fx.speeds[c]||a.fx.speeds._default)/1e3),this.anim(b,c,d,e)},a.fn.anim=function(c,d,e,f){var g,h={},i,t="",u=this,v,w=a.fx.transitionEnd;d===b&&(d=.4),a.fx.off&&(d=0);if(typeof c=="string")h[o]=c,h[p]=d+"s",h[q]=e||"linear",w=a.fx.animationEnd;else{i=[];for(g in c)j.test(g)?t+=g+"("+c[g]+") ":(h[g]=c[g],i.push(s(g)));t&&(h[k]=t,i.push(k)),d>0&&typeof c=="object"&&(h[l]=i.join(", "),h[m]=d+"s",h[n]=e||"linear")}return v=function(b){if(typeof b!="undefined"){if(b.target!==b.currentTarget)return;a(b.target).unbind(w,v)}a(this).css(r),f&&f.call(this)},d>0&&this.bind(w,v),this.size()&&this.get(0).clientLeft,this.css(h),d<=0&&setTimeout(function(){u.each(function(){v.call(this)})},0),this},i=null}(Zepto),function(a,b){function h(c,d,e,f,g){typeof d=="function"&&!g&&(g=d,d=b);var h={opacity:e};return f&&(h.scale=f,c.css(a.fx.cssPrefix+"transform-origin","0 0")),c.animate(h,d,null,g)}function i(b,c,d,e){return h(b,c,0,d,function(){f.call(a(this)),e&&e.call(this)})}var c=window.document,d=c.documentElement,e=a.fn.show,f=a.fn.hide,g=a.fn.toggle;a.fn.show=function(a,c){return e.call(this),a===b?a=0:this.css("opacity",0),h(this,a,1,"1,1",c)},a.fn.hide=function(a,c){return a===b?f.call(this):i(this,a,"0,0",c)},a.fn.toggle=function(c,d){return c===b||typeof c=="boolean"?g.call(this,c):this.each(function(){var b=a(this);b[b.css("display")=="none"?"show":"hide"](c,d)})},a.fn.fadeTo=function(a,b,c){return h(this,a,b,null,c)},a.fn.fadeIn=function(a,b){var c=this.css("opacity");return c>0?this.css("opacity",0):c=1,e.call(this).fadeTo(a,c,b)},a.fn.fadeOut=function(a,b){return i(this,a,null,b)},a.fn.fadeToggle=function(b,c){return this.each(function(){var d=a(this);d[d.css("opacity")==0||d.css("display")=="none"?"fadeIn":"fadeOut"](b,c)})}}(Zepto)
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 15
16 16
17 <title> 17 <title>
18 -游娱平台登录 18 +平台登录
19 </title> 19 </title>
20 </head> 20 </head>
21 <body> 21 <body>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
33 <span></span> 33 <span></span>
34 </div> 34 </div>
35 <!-- 登录模块 --> 35 <!-- 登录模块 -->
36 -<section id="login" class="hide" data-replace="1"> 36 +<section id="login" class="" data-replace="1">
37 <div class="new-sdk-container"> 37 <div class="new-sdk-container">
38 <div class="new-container-box"> 38 <div class="new-container-box">
39 <div class="SDK-titlebox"></div> 39 <div class="SDK-titlebox"></div>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 <i class="iconfont icon-xiangxia"></i> 49 <i class="iconfont icon-xiangxia"></i>
50 </div> 50 </div>
51 </div> 51 </div>
52 - <div class="pull-box"> 52 + <div class="pull-box horizontall">
53 <ul class="drop-ul"> 53 <ul class="drop-ul">
54 54
55 </ul> 55 </ul>
...@@ -60,17 +60,17 @@ ...@@ -60,17 +60,17 @@
60 <div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div> 60 <div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div>
61 </div> 61 </div>
62 <div class="other-login clearfix"> 62 <div class="other-login clearfix">
63 - <!--<p>第三方登录 63 + <p class="other-login-bx hide">第三方登录
64 - <a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="sina hide"> 64 + <a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide">
65 <i class=" iconfont icon-unie61d"></i> 65 <i class=" iconfont icon-unie61d"></i>
66 </a> 66 </a>
67 67
68 - <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide"> 68 + <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide">
69 </a> 69 </a>
70 70
71 - <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide"> 71 + <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide">
72 </a> 72 </a>
73 - </p>--> 73 + </p>
74 74
75 <label><a href="#find_pwd" class="forgetpsw">找回密码</a></label> 75 <label><a href="#find_pwd" class="forgetpsw">找回密码</a></label>
76 <div class="clear"></div> 76 <div class="clear"></div>
...@@ -97,7 +97,6 @@ ...@@ -97,7 +97,6 @@
97 </div> 97 </div>
98 </section> 98 </section>
99 <!-- end --> 99 <!-- end -->
100 -
101 <!-- 登录前模块 --> 100 <!-- 登录前模块 -->
102 <section id="login_before" class="hide" data-replace="1"> 101 <section id="login_before" class="hide" data-replace="1">
103 102
...@@ -136,9 +135,9 @@ ...@@ -136,9 +135,9 @@
136 <div class="ileft">账号:</div> 135 <div class="ileft">账号:</div>
137 <div class="iright"> 136 <div class="iright">
138 <input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required> 137 <input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required>
139 - <div class="bottom-icon drop-down"> 138 + <!--<div class="bottom-icon drop-down">
140 <i class="iconfont icon-xiangxia"></i> 139 <i class="iconfont icon-xiangxia"></i>
141 - </div> 140 + </div>-->
142 </div> 141 </div>
143 </div> 142 </div>
144 <div class="inputbox clearfix"> 143 <div class="inputbox clearfix">
...@@ -150,7 +149,7 @@ ...@@ -150,7 +149,7 @@
150 <div class="checkbox checkbox-2 l" > 149 <div class="checkbox checkbox-2 l" >
151 <i class="iconfont icon-xuanzhong"></i> 150 <i class="iconfont icon-xuanzhong"></i>
152 </div> 151 </div>
153 - <p class="l">接受<a href="agreement.html">游娱网络服务协议</a></p> 152 + <p class="l">接受<a href="#agreement">网络服务协议</a></p>
154 </span> 153 </span>
155 154
156 </div> 155 </div>
...@@ -166,21 +165,17 @@ ...@@ -166,21 +165,17 @@
166 165
167 </section> 166 </section>
168 <!-- end --> 167 <!-- end -->
169 -
170 -
171 <!-- 协议模块 --> 168 <!-- 协议模块 -->
172 <section id="agreement" class="hide"> 169 <section id="agreement" class="hide">
173 <div class="new-sdk-container"> 170 <div class="new-sdk-container">
174 <div class="SDK-titlebox"></div> 171 <div class="SDK-titlebox"></div>
175 <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> 172 <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
176 - <div class="new-sdk-content"> 173 + <div class="new-sdk-content" style="overflow: hidden;">
177 - <h3>游娱网络服务协议</h3> 174 + <h3>海豹游戏服务协议</h3>
178 - <div class="content-main"> 175 + <div class="content-main" style="height: 220px;">
179 - <p>欢迎申请游娱手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> 176 +
180 - <h4>一、账号注册</h4> 177 + <iframe src="agreement.html" name="myiframe" id="iframepage" frameborder="0" scrolling="auto" width="100%"></iframe>
181 - <p>欢迎申请游娱手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> 178 +
182 - <h4>二、账号注册</h4>
183 - <p>欢迎申请游娱手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
184 </div> 179 </div>
185 </div> 180 </div>
186 181
...@@ -254,6 +249,10 @@ ...@@ -254,6 +249,10 @@
254 <!-- end --> 249 <!-- end -->
255 <section id="message_detail" class="hide" data-attr="dot"> 250 <section id="message_detail" class="hide" data-attr="dot">
256 </section> 251 </section>
252 +<section id="identityCard" class="hide" data-attr="dot">
253 +</section>
254 +<section id="identityCard_ok" class="hide" data-attr="dot">
255 +</section>
257 <!-- 找回密码模块 --> 256 <!-- 找回密码模块 -->
258 <section id="find_pwd" class="hide" data-replace="1"> 257 <section id="find_pwd" class="hide" data-replace="1">
259 <input type="hidden" name="pwd_code" value=""> 258 <input type="hidden" name="pwd_code" value="">
...@@ -290,7 +289,7 @@ ...@@ -290,7 +289,7 @@
290 </div> 289 </div>
291 <ul class="inline-btn" style="margin-top: 15px;"> 290 <ul class="inline-btn" style="margin-top: 15px;">
292 <li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li> 291 <li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>
293 - <li style="background: none; border-radius: 20px;"><a class="btn" href="#home">返回</a></li> 292 + <li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li>
294 </ul> 293 </ul>
295 </div> 294 </div>
296 </div> 295 </div>
...@@ -313,10 +312,10 @@ ...@@ -313,10 +312,10 @@
313 </div>--> 312 </div>-->
314 <div class="function-list-content hide"> 313 <div class="function-list-content hide">
315 <div class="pwd_txt"> 314 <div class="pwd_txt">
316 - <div class="default_text" style="display: none;"> 315 + <div class="default_text">
317 - <p>客服QQ:<a href="javascript:;" id="js_kefu_qq">2739920773</a></p> 316 + <p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
318 - <p>客服电话:<a href="tel:020-87510588">020-87510588</a></p> 317 + <p>客服电话:<a href="tel:"></a></p>
319 - <p>玩家交流群:<a href="javascript:;" id="js_player">167355030</a></p> 318 + <p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
320 </div> 319 </div>
321 <div class="get_text"></div> 320 <div class="get_text"></div>
322 </div> 321 </div>
...@@ -351,19 +350,14 @@ ...@@ -351,19 +350,14 @@
351 <!-- end --> 350 <!-- end -->
352 <section id="help" class="hide" data-auth="1"> 351 <section id="help" class="hide" data-auth="1">
353 <div class="header"> 352 <div class="header">
354 - <span class="title">游娱手游平台</span> 353 + <span class="title">手游平台</span>
355 <a class="btn pull-left op-back" href="#home">返回</a> 354 <a class="btn pull-left op-back" href="#home">返回</a>
356 </div> 355 </div>
357 356
358 <div class="container"> 357 <div class="container">
359 <div class="box_info_center"> 358 <div class="box_info_center">
360 <div class='align-left'> 359 <div class='align-left'>
361 - <p class="">登陆游娱手游平台官网(<span class='text-error'> www.9133.com</span>)就可以:</p> 360 +
362 - <p class="text-indent">1.上传酷炫头像,设置更多个性资料</p>
363 - <p class="text-indent">2.绑定微博帐号,绑定邮箱,增强帐号安全</p>
364 - <p class="text-indent">3.用电脑方便充值还能获得返利</p>
365 - <p class="text-indent">4.海量精品游戏免费下载,附带攻略大全</p>
366 - <p class="text-indent">5.更多玩法,等你发现...</p>
367 </div> 361 </div>
368 </div> 362 </div>
369 </div> 363 </div>
...@@ -389,7 +383,6 @@ ...@@ -389,7 +383,6 @@
389 <!-- doT模板 --> 383 <!-- doT模板 -->
390 <section id="frame" data-attr="dot" class="hide" ></section> 384 <section id="frame" data-attr="dot" class="hide" ></section>
391 385
392 -
393 <script id="frame_template" type="text/x-jquery-tmpl" > 386 <script id="frame_template" type="text/x-jquery-tmpl" >
394 387
395 <div class="new-sdk-container"> 388 <div class="new-sdk-container">
...@@ -426,7 +419,11 @@ ...@@ -426,7 +419,11 @@
426 <p>{{=Core.Data.nickname}}</p> 419 <p>{{=Core.Data.nickname}}</p>
427 </div> 420 </div>
428 <div class="inline-btn pull-right w_45"> 421 <div class="inline-btn pull-right w_45">
422 + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}}
423 + <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a>
424 + {{??}}
429 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> 425 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
426 + {{?}}
430 </div> 427 </div>
431 </div> 428 </div>
432 <div class="bind-user"> 429 <div class="bind-user">
...@@ -437,8 +434,9 @@ ...@@ -437,8 +434,9 @@
437 <a class="btn btn-bind" href="#modify_pwd">马上升级</a> 434 <a class="btn btn-bind" href="#modify_pwd">马上升级</a>
438 </div> 435 </div>
439 </div> 436 </div>
437 + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
440 </div> 438 </div>
441 - {{?? Core.Data.is_guest == 2}} 439 + {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录-->
442 <div class="user-center-box"> 440 <div class="user-center-box">
443 <div class="top clearfix" style="border-bottom: none;"> 441 <div class="top clearfix" style="border-bottom: none;">
444 <div class="pull-left txt w_45"> 442 <div class="pull-left txt w_45">
...@@ -446,21 +444,32 @@ ...@@ -446,21 +444,32 @@
446 <p>{{=Core.Data.nickname}}</p> 444 <p>{{=Core.Data.nickname}}</p>
447 </div> 445 </div>
448 <div class="inline-btn pull-right w_45"> 446 <div class="inline-btn pull-right w_45">
447 + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}}
448 + <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a>
449 + {{??}}
449 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> 450 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
451 + {{?}}
450 </div> 452 </div>
451 </div> 453 </div>
452 - <ul class="list-item clearfix">
453 {{? Core.Data.bind_phone === ""}} 454 {{? Core.Data.bind_phone === ""}}
455 + <ul class="list-item clearfix">
454 <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> 456 <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
455 - {{??}}
456 - <li><a href="#unbindMobile">解绑手机</a></li>
457 - {{?}}
458 - <!--<li><a href="#mail">绑定邮箱</a></li>-->
459 <li><a href="#mibao">设置密保</a></li> 457 <li><a href="#mibao">设置密保</a></li>
460 <li><a href="#modify_pwd">修改密码</a></li> 458 <li><a href="#modify_pwd">修改密码</a></li>
461 </ul> 459 </ul>
462 - </div>
463 {{??}} 460 {{??}}
461 + <ul class="list-item clearfix">
462 + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
463 + <li style="width:50%;"><a href="#mibao">设置密保</a></li>
464 + </ul>
465 + <ul class="list-item clearfix" style="border-top:none;">
466 + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
467 + <li style="width:50%;"><a href="#identityCard">实名认证</a></li>
468 + </ul>
469 + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
470 + {{?}}
471 + </div>
472 + {{?? Core.Data.is_guest == 0}}
464 <div class="user-center-box"> 473 <div class="user-center-box">
465 <div class="top clearfix" style="border-bottom: none;"> 474 <div class="top clearfix" style="border-bottom: none;">
466 <div class="pull-left txt w_45"> 475 <div class="pull-left txt w_45">
...@@ -468,19 +477,71 @@ ...@@ -468,19 +477,71 @@
468 <p>{{=Core.Data.nickname}}</p> 477 <p>{{=Core.Data.nickname}}</p>
469 </div> 478 </div>
470 <div class="inline-btn pull-right w_45"> 479 <div class="inline-btn pull-right w_45">
480 + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}}
481 + <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a>
482 + {{??}}
471 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> 483 <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
484 + {{?}}
472 </div> 485 </div>
473 </div> 486 </div>
487 +
488 + {{? Core.Data.force_auth == 1}}
489 + <ul class="list-item clearfix">
490 + {{? Core.Data.bind_phone === ""}}
491 + <li style="position: relative;width:50%;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
492 + {{??}}
493 + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
494 + {{?}}
495 + <li style="width:50%;"><a href="#mibao">设置密保</a></li>
496 + </ul>
497 + <ul class="list-item clearfix" style="border-top:none;">
498 + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
499 + {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
500 + <li style="width:50%;"><a href="#identityCard">实名认证</a></li>
501 + {{??}}
502 + <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
503 + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
504 + </a></li>
505 + {{?}}
506 + </ul>
507 + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
508 + {{??}}
509 + {{? Core.Data.bind_phone === ""}}
510 + <ul class="list-item clearfix">
511 + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
512 + <li><a href="#mibao">设置密保</a></li>
513 + <li><a href="#modify_pwd">修改密码</a></li>
514 + </ul>
515 + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p>
516 + {{??}}
474 <ul class="list-item clearfix"> 517 <ul class="list-item clearfix">
518 + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
519 + <li style="width:50%;"><a href="#mibao">设置密保</a></li>
520 + </ul>
521 + <ul class="list-item clearfix" style="border-top:none;">
522 + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
523 + {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
524 + <li style="width:50%;"><a href="#identityCard">实名认证</a></li>
525 + {{??}}
526 + <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
527 + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
528 + </a></li>
529 + {{?}}
530 + </ul>
531 + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p>
532 + {{?}}
533 + {{?}}
534 + <!--<ul class="list-item clearfix">
475 {{? Core.Data.bind_phone === ""}} 535 {{? Core.Data.bind_phone === ""}}
476 <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> 536 <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
477 {{??}} 537 {{??}}
478 <li><a href="#unbindMobile">解绑手机</a></li> 538 <li><a href="#unbindMobile">解绑手机</a></li>
539 + <li><a href="#">实名认证</a></li>
479 {{?}} 540 {{?}}
480 - <!--<li><a href="#mail">绑定邮箱</a></li> -->
481 <li><a href="#mibao">设置密保</a></li> 541 <li><a href="#mibao">设置密保</a></li>
482 <li><a href="#modify_pwd">修改密码</a></li> 542 <li><a href="#modify_pwd">修改密码</a></li>
483 - </ul> 543 +
544 + </ul>-->
484 </div> 545 </div>
485 546
486 {{?}} 547 {{?}}
...@@ -615,6 +676,28 @@ ...@@ -615,6 +676,28 @@
615 676
616 677
617 </script> 678 </script>
679 +
680 +<script id="identityCard_template" type="text/x-jquery-tmpl" >
681 + <div class="new-sdk-container">
682 + <div class="SDK-titlebox"></div>
683 + <div class="user-center">
684 + <a href="#home" class="lefticon">
685 + <i class="iconfont icon-fanhui"></i>
686 + </a>
687 + 实名认证
688 + </div>
689 + <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" >
690 + <div class="new-sdk-box">
691 + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div>
692 + <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div>
693 + </div>
694 + <ul class="inline-btn">
695 + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li>
696 + </ul>
697 + </form>
698 + </div>
699 +</script>
700 +
618 <script id="mibao_template" type="text/x-jquery-tmpl" > 701 <script id="mibao_template" type="text/x-jquery-tmpl" >
619 {{? Core.Data.safe_question == "" }} 702 {{? Core.Data.safe_question == "" }}
620 <div class="new-sdk-container"> 703 <div class="new-sdk-container">
...@@ -625,21 +708,25 @@ ...@@ -625,21 +708,25 @@
625 </a> 708 </a>
626 设置密保 709 设置密保
627 </div> 710 </div>
628 - <form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" > 711 + <form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" onkeydown="if(event.keyCode==13) return false;" >
629 <div class="new-sdk-box"> 712 <div class="new-sdk-box">
630 - <div class="input select" style="padding: 25px;"> 713 + <div class="input select" style="padding:0 25px; position: relative;">
631 <select name="question" class="" > 714 <select name="question" class="" >
632 {{~ Core.Data.question_list :item:index }} 715 {{~ Core.Data.question_list :item:index }}
633 <option value='{{=item}}'>{{=item}}</option> 716 <option value='{{=item}}'>{{=item}}</option>
634 {{~}} 717 {{~}}
635 -
636 </select> 718 </select>
719 + <i class="iconfont icon-xiangxia" style="
720 + position: absolute;
721 + right: -25px;
722 + top: 21px;
723 + "></i>
637 </div> 724 </div>
638 <div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div> 725 <div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div>
639 <p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p> 726 <p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p>
640 </div> 727 </div>
641 <ul class="inline-btn"> 728 <ul class="inline-btn">
642 - <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange ">保存设置</a></li> 729 + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">保存设置</a></li>
643 </ul> 730 </ul>
644 </form> 731 </form>
645 </div> 732 </div>
...@@ -657,8 +744,6 @@ ...@@ -657,8 +744,6 @@
657 <div class="new-sdk-box"> 744 <div class="new-sdk-box">
658 <p>问题:{{=Core.Data.safe_question}}</p> 745 <p>问题:{{=Core.Data.safe_question}}</p>
659 <p>答案:{{=Core.Data.safe_answer}}</p> 746 <p>答案:{{=Core.Data.safe_answer}}</p>
660 -
661 - <p>修改密保设置请访问<a href="javascript:Core.goTo('http://m.9133.com')">www.9133.com</a></p>
662 </div> 747 </div>
663 </form> 748 </form>
664 </div> 749 </div>
...@@ -670,7 +755,7 @@ ...@@ -670,7 +755,7 @@
670 <div class="new-sdk-container"> 755 <div class="new-sdk-container">
671 <div class="SDK-titlebox"></div> 756 <div class="SDK-titlebox"></div>
672 <div class="user-center"> 757 <div class="user-center">
673 - <a href="#login" class="lefticon"> 758 + <a href="#login" class="lefticon back-btn">
674 <i class="iconfont icon-fanhui"></i> 759 <i class="iconfont icon-fanhui"></i>
675 </a> 760 </a>
676 密保找回密码 761 密保找回密码
...@@ -824,6 +909,23 @@ ...@@ -824,6 +909,23 @@
824 </div> 909 </div>
825 </div> 910 </div>
826 </script> 911 </script>
912 +<script id="identityCard_ok_template" type="text/x-jquery-tmpl">
913 + <div class="new-sdk-container">
914 + <div class="SDK-titlebox"></div>
915 + <div class="user-center">
916 + <a href="#home" class="lefticon">
917 + <i class="iconfont icon-fanhui"></i>
918 + </a>
919 + 实名认证
920 + </div>
921 + <div class="new-sdk-box">
922 + <div class="acount-name">
923 + <p style="margin-top: 0;">姓名:<span class="compellation_name"></span></p>
924 + <p>身份证:<span class="identity_card"></span></p>
925 + </div>
926 + </div>
927 + </div>
928 +</script>
827 <script id="message_detail_template" type="text/x-jquery-tmpl"> 929 <script id="message_detail_template" type="text/x-jquery-tmpl">
828 <div class="header"> 930 <div class="header">
829 <a class="btn pull-left op-back" href="#message">返回</a> 931 <a class="btn pull-left op-back" href="#message">返回</a>
...@@ -928,6 +1030,7 @@ ...@@ -928,6 +1030,7 @@
928 <script type="text/javascript" src="js/doT.min.js?20150923001" ></script> 1030 <script type="text/javascript" src="js/doT.min.js?20150923001" ></script>
929 <script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script> 1031 <script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script>
930 <script type="text/javascript"> 1032 <script type="text/javascript">
1033 +
931 window.isGetData = 0; 1034 window.isGetData = 0;
932 $(function() { 1035 $(function() {
933 FastClick.attach(document.body); 1036 FastClick.attach(document.body);
...@@ -936,13 +1039,14 @@ FastClick.attach(document.body); ...@@ -936,13 +1039,14 @@ FastClick.attach(document.body);
936 <script type="text/javascript" src="js/core.min.js?20150923001" ></script> 1039 <script type="text/javascript" src="js/core.min.js?20150923001" ></script>
937 <script type="text/javascript" src="js/login.min.js?2016111" ></script> 1040 <script type="text/javascript" src="js/login.min.js?2016111" ></script>
938 <script type="text/javascript" src="js/loader.min.js?20150923001"></script> 1041 <script type="text/javascript" src="js/loader.min.js?20150923001"></script>
939 - 1042 +<script type="text/javascript" src="js/simpScroller-min.js"></script>
1043 +<script type="text/javascript" src="js/identity_id.js" ></script>
940 <script type="text/javascript"> 1044 <script type="text/javascript">
941 window.onload = window.onresize = initMatching; 1045 window.onload = window.onresize = initMatching;
942 (function(){ 1046 (function(){
943 getData('/sdk/login/json'); 1047 getData('/sdk/login/json');
944 })(); 1048 })();
945 - 1049 +simpScroller(document.querySelector(".horizontall"), {});
946 // $(document).ready(function(){ 1050 // $(document).ready(function(){
947 // setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000) 1051 // setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000)
948 // }) 1052 // })
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;} 16 .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;}
17 </style> 17 </style>
18 <title> 18 <title>
19 -游娱手游平台支付 19 +手游平台支付
20 </title> 20 </title>
21 </head> 21 </head>
22 <body> 22 <body>
...@@ -160,29 +160,28 @@ ...@@ -160,29 +160,28 @@
160 <div class="container"> 160 <div class="container">
161 <div class="box_info_center"> 161 <div class="box_info_center">
162 <h2 class="align-left"> 162 <h2 class="align-left">
163 - 请选择要充值{{=Core.Data.game_unit_name || ''}}的数量 163 +
164 </h2> 164 </h2>
165 <p class="align-left text-muted"> 165 <p class="align-left text-muted">
166 - 注:充值 <span class="text-info">1</span>元可购买 <span class="text-info">{{=Core.Data.exchange_rate*Core.Data.rate || ''}}</span>{{=Core.Data.game_unit || ''}}{{=Core.Data.game_unit_name || ''}} 166 +
167 </p> 167 </p>
168 - <div class="amount_level align-left" > 168 + <br>
169 - {{~ Core.Data.amount_level :item:index }}
170 - {{? parseInt(item) }}
171 - <input type="button" value="{{=parseInt(item)}}" class="btn" data="{{=item}}" />
172 - {{?}}
173 - {{~}}
174 - </div>
175 <p class="align-left text-success tips9133"> 169 <p class="align-left text-success tips9133">
176 {{? Core.Data.pay_only != 1 }} 170 {{? Core.Data.pay_only != 1 }}
177 {{? Core.Data.is_guest == 1}} 171 {{? Core.Data.is_guest == 1}}
178 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。 172 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。
179 {{??}} 173 {{??}}
180 - {{? Core.Data.vip > 0}} 174 +
181 - {{??}}
182 - {{?}}
183 {{?}} 175 {{?}}
184 {{?}} 176 {{?}}
185 </p> 177 </p>
178 +
179 + <br>
180 + <div class="amount_level align-left" >
181 + <a href="javascript:Core.finishPay()" id="back-btn" class="btn larg conBtn " style="text-align: center;display:none">请返回游戏</a>
182 + <br>
183 + </div>
184 +
186 </div> 185 </div>
187 </div> 186 </div>
188 </script> 187 </script>
...@@ -202,7 +201,7 @@ ...@@ -202,7 +201,7 @@
202 </form> 201 </form>
203 <p class="text-warning align-left">游客账号是系统临时生成,存在风险,为了您的账号安全建议升级永久账号。</p> 202 <p class="text-warning align-left">游客账号是系统临时生成,存在风险,为了您的账号安全建议升级永久账号。</p>
204 {{??}} 203 {{??}}
205 - <p class="text-success align-left">您的账号已经成功升级成游娱手游平台永久账号,登录<a href="sdk://open?url=http://m.9133.com">9133.com</a>可以了解更多特权。</p> 204 + <p class="text-success align-left">您的账号已经成功升级成手游平台永久账号。</p>
206 {{?}} 205 {{?}}
207 </div> 206 </div>
208 </div> 207 </div>
...@@ -229,13 +228,13 @@ ...@@ -229,13 +228,13 @@
229 228
230 <div class="proxy_pay"> 229 <div class="proxy_pay">
231 <p> 230 <p>
232 - <input class="larg" type="text" data-key="pay_user" required="required" name="pay_user" placeholder="请输入代付人游娱手游平台帐号" /> 231 + <input class="larg" type="text" data-key="pay_user" required="required" name="pay_user" placeholder="请输入代付人手游平台帐号" />
233 </p> 232 </p>
234 <p> 233 <p>
235 <input class="larg" type="text" name="pay_message" placeholder="给他留言···" /> 234 <input class="larg" type="text" name="pay_message" placeholder="给他留言···" />
236 </p> 235 </p>
237 - <input class="larg btn" type="submit" value="发起代付" /> 236 +
238 - <p class="align-left small"><span class="error">*</span>注:游娱手游平台登录帐号,不是游戏角色名称</p> 237 + <p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p>
239 </div> 238 </div>
240 </div> 239 </div>
241 </div> 240 </div>
...@@ -269,7 +268,7 @@ ...@@ -269,7 +268,7 @@
269 <input type="number" name="vdcode" id="vdcode" required="" placeholder="输入验证码"> 268 <input type="number" name="vdcode" id="vdcode" required="" placeholder="输入验证码">
270 <img id="vdimgck1" src="{{=Core.server}}/validate_code/" onclick="this.src=this.src+'?'+(new Date()).getTime()" style="cursor: pointer;" alt="看不清?点击更换" /> 269 <img id="vdimgck1" src="{{=Core.server}}/validate_code/" onclick="this.src=this.src+'?'+(new Date()).getTime()" style="cursor: pointer;" alt="看不清?点击更换" />
271 </div> 270 </div>
272 - <input class="larg btn" type="submit" value="确认兑换" /> 271 +
273 <hr/> 272 <hr/>
274 <div class="clearfix"> 273 <div class="clearfix">
275 <a href="#channel_list&force" class="btn width100" >使用支付宝、银行卡、神州行充值</a> 274 <a href="#channel_list&force" class="btn width100" >使用支付宝、银行卡、神州行充值</a>
...@@ -281,7 +280,7 @@ ...@@ -281,7 +280,7 @@
281 280
282 <script id='channel_list_template' type='text/x-jquery-tmpl'> 281 <script id='channel_list_template' type='text/x-jquery-tmpl'>
283 <div class="header"> 282 <div class="header">
284 - <span class="title">游娱充值中心</span> 283 + <span class="title">充值中心</span>
285 {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }} 284 {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }}
286 <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> 285 <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a>
287 {{??}} 286 {{??}}
...@@ -312,7 +311,7 @@ ...@@ -312,7 +311,7 @@
312 311
313 <div class="channel_list align-left" > 312 <div class="channel_list align-left" >
314 {{? Core.Data.youai_star <= Core.Data.total_amount }} 313 {{? Core.Data.youai_star <= Core.Data.total_amount }}
315 - /*<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>*/ 314 + <!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2"></span></a>-->
316 {{?}} 315 {{?}}
317 {{~Core.Data.game_pay_channel_list :item:index }} 316 {{~Core.Data.game_pay_channel_list :item:index }}
318 {{?item.name}} 317 {{?item.name}}
...@@ -334,7 +333,7 @@ ...@@ -334,7 +333,7 @@
334 333
335 <div class="warm-prompt align-left"> 334 <div class="warm-prompt align-left">
336 <h2>温馨提示</h2> 335 <h2>温馨提示</h2>
337 - <p>* 充值过程中遇到问题,可<a href="#">联系游娱客服</a></p> 336 + <p>* 充值过程中遇到问题,可<a href="#">联系客服</a></p>
338 <p>* {{=Core.Data.money}}={{=Core.Data.game_amount}} {{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}},充值一般1-10分钟即可到账,请放心充值。</p> 337 <p>* {{=Core.Data.money}}={{=Core.Data.game_amount}} {{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}},充值一般1-10分钟即可到账,请放心充值。</p>
339 /*<p> 338 /*<p>
340 * 充值<span class="text-info">{{=Core.Data.game_amount}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}}需要支付<span class="text-info">{{=Core.Data.money}}</span>元人民币. 339 * 充值<span class="text-info">{{=Core.Data.game_amount}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}}需要支付<span class="text-info">{{=Core.Data.money}}</span>元人民币.
...@@ -383,7 +382,7 @@ ...@@ -383,7 +382,7 @@
383 <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> 382 <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" />
384 {{? Core.Data.current_pay_channel }} 383 {{? Core.Data.current_pay_channel }}
385 <input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" /> 384 <input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" />
386 - {{?}} 385 +
387 <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> 386 <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" />
388 <input type="hidden" name="money" value="{{=Core.Data.money}}" /> 387 <input type="hidden" name="money" value="{{=Core.Data.money}}" />
389 <div class="require_input "> 388 <div class="require_input ">
...@@ -424,7 +423,7 @@ ...@@ -424,7 +423,7 @@
424 <div class="warm-prompt"> 423 <div class="warm-prompt">
425 <h2>温馨提示</h2> 424 <h2>温馨提示</h2>
426 <p>* 请根据充值卡面额选择正确的充值金额,并确保卡号密码输入无误。</p> 425 <p>* 请根据充值卡面额选择正确的充值金额,并确保卡号密码输入无误。</p>
427 - <p>* 充值过程中遇到问题,<a href="#">可联系游娱客服</a></p> 426 + <p>* 充值过程中遇到问题,<a href="#">可联系客服</a></p>
428 /*<p class="align-left text-muted select-info"></p>*/ 427 /*<p class="align-left text-muted select-info"></p>*/
429 </div> 428 </div>
430 {{?? }} 429 {{?? }}
...@@ -435,6 +434,7 @@ ...@@ -435,6 +434,7 @@
435 <input class="larg btn zhifubaoBtn" type="submit" value="前往付款" /> 434 <input class="larg btn zhifubaoBtn" type="submit" value="前往付款" />
436 {{?}} 435 {{?}}
437 </div> 436 </div>
437 + {{?}}
438 </form> 438 </form>
439 </div> 439 </div>
440 440
...@@ -516,26 +516,10 @@ ...@@ -516,26 +516,10 @@
516 </div> 516 </div>
517 <div class="container align-left"> 517 <div class="container align-left">
518 <div class="box_info_center"> 518 <div class="box_info_center">
519 - <p id="share" class="clearfix"> 519 +
520 - <span>分享到:</span>
521 - <a class="s_qzone" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey" title="QQ空间"></a>
522 - <a class="s_tqq" data-appkey="0af6f17f08f3ab2b52c6df3a3ed9b60b" href="http://share.v.t.qq.com/index.php" title="腾讯微博"></a>
523 - </p>
524 - <p id="share_weixin" class="clearfix">
525 - <span>分享到微信:</span>
526 - 点击右上角按钮,选择“<span class="text-info">发送给朋友</span>”或者“<span class="text-info">分享到朋友圈</span>”即可完成分享;
527 - </p>
528 <div class="fs_box invite_box"> 520 <div class="fs_box invite_box">
529 <h3 class="text-info">奖励说明:</h3> 521 <h3 class="text-info">奖励说明:</h3>
530 - <p> 522 +
531 - 1.成功邀请好友一起玩游戏,您可获得<span class="text-info">5{{=Core.Data.game_unit_name}}</span>的奖励。
532 - </p>
533 - <p>
534 - 2.好友若充值(限前10),您可获得<span class="text-info">5%</span>充值奖励。
535 - </p>
536 - <p>
537 - 3.好友首次充值,因被您邀请可额外获得<span class="text-info">10%</span>充值返利。
538 - </p>
539 </div> 523 </div>
540 </div> 524 </div>
541 </div> 525 </div>
...@@ -564,11 +548,11 @@ ...@@ -564,11 +548,11 @@
564 </ol> 548 </ol>
565 </div> 549 </div>
566 <div class="sec sec_invtite"> 550 <div class="sec sec_invtite">
567 - <p class="title-fs">方式二:邀请好友可获得{{=Core.Data.game_unit_name}}&nbsp;&nbsp;<a href="#invite_friend">立即去邀请</a></p> 551 +
568 </div> 552 </div>
569 {{??}} 553 {{??}}
570 <div class="sec sec_invtite"> 554 <div class="sec sec_invtite">
571 - <p class="title-fs">方式一:邀请好友可获得{{=Core.Data.game_unit_name}}&nbsp;&nbsp;<a href="#invite_friend">立即去邀请</a></p> 555 +
572 </div> 556 </div>
573 {{?}} 557 {{?}}
574 </div> 558 </div>
...@@ -647,7 +631,7 @@ ...@@ -647,7 +631,7 @@
647 631
648 <script id='tpl_kefu_list_template' type='text/x-jquery-tmpl'> 632 <script id='tpl_kefu_list_template' type='text/x-jquery-tmpl'>
649 {{? it.model_list.length == 1 }} 633 {{? it.model_list.length == 1 }}
650 - <p>您好,游娱手游平台客服MM全身心为您服务。请点击右上角的按钮输入您所遇到的问题,或者点击常见问题查看是否有您遇到的问题。</p> 634 + <p>您好,手游平台客服MM全身心为您服务。请点击右上角的按钮输入您所遇到的问题,或者点击常见问题查看是否有您遇到的问题。</p>
651 {{??}} 635 {{??}}
652 {{~ it.model_list :item:index }} 636 {{~ it.model_list :item:index }}
653 {{? item.id}} 637 {{? item.id}}
...@@ -805,6 +789,11 @@ FastClick.attach(document.body); ...@@ -805,6 +789,11 @@ FastClick.attach(document.body);
805 (function(){ 789 (function(){
806 getData('/sdk/pay/json'); 790 getData('/sdk/pay/json');
807 })(); 791 })();
792 +$(function(){
793 + if (Core.isIos) {
794 + $('meta[name="viewport"]').attr('content','width=800,maximum-scale=1,user-scalable=no');
795 + }
796 +});
808 </script> 797 </script>
809 798
810 </body> 799 </body>
......
1 +date:2017-4-11
2 +author
3 +:lizenghua
4 +instructions
5 +:与星玩SDK同步
6 +
7 +date:2017-4-12
8 +author:lizenghua
9 +instructions:修复当账户及密码为空时(本地存储的账号密码数据为空),通过密保找回密码时一直处于加载中无法跳转的问题
10 +
11 +date:2017-4-21
12 +author:lizenghua
13 +instructions:
14 + 1、当用户是正式用户并绑定了手机后进行实名认证;身份证校验js:identity_id.js
15 + 改动的文件有:login.html、login.js(同步在sdk_xingwan、sdk_6)
16 + 2、改动注释了pay.js里面的911行到918行:进入sdk要购买的游戏币>0时强制进入渠道充值页面(已同步在sdk_xingwan、sdk_6)
17 +
18 +date:2017-4-24
19 +author:lizenghua
20 +instructions:
21 + 1、处理绑定手机的手机验证规则(176),
22 + 2、手机找回密码中重置密码残留旧密码问题
23 +
24 +
25 +date:2017-5-3
26 +author:lizenghua
27 +instructions:
28 + 1、注释掉pay.html中的“游爱星”兑换入口
29 + 2、处理支付方式切换中出现 input_item 为undefind 的bug (将383行的{{?}}移至435行)
30 + 3、去掉设置密保中select默认的下拉图标(login.css)
31 + 4、如果没有第三方登录则隐藏掉“第三方登录”字眼
32 +
33 +date:2017-5-8
34 +author:lizenghua
35 +instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c改成$(this))
36 +
37 +date:2017-5-12
38 +author:lizenghua
39 +instructions:修改充值的界面显示大小
...\ No newline at end of file ...\ No newline at end of file
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 <link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" /> 13 <link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" />
14 <link href="skin/responsive.min.css?v=20150318001" type="text/css" rel="stylesheet" /> 14 <link href="skin/responsive.min.css?v=20150318001" type="text/css" rel="stylesheet" />
15 <title> 15 <title>
16 -游娱手游平台登录 16 +手游平台登录
17 </title> 17 </title>
18 </head> 18 </head>
19 <body> 19 <body>
......
1 -@charset "utf-8";html[data-useragent='ios'] .other-menu{display:none}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0}body{margin:0 auto;padding:0;font:14px/1.5 微软雅黑,Microsoft Yahei;overflow-x:hidden;font-weight:normal}.clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}img{border:0}ol,ul{list-style:none}a{color:#000;text-decoration:none}*{text-shadow:none}.l{float:left}section{position:relative;top:0;left:0;width:100%;height:100%;overflow-x:hidden}.l{float:left}.hide{display:none}a,input,textarea,select{outline:0}a:focus{outline:thin dotted}.red{color:red}@font-face{font-family:"iconfont";src:url('../font/iconfont.eot?t=1468997064');src:url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'),url('../font/iconfont.woff?t=1468997064') format('woff'),url('../font/iconfont.ttf?t=1468997064') format('truetype'),url('../font/iconfont.svg?t=1468997064#iconfont') format('svg')}.iconfont{font-family:"iconfont"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}.icon-weixin:before{content:"\e600";font-size:1.8em;color:#0bb515}.icon-qq:before{content:"\e601";font-size:1.8em;color:#00beef}.icon-iconfontcha:before{content:"\e609"}.icon-qq1:before{content:"\e602";font-size:1.8em;color:#00beef}.icon-weixin1:before{content:"\e603"}.icon-qq2:before{content:"\e604";font-size:1.8em;color:#00beef}.icon-iconfontxiangyou:before{content:"\e60a";color:#fff;font-size:1.6em}.icon-iconfontcolor19:before{content:"\e60b"}.icon-xuanzhong:before{content:"\e60c";color:#ff9600;font-size:1.6em}.icon-triangle-l:before{content:"\e605"}.icon-shuangyuanquan:before{content:"\e60d";color:#089b55}.icon-weixin2:before{content:"\e606"}.icon-xiangyou:before{content:"\e60e"}.icon-fuxuankuangyixuanze:before{content:"\e607"}.icon-xiangxia:before{content:"\e60f";color:#ddd;font-size:30px}.icon-icon3:before{content:"\e608"}.icon-fanhui:before{content:"\e610";color:#00beef;font-size:36px}.icon-yonghutouxiang:before{content:"\e611";color:#c1c1c1;font-size:75px}.icon-triangle-left-copy:before{content:"\e612";color:#ddd;font-size:1.8em}.new-sdk-container{position:relative;background:#f6f6f6;height:100%}html{position:relative;background:#f6f6f6;height:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{width:100%;height:100%;background-size:100%}.mask{position:relative;height:100%}.redround{display:inline-block;width:5px;height:5px;background:red;border-radius:50px;position:absolute;right:10px;top:10px}.container.activity{position:absolute;left:0;top:133x;bottom:0;right:0;height:calc(100% - 134px)}.SDK-titlebox{height:33px;background:#00beef}.new-sdk-container .new-sdk-logo{text-align:center;width:100%}.new-sdk-container .new-sdk-logo img{display:block;width:210px;margin:0 auto;padding:15px 0 0 0}.new-sdk-container .new-sdk-box{padding:20px 37px;border-top:1px solid #c4c3c3;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.new-sdk-container .new-sdk-box .input{margin-bottom:15px;border:1px solid #c0c0c0;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;padding:25px 0;background:#fff;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.new-sdk-container .new-sdk-box .input input{display:inline-block;width:100%;background:none;border:none;color:#000;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;height:45px;line-height:45px;vertical-align:middle;margin:20px 0}.new-sdk-container .new-sdk-box .inputCode input,.new-sdk-container .new-sdk-box .inputCode .getCode{width:100%;background:none;border:none;color:#000;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.new-sdk-container .new-sdk-box .inputCode .input{float:left;width:55%;padding:0}.new-sdk-container .new-sdk-box .inputCode .getCode{width:40%;float:right;color:#ff9600;border:1px solid #ff9600;border-radius:10px;text-align:center}.new-sdk-container .new-sdk-box .inputCode .getCode.disabled{border:1px solid #c0c0c0;color:#c0c0c0;cursor:none;pointer-events:none}.new-sdk-container .new-sdk-box p,.new-sdk-container .new-sdk-box p a{color:#434343;font-size:24px;font-family:"Microsoft YaHei","微软雅黑";margin:20px 0 0}.new-sdk-container .new-sdk-box .acount-name p span.phoneMobile{color:#434343}.new-sdk-container .new-sdk-box p span{color:#da8000}.new-sdk-container .inline-btn{overflow:auto;zoom:1;width:88%;margin:0 auto 25px auto}.new-sdk-container .inline-btn li{float:left;width:45%;text-align:center;background:#ff9600;border-radius:20px;padding:26px 0}.new-sdk-container .inline-btn li:nth-child(2n+2){float:right;background:#00beef}.new-sdk-container .login-inline-btn li{background:#00beef}.new-sdk-container .login-inline-btn li:nth-child(2n+2){background:#ff9600}.new-sdk-container .only-btn{position:relative;text-align:center;width:calc(100% - 2em);width:-moz-calc(100% - 2em);width:-webkit-calc(100% - 2em);padding:10px 0;border-radius:10px;margin:1.0em auto 0}.new-sdk-container .only-btn a.btn-orange{display:block;width:235px;margin:0 auto;border-radius:10px;font-size:30px;padding:25px 0}.new-sdk-container .only-btn .readyed{position:absolute;right:0;top:5px;color:#000;font-family:"Microsoft YaHei","微软雅黑";font-size:18px}.new-sdk-container .inline-btn a,.new-sdk-container .only-btn a{display:block;color:#fff;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";letter-spacing:2px}.new-sdk-container .inline-btn .btn{display:inline-block;border:0;background:#00beef;color:#fff;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";letter-spacing:2px;cursor:pointer;width:100%;vertical-align:middle;border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px}.new-sdk-container .inline-btn .btn-orange{background:#ff9600}.new-sdk-container .new-sdk-box .input select{width:100%;height:38px;line-height:38px;background:none;border:none;color:#434343;font-size:30px;font-family:"Microsoft YaHei","微软雅黑"}.select2-container{min-width:100%}.new-sdk-container .new-sdk-box .new-sdk-psw{padding:0 25px}.new-sdk-container .new-sdk-box .input i{display:inline-block;width:90px;color:#000;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";font-style:normal}.new-sdk-container .new-sdk-box .input label{display:inline-block;width:calc(100% - 65px);width:-moz-calc(100% - 65px);width:-webkit-calc(100% - 65px)}.new-sdk-container .new-sdk-box .new-sdk-psw input{padding:0;text-align:left}.new-sdk-container .new-sdk-box .new-sdk-lc{margin:2em auto 0;overflow:auto;zoom:1}.new-sdk-container .new-sdk-box .new-sdk-lc .sleft{float:left}.new-sdk-container .new-sdk-lc .sleft .image{width:50px;height:50px;position:relative}.new-sdk-container .new-sdk-lc .sleft img{max-height:50px;max-width:50px;width:auto;height:auto;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto}.new-sdk-container .new-sdk-lc .scenter{float:left;margin-left:10px;width:calc(100% - 180px);width:-moz-calc(100% - 180px);width:-webkit-calc(100% - 180px)}.new-sdk-container .new-sdk-lc .scenter p{margin:0;color:#000;text-overflow:ellipsis;white-space:nowrap;word-break:break-all;width:100%;overflow:hidden;font-size:14px}.new-sdk-container .new-sdk-lc .scenter p a{color:#0060b8}.new-sdk-container .new-sdk-lc i{float:right;width:27px;height:45px;background:url(../images/new-sdk-icon.png) no-repeat 0 -152px;margin:4px 0;transform:scale(0.8)}.new-sdk-container .new-sdk-box .new-sdk-psw i{width:200px;height:80px;line-height:80px;float:left}.new-sdk-container .new-sdk-box .new-sdk-psw label{position:absolute;left:215px;display:inline-block;height:80px;line-height:80px}.new-sdk-container .new-sdk-lc .binding-link{float:right;margin:0.5em 0}.new-sdk-container .new-sdk-lc .binding-link a{display:block;background:#bceeff;color:#000;font-size:14px;font-family:"Microsoft YaHei","微软雅黑";letter-spacing:2px;padding:10px}.new-sdk-container .new-sdk-login{padding:1em}.new-sdk-container .Account-Login .new-sdk-lc{margin:10px 0 0}.new-sdk-container .Account-Login .new-sdk-lc .scenter{width:calc(100% - 75px)}.new-sdk-container .account-btn{overflow:auto;zoom:1;width:90%;margin:0 auto}.new-sdk-container .account-btn li{float:left;margin:10px 0;width:40%}.new-sdk-container .account-btn li:nth-child(2n+2){float:right}.new-sdk-container .account-btn li a{display:block;color:#000;font-size:16px;font-family:"Microsoft YaHei","微软雅黑";background:#efefef;text-align:center;padding:10px 0}.new-sdk-container .account-btn li a:hover{background:#bceeff}.new-sdk-container .login-third{width:90%;margin:10px auto 0 auto}.new-sdk-container .login-third .min-qq-icon{display:block;width:33px;height:34px;background:url("../images/icon.png") no-repeat -305px -108px;float:left;margin-right:5px}.new-sdk-container .login-third .title{line-height:29px;margin:15px 0}.new-sdk-container .login-third .min-weibo-icon{display:block;width:36px;height:29px;background:url("../images/icon.png") no-repeat -305px -75px;float:left;margin-right:5px}.new-sdk-container .login-third .title p{float:left;color:#000;font-size:20px;font-family:"Microsoft YaHei","微软雅黑"}.new-sdk-container .login-third .input-box{width:100%;border-radius:10px;border:2px solid #c2c2c2}.new-sdk-container .login-third .login-third-input{border:none;width:calc(100% - 2em);width:-moz-calc(100% - 2em);width:-webkit-calc(100% - 2em);padding:1em;border-bottom:2px solid #c2c2c2;font-size:16px;border-radius:10px 10px 0 0}.new-sdk-container .login-third .login-third-input:last-child{border-bottom:none;border-radius:0 0 10px 10px}.new-sdk-container .login-third .login-qq-submit{background:#d90900;width:100%;border-radius:8px;padding:10px 0;border:none;color:#fff;font-size:16px;font-family:"Microsoft YaHei","微软雅黑";letter-spacing:2px;margin-top:15px}.new-sdk-container .login-third .QQ-submit{background:#72c429}.new-sdk-container .login-third-list{width:90%;border-top:1px solid #B1B1B1;margin:0 auto 0 auto}.new-sdk-container .login-third-list .title{text-align:center;margin-top:25px;font-size:20px;color:#000;font-family:"Microsoft YaHei","微软雅黑"}.new-sdk-container .login-third-list .third-list{font-size:20px;width:90%;margin:1em auto}@media only screen and (min-width:640px){.new-sdk-container .login-third-list .third-list{width:50%}}.new-sdk-container .login-third-list .third-list li{border-radius:100%;background:#fff;float:left;width:130px;height:130px;margin:0 35px 0 35px}.new-sdk-container .login-third-list .third-list li:nth-child(2n+2){float:right}.new-sdk-container .login-third-list .third-icon{background:url("../images/icon.png") no-repeat;margin:10px auto 0}.new-sdk-container .login-third-list .third-qq{width:85px;height:88px;background-position:0 -75px;transform:scale(0.7)}.new-sdk-container .login-third-list .third-guest{width:85px;height:88px;background-position:-219px -88px;transform:scale(0.7)}.new-sdk-container .login-third-list .third-weibo{width:111px;height:88px;background-position:-102px -69px;transform:scale(0.7)}.new-sdk-container .login-third-list p{text-align:center;color:#000;font-size:14px}.new-sdk-container .new-sdk-main{min-height:14em;width:90%;margin:0 auto 0 auto}.new-sdk-container .new-sdk-main .other-login{margin:17px auto;line-height:28px;color:#434343;font-size:24px}.new-sdk-container .new-sdk-main .other-login p{float:left}.new-sdk-container .new-sdk-main .other-login p a{display:inline-block;width:45px;height:45px;margin-left:15px;vertical-align:bottom}.new-sdk-container .new-sdk-main .other-login p a.wb{background-position:0 -50px}.new-sdk-container .new-sdk-main .other-login p a.qq{background:url(../images/login_icon.png) no-repeat 0 0}.new-sdk-container .new-sdk-main .other-login p a.weixin{background:url(../images/login_icon.png) no-repeat 0 -45px}.new-sdk-container .new-sdk-main .other-login label{float:right}.new-sdk-container .new-sdk-main .other-login label a{font-size:18px}.new-sdk-container .new-sdk-main .inputbox{margin:0 auto;background:#fff;border-radius:10px;padding:30px 18px 24px 25px;overflow:visible;zoom:1;margin-top:30px;position:relative;border:1px solid #c0c0c0;font-family:"Microsoft YaHei","微软雅黑";color:#434343}.new-sdk-container .new-sdk-main .inputbox .ileft{float:left;width:90px;min-width:90px;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";position:absolute;line-height:30px}.new-sdk-container .new-sdk-main .inputbox .iright{float:left;width:calc(100% - 90px);width:-moz-calc(100% - 90px);width:-webkit-calc(100% - 90px);margin-left:90px}.new-sdk-container .new-sdk-main .inputbox input{width:calc(100% - 47px);width:-moz-calc(100% - 47px);width:-webkit-calc(100% - 47px);font-size:30px;line-height:30px;border:none;font-family:"Microsoft YaHei","微软雅黑";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.new-sdk-container .new-sdk-main .iright .bottom-icon{position:absolute;right:0;top:5px;width:100px;height:90px}.new-sdk-container .new-sdk-main .iright .bottom-icon i.iconfont{position:absolute;right:25px;top:50%;margin-top:-20px}.new-sdk-container input{outline:medium}.new-sdk-container .pull-box{position:absolute;top:85px;left:-1px;border:1px solid #c0c0c0;border-top:0;border-radius:0 0 20px 20px;width:100%;font-size:16px;z-index:99;background:#fff;color:#333;display:none;font-family:宋体;max-height:11em;overflow-y:scroll}.new-sdk-container .pull-box ul{margin-left:65px}.new-sdk-container .pull-box li{text-indent:15px;margin:5px 0;color:#434343;font-size:30px}.new-sdk-container .pull-box li a{display:block}.new-sdk-container .forget-password .function-list{width:100%;margin:10px auto;font-size:16px}.new-sdk-container .forget-password .function-list li{margin-top:10px}.new-sdk-container .forget-password .function-list li:first-child{margin-top:20px}.new-sdk-container .forget-password .function-list-icon{display:block;width:13px;height:13px;background:url("../images/icon.png") no-repeat;margin:5px 10px 0 0}.new-sdk-container .forget-password .function-list-icon-1{background-position:-245px -75px}.new-sdk-container .forget-password .function-list-icon-2{background-position:-280px -75px}.new-sdk-container .forget-password .function-list-content{display:none;margin:5px 0 0 20px}.new-sdk-container .forget-password .function-list-content .function-input{width:calc(100% -20px);width:-moz-calc(100% - 20px);width:-webkit-calc(100% - 20px);border:1px solid #c2c2c2;padding:10px;font-size:16px}.new-sdk-container .forget-password .function-list-content p{color:#595757;font-size:16px;margin:0}.login-box .forget-password .login-button{margin-top:10px}.function-list .function-list-text{float:left;width:calc(100% -25px);width:-moz-calc(100% - 25px);width:-webkit-calc(100% - 25px);word-break:break-all}.new-sdk-container .new-sdk-content{width:calc(100% - 76);width:-moz-calc(100% - 76);width:-webkit-calc(100% - 76);height:300px;border:1px solid #c0c0c0;border-right:none;border-bottom:none;margin:25px 37px 15px;overflow-y:scroll;color:#000;background:#fff;-webkit-overflow-scrolling:touch}@media only screen and (min-width:100px) and (max-width:640px){.new-sdk-container .new-sdk-content{height:250px}}.new-sdk-container .new-sdk-content h3{font-size:28px;font-weight:normal;text-align:center;margin:5px 0 20px}.new-sdk-container .new-sdk-content p,.new-sdk-container .new-sdk-content h4{font-size:24px;font-weight:normal;padding:0 20px}.new-sdk-container .new-sdk-content p{text-indent:2em}.new-sdk-container .agreement{float:right;font-size:24px;line-height:20px;margin-right:32px}.new-sdk-container .checkbox{width:24px;height:24px;margin:0 10px;display:inline-block}.new-sdk-container .checkbox-2{background-position:-274px -7px}.new-sdk-container .checkbox-1{background-position:-234px -7px}.new-sdk-container .ag-tx{font-size:24px;margin:20px 0 22px}.new-sdk-container .ag-tx a{color:#0078ff;text-decoration:underline}.margintop{margin-top:20px}#alert{background:rgba(0,0,0,0.65)!important;filter:Alpha(opacity=65);position:absolute;top:50%;left:50%;margin:auto 0;width:80%;z-index:1000;line-height:38px;font-size:30px;margin-left:-40%;text-align:center;color:#c3c3c3;border-radius:10px;padding:10px 0}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.alert{padding:8px 35px 8px 14px;font-size:16px;background:rgba(250,250,250,0.64);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.alert,.alert h4{color:#c09853}.alert h4{margin:0}.alert .close{position:relative;top:-2px;right:8px;line-height:20px}.alert-success{color:#093;border-color:#d6e9c6;text-shadow:none}.alert-success h3{color:#468847}.alert-danger,.alert-error{color:red;text-shadow:none}.alert-danger h3,.alert-error h3{color:#b94a48}.ios_scroll iframe{min-height:320px}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.pull-left{float:left}.pull-right{float:right}.w_45{width:45%}.w_50{width:50%}.poslft{position:absolute;left:1em}.user-center{position:relative;text-align:center;padding:26px 0 18px;border-bottom:2px solid #fff;color:#00beef;font-family:"Microsoft YaHei","微软雅黑";font-size:36px}.user-center a{position:absolute;right:37px;bottom:17px;color:#ff9600;font-size:24px}.user-center a.lefticon{right:auto;left:37px}.user-center-box{border-top:1px solid #c4c3c3;padding:0 37px 50px}.user-center-box .top{border-bottom:2px solid #fff;padding:43px 0 40px}.user-center-box .top .txt p{color:#434343;font-size:30px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;width:100%}.user-center-box .top .inline-btn{margin:0;width:45%}.user-center-box .top .inline-btn a{border-radius:10px;text-align:center;line-height:85px;font-size:30px}.user-center-box .bind-user{border-top:1px solid #c4c3c3;padding:30px 20px}.user-center-box .bind-user .txt{color:#949494;font-size:20px}.user-center-box .bind-user .btn-bind{font-size:30px;text-align:center;line-height:60px;border:1px solid #ff9600;color:#ff9600;border-radius:10px;background:none}.user-center-box .bind-user .inline-btn{margin:0;width:35%;overflow:initial;margin-left:10%}.user-center-box .list-item{border-left:1px solid #c0c0c0;border-top:1px solid #c0c0c0}.user-center-box .list-item li{position:relative;float:left;width:33.333%;background:#fff;border-right:1px solid #c0c0c0;border-bottom:1px solid #c0c0c0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;text-align:center;color:#434343;font-size:30px;padding:30px 0}.user-center-box .list-item li a{display:block}.user-center-box .list-item .redround{position:absolute;top:5px;right:5px;background:#f00;display:block;width:10px;height:10px;border-radius:100%}.acount-name{color:#434343;font-size:30px;margin-bottom:25px}.user-center a.btn-link{font-size:24px;bottom:20px}.new-sdk-container .activity{border-top:1px solid #c4c3c3}.new-sdk-container .activity-list li:not(.more){padding:20px;border-bottom:1px dashed #ddd}.new-sdk-container .activity-list li:not(.more) a{font-size:26px}.new-sdk-container .activity-list .act_time{color:#999;font-size:24px}.new-sdk-container .activity-list .act_title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;display:block;width:80%}.new-sdk-container .activity-list li.more a{display:block;width:235px;margin:20px auto;text-align:center;padding:20px;color:#fff;font-size:26px;background:#00beef;border-radius:10px}.new-sdk-container .activity .bor_b_h3{border-bottom:1px solid #e0e0e0;background:#fff;padding:20px 0;margin:0 37px}.new-sdk-container .activity .bor_b_h3 h3{color:#000;font-size:26px;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal}.scroll{height:100%}.new-sdk-container .activity .bor_b_h3 .text-info{color:#707070;font-size:24px;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal;margin-top:5px}.new-sdk-container .activity .activity_text{color:#707070;font-size:26px;padding:20px;font-family:"Microsoft YaHei","微软雅黑";background:#fff}.new-sdk-container .activity .activity_text img{display:block;width:100%}.new-sdk-container .pwd_box{margin:0 37px}.new-sdk-container .pwd_box li{border:1px solid #c0c0c0;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;padding:20px 0;margin-bottom:20px;background:#fff}.new-sdk-container .pwd_box #mobile_get_pwd_form .inline-btn li{border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px;padding:0}.new-sdk-container .pwd_box li a{display:block;color:#434343;font-size:30px;font-family:"Microsoft YaHei","微软雅黑";text-align:center}.pwd_box .step-box input{background:#fff;width:100%;padding:25px 0;border-radius:10px;border:1px solid #c0c0c0;text-align:center;margin:83px 0 91px 0;font-size:30px;line-height:30px;box-shadow:none;box-sizing:border-box;appearance:button;-moz-appearance:button;-webkit-appearance:button}.pwd_box .step-box a{display:block;text-align:center;width:235px;background:#ff9600;margin:0 auto;color:#fff;padding:25px 0;border-radius:10px;font-size:30px}.pwd_box .step-box .pwd_txt{padding:45px 25px 35px;border:1px solid #c0c0c0;background:#fff;margin:9px 0 38px;border-radius:10px}.pwd_box .step-box .pwd_txt p{color:#434343;font-size:30px;font-family:"Microsoft YaHei","微软雅黑"}.pwd_box .step-box .pwd_txt p a{display:inline-block;text-align:left;width:auto;background:none;color:#434343;padding:0;border-radius:none}.new-sdk-box .question-input{position:relative;background:#fff;border:1px solid #c0c0c0;border-radius:10px;padding:25px 0;text-align:center;font-size:30px;color:#434343;font-family:"Microsoft YaHei","微软雅黑"}.new-sdk-box .question-input i{position:absolute;right:15px;top:27px}.new-sdk-box .input input{text-align:center}.new-sdk-box .question-input p{margin:0;font-size:30px;color:#434343;font-family:"Microsoft YaHei","微软雅黑"}.mt10{margin-top:33px}.new-sdk-main .other-login p a.hide{display:none}i.checkbx.icon-xuanzhong:before{color:#999}.only-btn.inline-btn .agreement{position:absolute;right:37px;top:10px}*:focus,*{outline:none}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#b5b5b6;font-family:"Microsoft YaHei","微软雅黑";font-size:30px}.new-sdk-container .new-sdk-main .other-login label a{color:#434343;font-size:24px;font-family:"Microsoft YaHei","微软雅黑";vertical-align:-webkit-baseline-middle}.pwd_box .step-box .question-input-box{background:#fff;padding:25px 20px;border-radius:10px;border:1px solid #c0c0c0;margin:83px 0 91px 0}.pwd_box .step-box .qib-txt{width:150px;color:#434343;font-size:30px;font-family:"Microsoft YaHei","微软雅黑"}.pwd_box .step-box .qib-input{width:calc(100% - 150px)}.pwd_box .step-box .question-input-box input{padding:0;line-height:40px;margin:0;border:none}input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{background-color:rgb(255,255,255)!important;box-shadow:0 0 0 1000px white inset}input:disabled{background-color:#fff;color:#434343}.new-sdk-container .pull-box .drop-ul li{border-bottom:1px solid #ddd}
...\ No newline at end of file ...\ No newline at end of file
1 +@charset "utf-8";
2 +html[data-useragent='ios'] .other-menu{display:none;}
3 +
4 +/* CSS Document */
5 +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0; padding:0; }
6 +body{ margin:0 auto; padding:0px;font:14px/1.5 微软雅黑,Microsoft Yahei; overflow-x:hidden; font-weight:normal;}
7 +.clear{clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0; }
8 +img{border:0;}
9 +ol,ul{list-style:none; }
10 +a{ color:#000; text-decoration:none}
11 +*{ text-shadow:none}
12 +.l{ float: left;}
13 +section{
14 + position: relative;
15 + top: 0px;
16 + left: 0px;
17 + width: 100%;
18 + height: 100%;
19 + overflow-x: hidden;
20 +}
21 +.l{ float: left;}
22 +.hide{ display: none;}
23 +a,input,textarea,select {
24 + outline: 0;
25 +}
26 +a:focus {
27 + outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
28 +}
29 +.red{ color: red;}
30 +select{
31 + -moz-appearance: none;
32 + -webkit-appearance:none;
33 + appearance:none;
34 +}
35 +/*字体图标*/
36 +@font-face {font-family: "iconfont";
37 + src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/
38 + src: url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'), /* IE6-IE8 */
39 + url('../font/iconfont.woff?t=1468997064') format('woff'), /* chrome, firefox */
40 + url('../font/iconfont.ttf?t=1468997064') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
41 + url('../font/iconfont.svg?t=1468997064#iconfont') format('svg'); /* iOS 4.1- */
42 +}
43 +
44 +.iconfont {
45 + font-family:"iconfont" !important;
46 + font-size:16px;
47 + font-style:normal;
48 + -webkit-font-smoothing: antialiased;
49 + -webkit-text-stroke-width: 0.2px;
50 + -moz-osx-font-smoothing: grayscale;
51 +}
52 +
53 +.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;}
54 +.icon-qq:before { content: "\e601"; font-size: 1.8em; color: #00beef;}
55 +.icon-iconfontcha:before { content: "\e609"; }
56 +.icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #00beef;}
57 +.icon-weixin1:before { content: "\e603"; }
58 +.icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #00beef;}
59 +.icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 1.6em;}
60 +.icon-iconfontcolor19:before { content: "\e60b"; }
61 +.icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;}
62 +.icon-triangle-l:before { content: "\e605"; }
63 +.icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;}
64 +.icon-weixin2:before { content: "\e606"; }
65 +.icon-xiangyou:before { content: "\e60e"; }
66 +.icon-fuxuankuangyixuanze:before { content: "\e607"; }
67 +.icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 30px;}
68 +.icon-icon3:before { content: "\e608"; }
69 +.icon-fanhui:before { content: "\e610"; color: #00beef; font-size: 36px;}
70 +.icon-yonghutouxiang:before { content: "\e611"; color: #c1c1c1; font-size: 75px;}
71 +.icon-triangle-left-copy:before { content: "\e612"; color:#ddd; font-size: 1.8em;}
72 +
73 +/*SDK背景box*/
74 +.new-sdk-container{
75 + position: relative;
76 + background: #f6f6f6;
77 + height: 100%;
78 +}
79 +html{
80 +position: relative;
81 +background: #f6f6f6;
82 +height: 100%;
83 + -webkit-tap-highlight-color: rgba(0, 0, 0, 0);/*禁用ios点击元素时的灰色背景*/
84 + /*-webkit-user-modify: read-write-plaintext-only;*/
85 +}
86 +body{
87 + width: 100%;
88 + height: 100%;
89 + background-size: 100%;
90 +}
91 +.mask{
92 + position: relative;
93 + height: 100%;
94 +}
95 +.redround{
96 + display: inline-block;
97 + width: 5px;
98 + height: 5px;
99 + background: red;
100 + border-radius: 50px;
101 + position: absolute;
102 + right: 10px;
103 + top: 10px;
104 +}
105 +
106 +.container.activity{
107 + position: absolute;
108 + left: 0;
109 + top: 133x;
110 + bottom: 0;
111 + right: 0;
112 + height: calc(100% - 134px);
113 +}
114 +.SDK-titlebox{
115 + height: 33px;
116 + background: #00beef;
117 +}
118 +/*SDK-logo*/
119 +.new-sdk-container .new-sdk-logo{
120 + text-align: center;
121 + width:100%;
122 + height:53px;
123 +}
124 +.new-sdk-container .new-sdk-logo img{
125 + display: none;
126 + width: 210px;
127 + margin: 0 auto;
128 + padding: 15px 0 0 0;
129 + height:53px;
130 +}
131 +.new-sdk-container .new-sdk-box{
132 + padding: 20px 37px;
133 + border-top: 1px solid #c4c3c3;
134 + box-sizing: border-box;
135 + -moz-box-sizing: border-box;
136 + -webkit-box-sizing: border-box;
137 +}
138 +.new-sdk-container .new-sdk-box .input{
139 + margin-bottom: 15px;
140 + border: 1px solid #c0c0c0;
141 + /*box-shadow: 1px 2px 2px #c2c2c2 inset;*/
142 + border-radius: 10px;
143 + -moz-border-radius: 10px;
144 + -webkit-border-radius: 10px;
145 + padding: 25px 0;
146 + background: #fff;
147 + box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box;
148 +}
149 +.new-sdk-container .new-sdk-box .input input{
150 + display: inline-block;
151 + width:100%;
152 + background: none;
153 + border: none;
154 + color: #000;
155 + font-size: 30px;
156 + font-family: "Microsoft YaHei","微软雅黑";
157 + white-space:nowrap;
158 + text-overflow:ellipsis;
159 + overflow:hidden;
160 + word-break:break-all;
161 + height: 45px;
162 + line-height: 45px;
163 + vertical-align: middle;
164 + margin: 20px 0;
165 +}
166 +.new-sdk-container .new-sdk-box .inputCode input,.new-sdk-container .new-sdk-box .inputCode .getCode{
167 + width:100%;
168 + background: none;
169 + border: none;
170 + color: #000;
171 + font-size: 30px;
172 + font-family: "Microsoft YaHei","微软雅黑";
173 + white-space:nowrap;
174 + text-overflow:ellipsis;
175 + overflow:hidden;
176 + word-break:break-all;
177 +}
178 +/*#js_getcode{
179 + height: 80px;
180 + line-height: 80px;
181 +}*/
182 +/*.new-sdk-container .step-box .new-sdk-box .input input,.new-sdk-container .step-box .new-sdk-box .inputCode .getCode{
183 + height: 80px;
184 + line-height: 80px;
185 +}*/
186 +.new-sdk-container .new-sdk-box .inputCode .input{
187 + float: left;
188 + width: 55%;
189 + padding: 0;
190 +}
191 +.new-sdk-container .new-sdk-box .inputCode .getCode{
192 + width: 40%;
193 + float: right;
194 + color: #ff9600;
195 + border: 1px solid #ff9600;
196 + border-radius: 10px;
197 + text-align: center;
198 +}
199 +.new-sdk-container .new-sdk-box .inputCode .getCode.disabled{
200 + border: 1px solid #c0c0c0;
201 + color: #c0c0c0;
202 + cursor : none;
203 + pointer-events: none;
204 +}
205 +.new-sdk-container .new-sdk-box p,.new-sdk-container .new-sdk-box p a{
206 + color: #434343;
207 + font-size: 24px;
208 + font-family: "Microsoft YaHei","微软雅黑";
209 + margin: 20px 0 0;
210 +}
211 +.new-sdk-container .new-sdk-box .acount-name p span.phoneMobile{
212 + color: #434343;
213 +}
214 +.new-sdk-container .new-sdk-box p span{
215 + color: #da8000;
216 +}
217 +.new-sdk-container .inline-btn{
218 + overflow: auto;
219 + zoom: 1;
220 + width: 88%;
221 + margin: 0px auto 25px auto;
222 +}
223 +.new-sdk-container .inline-btn li{
224 + float: left;
225 + width: 45%;
226 + text-align: center;
227 + background: #ff9600;
228 + border-radius: 20px;
229 + padding: 26px 0;
230 +}
231 +.new-sdk-container .inline-btn li:nth-child(2n+2){
232 + float: right;
233 + background: #00beef;
234 +}
235 +.new-sdk-container .login-inline-btn li{
236 + background: #00beef;
237 +}
238 +.new-sdk-container .login-inline-btn li:nth-child(2n+2){
239 + background: #ff9600;
240 +}
241 +.new-sdk-container .only-btn{
242 + position: relative;
243 + text-align: center;
244 + width: calc(100% - 2em);
245 + width: -moz-calc(100% - 2em);
246 + width: -webkit-calc(100% - 2em);
247 + padding: 10px 0;
248 + /*background: #00beef;*/
249 + border-radius: 10px;
250 + margin:1.0em auto 0;
251 +}
252 +.new-sdk-container .only-btn a.btn-orange{
253 + display: block;
254 + width: 235px;
255 + margin: 0 auto;
256 + border-radius: 10px;
257 + font-size: 30px;
258 + padding: 25px 0;
259 +}
260 +.new-sdk-container .only-btn .readyed{
261 + position: absolute;
262 + right: 0;
263 + top: 5px;
264 + color: #000;
265 + font-family: "Microsoft YaHei","微软雅黑";
266 + font-size: 18px;
267 +}
268 +.new-sdk-container .inline-btn a,.new-sdk-container .only-btn a{
269 + display: block;
270 + color: #fff;
271 + font-size: 30px;
272 + font-family: "Microsoft YaHei","微软雅黑";
273 + letter-spacing: 2px;
274 +}
275 +
276 +.new-sdk-container .inline-btn .btn{
277 + display:inline-block;
278 + border: 0;
279 + background: #00beef;
280 + color: #fff;
281 + font-size: 30px;
282 + font-family: "Microsoft YaHei","微软雅黑";
283 + letter-spacing: 2px;
284 + cursor: pointer;
285 + width: 100%;
286 + vertical-align: middle;
287 + border-radius: 20px;
288 + -moz-border-radius: 20px;
289 + -webkit-border-radius: 20px;
290 +}
291 +.new-sdk-container .inline-btn .btn-orange{
292 + background: #ff9600
293 +}
294 +.new-sdk-container .new-sdk-box .input select{
295 + width: 100%;
296 + height: 88px;
297 + line-height: 88px;
298 + background: none;
299 + border: none;
300 + color: #434343;
301 + font-size: 30px;
302 + font-family: "Microsoft YaHei","微软雅黑";
303 +}
304 +.select2-container{
305 + min-width: 100%;
306 +}
307 +.new-sdk-container .new-sdk-box .new-sdk-psw{
308 + padding: 0 25px;
309 +
310 +}
311 +.new-sdk-container .new-sdk-box .input i{
312 + display: inline-block;
313 + width: 90px;
314 + color: #000;
315 + font-size: 30px;
316 + font-family: "Microsoft YaHei","微软雅黑";
317 + font-style:normal;
318 +}
319 +.new-sdk-container .new-sdk-box .input label{
320 + display: inline-block;
321 + width: calc(100% - 65px);
322 + width: -moz-calc(100% - 65px);
323 + width: -webkit-calc(100% - 65px);
324 +}
325 +.new-sdk-container .new-sdk-box .new-sdk-psw input{
326 + padding: 0;
327 + text-align: left;
328 +}
329 +
330 +.new-sdk-container .new-sdk-box .new-sdk-lc{
331 + margin:2em auto 0;
332 + overflow: auto;
333 + zoom: 1;
334 +}
335 +.new-sdk-container .new-sdk-box .new-sdk-lc .sleft{
336 + float: left;
337 +}
338 +.new-sdk-container .new-sdk-lc .sleft .image{
339 + width: 50px;
340 + height: 50px;
341 + position: relative;
342 +}
343 +.new-sdk-container .new-sdk-lc .sleft img{
344 + max-height: 50px;
345 + max-width: 50px;
346 + width: auto;
347 + height: auto;
348 + position: absolute;
349 + left: 0;
350 + right: 0;
351 + top: 0;
352 + bottom: 0;
353 + margin: auto;
354 +}
355 +.new-sdk-container .new-sdk-lc .scenter{
356 + float: left;
357 + margin-left: 10px;
358 + width: calc(100% - 180px);
359 + width: -moz-calc(100% - 180px);
360 + width: -webkit-calc(100% - 180px);
361 +}
362 +.new-sdk-container .new-sdk-lc .scenter p{
363 + margin: 0;
364 + color: #000;
365 + text-overflow: ellipsis;
366 + white-space: nowrap;
367 + word-break: break-all;
368 + width: 100%;
369 + overflow: hidden;
370 + font-size: 14px;
371 +}
372 +.new-sdk-container .new-sdk-lc .scenter p a{
373 + color: #0060b8;
374 +}
375 +.new-sdk-container .new-sdk-lc i{
376 + float: right;
377 + width: 27px;
378 + height: 45px;
379 + background: url(../images/new-sdk-icon.png) no-repeat 0 -152px;
380 + margin: 4px 0;
381 + transform: scale(0.8);
382 +}
383 +.new-sdk-container .new-sdk-box .new-sdk-psw i{
384 + width: 200px;
385 + height: 80px;
386 + line-height: 80px;
387 + float: left;
388 +}
389 +.new-sdk-container .new-sdk-box .new-sdk-psw label{
390 + position: absolute;
391 + left: 215px;
392 + display: inline-block;
393 + height: 80px;
394 + line-height: 80px;
395 +}
396 +.new-sdk-container .new-sdk-lc .binding-link{
397 + float: right;
398 + margin: 0.5em 0;
399 +}
400 +.new-sdk-container .new-sdk-lc .binding-link a{
401 + display: block;
402 + background: #bceeff;
403 + color: #000;
404 + font-size: 14px;
405 + font-family: "Microsoft YaHei","微软雅黑";
406 + letter-spacing: 2px;
407 + padding: 10px;
408 +}
409 +.new-sdk-container .new-sdk-login{
410 + padding:1em;
411 +
412 +}
413 +.new-sdk-container .Account-Login .new-sdk-lc{
414 + margin: 10px 0 0;
415 +}
416 +.new-sdk-container .Account-Login .new-sdk-lc .scenter{
417 + width: calc(100% - 75px);
418 +}
419 +.new-sdk-container .account-btn{
420 + overflow: auto;
421 + zoom: 1;
422 + width: 90%;
423 + margin: 0 auto;
424 +}
425 +.new-sdk-container .account-btn li{
426 + float: left;
427 + margin: 10px 0;
428 + width: 40%;
429 +
430 +}
431 +.new-sdk-container .account-btn li:nth-child(2n+2){
432 + float: right;
433 +}
434 +.new-sdk-container .account-btn li a{
435 + display: block;
436 + color: #000;
437 + font-size: 16px;
438 + font-family: "Microsoft YaHei","微软雅黑";
439 + background: #efefef;
440 + text-align: center;
441 + padding: 10px 0;
442 +}
443 +.new-sdk-container .account-btn li a:hover{
444 + background: #bceeff;
445 +}
446 +
447 +.new-sdk-container .login-third {
448 + width: 90%;
449 + margin: 10px auto 0 auto;
450 +}
451 +.new-sdk-container .login-third .min-qq-icon {
452 + display: block;
453 + width: 33px;
454 + height: 34px;
455 + background: url("../images/icon.png") no-repeat -305px -108px;
456 + float: left;
457 + margin-right: 5px;
458 +}
459 +.new-sdk-container .login-third .title{
460 + line-height: 29px;
461 + margin: 15px 0;
462 +}
463 +.new-sdk-container .login-third .min-weibo-icon {
464 + display: block;
465 + width: 36px;
466 + height: 29px;
467 + background: url("../images/icon.png") no-repeat -305px -75px;
468 + float: left;
469 + margin-right: 5px;
470 +}
471 +.new-sdk-container .login-third .title p {
472 + float: left;
473 + color: #000;
474 + font-size: 20px;
475 + font-family: "Microsoft YaHei","微软雅黑";
476 +}
477 +.new-sdk-container .login-third .input-box {
478 + width: 100%;
479 + border-radius: 10px;
480 + border: 2px solid #c2c2c2;
481 +}
482 +.new-sdk-container .login-third .login-third-input {
483 + border: none;
484 + width: calc(100% - 2em);
485 + width: -moz-calc(100% - 2em);
486 + width: -webkit-calc(100% - 2em);
487 + padding: 1em;
488 + border-bottom: 2px solid #c2c2c2;
489 + font-size: 16px;
490 + border-radius: 10px 10px 0 0;
491 +}
492 +.new-sdk-container .login-third .login-third-input:last-child {
493 + border-bottom: none;
494 + border-radius: 0 0 10px 10px;
495 +}
496 +.new-sdk-container .login-third .login-qq-submit{
497 + background: #d90900;
498 + width: 100%;
499 + border-radius: 8px;
500 + padding: 10px 0;
501 + border: none;
502 + color: #fff;
503 + font-size: 16px;
504 + font-family: "Microsoft YaHei","微软雅黑";
505 + letter-spacing: 2px;
506 + margin-top: 15px;
507 +}
508 +.new-sdk-container .login-third .QQ-submit{
509 + background: #72c429;
510 +}
511 +.new-sdk-container .login-third-list {
512 + width: 90%;
513 + border-top: 1px solid #B1B1B1;
514 + margin: 0 auto 0 auto;
515 +}
516 +.new-sdk-container .login-third-list .title {
517 + text-align: center;
518 + margin-top: 25px;
519 + font-size: 20px;
520 + color: #000;
521 + font-family: "Microsoft YaHei","微软雅黑";
522 +}
523 +.new-sdk-container .login-third-list .third-list {
524 + font-size: 20px;
525 + width: 90%;
526 + margin: 1em auto;
527 +}
528 +@media only screen and (min-width: 640px){
529 + .new-sdk-container .login-third-list .third-list {
530 + width: 50%;
531 + }
532 +}
533 +.new-sdk-container .login-third-list .third-list li {
534 + border-radius: 100%;
535 + background: #fff;
536 + float: left;
537 + width: 130px;
538 + height: 130px;
539 + margin: 0 35px 0 35px;
540 +}
541 +.new-sdk-container .login-third-list .third-list li:nth-child(2n+2){
542 + float: right;
543 +}
544 +.new-sdk-container .login-third-list .third-icon {
545 + background: url("../images/icon.png") no-repeat;
546 + margin: 10px auto 0;
547 +}
548 +.new-sdk-container .login-third-list .third-qq {
549 + width: 85px;
550 + height: 88px;
551 + background-position: 0 -75px;
552 + transform: scale(0.7);
553 +}
554 +.new-sdk-container .login-third-list .third-guest{
555 + width: 85px;
556 + height: 88px;
557 + background-position: -219px -88px;
558 + transform: scale(0.7);
559 +
560 +}
561 +
562 +.new-sdk-container .login-third-list .third-weibo {
563 + width: 111px;
564 + height: 88px;
565 + background-position: -102px -69px;
566 + transform: scale(0.7);
567 +}
568 +.new-sdk-container .login-third-list p {
569 + text-align: center;
570 + color: #000;
571 + font-size: 14px;
572 +}
573 +/*登录*/
574 +.new-sdk-container .new-sdk-main{
575 + min-height: 14em;
576 + width: 90%;
577 + margin: 0 auto 0 auto;
578 +}
579 +.new-sdk-container .new-sdk-main .other-login{
580 + margin: 17px auto;
581 + line-height: 28px;
582 + color: #434343;
583 + font-size: 24px;
584 +}
585 +.new-sdk-container .new-sdk-main .other-login p{
586 + float: left;
587 +}
588 +.new-sdk-container .new-sdk-main .other-login p a{
589 + display: inline-block;
590 + width: 45px;
591 + height: 45px;
592 + /*background: url(../images/new-sdk-icon.png) no-repeat;*/
593 + margin-left: 15px;
594 + vertical-align: bottom;
595 +}
596 +.new-sdk-container .new-sdk-main .other-login p a.wb{
597 + background-position: 0 -50px;
598 +}
599 +.new-sdk-container .new-sdk-main .other-login p a.qq{
600 + background: url(../images/login_icon.png) no-repeat 0 0;
601 +}
602 +.new-sdk-container .new-sdk-main .other-login p a.weixin{
603 + background: url(../images/login_icon.png) no-repeat 0 -45px;
604 +}
605 +.new-sdk-container .new-sdk-main .other-login label{
606 + float: right;
607 +}
608 +.new-sdk-container .new-sdk-main .other-login label a{
609 + font-size: 18px;
610 +}
611 +.new-sdk-container .new-sdk-main .inputbox{
612 + margin: 0 auto;
613 + background: #fff;
614 + border-radius: 10px;
615 + padding: 30px 18px 24px 25px;
616 + overflow: visible;
617 + zoom: 1;
618 + margin-top: 30px;
619 + position: relative;
620 + border: 1px solid #c0c0c0;
621 + font-family:"Microsoft YaHei","微软雅黑";
622 + color: #434343;
623 +}
624 +.new-sdk-container .new-sdk-main .inputbox .ileft{
625 + float: left;
626 + width: 90px;
627 + min-width: 90px;
628 + font-size: 30px;
629 + font-family:"Microsoft YaHei","微软雅黑";
630 + position: absolute;
631 + line-height: 30px;
632 +}
633 +.new-sdk-container .new-sdk-main .inputbox .iright{
634 + float: left;
635 + width: calc(100% - 90px);
636 + width: -moz-calc(100% - 90px);
637 + width: -webkit-calc(100% - 90px);
638 + margin-left: 90px;
639 +}
640 +.new-sdk-container .new-sdk-main .inputbox input{
641 + width: calc(100% - 47px);
642 + width: -moz-calc(100% - 47px);
643 + width: -webkit-calc(100% - 47px);
644 + font-size: 30px;
645 + line-height: 30px;
646 + border: none;
647 + font-family: "Microsoft YaHei","微软雅黑";
648 + white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;
649 +}
650 +.new-sdk-container .new-sdk-main .iright .bottom-icon{
651 + position: absolute;
652 + right: 0;
653 + top: 5px;
654 + width: 100px;
655 + height: 90px;
656 +}
657 +.new-sdk-container .new-sdk-main .iright .bottom-icon i.iconfont{
658 + position: absolute;
659 + right: 25px;
660 + top: 50%;
661 + margin-top: -20px;
662 +}
663 +/*.new-sdk-container .new-sdk-main .iright .bottom-icon i{
664 + display: block;
665 + width: 33px;
666 + height: 22px;
667 + background: url(../images/new-sdk-icon.png) no-repeat 0 0;
668 +}*/
669 +.new-sdk-container input{
670 + outline: medium;
671 +}
672 +.new-sdk-container .pull-box{
673 + position:absolute;
674 + top: 85px;
675 + left: -1px;
676 + border: 1px solid #c0c0c0;
677 + border-top: 0;
678 + border-radius: 0 0 20px 20px;
679 + width: 100%;
680 + font-size:16px;
681 + z-index: 99;
682 + background: #fff;
683 + color: #333;
684 + display: none;
685 + font-family: 宋体;
686 + max-height: 11em;
687 + /*overflow-y: scroll;*/
688 + height: 150px;
689 +}
690 +.new-sdk-container .pull-box ul{
691 + margin-left: 65px;
692 +}
693 +.new-sdk-container .pull-box li{
694 + text-indent: 15px;
695 + margin: 5px 0;
696 + color: #434343;
697 + font-size: 30px;
698 +}
699 +.new-sdk-container .pull-box li a{
700 + display: block;
701 +}
702 +/*忘记密码*/
703 +.new-sdk-container .forget-password .function-list {
704 + width: 100%;
705 + margin: 10px auto;
706 + font-size: 16px;
707 +}
708 +.new-sdk-container .forget-password .function-list li {
709 + margin-top: 10px;
710 +}
711 +.new-sdk-container .forget-password .function-list li:first-child {
712 + margin-top: 20px;
713 +}
714 +.new-sdk-container .forget-password .function-list-icon {
715 + display: block;
716 + width: 13px;
717 + height: 13px;
718 + background: url("../images/icon.png") no-repeat;
719 + margin: 5px 10px 0 0;
720 +}
721 +.new-sdk-container .forget-password .function-list-icon-1 {
722 + background-position: -245px -75px;
723 +}
724 +.new-sdk-container .forget-password .function-list-icon-2 {
725 + background-position: -280px -75px;
726 +}
727 +.new-sdk-container .forget-password .function-list-content {
728 + display: none;
729 + margin: 5px 0 0 20px;
730 +}
731 +.new-sdk-container .forget-password .function-list-content .function-input {
732 + width: calc(100% -20px);
733 + width: -moz-calc(100% - 20px);
734 + width: -webkit-calc(100% - 20px);
735 + border: 1px solid #c2c2c2;
736 + padding: 10px;
737 + font-size: 16px;
738 +}
739 +.new-sdk-container .forget-password .function-list-content p {
740 + color: #595757;
741 + font-size: 16px;
742 + margin: 0;
743 +}
744 +.login-box .forget-password .login-button {
745 + margin-top: 10px;
746 +}
747 +.function-list .function-list-text{
748 + float: left;
749 + width: calc(100% -25px);
750 + width: -moz-calc(100% - 25px);
751 + width: -webkit-calc(100% - 25px);
752 + word-break: break-all;
753 +}
754 +/*服务协议*/
755 +.new-sdk-container .new-sdk-content{
756 + width: calc(100% - 76);
757 + width: -moz-calc(100% - 76);
758 + width: -webkit-calc(100% - 76);
759 + height: 300px;
760 + border: 1px solid #c0c0c0;
761 + border-right: none;
762 + border-bottom: none;
763 + margin: 25px 37px 15px;
764 + overflow-y: scroll;
765 + color: #000;
766 + background: #fff;
767 + -webkit-overflow-scrolling: touch;
768 +}
769 +@media only screen and (min-width: 100px) and (max-width: 640px) {
770 + .new-sdk-container .new-sdk-content{
771 + height: 250px;
772 + }
773 +}
774 +.new-sdk-container .new-sdk-content h3 {
775 + font-size: 28px;
776 + font-weight: normal;
777 + text-align: center;
778 + margin: 5px 0 20px;
779 +}
780 +.new-sdk-container .new-sdk-content p, .new-sdk-container .new-sdk-content h4 {
781 + font-size: 24px;
782 + font-weight: normal;
783 + padding: 0 20px;
784 +}
785 +.new-sdk-container .new-sdk-content p {
786 + text-indent: 2em;
787 +}
788 +.new-sdk-container .agreement{
789 + float: right;
790 + font-size: 24px;
791 + line-height: 20px;
792 + margin-right: 32px;
793 +}
794 +.new-sdk-container .checkbox {
795 + width: 24px;
796 + height: 24px;
797 + /*background: transparent url("../images/icon.png") no-repeat scroll 0% 0%;*/
798 + margin: 0 10px;
799 + display: inline-block;
800 +}
801 +.new-sdk-container .checkbox-2 {
802 + background-position: -274px -7px;
803 +}
804 +/*填写注册*/
805 +.new-sdk-container .checkbox-1 {
806 + background-position: -234px -7px;
807 +}
808 +.new-sdk-container .ag-tx{
809 + font-size: 24px;
810 + margin: 20px 0 22px;
811 +}
812 +.new-sdk-container .ag-tx a{
813 + color: #0078ff;
814 + text-decoration: underline;
815 +}
816 +.margintop{
817 + margin-top: 20px;
818 +}
819 +
820 +/* 消息框 */
821 +#alert {
822 + background:rgba(0, 0, 0, 0.65)!important; filter:Alpha(opacity=65);
823 + position: absolute;
824 + top: 50%;
825 + left: 50%;
826 + margin: auto 0;
827 + width: 80%;
828 + z-index: 1000;
829 + line-height: 38px;
830 + font-size: 30px;
831 + margin-left: -40%;
832 + text-align: center;
833 + color: #c3c3c3;
834 + border-radius: 10px;
835 + padding: 10px 0px;
836 +}
837 +
838 +button.close {
839 + padding: 0;
840 + cursor: pointer;
841 + background: transparent;
842 + border: 0;
843 + -webkit-appearance: none;
844 +}
845 +.alert {
846 + padding: 8px 35px 8px 14px;
847 + font-size: 16px;
848 + /* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);*/
849 + background:rgba(250, 250, 250, 0.64);
850 + /*border: 1px solid #fbeed5;*/
851 + -webkit-border-radius: 4px;
852 + -moz-border-radius: 4px;
853 + border-radius: 4px;
854 +}
855 +.alert,
856 +.alert h4 {
857 + color: #c09853;
858 +}
859 +
860 +.alert h4 {
861 + margin: 0;
862 +}
863 +
864 +.alert .close {
865 + position: relative;
866 + top: -2px;
867 + right: 8px;
868 + line-height: 20px;
869 +}
870 +
871 +.alert-success {
872 + color:#009933;
873 + /*border-bottom:2px solid #9f9f9f;*/
874 + border-color: #d6e9c6;
875 + text-shadow:none;
876 +}
877 +
878 +.alert-success h3 {
879 + color: #468847;
880 +}
881 +
882 +.alert-danger,
883 +.alert-error {
884 + color:red;
885 + text-shadow:none;
886 +}
887 +
888 +.alert-danger h3,
889 +.alert-error h3 {
890 + color: #b94a48;
891 +}
892 +
893 +
894 +.ios_scroll iframe{
895 + min-height: 320px;
896 + /*transform: scale(1.1);*/
897 +}
898 +/*用户中心*/
899 +.clearfix:before,
900 +.clearfix:after {
901 + display: table;
902 + line-height: 0;
903 + content: "";
904 +}
905 +.clearfix:after {
906 + clear: both;
907 +}
908 +.pull-left{ float: left;}
909 +.pull-right{ float: right;}
910 +.w_45{ width: 45%;}
911 +.w_50{ width: 50%;}
912 +.poslft{ position: absolute; left: 1em;}
913 +.user-center{
914 + position: relative;
915 + text-align: center;
916 + padding: 26px 0 18px;
917 + border-bottom: 2px solid #fff;
918 + color: #00beef;
919 + font-family: "Microsoft YaHei","微软雅黑";
920 + font-size: 36px;
921 +}
922 +.user-center a{
923 + position: absolute;
924 + right: 27px;
925 + bottom:7px;
926 + color: #ff9600;
927 + font-size: 24px;
928 + padding:10px;
929 +}
930 +.user-center a.lefticon{
931 + right: auto;
932 + left: 37px;
933 +}
934 +.user-center-box{
935 + border-top: 1px solid #c4c3c3;
936 + padding: 0 37px 50px;
937 +}
938 +.user-center-box .top{
939 + border-bottom: 2px solid #fff;
940 + padding: 43px 0 40px;
941 +}
942 +.user-center-box .top .txt p{
943 + color: #434343;
944 + font-size: 30px;
945 + white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;
946 + width: 100%;
947 +}
948 +.user-center-box .top .inline-btn{
949 + margin: 0;
950 + width: 45%;
951 +}
952 +.user-center-box .top .inline-btn a{
953 + border-radius: 10px;
954 + text-align: center;
955 + line-height: 85px;
956 + font-size: 30px;
957 +}
958 +.user-center-box .bind-user{
959 + border-top: 1px solid #c4c3c3;
960 + padding: 30px 20px;
961 +}
962 +.user-center-box .bind-user .txt{
963 + color:#949494;
964 + font-size: 20px;
965 +}
966 +.user-center-box .bind-user .btn-bind{
967 + font-size: 30px;
968 + text-align: center;
969 + line-height: 60px;
970 + border: 1px solid #ff9600;
971 + color: #ff9600;
972 + border-radius: 10px;
973 + background: none;
974 +}
975 +.user-center-box .bind-user .inline-btn{
976 + margin: 0;
977 + width: 35%;
978 + overflow: initial;
979 + margin-left: 10%;
980 +}
981 +.user-center-box .list-item{
982 + border-left: 1px solid #c0c0c0;
983 + border-top: 1px solid #c0c0c0;
984 +}
985 +.user-center-box .list-item li{
986 + position:relative;float: left; width: 33.333%; background: #fff; border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; text-align: center; color: #434343; font-size: 30px; padding:30px 0;
987 +}
988 +.user-center-box .list-item li a{ display: block;}
989 +.user-center-box .list-item .redround{
990 + position: absolute;
991 + top: 5px;
992 + right: 5px;
993 + background: #ff0000;
994 + display: block;
995 + width: 10px;
996 + height: 10px;
997 + border-radius: 100%;
998 +}
999 +.acount-name{
1000 + color: #434343;
1001 + font-size: 30px;
1002 + margin-bottom: 25px;
1003 +}
1004 +.user-center a.btn-link{
1005 + font-size: 24px;
1006 + bottom: 20px;
1007 +}
1008 +.new-sdk-container .activity{ border-top: 1px solid #c4c3c3;}
1009 +.new-sdk-container .activity-list li:not(.more){
1010 + padding: 20px;
1011 + border-bottom: 1px dashed #ddd;
1012 +}
1013 +.new-sdk-container .activity-list li:not(.more) a{
1014 + font-size: 26px;
1015 +}
1016 +.new-sdk-container .activity-list .act_time {
1017 + color: #999;
1018 + font-size: 24px;
1019 +}
1020 +.new-sdk-container .activity-list .act_title{white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;display: block;width: 80%;}
1021 +.new-sdk-container .activity-list li.more a{
1022 + display: block;
1023 + width: 235px;
1024 + margin: 20px auto;
1025 + text-align: center;
1026 + padding: 20px;
1027 + color: #fff;
1028 + font-size: 26px;
1029 + background: #00beef;
1030 + border-radius: 10px;
1031 +}
1032 +.new-sdk-container .activity .bor_b_h3{
1033 + border-bottom: 1px solid #e0e0e0;
1034 + background: #fff;
1035 + padding: 20px 0;
1036 + margin: 0 37px;
1037 +}
1038 +.new-sdk-container .activity .bor_b_h3 h3{
1039 + color: #000;
1040 + font-size: 26px;
1041 + font-family: "Microsoft YaHei","微软雅黑";
1042 + font-weight: normal;
1043 +}
1044 +.scroll{ height: 100%;}
1045 +.new-sdk-container .activity .bor_b_h3 .text-info{
1046 + color: #707070;
1047 + font-size: 24px;
1048 + font-family: "Microsoft YaHei","微软雅黑";
1049 + font-weight: normal;
1050 + margin-top: 5px;
1051 +}
1052 +.new-sdk-container .activity .activity_text{
1053 + color: #707070;
1054 + font-size: 26px;
1055 + padding: 20px;
1056 + font-family: "Microsoft YaHei","微软雅黑";
1057 + background: #fff;
1058 +}
1059 +.new-sdk-container .activity .activity_text img{
1060 + display: block;
1061 + width: 100%;
1062 +}
1063 +.new-sdk-container .pwd_box{ margin: 0 37px;}
1064 +.new-sdk-container .pwd_box li{
1065 + border: 1px solid #c0c0c0;
1066 + border-radius: 10px;
1067 + -moz-border-radius: 10px;
1068 + -webkit-border-radius: 10px;
1069 + padding: 20px 0;
1070 + margin-bottom: 20px;
1071 + background: #fff;
1072 +}
1073 +.new-sdk-container .pwd_box #mobile_get_pwd_form .inline-btn li{
1074 + border-radius: 20px;
1075 + -moz-border-radius: 20px;
1076 + -webkit-border-radius: 20px;
1077 + padding: 0;
1078 +}
1079 +.new-sdk-container .pwd_box li a{
1080 + display: block;
1081 + color: #434343;
1082 + font-size: 30px;
1083 + font-family: "Microsoft YaHei","微软雅黑";
1084 + text-align: center;
1085 +}
1086 +.pwd_box .step-box input{
1087 + background: #fff;
1088 + width: 100%;
1089 + padding: 25px 0;
1090 + border-radius: 10px;
1091 + border: 1px solid #c0c0c0;
1092 + text-align: center;
1093 + margin: 83px 0 91px 0;
1094 + font-size: 30px;
1095 + line-height: 30px;
1096 + box-shadow: none;
1097 + box-sizing: border-box;
1098 + appearance:button;
1099 + -moz-appearance:button; /* Firefox */
1100 + -webkit-appearance:button; /* Safari 和 Chrome */
1101 +}
1102 +.pwd_box .step-box a{
1103 + display: block;
1104 + text-align: center;
1105 + width: 235px;
1106 + background: #ff9600;
1107 + margin: 0 auto;
1108 + color: #fff;
1109 + padding: 25px 0;
1110 + border-radius: 10px;
1111 + font-size: 30px;
1112 +}
1113 +.pwd_box .step-box .pwd_txt{
1114 + padding: 45px 25px 35px;
1115 + border: 1px solid #c0c0c0;
1116 + background: #fff;
1117 + margin: 9px 0 38px;
1118 + border-radius: 10px;
1119 +}
1120 +.pwd_box .step-box .pwd_txt p{
1121 + color: #434343;
1122 + font-size: 30px;
1123 + font-family: "Microsoft YaHei","微软雅黑";
1124 +}
1125 +.pwd_box .step-box .pwd_txt p a{
1126 + display: inline-block;
1127 + text-align: left;
1128 + width: auto;
1129 + background: none;
1130 + color: #434343;
1131 + padding: 0;
1132 + border-radius: none;
1133 +}
1134 +.new-sdk-box .question-input{
1135 + position: relative;
1136 + background: #fff;
1137 + border: 1px solid #c0c0c0;
1138 + border-radius: 10px;
1139 + padding: 25px 0;
1140 + text-align: center;
1141 + font-size: 30px;
1142 + color: #434343;
1143 + font-family: "Microsoft YaHei","微软雅黑";
1144 +}
1145 +.new-sdk-box .question-input i{
1146 + position: absolute;
1147 + right: 15px;
1148 + top: 27px;
1149 +}
1150 +.new-sdk-box .input input{
1151 + text-align: center;
1152 +}
1153 +.new-sdk-box .question-input p{
1154 + margin: 0;
1155 + font-size: 30px;
1156 + color: #434343;
1157 + font-family: "Microsoft YaHei","微软雅黑";
1158 +
1159 +}
1160 +.mt10{ margin-top: 33px;}
1161 +.new-sdk-main .other-login p a.hide{ display: none;}
1162 +i.checkbx.icon-xuanzhong:before{ color: #999;}
1163 +.only-btn.inline-btn .agreement{
1164 + position: absolute;
1165 + right: 37px;top: 10px;
1166 +}
1167 +*:focus,* {outline: none;}
1168 +input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
1169 +  color: #b5b5b6;
1170 + font-family: "Microsoft YaHei","微软雅黑";
1171 + font-size: 30px;
1172 +}
1173 +.new-sdk-container .new-sdk-main .other-login label a{
1174 + color: #434343;
1175 + font-size: 24px;
1176 + font-family: "Microsoft YaHei","微软雅黑";
1177 + vertical-align: -webkit-baseline-middle;
1178 + padding: 10px;
1179 +}
1180 +.pwd_box .step-box .question-input-box{
1181 + background: #fff;
1182 + padding: 25px 20px;
1183 + border-radius: 10px;
1184 + border: 1px solid #c0c0c0;
1185 + margin: 83px 0 91px 0;
1186 +}
1187 +.pwd_box .step-box .qib-txt{
1188 + width: 150px;
1189 + color: #434343;
1190 + font-size: 30px;
1191 + font-family: "Microsoft YaHei","微软雅黑";
1192 +}
1193 +.pwd_box .step-box .qib-input{
1194 + width: calc(100% - 150px);
1195 +}
1196 +.pwd_box .step-box .question-input-box input{
1197 + padding: 0;
1198 + line-height: 40px;
1199 + margin: 0;
1200 + border: none;
1201 +}
1202 +input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
1203 + background-color: rgb(255, 255, 255) !important;
1204 + box-shadow: 0 0 0px 1000px white inset;
1205 +}
1206 +input:disabled{
1207 + background-color:#ffffff;
1208 + color:#434343;
1209 +}
1210 +.new-sdk-container .pull-box .drop-ul li{
1211 + border-bottom: 1px solid #ddd;
1212 +}
......
1 -html[data-useragent='ios'] .other-menu{display:none}body{margin:0;padding:0;font-family:"Microsoft YaHei","微软雅黑";background-color:white;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}h1,h2,h3,h4{font-weight:normal;margin:5px 0}p{margin:5px;line-height:28px}a,button,input,select{-webkit-tap-highlight-color:rgba(255,0,0,0);outline:none}a,input,textarea,select{outline:0}a:focus{outline:thin dotted}form{position:relative}input:-moz-placeholder,textarea:-moz-placeholder{color:#555}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#555}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#555}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:none}html{FILTER:progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#f7f7f7,endColorStr=#eeeeee);background:-moz-linear-gradient(top,#f7f7f7,#eee);background:-webkit-gradient(linear,0% 0%,0% 100%,from(#f7f7f7),to(#eee));background:-webkit-linear-gradient(top,#f7f7f7,#eee);background:-o-linear-gradient(top,#f7f7f7,#eee);position:relative;height:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{background:#f6f6f6;width:100%;height:100%;background-size:100%}select{width:100%;font-size:16px;height:35px;line-height:33px;padding:2px 0;font-family:"Microsoft YaHei","微软雅黑";background-color:#fff;border:1px solid #CCC;box-shadow:0 1px 1px rgba(0,0,0,0.075) inset;-webkit-appearance:listbox;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.fix .ios_scroll{margin-right:50px;width:auto}.nofix .ios_scroll{overflow:hidden}.ios_scroll{width:100%;height:100%;overflow:scroll;z-index:1;-webkit-overflow-scrolling:touch}.ios_scroll iframe{z-index:1}.mask{position:relative;height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}a.link{color:#F00;border-bottom:1px solid #F00;font-weight:bold}.hide{display:none}a:link,a:active,a:hover,a:visited,a:focus{text-decoration:none}a,button,input,select,li{-webkit-tap-highlight-color:rgba(255,0,0,0)}.disable{background-color:#DDD}a:disabled,input:disabled{background-color:#666}.align-center{text-align:center}.container img{max-width:95%}small,.small{font-size:16px}.mar-r-10{margin-right:10px}.mar-t-10{margin-top:10px}.relative{position:relative}.w-80{width:80%}.w-20{width:20%}p.text-muted{color:#999}.text-warning{color:#D14}.text-error{color:#D14}.text-success{color:#0F820C}.text-info{color:#1174B7}.text-indent{text-indent:1em}.align-left{text-align:left}.pull-right{float:right}.pull-left{float:left}.inline{display:inline}.inline-block{display:inline-block}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#b94a48;border-radius:10px}.relative .badge{position:absolute;right:5px;top:13px}.badge.pay{position:absolute;right:-8px;top:-6px}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}p.lead{text-align:left;font-size:18px;min-height:100px}.larg{display:block}.container .larg{display:block}.header .btn.pull-left{float:none;position:absolute;left:8px;margin-top:8px}.header .btn.pull-right{float:none;position:absolute;right:8px;margin-top:8px}.fix .btn.scroll-btn{display:inline-block}.btn.scroll-btn{border-radius:35px;padding:0;display:none;min-width:35px;position:absolute;z-index:10000;right:0;height:35px}.btn.scroll-up{top:40%;margin-top:-60px}.btn.scroll-down{top:57%}input[type="text"],input[type="submit"],input[type="date"],input[type="email"]{width:100%;display:block;line-height:normal;margin:10px 0 10px 0}label.enter_game{margin-top:8px;font-size:20px;display:inline-block}@font-face{font-family:"iconfont";src:url('../font/iconfont.eot?t=1468997064');src:url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'),url('../font/iconfont.woff?t=1468997064') format('woff'),url('../font/iconfont.ttf?t=1468997064') format('truetype'),url('../font/iconfont.svg?t=1468997064#iconfont') format('svg')}.iconfont{font-family:"iconfont"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}.icon-weixin:before{content:"\e600";font-size:1.8em;color:#0bb515}.icon-qq:before{content:"\e601";font-size:1.8em;color:#0f9fcf}.icon-iconfontcha:before{content:"\e609"}.icon-qq1:before{content:"\e602";font-size:1.8em;color:#0f9fcf}.icon-weixin1:before{content:"\e603"}.icon-qq2:before{content:"\e604";font-size:1.8em;color:#0f9fcf}.icon-iconfontxiangyou:before{content:"\e60a";color:#fff;font-size:32px}.icon-iconfontcolor19:before{content:"\e60b"}.icon-xuanzhong:before{content:"\e60c";color:#ff9600;font-size:1.6em}.icon-triangle-l:before{content:"\e605"}.icon-shuangyuanquan:before{content:"\e60d";color:#089b55}.icon-weixin2:before{content:"\e606"}.icon-xiangyou:before{content:"\e60e"}.icon-fuxuankuangyixuanze:before{content:"\e607"}.icon-xiangxia:before{content:"\e60f";color:#ddd;font-size:1.8em}.icon-icon3:before{content:"\e608"}.icon-fanhui:before{content:"\e610";color:#949494;font-size:2em}.icon-yonghutouxiang:before{content:"\e611";color:#c1c1c1;font-size:84px}.icon-triangle-left-copy:before{content:"\e612";color:#ddd;font-size:1.8em}#alert{background:rgba(0,0,0,0.65)!important;filter:Alpha(opacity=65);position:absolute;top:200px;left:50%;margin:auto 0;width:80%;z-index:1000;line-height:38px;font-size:30px;margin-left:-40%;text-align:center;color:#c3c3c3;border-radius:10px;padding:10px 0}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:0.4}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.alert,.alert h4{color:#c09853}.alert h4{margin:0}.alert .close{position:absolute;top:-2px;right:8px;line-height:20px;color:#fff}.alert-success{color:#093;text-shadow:none}.alert-success h3{color:#468847}.alert-danger,.alert-error{color:red;text-shadow:none}.alert-danger h3,.alert-error h3{color:#b94a48}.other-login{list-style:none outside none;margin:0;padding:0;zoom:0.8}.other-login a{background-image:url(http://cdn.i9133.com/static/sdk/skin/img/share_2.png);background-color:#fff;background-repeat:no-repeat;display:inline-block;margin:0 12px 0 0;height:69px;width:70px;padding:0}.other-login a.hide{display:none}.other-login li{display:inline;zoom:0.8}.other-login a.sina{background-position:0 -211px}.other-login a.douban{background-position:0 -96px}.other-login a.renren{background-position:0 -70px}.other-login a.taobao{background-position:0 0}.other-login a.qq{background-position:0 -141px}.other-login a.tqq{background-position:0 -281px}.other-login a.wangyi{background-position:0 -192px}.other-login a.twitter{background-position:0 -225px}.other-login a.baidu{background-position:0 -350px}.other-login a.google{background-position:0 -493px}.other-login a.facebook{background-position:0 -421px}.account-info{margin:auto;text-align:left;height:78px;position:relative;margin-bottom:20px}.account-info .desc{margin-left:85px}.account-info .desc p{font-size:16px;line-height:16px;margin:10px 0;padding:0}.account-info img{height:75px;position:absolute;width:75px}ul.step-tab{list-style:none;padding:0;margin:auto;text-align:left}.step-tab li{text-align:left;margin-bottom:10px}.step-tab li label{display:block;padding:10px 0}.step-tab li p,.setup-form li form{font-size:14px;margin-left:20px}.amount_level{margin-top:20px}.amount_level .btn,.amount_level a{min-width:70px;margin-left:30px;margin-bottom:20px}.channel_list{margin-top:10px}.channel_list .btn,.channel_list a{min-width:120px;margin-left:20px;margin-bottom:10px;text-align:center}.pay-proxy-info{font-size:14px;margin:auto;text-align:left;height:100px}.pay-proxy-info .desc{margin-left:0}.pay-proxy-info .desc p{font-size:14px;line-height:16px;margin:5px 0;padding:0}.pay-proxy-info .btn-group{margin-left:10px;float:right}ol.list{list-style-type:none;padding:0;margin:0;line-height:25px;text-align:left}ol.invite-list li{margin-bottom:8px}ol.invite-list li img{width:50px;height:50px}ol.invite-list li div.item{display:inline-block;width:100%}ol.kefu-list li a.item{margin:0;padding:7px 0;cursor:pointer;width:100%;display:inline-block}ol.question-list li p{margin-bottom:0}ol.question-list .content{padding:5px 5px 0 5px}ol.question-list .content>p{margin:0}ol.question-list li{margin:0;padding:7px 0;width:100%;border-bottom:1px solid #888;display:inline-block}ol.question-list li span.btn{font-size:14px;line-height:30px;height:30px;cursor:default;width:80px;text-align:center}ol.question-list li span.kefu{font-size:16px}ol.question-list li p.content{text-indent:1em;font-size:15px}ol.question-list p > a{font-size:14px;line-height:30px;height:30px;width:80px;text-align:center;margin-right:7px;margin-top:5px}ol.question-list p> a:last-of-type{margin-right:0}.statu{color:#fff;margin-right:6px;padding:1px 5px;font-size:12px}.statu_yes{background:#A26737}.statu_no{background:#950001}.reply{border:1px solid #CCC;padding:2px 5px;margin-right:10px}.list li a.item{margin:0;padding:10px 0;cursor:pointer;width:100%;display:inline-block;font-size:14px}.list li a.item p{margin:0}.item img{margin-right:10px}#activity_detail .detail img{max-width:100%}ol.prize-list li p:first-child{font-size:16px;margin:5px 0 0 0}ol.prize-list li p.prize_content{text-indent:2em;margin-top:0}ol.prize-list li{border-bottom:1px solid #f8f8f8}hr{display:none}ol.trade-list{list-style:none;padding:0;overflow:auto;text-align:left}ol.trade-list > li,ol.trade-list > li > p{font-size:16px;line-height:20px}ol li.more{text-align:center}ol.trade-list .detail{background:none repeat scroll 0 0 #F3F3F3;font-size:16px;line-height:35px;height:35px;margin-bottom:5px;position:relative;padding:0;padding-left:8px}.btn.btn_pri_block{height:140px;line-height:140px}ol.trade-list .statu{font-size:24px;position:absolute;right:5px}ol.trade-list .detail .statu small{color:red}ol.trade-list .statu .btn{background-color:#036BB4;color:white;height:30px;line-height:30px;display:block;padding:0 30px}ol.trade-list > li p{padding:8px 5px}ol.trade-list > li.more{border:0}.scroll{height:100%;position:relative}.scroll p{margin-bottom:0}.scroll ol{padding-bottom:10px;margin-top:0}.scroll div div:last-child{padding-bottom:10px}.container{box-sizing:border-box;position:absolute;top:64px;left:0;right:0;bottom:0;overflow-y:scroll;-webkit-overflow-scrolling:touch}.box_info_center{height:100%;margin:0 37px}.container textarea{height:110px;line-height:normal}section{position:relative;top:0;left:0;width:100%;height:100%}.header{height:64px;line-height:64px;text-align:center;position:absolute;top:0;left:0;width:100%;box-sizing:border-box;z-index:100;FILTER:progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#0d96ca,endColorStr=#11a9d3);background:-moz-linear-gradient(top,#0d96ca,#11a9d3);background:-webkit-gradient(linear,0% 0%,0% 100%,from(#0d96ca),to(#11a9d3));background:-webkit-linear-gradient(top,#0d96ca,#11a9d3);background:-o-linear-gradient(top,#0d96ca,#11a9d3)}.header .btn{background-image:-moz-linear-gradient(top,#036BB4,#036BB4 );background-image:-webkit-gradient(linear,0 0,0 100%,from(#036BB4),to(#036BB4));background-image:-webkit-linear-gradient(top,#036BB4,#036BB4);background-image:-o-linear-gradient(top,#036BB4,#036BB4);background-image:linear-gradient(to bottom,#036BB4,#036BB4);background-color:#036BB4;border:1px;border-style:solid;border-color:#003090;margin:5px 3px;min-width:60px;height:50px;line-height:50px;text-align:center;font-size:20px;text-shadow:-1px 1px 0 #582804}.header .btn-link{color:#fff;font-size:24px;font-weight:normal}.header .op-primary{background-image:-moz-linear-gradient(top,#09AEA8,#09AEA8 );background-image:-webkit-gradient(linear,0 0,0 100%,from(#09AEA8),to(#09AEA8));background-image:-webkit-linear-gradient(top,#09AEA8,#09AEA8);background-image:-o-linear-gradient(top,#09AEA8,#09AEA8);background-image:linear-gradient(to bottom,#09AEA8,#09AEA8);background-color:#09AEA8}.header>.title{font-size:32px;color:white}textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{background-color:#FFF;padding:0;color:#555;border:1px solid #CCC;box-shadow:0 1px 1px rgba(0,0,0,0.075) inset;min-height:44px;height:44px;line-height:44px;font-size:16px;border-radius:0;-webkit-appearance:none;font-family:"Microsoft YaHei","微软雅黑";display:block;width:98%;line-height:normal;padding-left:8px;margin-bottom:10px}.ios textarea,.ios input[type="text"],.ios input[type="password"],.ios input[type="datetime"],.ios input[type="datetime-local"],.ios input[type="date"],.ios input[type="month"],.ios input[type="time"],.ios input[type="week"],.ios input[type="number"],.ios input[type="email"],.ios input[type="url"],.ios input[type="search"],.ios input[type="tel"],.ios input[type="color"],.ios .uneditable-input{line-height:normal;width:100%}.btn{background:#036bb4;color:#FFF;display:inline-block;font-size:16px;font-weight:normal;cursor:pointer;border:0;-webkit-appearance:none;border-radius:6px;height:44px;line-height:44px;padding:0 10px;overflow:hidden}.btn.larg{padding:0;border-radius:6px;height:50px;line-height:50px;font-family:"Microsoft YaHei","微软雅黑";font-size:18px}.btn-small{line-height:32px;height:32px;font-size:15px}.btn-big{height:75px;line-height:75px;text-align:center;padding:0;width:120px;position:absolute;right:0;top:0;font-size:20px;font-weight:bold}.toolbar{margin:10px auto;margin-right:auto}.toolbar .btn{margin-bottom:32px;width:46%;margin:0 0 15px 0;float:left;border-radius:6px;font-size:16px;padding:0}div.input-control{position:relative}.drop-down{width:55px;height:55px;position:absolute;left:98%;top:0;margin-left:-46px;background:url(http://cdn.i9133.com/static/sdk/skin/img/toggle-down.png) center center no-repeat}.ios .drop-down{top:0}.eg{vertical-align:middle}ul.drop-ul{width:96%;border:1px solid #aaa;background:#fff;position:absolute;z-index:100;color:#222;padding:0;margin:0;font-size:1.1em;top:47px}ul.drop-ul li{width:100%;margin:0;padding:3px;list-style:none}ul.drop-ul li a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:normal}div.head{margin-bottom:5px;border-bottom:3px solid #ffe;padding-bottom:10px}div.head span.num{position:absolute;left:0}div.sec{margin-top:16px}ol.other-pay{padding-left:5px}ol.other-pay li{display:inline-block}ol.other-pay li a{display:inline-block;text-align:center;margin:5px 10px 5px 0;padding:0 5px;cursor:pointer}ol.other-pay li a:last-of-type{margin:5px 0 5px 0}ol.other-pay li a img{width:70px;height:70px}.verify img{vertical-align:middle;margin-right:15px}.verify input[type=number]{display:inline-block;width:155px;min-height:33px;font-size:20px;height:33px;line-height:normal;margin:8px 15px 8px 0;vertical-align:middle}.error_title{margin:20px}*:after,*:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-control.checkbox{display:inline-block;padding:10px 0;cursor:pointer}.amount_level .btn,.channel_list .btn,.toolbar .btn{margin:0 10px 15px 0}.btn-block{display:block}.user_face{background:url(http://cdn.i9133.com/static/sdk/skin/img/user-face.jpg) center center no-repeat;position:absolute;background-size:50px;display:block;width:40px;height:40px;margin-right:10px;margin-top:10px}.topic-detail-list li{margin-bottom:10px}.game_face{background:url(http://cdn.i9133.com/static/sdk/skin/img/game_face_35.png) center center no-repeat;display:block}.level{color:#F60;float:right;font-size:14px}.gz-zhanghao{text-align:left;padding:5px;margin-bottom:10px}.gz-zhanghao .qq{padding:5px 0 5px 35px;background:url(http://cdn.i9133.com/static/sdk/skin/img/qq.png) left bottom no-repeat}.gz-zhanghao .weixin{background:url(http://cdn.i9133.com/static/sdk/skin/img/weixin.png) left bottom no-repeat;padding:5px 0 5px 35px}.fs_box{text-align:left;font-size:16px}.help-span{font-size:20px;color:#f5c85d;font-family:Verdana,Geneva,sans-serif;font-weight:normal;padding-left:5px}.help-text{font-size:22px;text-align:left;line-height:28px}p.forget{margin:8px 0}p.forget *{padding:8px 0}.statu{background:none;border:0;font-size:13px;margin-right:6px;padding:1px 5px;color:#f00}.muted strong{color:#F00}.btn.width100{width:100%;padding:0;box-sizing:border-box;margin-top:5px}.btn-group{text-align:center}h1.error_title{position:relative;top:42%;font-size:28px}input[type=text],input[type=password]{line-height:normal}.sec_invtite p.title-fs{padding:10px 15px}.sec_invtite p.title-fs a{color:#F00;border-bottom:1px solid #F00;font-weight:bold}li.more .btn{display:block}.container_load{height:100%;position:absolute;top:0;left:0;width:100%;z-index:1000}.container_load.in_frame{position:absolute;width:100%;left:0;top:0}.container_load .content{margin:0 auto;position:relative;left:0;top:35%}.circle{background-color:rgba(0,0,0,0);border:5px solid rgba(0,183,229,0.9);opacity:.9;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);border-radius:50px;box-shadow:0 0 35px #2187e7;width:50px;height:50px;margin:0 auto;-moz-animation:spinPulse 1s infinite ease-in-out;-webkit-animation:spinPulse 1s infinite linear;animation:spinPulse 1s infinite linear}.circle1{background-color:rgba(0,0,0,0);border:5px solid rgba(0,183,229,0.9);opacity:.9;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-radius:50px;box-shadow:0 0 15px #2187e7;width:30px;height:30px;margin:0 auto;position:relative;top:-50px;-moz-animation:spinoffPulse 1s infinite linear;-webkit-animation:spinoffPulse 1s infinite linear;animation:spinoffPulse 1s infinite linear}.tip_text{margin-bottom:15px;margin-top:15px}.question_del{border-bottom:1px solid #503c2c;line-height:25px}.question_del h2{font-weight:bold;font-size:16px;margin-bottom:15px}.q_time{font-size:13px;font-weight:normal;color:#999}.tip{font-size:13px}.padding_box{padding-top:25px}.padding_box p{padding-bottom:10px}.activity-list li,.message-list li{border-bottom:1px solid #655241}.activity-list li .pull-right,.message-list li .pull-right{font-size:12px}.activity-list h3,.message-comm h3{font-size:22px;margin-bottom:10px}.activity-comm .text-info,.message-comm .text-info{font-size:12px}.activity-comm .bor_b_h3,.message-comm .bor_b_h3{border-bottom:2px #655241 solid}.activity-comm .activity_text,.message-comm .message_text{padding-top:15px;text-align:left;font-size:16px;text-indent:20px;line-height:28px}.activity-comm .activity_text p,.message-comm .message_text p{text-indent:20px;line-height:28px;font-size:16px}.activity-list .act_time{font-size:12px}.box_info_center2{width:600px;margin:0 auto}.box_info_center2 .login_case1{background-color:#fff;border:1px solid #036BB4;width:240px;float:left;display:block;margin-top:40px}.box_info_center2 .other-login li a{width:80px;margin:0;height:80px;background-image:url(http://cdn.i9133.com/static/sdk/skin/img/sdk_login.png);background-repeat:no-repeat;background-position:0 0;float:left}.box_info_center2 .other-login li a.qq{background-position:0 0}.box_info_center2 .other-login li a.sina{background-position:-80px 0}.box_info_center2 .other-login li a.baidu{background-position:-160px 0}.box_info_center2 .login_case2{margin-left:90px}.box_info_center2 .login_case_c{padding:15px 10px;text-align:center;min-height:80px}.box_info_center2 .login_case_c p{margin-bottom:10px}.login_case_c .text-info{font-size:22px}.login_case_c .text-muted{font-size:16px}.box_info_center2 .login_case_b{padding:14px;border-top:1px solid #036BB4;color:#727474}.case_top{height:80px;background:#036bb4;line-height:80px;font-size:22px;color:#fff}.login_case_c .login_case_btn{display:block;height:44px;line-height:44px;border:1px solid #036BB4;background-color:#ecf0f1}.share_box1{padding:10px 0;text-align:left}.share_box1 img{margin-right:10px}.share_game{background-color:rgba(245,245,245,0.5);padding:10px}.share_box2{border-top:1px solid #f6f6f6;text-align:left;padding:5px 0}.share_box2 h2{font-weight:bold}@-moz-keyframes spinPulse{0%{-moz-transform:rotate(160deg);opacity:0;box-shadow:0 0 1px #2187e7}50%{-moz-transform:rotate(145deg);opacity:1}100%{-moz-transform:rotate(-320deg);opacity:0}}@-moz-keyframes spinoffPulse{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spinPulse{0%{-webkit-transform:rotate(160deg);opacity:0;box-shadow:0 0 1px #2187e7}50%{-webkit-transform:rotate(145deg);opacity:1}100%{-webkit-transform:rotate(-320deg);opacity:0}}@-webkit-keyframes spinoffPulse{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spinoffPulse{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}#share{text-align:left;margin:20px 0}#share span{display:inline-block;height:46px;line-height:46px;vertical-align:top}#share a{width:46px;height:46px;display:inline-block;background-image:url(http://cdn.i9133.com/static/sdk/skin/img/share.png);background-repeat:no-repeat;margin-right:10px;-webkit-transform:scale(1.2)}#share a.s_qzone{background-position:5px 4px}#share a.s_tsina{background-position:5px -36px}#share a.s_tqq{background-position:5px -76px}.invite_box p{margin:5px 0;font-size:16px}.invite_box h3{margin-top:18px}.share_box1 .s_content{width:70%;margin:0;height:auto;min-height:73px}.pay-info-cont{padding:10px 37px;position:relative}.pay-info-cont .player-info-cont{border-right:1px solid black}.pay-info-cont .player-info-cont .head-ico{max-height:50px;max-width:50px}.pay-info-cont .player-info-cont span{display:inline-block}.topic-detail-list li .content{padding-left:50px;font-size:16px}.time_p{font-size:12px}.toolbar .btn:nth-of-type(even){float:right;margin-right:0;padding:0}.qq_login .qq{background:url(img/icon_qq.png) no-repeat;background-position:0;display:block;height:80px;width:80px;background-size:auto 100%;border-radius:60px;margin:0 auto}@media screen and (max-width:320px){body{font-size:14px}h1{font-size:20px}h2{font-size:18px}h3{font-size:16px}h4{font-size:15px}p{font-size:14px}}@media screen and (min-width:320px){body{font-size:14px}h1{font-size:20px}h2{font-size:18px}h3{font-size:16px}h4{font-size:15px}p{font-size:14px}}@media screen and (min-width:480px){body{font-size:19px}h1{font-size:21px}h2{font-size:19px}h3{font-size:17px}h4{font-size:15px}p{font-size:16px}}@media screen and (min-width:640px){body{font-size:24px}h1{font-size:22px}h2{font-size:20px}h3{font-size:18px}h4{font-size:16px}p{font-size:17px}}@media screen and (min-width:720px){body{font-size:27px}h1{font-size:26px}h2{font-size:24px}h3{font-size:20px}h4{font-size:18px}p{font-size:20px}}@media screen and (max-width:600px){.box_info_center2{width:500px;margin:0 auto}.box_info_center2 .login_case2{margin-left:15px}}.header .poslft{position:absolute;left:37px}.header .posrgt{position:absolute;right:37px}.channel_list .btn{background:#fff;border:1px solid #ddd;font-family:"Microsoft YaHei","微软雅黑";color:#434343;text-align:left;font-size:30px;padding:0 15px;margin:0 0 10px 0;height:77px;line-height:77px;display:block}.channel_list .image{width:77px;height:67px;position:relative;margin-right:30px;margin-top:5px}.channel_list .image img{max-width:77px;max-height:67px;position:absolute;left:0;right:0;top:0;bottom:0;width:auto;height:auto;margin:auto}.warm-prompt{margin-top:15px;background:#dcdddd;padding:15px}.warm-prompt h2{color:#f00;font-size:20px;font-weight:normal;font-family:"Microsoft YaHei","微软雅黑"}.warm-prompt p{color:#535353;font-family:"Microsoft YaHei","微软雅黑";font-size:16px;margin:0}.warm-prompt p a{color:#f39700}.pay-info-cont .user-msg{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;margin-left:15px;width:calc(100% - 100px)}.pay-info-cont .user-msg h2{font-weight:normal;font-size:24px;margin:0;color:#949494}.pay-info-cont .user-msg p{font-size:24px;color:#434343;margin:0;line-height:normal}.pay-info-cont .user-msg p span{color:#f39700}.integral .box{border-left:2px solid #089b55;margin-left:100px;height:100%;padding:0 10px 20px}.integral .box h2{color:#6d6d6d;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal;position:relative}.integral .box .text{color:#717070;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal;font-size:16px;padding:10px;background:#fff;border:1px solid #ddd;border-radius:5px;position:relative;margin-left:10px}.integral .box .text .position{position:absolute;top:13px;left:-18px}.integral .box .text .position img{width:10px}.integral .box .text h3{color:#555;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal;font-size:30px;border-bottom:1px solid #ddd;padding-bottom:10px}.integral .box .text .txt{color:#9d9d9d;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal;font-size:14px;padding-top:5px}.integral .box .text .txt h3{margin-bottom:0;border:none;color:#000;margin-bottom:10px}.integral .box .text .txt p{line-height:normal;padding:0;margin:0;font-size:24px}.integral .box .text .txt strong{color:#f00}.integral .box h2 .icon{position:absolute;left:-20px;top:12px;width:17px;background:#fff;border-radius:20px}.integral .box h2 .time{position:absolute;left:-110px;top:12px;width:100px;text-align:center}.integral .box .time h3{color:#333;font-family:"Microsoft YaHei","微软雅黑";font-weight:normal;font-size:22px;line-height:22px;margin:0}#trade_record .user-msg h2{line-height:75px}.container form p{border:1px solid #ddd;border-radius:8px;-webkit-border-radius:8px;-moz-border-radius:8px;margin-bottom:15px;padding:0 17px;background:#fff;font-size:30px;color:#434343}.container form p label,.container form p input,.container form p select{height:84px;line-height:84px}.container form p span{color:#ff9600}.container form p input{border:none;font-size:24px;height:84px;line-height:84px;width:calc(100% - 200px);width:-webkit-calc(100% - 200px);width:-moz-calc(100% - 200px);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;min-height:30px;box-shadow:none;margin:0;-webkit-appearance:none}.container form p select{border:none;box-shadow:none;width:calc(100% - 200px);font-size:24px;padding:0}.w235{width:235px}.container form .btn{height:84px;line-height:84px;display:block;color:#fff;font-family:"Microsoft YaHei","微软雅黑";font-size:30px;text-align:center;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px}.container form .btn-cancel{background:#0f9fcf}.container form .btn-determine{background:#ff9600}.container .warm-prompt{margin:15px 0;background:#dcdddd;padding:17px 15px}.container .warm-prompt h2{color:#f00;font-size:20px;font-weight:normal;font-family:"Microsoft YaHei","微软雅黑";text-align:left}.container .warm-prompt p{color:#000;font-family:"Microsoft YaHei","微软雅黑";font-size:20px;padding:0;margin-top:5px;text-align:left;border:none;background:none;margin-bottom:0}.container .warm-prompt p a{color:#ff9600}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#b5b5b6;font-family:"Microsoft YaHei","微软雅黑";font-size:30px}input:-moz-placeholder,textarea:-moz-placeholder{color:#b5b5b6;font-family:"Microsoft YaHei","微软雅黑";font-size:30px}input::-moz-placeholder,textarea::-moz-placeholder{color:#b5b5b6;font-family:"Microsoft YaHei","微软雅黑";font-size:30px}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#b5b5b6;font-family:"Microsoft YaHei","微软雅黑";font-size:30px}.box_info_center .require_input p input{float:left}.box_info_center .require_input select option,.box_info_center .require_input select{color:#b5b5b6;font-family:"Microsoft YaHei","微软雅黑";font-size:30px}.container a.conBtn{font-size:30px;width:235px;color:#fff;margin:0 auto;height:84px;line-height:84px;background:#ff9600}input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{background-color:rgb(255,255,255)!important;box-shadow:0 0 0 1000px white inset!important}
...\ No newline at end of file ...\ No newline at end of file
1 +html[data-useragent='ios']
2 +.other-menu{display:none;}
3 +body{
4 + margin:0px;
5 + padding:0px;
6 + font-family: "Microsoft YaHei","微软雅黑";
7 + background-color:white;
8 + text-align: center;
9 + -webkit-box-sizing: border-box;
10 + box-sizing: border-box;
11 + /*overflow: hidden;*/
12 +}
13 +h1,h2,h3,h4{font-weight : normal; margin:5px 0px;}
14 +
15 +p{margin:5px;line-height:28px;}
16 +a, button, input, select{
17 + -webkit-tap-highlight-color:rgba(255,0,0,0);outline:none;
18 +}
19 +a,input,textarea,select {
20 + outline: 0;
21 +}
22 +a:focus {
23 + outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
24 +}
25 +form{
26 + position: relative;
27 +}
28 +input:-moz-placeholder,
29 +textarea:-moz-placeholder {
30 + color: #555;
31 +}
32 +
33 +input:-ms-input-placeholder,
34 +textarea:-ms-input-placeholder {
35 + color: #555;
36 +}
37 +
38 +input::-webkit-input-placeholder,
39 +textarea::-webkit-input-placeholder {
40 + color: #555;
41 +}
42 +
43 +button::-moz-focus-inner,
44 +input::-moz-focus-inner {
45 + padding: 0;
46 + border: none;
47 +}
48 +
49 +html{
50 + FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#f7f7f7,endColorStr=#eee);
51 +background: -moz-linear-gradient(top,#f7f7f7,#eee);
52 +background: -webkit-gradient(linear, 0% 0%, 0% 100%,from(#f7f7f7), to(#eee));
53 +background: -webkit-linear-gradient(top, #f7f7f7, #eee);
54 +background: -o-linear-gradient(top, #f7f7f7, #eee);
55 +position: relative;
56 +height: 100%;
57 +-webkit-tap-highlight-color: rgba(0, 0, 0, 0);/*禁用ios点击元素时的灰色背景*/
58 +}
59 +body{
60 + background: #f6f6f6;
61 + width: 100%;
62 + height: 100%;
63 + background-size: 100%;
64 +}
65 +
66 +select{
67 + width:100%;
68 + font-size:16px;
69 + height:35px; line-height:33px; padding:2px 0;
70 + font-family:"Microsoft YaHei","微软雅黑";
71 + background-color: #fff;
72 + border: 1px solid #CCCCCC;
73 + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
74 + -webkit-appearance: listbox;
75 + box-sizing: border-box;
76 + -moz-box-sizing: border-box;
77 + -webkit-box-sizing: border-box;}
78 +
79 +.fix .ios_scroll{
80 + margin-right: 50px;
81 + width: auto;
82 +}
83 +.nofix .ios_scroll{
84 + overflow: hidden;
85 +}
86 +.ios_scroll{
87 + width: 100%;
88 + height: 100%;
89 + overflow: scroll;
90 + z-index: 1;
91 + -webkit-overflow-scrolling:touch;
92 +}
93 +.ios_scroll iframe{
94 + z-index: 1;
95 +}
96 +.mask{
97 + position: relative;
98 + height: 100%;
99 + /*overflow: hidden;*/
100 + -webkit-box-sizing: border-box;
101 + -moz-box-sizing: border-box;
102 + -o-box-sizing: border-box;
103 + box-sizing: border-box;
104 +}
105 +a.link{
106 +color: #F00;
107 +border-bottom: 1px solid #F00;
108 +font-weight: bold;
109 +}
110 +.hide{ display: none;}
111 +a:link, a:active, a:hover, a:visited,a:focus{
112 + text-decoration:none;
113 +}
114 +
115 +a, button, input, select, li{
116 + -webkit-tap-highlight-color:rgba(255,0,0,0);
117 +}
118 +.disable{
119 + background-color:#DDDDDD;
120 +}
121 + a:disabled, input:disabled{
122 + background-color:#666666;
123 +}
124 +.align-center{
125 + text-align: center;
126 +}
127 +.container img{
128 + max-width: 95%;
129 +}
130 +small, .small{font-size:16px;}
131 +.mar-r-10{
132 + margin-right: 10px;
133 +}
134 +.mar-t-10{
135 + margin-top: 10px;
136 +}
137 +.relative{
138 + position: relative;
139 +}
140 +.w-80{
141 + width: 80%;
142 +}
143 +.w-20{
144 + width: 20%;
145 +}
146 +/* 文字相关 */
147 +p.text-muted{color: #999999; }
148 +.text-warning{color: #DD1144;}
149 +.text-error{color: #DD1144;}
150 +.text-success{color:#0F820C;}
151 +.text-info{color:#1174B7;}
152 +/*对齐方式*/
153 +.text-indent{text-indent: 1em;}
154 +.align-left{text-align: left;}
155 +.pull-right{float:right;}
156 +.pull-left{float:left;}
157 +.inline{display: inline;}
158 +.inline-block{display: inline-block;}
159 +
160 +.badge{
161 + display: inline-block;
162 + min-width: 10px;
163 + padding: 3px 7px;
164 + font-size: 12px;
165 + font-weight: bold;
166 + line-height: 1;
167 + color: #fff;
168 + text-align: center;
169 + white-space: nowrap;
170 + vertical-align: baseline;
171 + background-color: #b94a48;
172 + border-radius: 10px;
173 +}
174 +.relative .badge{
175 + position: absolute;
176 + right: 5px;
177 + top: 13px;
178 +}
179 +.badge.pay{
180 + position: absolute;
181 + right: -8px;
182 + top: -6px;
183 +}
184 +/* 基本样式 END */
185 +.clearfix:before,
186 +.clearfix:after {
187 + display: table;
188 + line-height: 0;
189 + content: "";
190 +}
191 +.clearfix:after {
192 + clear: both;
193 +}
194 +
195 +p.lead{
196 + text-align: left;
197 + font-size: 18px;
198 + min-height: 100px;
199 +}
200 +
201 +.larg{display:block;}
202 +.container .larg{display:block;}
203 +
204 +.header .btn.pull-left{
205 + float: none;
206 + position: absolute;
207 + left: 8px;
208 + margin-top: 8px;
209 +}
210 +.header .btn.pull-right{
211 + float: none;
212 + position: absolute;
213 + right: 8px;
214 + margin-top: 8px;
215 +}
216 +.fix .btn.scroll-btn{
217 + display: inline-block;
218 +}
219 +.btn.scroll-btn{
220 + border-radius:35px;
221 + padding:0px;
222 + display: none;
223 + min-width: 35px;
224 + position: absolute;
225 + z-index: 10000;
226 + right: 0px; height:35px;
227 +}
228 +.btn.scroll-up{
229 + top: 40%;
230 + margin-top: -60px;
231 +}
232 +.btn.scroll-down{
233 + top: 57%;
234 +}
235 +
236 +/* 输入控件 */
237 +input[type="text"], input[type="submit"], input[type="date"], input[type="email"]{
238 + width:100%; display:block;line-height: normal;
239 + margin: 10px 0px 10px 0;
240 +}
241 +
242 +label.enter_game{
243 + margin-top: 8px;
244 + font-size: 20px;
245 + display: inline-block;
246 +}
247 +/*输入控件 END */
248 +
249 +/*字体图标*/
250 +/*字体图标*/
251 +@font-face {font-family: "iconfont";
252 + src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/
253 + src: url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'), /* IE6-IE8 */
254 + url('../font/iconfont.woff?t=1468997064') format('woff'), /* chrome, firefox */
255 + url('../font/iconfont.ttf?t=1468997064') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
256 + url('../font/iconfont.svg?t=1468997064#iconfont') format('svg'); /* iOS 4.1- */
257 +}
258 +
259 +.iconfont {
260 + font-family:"iconfont" !important;
261 + font-size:16px;
262 + font-style:normal;
263 + -webkit-font-smoothing: antialiased;
264 + -webkit-text-stroke-width: 0.2px;
265 + -moz-osx-font-smoothing: grayscale;
266 +}
267 +
268 +.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;}
269 +.icon-qq:before { content: "\e601"; font-size: 1.8em; color: #0f9fcf;}
270 +.icon-iconfontcha:before { content: "\e609"; }
271 +.icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #0f9fcf;}
272 +.icon-weixin1:before { content: "\e603"; }
273 +.icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #0f9fcf;}
274 +.icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 32px;}
275 +.icon-iconfontcolor19:before { content: "\e60b"; }
276 +.icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;}
277 +.icon-triangle-l:before { content: "\e605"; }
278 +.icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;}
279 +.icon-weixin2:before { content: "\e606"; }
280 +.icon-xiangyou:before { content: "\e60e"; }
281 +.icon-fuxuankuangyixuanze:before { content: "\e607"; }
282 +.icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 1.8em;}
283 +.icon-icon3:before { content: "\e608"; }
284 +.icon-fanhui:before { content: "\e610"; color: #949494; font-size: 2em;}
285 +.icon-yonghutouxiang:before { content: "\e611"; color: #c1c1c1; font-size: 84px;}
286 +.icon-triangle-left-copy:before { content: "\e612"; color:#ddd; font-size: 1.8em;}
287 +
288 +/* 消息框 */
289 +#alert {
290 + background:rgba(0, 0, 0, 0.65)!important; filter:Alpha(opacity=65);
291 + position: absolute;
292 + top: 200px;
293 + left: 50%;
294 + margin: auto 0;
295 + width: 80%;
296 + z-index: 1000;
297 + line-height: 38px;
298 + font-size: 30px;
299 + margin-left: -40%;
300 + text-align: center;
301 + color: #c3c3c3;
302 + border-radius: 10px;
303 + padding: 10px 0px;
304 +}
305 +
306 +button.close {
307 + padding: 0;
308 + cursor: pointer;
309 + background: transparent;
310 + border: 0;
311 + -webkit-appearance: none;
312 +}
313 +
314 +.close:hover,
315 +.close:focus {
316 + color: #000000;
317 + text-decoration: none;
318 + cursor: pointer;
319 + opacity: 0.4;
320 +}
321 +
322 +button.close {
323 + padding: 0;
324 + cursor: pointer;
325 + background: transparent;
326 + border: 0;
327 + -webkit-appearance: none;
328 +}
329 +/*.alert {
330 + padding: 8px 35px 8px 14px;
331 + font-size: 16px;
332 + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
333 + background:rgba(250, 250, 250, 0.64);
334 + border: 1px solid #fbeed5;
335 + -webkit-border-radius: 4px;
336 + -moz-border-radius: 4px;
337 + border-radius: 4px;
338 +}*/
339 +.alert,
340 +.alert h4 {
341 + color: #c09853;
342 +}
343 +
344 +.alert h4 {
345 + margin: 0;
346 +}
347 +
348 +.alert .close {
349 + position: absolute;
350 + top: -2px;
351 + right: 8px;
352 + line-height: 20px;
353 + color: #fff;
354 +}
355 +
356 +.alert-success {
357 + color:#009933;
358 + text-shadow:none;
359 +}
360 +
361 +.alert-success h3 {
362 + color: #468847;
363 +}
364 +
365 +.alert-danger,
366 +.alert-error {
367 + color:red;
368 + text-shadow:none;
369 +}
370 +
371 +.alert-danger h3,
372 +.alert-error h3 {
373 + color: #b94a48;
374 +}
375 +
376 +/* 第三方登陆的 */
377 +.other-login {
378 + list-style: none outside none;
379 + margin:0;
380 + padding:0;zoom:0.8;
381 +}
382 +.other-login a { background-image:url(http://cdn.i9133.com/static/sdk/skin/img/share_2.png); background-color:#fff;
383 + background-repeat:no-repeat;
384 + display:inline-block;
385 + margin: 0 12px 0px 0px;
386 + height:69px;
387 + width:70px;
388 + padding:0px;
389 +}
390 +.other-login a.hide{
391 + display: none;
392 +}
393 +.other-login li{
394 + display:inline;
395 + zoom:0.8;
396 +}
397 +.other-login a.sina {
398 + background-position: 0 -211px;
399 +}
400 +.other-login a.douban {
401 + background-position: 0 -96px;
402 +}
403 +.other-login a.renren {
404 + background-position: 0 -70px;
405 +}
406 +.other-login a.taobao {
407 + background-position: 0 0;
408 +}
409 +.other-login a.qq {
410 + background-position: 0 -141px;
411 +}
412 +.other-login a.tqq {
413 + background-position: 0 -281px;
414 +}
415 +.other-login a.wangyi {
416 + background-position: 0 -192px;
417 +}
418 +.other-login a.twitter {
419 + background-position: 0 -225px;
420 +}
421 +.other-login a.baidu {
422 + background-position: 0 -350px;
423 +}
424 +.other-login a.google {background-position: 0 -493px;}
425 +.other-login a.facebook{background-position: 0 -421px;}
426 +/* 第三方登陆 END */
427 +
428 +
429 +/* 角色信息 */
430 +.account-info{
431 + margin:auto;
432 + text-align: left;
433 + height:78px;
434 + position: relative; margin-bottom:20px;
435 +}
436 +.account-info .desc{
437 + margin-left:85px;
438 +}
439 +.account-info .desc p{
440 + font-size: 16px;
441 + line-height: 16px;
442 + margin: 10px 0;
443 + padding: 0;
444 +}
445 +.account-info img{
446 + height: 75px;
447 + position: absolute;
448 + width: 75px;
449 +}
450 +
451 +
452 +/* 角色信息 END */
453 +
454 +
455 +/* 单选框切换内容样式 */
456 +
457 +ul.step-tab{
458 + list-style:none;
459 + padding:0px;
460 + margin:auto;
461 + text-align: left;
462 +}
463 +.step-tab li{
464 + text-align: left;
465 + margin-bottom:10px;
466 +}
467 +.step-tab li label{
468 + display: block;
469 + padding: 10px 0;
470 +}
471 +.step-tab li p, .setup-form li form{
472 + font-size:14px;
473 + margin-left: 20px;
474 +}
475 +/* 单选框切换内容样式 END */
476 +/* 金额列表 样式 */
477 +
478 +.amount_level{ margin-top:20px;}
479 +.amount_level .btn, .amount_level a{
480 + min-width:70px;
481 + margin-left:30px;
482 + margin-bottom:20px;
483 +}
484 +/* 金额列表 样式 */
485 +
486 +
487 +/* 支付类型列表 */
488 +.channel_list{
489 + margin-top:10px;
490 +}
491 +
492 +.channel_list .btn, .channel_list a{
493 + min-width: 120px;
494 + margin-left:20px;
495 + margin-bottom:10px;
496 + text-align: center;
497 +}
498 +/* 支付类型列表 END */
499 +
500 +/* 确认代付 */
501 +.pay-proxy-info{
502 + font-size:14px;
503 + margin:auto;
504 + text-align: left;
505 + height: 100px;
506 +}
507 +.pay-proxy-info .desc{
508 + margin-left:0px;
509 +}
510 +.pay-proxy-info .desc p{
511 + font-size: 14px;
512 + line-height: 16px;
513 + margin: 5px 0;
514 + padding: 0;
515 +}
516 +.pay-proxy-info .btn-group{
517 + margin-left:10px;
518 + float:right;}
519 +/* 确认代付 END */
520 +
521 +ol.list{
522 + list-style-type:none;
523 + padding: 0px;
524 + margin:0;
525 + line-height:25px;
526 + text-align: left;
527 +}
528 +/*邀请列表*/
529 +ol.invite-list li{
530 + margin-bottom: 8px;
531 +}
532 +ol.invite-list li img{
533 + width: 50px;
534 + height: 50px;
535 +}
536 +ol.invite-list li div.item{
537 + display: inline-block;
538 + width: 100%;
539 +}
540 +/*客服中心*/
541 +ol.kefu-list li a.item{
542 + margin: 0;
543 + padding: 7px 0;
544 + cursor: pointer;
545 + width : 100%;
546 + display: inline-block;
547 +}
548 +ol.question-list li p{
549 + margin-bottom: 0px;
550 +}
551 +ol.question-list .content{
552 + padding: 5px 5px 0 5px;
553 +}
554 +ol.question-list .content>p{
555 + margin:0;
556 +}
557 +ol.question-list li{
558 + margin: 0;
559 + padding: 7px 0;
560 + width : 100%;
561 + border-bottom: 1px solid #888;
562 + display: inline-block;
563 +}
564 +ol.question-list li span.btn{
565 + font-size: 14px;
566 + line-height: 30px;
567 + height: 30px;
568 + cursor:default;
569 + width: 80px;
570 + text-align: center;
571 +}
572 +ol.question-list li span.kefu{
573 + font-size: 16px;
574 +}
575 +ol.question-list li p.content{
576 + text-indent: 1em;
577 + font-size: 15px;
578 +}
579 +ol.question-list p > a{
580 + font-size: 14px;
581 + line-height: 30px;
582 + height: 30px;
583 + width: 80px;
584 + text-align: center;
585 + margin-right: 7px;
586 + margin-top: 5px;
587 +}
588 +ol.question-list p> a:last-of-type{
589 + margin-right: 0px;
590 +}
591 +/*end */
592 +.statu{
593 + color: #ffffff;
594 + margin-right: 6px;
595 + padding: 1px 5px;
596 + font-size: 12px;
597 +}
598 +.statu_yes{
599 + background: #A26737
600 +}
601 +.statu_no{
602 + background: #950001
603 +}
604 +.reply{ border:1px solid #CCC; padding:2px 5px; margin-right:10px; }
605 +.list li a.item{
606 + margin: 0;
607 + padding:10px 0;
608 + cursor: pointer;
609 + width : 100%;
610 + display: inline-block; font-size:14px;
611 +}
612 +.list li a.item p{
613 + margin: 0;
614 +}
615 +.item img{ margin-right:10px;}
616 +/*活动与公告*/
617 +#activity_detail .detail img{
618 + max-width: 100%;
619 +}
620 +/*end */
621 +/*奖励列表*/
622 +ol.prize-list li p:first-child{
623 + font-size: 16px;
624 + margin: 5px 0px 0px 0px;
625 +}
626 +ol.prize-list li p.prize_content{
627 + text-indent: 2em;
628 + margin-top: 0px;
629 +}
630 +ol.prize-list li{
631 + border-bottom: 1px solid #f8f8f8
632 +}
633 +hr{ display:none;}
634 +/*end */
635 +/* 支付记录列表 */
636 +
637 +ol.trade-list{
638 + list-style:none;
639 + padding: 0px;
640 + overflow: auto;
641 + text-align: left;
642 +}
643 +ol.trade-list > li, ol.trade-list > li > p{
644 + font-size:16px;
645 + line-height: 20px;
646 +}
647 +ol li.more{
648 + text-align: center;
649 +}
650 +ol.trade-list .detail{
651 + background: none repeat scroll 0 0 #F3F3F3;
652 + font-size: 16px;
653 + line-height:35px;
654 + height:35px;
655 + margin-bottom: 5px;
656 + position: relative;
657 + padding:0px;
658 + padding-left:8px;
659 +}
660 +.btn.btn_pri_block{ height:140px; line-height:140px;}
661 +ol.trade-list .statu{
662 + font-size: 24px;
663 + position: absolute;
664 + right: 5px;
665 +}
666 +ol.trade-list .detail .statu small{
667 + color: red;
668 +}
669 +ol.trade-list .statu .btn{
670 + background-color: #036BB4;
671 + color: white;
672 + height:30px;
673 + line-height:30px;
674 + display: block;
675 + padding:0 30px;
676 +}
677 +/*ol.trade-list > li{border-bottom: 1px solid #dddddd; margin-bottom:10px; padding-bottom:10px;}*/
678 +ol.trade-list > li p{ padding:8px 5px;}
679 +ol.trade-list > li.more{border:0px;}
680 +/* 支付记录列表 END */
681 +
682 +
683 +/*用户可定义样式*/
684 +/*自定义样式*/
685 +.scroll{
686 + height: 100%;
687 + position: relative;
688 +}
689 +.scroll p{
690 + margin-bottom: 0px;
691 +}
692 +.scroll ol{
693 + padding-bottom: 10px;
694 + margin-top: 0;
695 +}
696 +.scroll div div:last-child{
697 + padding-bottom: 10px;
698 +}
699 +.container{
700 + box-sizing: border-box;
701 + /*overflow: hidden;*/
702 + position: absolute;
703 + top:64px;
704 + left: 0px;
705 + right: 0px;
706 + bottom:0px;
707 + /*background:url(http://cdn.i9133.com/static/sdk/skin/img/logo-sy.png) right bottom no-repeat;*/
708 + /* 使之可以滚动 */
709 + overflow-y: scroll;
710 + /* 增加该属性,可以增加弹性,是滑动更加顺畅 */
711 + -webkit-overflow-scrolling: touch;
712 +}
713 +.box_info_center{
714 + height: 100%; margin:0 37px;
715 +
716 +}
717 +.container textarea{
718 + height: 110px;
719 + line-height: normal;
720 +}
721 +section{
722 + position: relative;
723 + top: 0px;
724 + left: 0px;
725 + width: 100%;
726 + height: 100%;
727 +}
728 +.header{
729 + height:64px;
730 + line-height:64px;
731 + text-align:center;
732 + position: absolute;
733 + top: 0;
734 + left:0;
735 + width: 100%;
736 + box-sizing: border-box;
737 + z-index: 100;
738 + FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#0d96ca,endColorStr=#11a9d3);
739 + background:-moz-linear-gradient(top,#0d96ca,#11a9d3);
740 + background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#0d96ca), to(#11a9d3));
741 + background: -webkit-linear-gradient(top, #0d96ca, #11a9d3);
742 + background: -o-linear-gradient(top, #0d96ca, #11a9d3);
743 +}
744 +.header .btn {
745 + background-image: -moz-linear-gradient(top,#036BB4,#036BB4 );
746 + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#036BB4), to(#036BB4));
747 + background-image: -webkit-linear-gradient(top, #036BB4, #036BB4);
748 + background-image: -o-linear-gradient(top, #036BB4, #036BB4);
749 + background-image: linear-gradient(to bottom, #036BB4, #036BB4);
750 + background-color:#036BB4;
751 + border:1px;
752 + border-style:solid;
753 + border-color:#003090;
754 + margin: 5px 3px;
755 + min-width:60px;
756 + height:50px; line-height:50px;
757 + text-align:center;
758 + font-size:20px; text-shadow:-1px 1px 0 #582804;
759 +}
760 +.header .btn-link{
761 + color: #fff;
762 + font-size: 24px;
763 + font-weight: normal;
764 +}
765 +.header .op-primary{
766 + background-image: -moz-linear-gradient(top,#09AEA8,#09AEA8 );
767 + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#09AEA8), to(#09AEA8));
768 + background-image: -webkit-linear-gradient(top, #09AEA8, #09AEA8);
769 + background-image: -o-linear-gradient(top, #09AEA8, #09AEA8);
770 + background-image: linear-gradient(to bottom, #09AEA8, #09AEA8);
771 + background-color:#09AEA8;
772 +}
773 +.header>.title{
774 + font-size:32px;
775 + color:white;
776 +}
777 +textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
778 + background-color: #FFFFFF; padding:0px; color:#555;
779 + border: 1px solid #CCCCCC;
780 + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
781 + /*transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;*/
782 + min-height:44px;
783 + height:44px;
784 + line-height:44px;
785 + font-size:16px;
786 + border-radius: 0;
787 + -webkit-appearance: none;
788 + font-family:"Microsoft YaHei","微软雅黑"; display:block; width:98%; line-height: normal;padding-left:8px; margin-bottom:10px;
789 +}
790 +.ios textarea,.ios input[type="text"],.ios input[type="password"],.ios input[type="datetime"],.ios input[type="datetime-local"],.ios input[type="date"],.ios input[type="month"],.ios input[type="time"],.ios input[type="week"],.ios input[type="number"],.ios input[type="email"],.ios input[type="url"],.ios input[type="search"],.ios input[type="tel"],.ios input[type="color"],.ios .uneditable-input{line-height: normal; width:100%;}
791 +
792 +.btn{
793 + background:#036bb4;
794 + color : #FFFFFF;
795 + display : inline-block;
796 + font-size : 16px;
797 + font-weight : normal;
798 + cursor : pointer;
799 + border :0;
800 + -webkit-appearance: none;
801 + border-radius:6px; height:44px; line-height:44px; padding:0px 10px; overflow: hidden;
802 +}
803 +.btn.larg{ padding:0px;border-radius:6px; height:50px; line-height:50px; font-family: "Microsoft YaHei","微软雅黑"; font-size:18px;}
804 +.btn-small{
805 + line-height: 32px;
806 + height:32px;
807 + font-size: 15px;
808 +}
809 +.btn-big{
810 + height:75px;
811 + line-height: 75px;
812 + text-align: center;
813 + padding:0px;
814 + width:120px;
815 + position: absolute;
816 + right:0px;
817 + top:0px;
818 + font-size:20px; font-weight:bold;
819 +}
820 +.toolbar{
821 + margin: 10px auto;
822 + margin-right: auto;
823 +}
824 +.toolbar .btn{
825 + margin-bottom:32px;
826 + width:46%;
827 + margin:0 0px 15px 0;
828 + float:left;
829 + border-radius:6px;
830 + font-size:16px;
831 + padding:0px;
832 +}
833 +div.input-control{
834 + position:relative;
835 +}
836 +.drop-down{
837 + width:55px;
838 + height:55px;
839 + position: absolute;
840 + left:98%;
841 + top:0px;
842 + margin-left:-46px;
843 + background: url(http://cdn.i9133.com/static/sdk/skin/img/toggle-down.png) center center no-repeat;
844 +}
845 +.ios .drop-down{ top:0px;}
846 +.eg{ vertical-align:middle;}
847 +ul.drop-ul{
848 + width:96%;
849 + border: 1px solid #aaaaaa;
850 + background: #ffffff;
851 + position: absolute;
852 + z-index: 100;
853 + color: #222222;
854 + padding: 0;
855 + margin: 0;
856 + font-size: 1.1em;
857 + top:47px;
858 +}
859 +ul.drop-ul li{
860 + width: 100%;
861 + margin: 0px;
862 + padding: 3px;
863 + list-style: none;
864 +}
865 +ul.drop-ul li a{
866 + text-decoration: none;
867 + display: block;
868 + padding: 2px .4em;
869 + line-height: 1.5;
870 + min-height: 0;
871 + font-weight: normal;
872 +}
873 +
874 +/*论坛模块*/
875 +div.head{
876 + margin-bottom: 5px;
877 + border-bottom: 3px solid #ffe; padding-bottom:10px;
878 +}
879 +div.head span.num{
880 + position: absolute;
881 + left: 0px;
882 +}
883 +/*其他充值方式*/
884 +div.sec{
885 + margin-top: 16px;
886 +}
887 +ol.other-pay{
888 + padding-left: 5px;
889 +}
890 +ol.other-pay li{
891 + display:inline-block;
892 +}
893 +
894 +ol.other-pay li a{
895 + display:inline-block;
896 + text-align: center;
897 + margin:5px 10px 5px 0;
898 + padding: 0 5px;
899 + cursor: pointer;
900 +}
901 +ol.other-pay li a:last-of-type{
902 + margin: 5px 0px 5px 0;
903 +}
904 +ol.other-pay li a img{
905 + width: 70px;
906 + height: 70px;
907 +
908 +}
909 +.verify img{
910 + vertical-align:middle; margin-right:15px;
911 +}
912 +.verify input[type=number]{
913 + display: inline-block;
914 + width: 155px;
915 + min-height: 33px;
916 + font-size: 20px;
917 + height: 33px;
918 + line-height: normal;
919 + margin: 8px 15px 8px 0px;
920 + vertical-align:middle;
921 +}
922 +.error_title{
923 + margin: 20px;
924 +}
925 +/*check box*/
926 +*:after,
927 +*:before {
928 + -webkit-box-sizing: border-box;
929 + -moz-box-sizing: border-box;
930 + box-sizing: border-box;
931 +}
932 +.input-control.checkbox {
933 + display: inline-block;
934 + padding: 10px 0;
935 + cursor: pointer;
936 +}
937 +.amount_level .btn,.channel_list .btn,.toolbar .btn{
938 + margin:0 10px 15px 0;
939 +}
940 +.btn-block{
941 + display: block;
942 +}
943 +/***默认头像***/
944 +.user_face{ background:url(http://cdn.i9133.com/static/sdk/skin/img/user-face.jpg) center center no-repeat; position:absolute; background-size:50px; display:block; width:40px; height:40px; margin-right:10px; margin-top:10px; }
945 +.topic-detail-list li{ margin-bottom:10px; }
946 +.game_face{ background:url(http://cdn.i9133.com/static/sdk/skin/img/game_face_35.png) center center no-repeat; display:block;}
947 +
948 +
949 +.level{ color:#F60; float:right; font-size:14px;}
950 +.gz-zhanghao{ text-align:left; padding:5px; margin-bottom:10px;}
951 +.gz-zhanghao .qq{ padding:5px 0px 5px 35px;background:url(http://cdn.i9133.com/static/sdk/skin/img/qq.png) left bottom no-repeat; }
952 +.gz-zhanghao .weixin{ background:url(http://cdn.i9133.com/static/sdk/skin/img/weixin.png) left bottom no-repeat; padding:5px 0px 5px 35px}
953 +
954 +.fs_box{ text-align:left; font-size:16px; }
955 +
956 +.help-span{ font-size:20px; color:#f5c85d; font-family:Verdana, Geneva, sans-serif; font-weight:normal; padding-left:5px;}
957 +.help-text{ font-size:22px; text-align:left; line-height:28px;}
958 +p.forget{
959 + margin: 8px 0;
960 +}
961 +p.forget *{
962 + padding:8px 0;
963 +}
964 +
965 +.statu { background:none;border:0px;
966 + font-size: 13px;
967 + margin-right: 6px;
968 + padding: 1px 5px;
969 + color:#ff0000;
970 +}
971 +
972 +.muted strong{ color:#F00;}
973 +
974 +.btn.width100{
975 + width: 100%;
976 + padding: 0;
977 + box-sizing: border-box;
978 + margin-top: 5px;
979 +}
980 +.btn-group { text-align:center;}
981 +h1.error_title{
982 + position: relative;
983 + top:42%;
984 + font-size: 28px;
985 +}
986 +input[type=text], input[type=password]{
987 + line-height: normal;
988 +}
989 +/**sec_invtite**/
990 +.sec_invtite p.title-fs{ padding:10px 15px;}
991 +.sec_invtite p.title-fs a{ color:#F00; border-bottom:1px solid #F00; font-weight:bold;}
992 +li.more .btn{ display:block;}
993 +/*loading*/
994 +
995 +/* Second Loadin Circle */
996 +.container_load {
997 + /*background: #161616 url(/static/http://cdn.i9133.com/static/sdk/skin/img/pattern_40.gif) top left repeat;*/
998 + height: 100%;
999 + position: absolute;
1000 + top: 0px;
1001 + left: 0px;
1002 + width: 100%;
1003 + z-index: 1000;
1004 +}
1005 +.container_load.in_frame{
1006 + position: absolute;
1007 + width: 100%;
1008 + left: 0;
1009 + top: 0;
1010 +}
1011 +
1012 +.container_load .content {margin:0 auto;position: relative;
1013 + left:0px;
1014 + top: 35%;}
1015 +.circle {
1016 + background-color: rgba(0,0,0,0);
1017 + border:5px solid rgba(0,183,229,0.9);
1018 + opacity:.9;
1019 + border-right:5px solid rgba(0,0,0,0);
1020 + border-left:5px solid rgba(0,0,0,0);
1021 + border-radius:50px;
1022 + box-shadow: 0 0 35px #2187e7;
1023 + width:50px;
1024 + height:50px;
1025 + margin:0 auto;
1026 + -moz-animation:spinPulse 1s infinite ease-in-out;
1027 + -webkit-animation:spinPulse 1s infinite linear;
1028 + animation:spinPulse 1s infinite linear;
1029 +}
1030 +.circle1 {
1031 + background-color: rgba(0,0,0,0);
1032 + border:5px solid rgba(0,183,229,0.9);
1033 + opacity:.9;
1034 + border-left:5px solid rgba(0,0,0,0);
1035 + border-right:5px solid rgba(0,0,0,0);
1036 + border-radius:50px;
1037 + box-shadow: 0 0 15px #2187e7;
1038 + width:30px;
1039 + height:30px;
1040 + margin:0 auto;
1041 + position:relative;
1042 + top:-50px;
1043 + -moz-animation:spinoffPulse 1s infinite linear;
1044 + -webkit-animation:spinoffPulse 1s infinite linear;
1045 + animation:spinoffPulse 1s infinite linear;
1046 +}
1047 +.tip_text{ margin-bottom:15px; margin-top:15px;}
1048 +/**客服**/
1049 +.question_del{ border-bottom:1px solid #503c2c; line-height:25px;}
1050 +.question_del h2{ font-weight:bold; font-size:16px; margin-bottom:15px; }
1051 +.q_time{ font-size:13px; font-weight:normal; color:#999; }
1052 +.tip{ font-size:13px;}
1053 +
1054 +.padding_box{ padding-top:25px;}
1055 +.padding_box p{ padding-bottom:10px;}
1056 +/**平台消息**/
1057 +.activity-list li,.message-list li{ border-bottom:1px solid #655241;}
1058 +.activity-list li .pull-right,.message-list li .pull-right{ font-size:12px;}
1059 +.activity-list h3,.message-comm h3{ font-size:22px; margin-bottom:10px;}
1060 +.activity-comm .text-info,.message-comm .text-info{ font-size:12px;}
1061 +.activity-comm .bor_b_h3,.message-comm .bor_b_h3{ border-bottom:2px #655241 solid;}
1062 +.activity-comm .activity_text ,.message-comm .message_text{padding-top:15px; text-align:left;font-size:16px;text-indent:20px; line-height:28px; }
1063 +.activity-comm .activity_text p,.message-comm .message_text p{ text-indent:20px; line-height:28px; font-size:16px;}
1064 +.activity-list .act_time{ font-size:12px;}
1065 +/**居中**/
1066 +
1067 +/***登录前***/
1068 +.box_info_center2{ width:600px; margin:0 auto;}
1069 +.box_info_center2 .login_case1{ background-color: #fff;border: 1px solid #036BB4;width:240px; float:left; display:block; margin-top:40px; }
1070 +.box_info_center2 .other-login li a{ width:80px; margin:0px; height:80px; background-image:url(http://cdn.i9133.com/static/sdk/skin/img/sdk_login.png); background-repeat:no-repeat; background-position:0px 0px ; float:left; }
1071 +.box_info_center2 .other-login li a.qq{ background-position:0px 0px ;}
1072 +.box_info_center2 .other-login li a.sina{ background-position:-80px 0px;}
1073 +.box_info_center2 .other-login li a.baidu{ background-position:-160px 0px;}
1074 +.box_info_center2 .login_case2{ margin-left:90px;}
1075 +.box_info_center2 .login_case_c{ padding:15px 10px; text-align:center; min-height:80px;}
1076 +.box_info_center2 .login_case_c p{ margin-bottom:10px;}
1077 +.login_case_c .text-info{ font-size:22px;}
1078 +.login_case_c .text-muted{ font-size:16px;}
1079 +.box_info_center2 .login_case_b{ padding:14px; border-top:1px solid #036BB4; color:#727474;}
1080 +.case_top{ height:80px; background:#036bb4; line-height:80px; font-size:22px; color:#fff;}
1081 +.login_case_c .login_case_btn{ display:block; height:44px; line-height:44px; border:1px solid #036BB4; background-color:#ecf0f1; }
1082 +
1083 +.share_box1{ padding:10px 0px; text-align:left;}
1084 +.share_box1 img{ margin-right:10px; }
1085 +.share_game{ background-color:rgba(245,245,245, 0.5); padding:10px;}
1086 +.share_box2{ border-top:1px solid #f6f6f6; text-align:left; padding:5px 0px;}
1087 +.share_box2 h2{ font-weight:bold;}
1088 +
1089 +@-moz-keyframes spinPulse {
1090 + 0% { -moz-transform:rotate(160deg); opacity:0; box-shadow:0 0 1px #2187e7;}
1091 + 50% { -moz-transform:rotate(145deg); opacity:1; }
1092 + 100% { -moz-transform:rotate(-320deg); opacity:0; }
1093 +}
1094 +@-moz-keyframes spinoffPulse {
1095 + 0% { -moz-transform:rotate(0deg); }
1096 + 100% { -moz-transform:rotate(360deg); }
1097 +}
1098 +@-webkit-keyframes spinPulse {
1099 + 0% { -webkit-transform:rotate(160deg); opacity:0; box-shadow:0 0 1px #2187e7; }
1100 + 50% { -webkit-transform:rotate(145deg); opacity:1;}
1101 + 100% { -webkit-transform:rotate(-320deg); opacity:0; }
1102 +}
1103 +@-webkit-keyframes spinoffPulse {
1104 + 0% { -webkit-transform:rotate(0deg); }
1105 + 100% { -webkit-transform:rotate(360deg); }
1106 +}
1107 +@keyframes spinoffPulse {
1108 + 0% { transform:rotate(0deg); }
1109 + 100% { transform:rotate(360deg); }
1110 +}
1111 +#share{
1112 + text-align: left;
1113 + margin: 20px 0px;
1114 +}
1115 +#share span{
1116 + display: inline-block;
1117 + height: 46px;
1118 + line-height: 46px;
1119 + vertical-align: top;
1120 +}
1121 +#share a {
1122 + width: 46px;
1123 + height: 46px;
1124 + display: inline-block;
1125 + background-image: url(http://cdn.i9133.com/static/sdk/skin/img/share.png);
1126 + background-repeat: no-repeat;
1127 + margin-right: 10px;
1128 + -webkit-transform: scale(1.2);
1129 +}
1130 +#share a.s_qzone{
1131 + background-position: 5px 4px
1132 +}
1133 +#share a.s_tsina{
1134 + background-position: 5px -36px
1135 +}
1136 +#share a.s_tqq{
1137 + background-position: 5px -76px;
1138 +}
1139 +
1140 +.invite_box p{
1141 + margin: 5px 0;
1142 + font-size: 16px;
1143 +}
1144 +.invite_box h3{
1145 + margin-top: 18px;
1146 +}
1147 +
1148 +.share_box1 .s_content{
1149 + width: 70%;
1150 + margin: 0px;
1151 + height: auto;
1152 + min-height: 73px;
1153 +}
1154 +.pay-info-cont{
1155 + padding: 10px 37px;
1156 + position: relative;
1157 +}
1158 +.pay-info-cont .player-info-cont{
1159 + border-right:1px solid black;
1160 +
1161 +}
1162 +.pay-info-cont .player-info-cont .head-ico{
1163 + max-height: 50px;
1164 + max-width: 50px;
1165 +}
1166 +.pay-info-cont .player-info-cont span{
1167 + display: inline-block;
1168 +
1169 +}
1170 +.topic-detail-list li .content{ padding-left:50px;font-size:16px;}
1171 +.time_p{ font-size:12px;}
1172 +
1173 +.toolbar .btn:nth-of-type(even){ float:right; margin-right:0px; padding:0px;}
1174 +
1175 +.qq_login .qq{ background:url(img/icon_qq.png) no-repeat; background-position:0px; display:block; height:80px; width:80px; background-size:auto 100%; border-radius:60px; margin:0 auto; }
1176 +
1177 +/*媒介查询字体定义*/
1178 +@media screen and (max-width: 320px) {
1179 +body {font-size: 14px;}
1180 +h1{font-size: 20px;}
1181 +h2{font-size:18px;}
1182 +h3{font-size:16px;}
1183 +h4{ font-size:15px;}
1184 +p{ font-size: 14px;}
1185 +}
1186 +@media screen and (min-width: 320px) {
1187 +body {font-size: 14px;}
1188 +h1{font-size: 20px;}
1189 +h2{font-size:18px;}
1190 +h3{font-size:16px;}
1191 +h4{ font-size:15px;}
1192 +p{ font-size: 14px;}
1193 +}
1194 +@media screen and (min-width: 480px) {
1195 + body {font-size: 19px;}
1196 +h1{font-size: 21px;}
1197 +h2{font-size:19px;}
1198 +h3{font-size:17px;}
1199 +h4{ font-size:15px;}
1200 +p{ font-size: 16px;}
1201 +}
1202 +@media screen and (min-width: 640px) {
1203 +body {font-size: 24px;}
1204 +h1{font-size: 22px;}
1205 +h2{font-size:20px;}
1206 +h3{font-size:18px;}
1207 +h4{ font-size:16px;}
1208 +p{ font-size: 17px;}
1209 +}
1210 +@media screen and (min-width: 720px) {
1211 +body {font-size: 27px;}
1212 +h1{font-size: 26px;}
1213 +h2{font-size:24px;}
1214 +h3{font-size:20px;}
1215 +h4{ font-size:18px;}
1216 +p{ font-size: 20px;}
1217 +}
1218 +@media screen and (max-width: 600px){
1219 +.box_info_center2{ width:500px; margin:0 auto;}
1220 +.box_info_center2 .login_case2{ margin-left:15px;}
1221 +}
1222 +
1223 +/*充值中心*/
1224 +.header .poslft{ position: absolute; left: 37px;}
1225 +.header .posrgt{ position: absolute; right: 37px;}
1226 +.channel_list .btn{
1227 + background: #fff;
1228 + border: 1px solid #ddd;
1229 + font-family: "Microsoft YaHei","微软雅黑";
1230 + color: #434343;
1231 + text-align: left;
1232 + font-size: 30px;
1233 + padding: 0 15px;
1234 + margin: 0 0 10px 0;
1235 + height: 77px;
1236 + line-height: 77px;
1237 + display: block;
1238 +}
1239 +.channel_list .image{
1240 + width: 77px; height: 67px; position: relative; margin-right: 30px; margin-top: 5px;
1241 +}
1242 +.channel_list .image img{
1243 + max-width:77px; max-height:67px;
1244 +position:absolute; left:0; right:0; top:0; bottom:0; width:auto; height:auto; margin:auto;
1245 +}
1246 +.warm-prompt { margin-top: 15px; background: #dcdddd; padding: 15px; }
1247 +.warm-prompt h2 { color: #ff0000; font-size: 20px; font-weight: normal; font-family: "Microsoft YaHei","微软雅黑"; }
1248 +.warm-prompt p { color: #535353; font-family: "Microsoft YaHei","微软雅黑"; font-size: 16px; margin: 0;}
1249 +.warm-prompt p a { color: #f39700; }
1250 +.pay-info-cont .user-msg { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; margin-left: 15px; width: calc(100% - 100px);}
1251 +.pay-info-cont .user-msg h2 { font-weight: normal; font-size: 24px; margin: 0; color: #949494; }
1252 +.pay-info-cont .user-msg p { font-size: 24px; color: #434343; margin: 0; line-height: normal;}
1253 +.pay-info-cont .user-msg p span { color: #f39700; }
1254 +
1255 +/*充值记录*/
1256 +.integral .box{ border-left:2px solid #089b55; margin-left:100px; height:100%; padding:0 10px 20px;;}
1257 +.integral .box h2{ color:#6d6d6d; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; position:relative; }
1258 +.integral .box .text{ color:#717070; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:16px; padding:10px;background:#fff; border:1px solid #ddd; border-radius:5px; position:relative; margin-left:10px;}
1259 +.integral .box .text .position{ position:absolute; top:13px; left:-18px;}
1260 +.integral .box .text .position img{ width:10px;}
1261 +.integral .box .text h3{ color:#555; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:30px; border-bottom:1px solid #ddd; padding-bottom:10px;}
1262 +.integral .box .text .txt{ color:#9d9d9d; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:14px; padding-top:5px;}
1263 +.integral .box .text .txt h3{ margin-bottom: 0; border: none; color: #000; margin-bottom: 10px;}
1264 +.integral .box .text .txt p{ line-height: normal; padding: 0; margin: 0; font-size: 24px;}
1265 +.integral .box .text .txt strong{ color: #ff0000;}
1266 +.integral .box h2 .icon{ position:absolute; left:-20px; top:12px; width:17px; background:#fff; border-radius:20px;}
1267 +.integral .box h2 .time{ position:absolute; left:-110px; top:12px; width:100px; text-align:center;}
1268 +.integral .box .time h3{ color:#333; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:22px; line-height:22px; margin: 0;}
1269 +#trade_record .user-msg h2{ line-height: 75px;}
1270 +
1271 +.container form p { border: 1px solid #ddd; border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px; margin-bottom: 15px;padding: 0 17px;background: #fff; font-size: 30px; color: #434343; }
1272 +.container form p label,.container form p input,.container form p select{ height: 84px; line-height: 84px;}
1273 +.container form p span { color: #ff9600; }
1274 +.container form p input { border: none; font-size: 24px; height: 84px; line-height: 84px; width: calc(100% - 200px); width: -webkit-calc(100% - 200px); width: -moz-calc(100% - 200px); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; min-height: 30px; box-shadow: none; margin: 0;-webkit-appearance: none;}
1275 +.container form p select{border: none; box-shadow: none; width: calc(100% - 200px); font-size: 24px; padding: 0;}
1276 +.w235{ width: 235px;}
1277 +.container form .btn { height: 84px; line-height: 84px; display: block; color: #fff; font-family: "Microsoft YaHei","微软雅黑"; font-size: 30px; text-align: center; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; }
1278 +.container form .btn-cancel { background: #0f9fcf; }
1279 +.container form .btn-determine { background: #ff9600; }
1280 +.container .warm-prompt { margin: 15px 0; background: #dcdddd; padding: 17px 15px;}
1281 +.container .warm-prompt h2 { color: #ff0000; font-size: 20px; font-weight: normal; font-family: "Microsoft YaHei","微软雅黑"; text-align: left;}
1282 +.container .warm-prompt p { color: #000;font-family: "Microsoft YaHei","微软雅黑";font-size: 20px;padding: 0;margin-top: 5px;text-align: left;border: none; background: none;margin-bottom: 0;}
1283 +.container .warm-prompt p a { color: #ff9600; }
1284 +
1285 +input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
1286 + color: #b5b5b6;
1287 + font-family: "Microsoft YaHei","微软雅黑";
1288 + font-size: 30px;
1289 +}
1290 +input:-moz-placeholder, textarea:-moz-placeholder {
1291 + color: #b5b5b6;
1292 + font-family: "Microsoft YaHei","微软雅黑";
1293 + font-size: 30px;
1294 +}
1295 +input::-moz-placeholder, textarea::-moz-placeholder {
1296 + color: #b5b5b6;
1297 + font-family: "Microsoft YaHei","微软雅黑";
1298 + font-size: 30px;
1299 +}
1300 +input:-ms-input-placeholder, textarea:-ms-input-placeholder {
1301 + color: #b5b5b6;
1302 + font-family: "Microsoft YaHei","微软雅黑";
1303 + font-size: 30px;
1304 +}
1305 +
1306 +.box_info_center .require_input p input{
1307 + float: left;
1308 + /*width: auto;*/
1309 +}
1310 +.box_info_center .require_input select option,.box_info_center .require_input select{
1311 + color: #b5b5b6;
1312 + font-family: "Microsoft YaHei","微软雅黑";
1313 + font-size: 30px;
1314 +}
1315 +.container a.conBtn{
1316 + font-size: 30px;
1317 + width: 235px;
1318 + color: #fff;
1319 + margin: 0 auto;
1320 + height:84px;
1321 + line-height:84px;
1322 + background: #ff9600;
1323 +}
1324 +input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
1325 + background-color: rgb(255, 255, 255) !important;
1326 + box-shadow: 0 0 0px 1000px white inset !important;
1327 +}
...\ No newline at end of file ...\ No newline at end of file
......
1 +#!/bin/sh
2 +#js css压缩,生成更新包打包
3 +
4 +CDN_SERVER='http://cdn.9133.com/static'
5 +
6 +
7 +DIR_PATH="$( cd "$( dirname "$0" )" && pwd )"
8 +echo "$DIR_PATH"
9 +cd $DIR_PATH
10 +VERSION=`cat version.txt`
11 +DIR_NAME=${DIR_PATH##*/}
12 +ZIP_FILE="${DIR_NAME}_${VERSION}.zip"
13 +SAVE_DIR="dst"
14 +MD5=''
15 +echo $DIR_NAME
16 +
17 +
18 +
19 +function make_new_zip_file {
20 + cd $DIR_PATH
21 + mkdir -pv dst
22 + save_zip_file="${SAVE_DIR}/${ZIP_FILE}"
23 + [ -f "$save_zip_file" ] && rm "$save_zip_file" && echo "rm $save_zip_file"
24 + echo "zip $ZIP_FILE"
25 + zip -x 'uglifyjs_sqwish.sh' -x 'v.txt' -x '*.svn/*' -x "${SAVE_DIR}/*" -x "${ZIP_FILE}" -r "${save_zip_file}" ./
26 + MD5=`md5sum dst/${ZIP_FILE} |cut -d ' ' -f1`
27 +
28 +}
29 +function make_version_file {
30 + make_new_zip_file
31 + cd $DIR_PATH
32 + URL="${CDN_SERVER}/${DIR_NAME}/${SAVE_DIR}/${ZIP_FILE}"
33 + echo "${VERSION}|${MD5}|${URL}" > v.txt
34 + cat v.txt
35 +}
36 +function uglifyjs_js_css {
37 + cd $DIR_PATH
38 + cd js/
39 + for f in `ls *.js`;do
40 + uglifyjs $f -m -o $f
41 + done
42 + cd ../skin
43 +
44 + unalias mv
45 +
46 + for f in `ls *.css`;do
47 + if [ -f "$f" ];then
48 +
49 + sqwish $f
50 + new_f=`basename $f css`
51 + new_f="$new_f""min.css"
52 + echo " mv $new_f $f"
53 + [ -f "$new_f" ] && mv $new_f $f
54 + fi
55 + done
56 + cd ..
57 +}
58 +
59 +
60 +uglifyjs_js_css
61 +make_version_file
62 +
63 +
64 +