Showing
35 changed files
with
10847 additions
and
13 deletions
publicAndroidSDK/assets/poolsdk.xml
100755 → 100644
... | @@ -2,22 +2,18 @@ | ... | @@ -2,22 +2,18 @@ |
2 | <config> | 2 | <config> |
3 | 3 | ||
4 | <sdkconfig | 4 | <sdkconfig |
5 | - YA_APPKEY="" | 5 | + YA_APPID="58fd78a9834e7246b8dc0eac" |
6 | - YA_APPID="" | 6 | + YA_APPKEY="b06b86b79c25774ec758657a7203bae6" |
7 | - gamesimplename="" | 7 | + gamesimplename="fytx_test" |
8 | - | 8 | + sdksimplename="youyu" |
9 | + sdkversioncode="V1_0" | ||
9 | channelparameter1="" | 10 | channelparameter1="" |
10 | channelparameter2="" | 11 | channelparameter2="" |
11 | custom="" | 12 | custom="" |
12 | gamechannelid="" | 13 | gamechannelid="" |
13 | - | 14 | + logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" |
14 | - logincheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJckQW+5uHcG5Mxl+gMWO6s8PhqrR0VX7irk=" | 15 | + paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" |
15 | - payorderurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4SO5qrmq1RBsIoFXavzUfg=" | 16 | + payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" |
16 | - paycheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4ChH88g5ubtvsBW3D32B8c=" | 17 | + usertype="gssaXIIEiL0=" /> |
17 | - sdksimplename="vWVsU5Ogkh8=" | ||
18 | - sdkversioncode="BVPAQexcXDk=" | ||
19 | - styleName="4N7gnKed6uk=" | ||
20 | - usertype="gssaXIIEiL0=" | ||
21 | - weixinId="x3d4hSeP9KFDTFusyU+iB/9NgyvRyoop" /> | ||
22 | 18 | ||
23 | </config> | 19 | </config> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
publicAndroidSDK/assets/sdk.zip
0 → 100644
No preview for this file type
publicAndroidSDK/assets/sdk/.DS_Store
0 → 100644
No preview for this file type
publicAndroidSDK/assets/sdk/agreement.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | + | ||
4 | + <head> | ||
5 | + <meta name="viewport" content="width=device-width, user-scalable=no" /> | ||
6 | + <meta name="apple-mobile-web-app-capable" content="yes" /> | ||
7 | + <meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
8 | + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
9 | + <meta name="format-detection" content="telephone=no"> | ||
10 | + <meta name="screen-orientation" content="portrait"> | ||
11 | + <meta name="full-screen" content="yes"> | ||
12 | + <meta http-equiv="x-ua-compatible" content="IE=edge" /> | ||
13 | + <title> | ||
14 | + 手游平台支付 | ||
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> | ||
22 | + </head> | ||
23 | + | ||
24 | + <body> | ||
25 | + <div class="mask"></div> | ||
26 | + <div class="horizontal" style="height: 220px;"> | ||
27 | + <h4>1. 游娱账号服务条款的接受</h4> | ||
28 | + <p>1.1 游娱账号由广州游爱兄弟信息技术有限公司(以下简称“游娱”)及其关联公司所有并合法运营,游娱及其关联公司并在本用户服务协议的条款和要求下提供服务。</p> | ||
29 | + <p>1.2 当用户访问、浏览及使用游娱账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p> | ||
30 | + <p>1.3 本服务协议所称的用户是指完全同意本服务协议所有条款(以下简称“服务条款”)并访问或浏览游娱账号相关页面的服务接受者。</p> | ||
31 | + <h4>2. 服务条款的变更和修改</h4> | ||
32 | + <p>游娱保留依其自主判断在将来的任何时间变更、修改、增加或删除本服务协议条款的权利。所有修改的协议均构成本服务协议的一部分。游娱有权随时对服务条款进行修改,一旦发生服务条款的变动,游娱将公示修改的内容;当用户使用游娱账号的任何服务时,应接受游娱账号随时提供的与该服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的服务;如果用户继续享用服务,则视为用户已经接受服务条款的修改。</p> | ||
33 | + <h4>3. 服务说明</h4> | ||
34 | + <p>3.1 游娱运用自己的操作系统通过国际互联网向用户提供丰富的网上资源,包括网盘、书签、邮箱、皮肤、微博、空间、游戏、论坛、SNS社区和实时定位、好友识别等其它个性化服务(以下简称本服务)。除非另有明确规定,基于增强或强化目前服务目的所新增的任何新功能、服务、新产品,均无条件地适用本服务条款。</p> | ||
35 | + <p>3.2 除非本协议中另有规定,否则游娱对服务不承担任何责任,即用户对服务的使用承担风险。游娱不保证服务一定会满足用户的使用要求,也不保证服务不会中断,对服务的及时性、安全性、准确性也不作担保。</p> | ||
36 | + <p>3.3 为使用本服务,用户必须自行配备接入国际互联网所必需的设备,包括计算机、手机、掌上电脑及其他存取装置或接受服务所需其它设备,并自行支付与此服务有关的费用。 </p> | ||
37 | + <p>3.4 游娱保留在日后对全部或部分服务项目收取费用的权利。</p> | ||
38 | + <p>3.5 用户接受本服务时,须提供完整、真实、准确、最新的个人资料并按其变更情况不断更新账号资料。</p> | ||
39 | + <p>3.6 若用户提供任何错误、不实、过时或不完整的资料,或者游娱有合理理由怀疑前述资料为错误、不实、过时或不完整,游娱有权暂停或终止用户的账号,并拒绝其现在或将来使用本服务的全部或一部分。</p> | ||
40 | + <p>3.7 游娱有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件信息或其他上载内容的时间、限制本服务一个账号可接收信息的数量等措施。如游娱账号未能储存或删除本服务的内容或其他信息,游娱不负担任何责任。对于用户3个月未使用的账号,游娱有权(但无义务)予以删除。</p> | ||
41 | + <p>3.8 由于用户经由本服务张贴、上传或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三方提出权利主张或使游娱遭受任何形式的罚款或处罚,用户同意以适当方式充分消除对游娱的不利影响,赔偿游娱及其分公司、关联公司、代理人或其他合作伙伴及员工的损失,并使其免受损害。</p> | ||
42 | + <h4>4. 用户应遵守以下法律及法规</h4> | ||
43 | + <p>用户同意遵守中华人民共和国相关法律、法规的规定,在使用游娱账号时,不得侵犯任何第三方的合法权益。在任何情况下,如果游娱有合理理由认为用户的行为可能违反上述法律、法规或侵犯第三方的合法权益,游娱可以在任何时候,不经事先通知终止向该用户提供服务。用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p> | ||
44 | + <h4>5. 用户隐私权</h4> | ||
45 | + <p>用户在遵守上述协议要求的前提下,游娱将充分保护用户享有个人隐私。除非因以下原因,未经用户授权,本网站不公开、编辑或透露其个人账号资料:</p> | ||
46 | + <p>根据有关法律法规的要求;</p> | ||
47 | + <p>按照相关政府主管部门的要求;</p> | ||
48 | + <p>维护社会个体和公众的安全;</p> | ||
49 | + <p>为维护社会公共利益的需要;</p> | ||
50 | + <p>维护本网站的合法权益;</p> | ||
51 | + <p>事先获得用户的明确授权;</p> | ||
52 | + <p>符合其他相关的要求。</p> | ||
53 | + <h4>6. 用户账号、密码和安全</h4> | ||
54 | + <p>6.1 用户一旦注册成功,便成为游娱的注册用户,将得到一个密码和账号。用户有义务保证密码和账号的安全。用户对利用该密码和账号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,游娱无法也不会承担任何责任。</p> | ||
55 | + <p>6.2 用户的密码和账号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知游娱。用户在每次连线结束,应结束账号使用,否则用户可能得不到游娱账号的安全保护。</p> | ||
56 | + <p>6.3 游娱禁止用户交易游娱账号,游娱有权收回用户交易的游娱账号。如果因用户交易游娱账号引起的任何纠纷,游娱不承担任何责任。</p> | ||
57 | + <h4>7. 对用户信息的存储和限制</h4> | ||
58 | + <p>游娱不对用户在游娱账号任何服务下发布信息的删除或储存失败负责。游娱有权判断用户的行为是否符合游娱账号服务条款的规定,如果游娱认为用户违反了服务条款的规定,游娱有权删除用户发布或发送的信息,直至中断或终止向其提供服务。</p> | ||
59 | + <h4>8. 禁止用户从事以下行为:</h4> | ||
60 | + <p>8.1 上载、张贴、发送或传送任何非法、淫秽、色情、低俗的,胁迫、骚扰、中伤他人的,诽谤、侵害他人隐私或诋毁他人名誉或商誉的,其他违反国家法律法规、社会主义道德规范及不适当的信息或电子邮件,包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息、视频或其他资料(以下简称内容)。</p> | ||
61 | + <p>8.2 以任何方式危害未成年人。</p> | ||
62 | + <p>8.3 冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为与任何人或任何机构有关。</p> | ||
63 | + <p>8.4 伪造标题或以其他方式操控识别资料,使人误认为该内容为游娱所传送。</p> | ||
64 | + <p>8.5 上载、张贴、发送电子邮件或以其他方式传送无权传送的内容。</p> | ||
65 | + <p>8.6 上载、张贴、发送电子邮件或以其他方式传送侵犯任何人的专利、商标、著作权、商业秘密或其他民事权利之内容。</p> | ||
66 | + <p>8.7 上载、张贴、发送电子邮件或以其他方式传送广告函件、促销资料、垃圾邮件等。</p> | ||
67 | + <p>8.8 干扰或破坏本服务或与本服务相连的服务器和网络,或不遵守本服务协议之规定。</p> | ||
68 | + <p>8.9 违反任何相关的中国法律、法规、规章、条例等其他具有法律约束力的规范。</p> | ||
69 | + <p>8.10 跟踪或以其他方式骚扰他人。</p> | ||
70 | + <p>8.11 窃取他人密码、账号和其它数字化信息或财产。</p> | ||
71 | + <p>8.12 其他被游娱视为不适当的行为。</p> | ||
72 | + <p>8.13 游娱有权对用户载、张贴、发送的内容进行审核,有任何违反法律法规或本协议之有关规定的内容,游娱有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> | ||
73 | + <p>8.14 游娱账号封号规则</p> | ||
74 | + <p>1.无视国家规定,在姓名、游戏角色名等地方中使用违规词语或不文明词语、非法字符</p> | ||
75 | + <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | ||
76 | + <p>2.涉及到侵入、拦截、破坏、复制、修改游戏程序,以及宣扬、叫卖和使用各种辅助性程序或恶性非法程序,即使用外挂程序、或在游戏中宣传外挂程序的行为。</p> | ||
77 | + <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | ||
78 | + <p>3.以任何弄虚作假的形式来蒙蔽或者欺骗其他用户,如发布模仿官方并带有病毒的网站、非官方中奖信息、非法广告、游戏代码、木马、外挂、病毒、色情信息、垃圾广告等信息</p> | ||
79 | + <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | ||
80 | + <p>4.通过游娱账号发布非法网站,宣传或使用私服、游戏代码、木马、外挂、病毒、色情信息、垃圾广告、非法广告等信息</p> | ||
81 | + <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | ||
82 | + <p>5.通过游娱账号发布触犯政府法令的文字如:煽动、反动、猥亵、暴力、种族歧视、宗教歧视等字眼,包含这类相关字的反向书写。</p> | ||
83 | + <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p> | ||
84 | + <p>6.宣传或贩卖BUG、攻击服务器运行、牟取个人利益、影响游戏公平性,以及影响其他玩家正常进行游戏等行为</p> | ||
85 | + <p>处罚规则:查证核实后,将暂停账号,并清除所有非法物品;视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | ||
86 | + <p>7.盗取或参与盗取他人账号,给被盗者造成严重损失的行为</p> | ||
87 | + <p>处罚规则:查证核实后,视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p> | ||
88 | + <p>8.侮辱、毁谤、猥亵、威胁、辱骂其他用户,扭曲事实、恶意散布不实谣言,恶意影响游戏环境等行为</p> | ||
89 | + <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | ||
90 | + <h4>9. 内容及其披露</h4> | ||
91 | + <p>9.1 用户对经由本服务上载、张贴或传送的内容负全部责任;对于经由本服务而传送的内容,游娱不保证前述内容的正确性、完整性或及时性。在任何情况下,游娱均不对任何用户提供的内容负责,包括但不限于任何内容发生任何错误或纰漏以及衍生的任何损失或损害,用户负责处理与其提供的内容相关的任何及全部纠纷。游娱有权(但无义务)拒绝或删除经由本服务提供的任何内容。用户使用上述内容,应自行承担风险。</p> | ||
92 | + <p>9.2 游娱有权利在下述情况下,对内容进行保存或披露:</p> | ||
93 | + <p>法律程序所规定</p> | ||
94 | + <p>本服务条款规定</p> | ||
95 | + <p>被侵害的第三人提出权利主张</p> | ||
96 | + <p>为保护游娱账号、其使用者及社会公众的权利、财产或人身安全</p> | ||
97 | + <p>其他游娱认为有必要的情况。</p> | ||
98 | + <h4>10. 电子公告栏的张贴内容</h4> | ||
99 | + <p>10.1 “电子公告栏”包括空间、论坛、SNS社区和其它一般公众可以使用的区域;</p> | ||
100 | + <p>10.2 用户一旦在本服务电子公告栏上传或张贴内容,即视为用户授予游娱该内容著作权之免费及非独家、永久的许可使用权,游娱有权为展示、传播及推广前述内容之目的,对上述内容进行复制、修改、出版。由此展示、传播及推广行为所产生的损失或利润,均由游娱承担或享受。游娱有权自主决定是否给予此类用户鼓励或奖励。</p> | ||
101 | + <p>10.3 因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户须承担全部责任。</p> | ||
102 | + <p>10.4 非经游娱事先许可,用户不得对他人上传或张贴在电子公告栏或本服务其他内容进行复制、出售或用作其他商业用途。</p> | ||
103 | + <h4>11. 游娱账号服务使用规则</h4> | ||
104 | + <p>11.1 用户必须保证,拥有上传之照片、文字等作品之著作权或已获得合法授权,在本网站之上传行为未侵犯任何第三方之合法权益。否则,将由用户承担由此带来的一切法律责任;用户不得将任何内部资料、机密资料、涉及他人隐私资料或侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、或以其他方式传送。</p> | ||
105 | + <p>11.2 用户不得利用本服务进行故意制作、传播计算机病毒等破坏性程序,不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则,否则游娱将保留追究其法律责任的权利并有权将其提交给相关部门处理。</p> | ||
106 | + <p>11.3 游娱有权对用户上传的图片、添加的文字等内容进行审核,有任何违反法律法规或本协议之有关规定的图片、文字,游娱有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> | ||
107 | + <p>11.4 用户不得将广告函件、促销资料、垃圾邮件等,加以上载、张贴、发送电子邮件或以其他方式传送。</p> | ||
108 | + <p>11.5 游娱郑重提请用户注意,任何经由本服务以上载、张贴、发送的资料、文字、照片、图形、视讯、信息、用户的登记资料或其他资料(以下简称“内容”),无论系公开还是私下传送,均由内容提供者承担责任。游娱无法控制经由本服务传送之内容,也无法对用户的使用行为进行全面控制,因此不保证内容的合法性、正确性、完整性、真实性或品质;用户已预知使用本服务时,可能会接触到令人不快、不适当或令人厌恶之内容,并同意将自行加以判断并承担所有风险,而不依赖于游娱。但在任何情况下,游娱有权依法停止传输任何前述内容并采取相应行动,包括但不限于暂停用户使用本服务的全部或部分,保存有关记录,并向有关机关报告。但游娱有权(但无义务)依其自行之考量,拒绝和删除可经由本服务提供之违反本条款的或其他引起游娱或用户反感的任何内容。</p> | ||
109 | + <p>11.6 用户完全理解并同意,若第三方在用户不知情或未经用户同意的前提下,将其文字、图片作品上传于游娱账号空间及由此所产生的任何可能侵害其权益的行为,游娱均不对任何人承担任何责任。</p> | ||
110 | + <p>11.7 游娱有权根据政府机关或权利人的要求删除用户上载、张贴、发送的内容,无论游娱事先是否通知。</p> | ||
111 | + <p>11.8 游娱有权根据服务的需要,收回用户所用的空间域名或减少用户所用空间的大小,无论游娱事先是否通知。</p> | ||
112 | + <h4>12. 游娱论坛规则</h4> | ||
113 | + <p>12.1 关于用户名和昵称</p> | ||
114 | + <p>不得使用党和国家领导人或其他知名人士的真实姓名、字号、艺名、笔名作为用户名和昵称;</p> | ||
115 | + <p>不得使用国家机构或其他机构的名称作为用户名和昵称;</p> | ||
116 | + <p>不得使用和其他网友之名相近、相仿的用户名和昵称;</p> | ||
117 | + <p>不得使用不文明、不健康,或带攻击性、侮辱性的用户名和昵称;</p> | ||
118 | + <p>请勿使用易产生歧义、引起他人误解的用户名和昵称;</p> | ||
119 | + <p>不得使用各种奇形怪状的符号作为用户名和昵称;</p> | ||
120 | + <p>对于违反规定或产生不良后果的用户名和昵称,本站有权删除而不必事先通知。</p> | ||
121 | + <p>12.2 关于签名</p> | ||
122 | + <p>不得出现宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的信息内容;</p> | ||
123 | + <p>不得出现有侮辱性言语、挑衅、辱骂其他人以及不健康内容;</p> | ||
124 | + <p>不得出现广告性质的内容以及本公司以外其他网站的链接;</p> | ||
125 | + <p>游娱有权在不需要通知和解释的情况下除去违反以上规定的签名内容,并对情节严重者予以封号处理。</p> | ||
126 | + <p>12.3 关于发贴内容</p> | ||
127 | + <p>遵守相关法规,严禁发表违反法律法规及社会主义道德规定的内容;</p> | ||
128 | + <p>使用文明用语,不得张贴对任何人进行人身攻击、谩骂、诋毁的言论;</p> | ||
129 | + <p>不得张贴未经公开报道、未经证实的消息;</p> | ||
130 | + <p>不得张贴与所在论坛主题无关的消息、言论和图片;</p> | ||
131 | + <p>未经游娱同意,不得张贴带有商业性质的内容或任何形式的广告,不得张贴游娱及其关联公司以外其他网站的链接;</p> | ||
132 | + <p>不得恶意灌水,内容相同的帖子不得一文多发;</p> | ||
133 | + <p>不得在帖子中(标题和内容)加入各种奇形怪状的符号;</p> | ||
134 | + <p>转贴文章应注明原始出处和时间;</p> | ||
135 | + <p>对于违反以上规定的内容,在不需要通知和解释的情况下,游娱以及版主有权予以删除,并对情节严重者予以封账号处理。</p> | ||
136 | + <p>12.4 关于贴图</p> | ||
137 | + <p>不得张贴宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的图片;</p> | ||
138 | + <p>不得出现带有侮辱性、挑衅、辱骂其他人以及不健康内容的图片;</p> | ||
139 | + <p>请勿使用易产生歧义、引起他人误解的图片;</p> | ||
140 | + <p>摘录、转贴的图片请注明出处及作者,禁止张贴侵犯他人著作权、版权等知识产权的图片;</p> | ||
141 | + <p>不得张贴与论坛主题无关的图片;</p> | ||
142 | + <p>游娱有权在不需要通知和解释的情况下删除违反以上规定的图片,并对情节严重者予以封账号处理。</p> | ||
143 | + <h4>13. 游娱账号游戏规则</h4> | ||
144 | + <p>13.1 用户应当遵守游戏公约、玩家守则及不时发布的游戏规则、公告等;</p> | ||
145 | + <p>13.2 用户不得通过不正当的手段或其他不公平的手段使用游娱账号的游戏产品和服务或参与游娱账号的游戏活动。用户不得干扰游娱正常地提供产品和服务,包括但不限于:攻击、侵入游娱的网站服务器或使网站服务器过载;制作、发布、传播、使用任何形式的妨碍游戏公平性的辅助工具或程序(外挂);利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);不合理地干扰或阻碍他人使用游娱所提供的产品和服务。</p> | ||
146 | + <p>13.3 为维护游戏的公平性,如果游娱发现用户数据异常,无论用户对该异常数据产生是否负有过错,游娱均有权根据本规则、游戏公约、玩家守则及后期不时发布的游戏公告等,采取相应措施:包括但不限于对该账号的冻结、终止、删除;用户在此承诺游娱有权采取上述行动,并承诺不得就上述行为要求游娱做任何补偿或退费。</p> | ||
147 | + <p>13.4 游娱在此特别提示用户:</p> | ||
148 | + <p>游娱提供的游戏将按照现状提供,用户明确知道游戏中存在已知和未知的漏洞和错误(Bug)。尽管游娱将尽最大努力解决已知的漏洞和错误(Bug),但用户知道或应该知道游戏中仍可能包含未知的漏洞和错误(Bug)等。用户同意不向游娱及其关联公司因任何漏洞和错误(Bug)主张任何赔偿。游娱不提倡虚拟物品之间的交易,并不对该交易中产生的任何问题进行支持和保障。</p> | ||
149 | + <h4>14. 手机特色功能说明</h4> | ||
150 | + <p>14.1 用户明确知道,游娱提供的实时定位服务将向用户及用户的不特定游娱账号好友提供用户的实时空间位置信息。</p> | ||
151 | + <p>14.2 用户可选择向游娱账号导入手机通讯簿上所对应的好友关系链,但游娱确保将不导入好友关系链之外的任何信息(包括好友姓名及其他任何相关信息) </p> | ||
152 | + <p>14.3 游娱将对好友关系链通过不可逆转的方式加密存储,包括游娱账号和您的任何好友都将无法获知您的真实好友关系链和真实手机号码。</p> | ||
153 | + <h4>15. 游娱的知识产权及其他权利</h4> | ||
154 | + <p>15.1 游娱对本服务及本服务所使用的软件和受知识产权相关法律或其他法律保护的资料享有相应的权利。</p> | ||
155 | + <p>15.2 经由本服务传送的内容,受到著作权法、商标法、专利法或其他法律的保护;未经游娱明示授权许可,用户不得进行修改、出租、散布或衍生其他作品,用户本人创作并在公开使用区域张贴的内容除外。</p> | ||
156 | + <p>15.3 用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。</p> | ||
157 | + <p>15.4 游娱账号及其他游娱账号图样、产品及服务名称,均为游娱及其关联公司所享有的商标,未经游娱所事先书面授权,任何人不得使用、 复制或用作其他用途。</p> | ||
158 | + <h4>16. 免责声明</h4> | ||
159 | + <p>16.1 游娱对于本服务包含的或用户经由或从任何与本服务有关的途径所获得的任何内容、信息或广告,不保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,游娱不负保证责任。用户自行承担担使用本服务的风险。</p> | ||
160 | + <p>16.2 游娱有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。</p> | ||
161 | + <p>16.3 游娱不保证以下事项(包括但不限于):</p> | ||
162 | + <p>本服务适合用户的使用要求;</p> | ||
163 | + <p>本服务不受干扰,及时、安全、可靠或不出现错误;</p> | ||
164 | + <p>用户经由本服务取得的任何产品、服务或其他材料符合用户的期望;</p> | ||
165 | + <p>16.4 用户使用经由本服务下载的或取得的任何资料,其风险自行负担;因该使用而导致用户手机或其他设备系统损坏或资料流失,用户应负完全责任;</p> | ||
166 | + <p>16.5 对基于以下原因而造成的利润、商业信誉、资料的损失或其他有形或无形损失,游娱不承担任何直接、间接、附带、衍生或惩罚性的赔偿:</p> | ||
167 | + <p>本服务使用或无法使用;</p> | ||
168 | + <p>经由本服务购买或取得的任何产品、资料或服务;</p> | ||
169 | + <p>用户资料遭到未授权的使用或修改;</p> | ||
170 | + <p>用户资料丢失或被删除;</p> | ||
171 | + <p>其他与本服务相关的事宜。</p> | ||
172 | + <p>16.6 用户在浏览网际网路时自行判断使用游娱账号的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,游娱没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p> | ||
173 | + <h4>17. 服务的修改和终止</h4> | ||
174 | + <p>游娱有权在未事前通知的情况下在任何时候,暂时或永久地修改或终止本服务或其中任何一部分。游娱对本服务的修改或终止对用户和任何第三人不承担任何责任。游娱有权基于任何理由,终止用户的账号、密码或拒绝其使用本服务,或删除、转移用户存储、发布在本服务的内容,游娱采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p> | ||
175 | + <h4>18. 通知</h4> | ||
176 | + <p>游娱向用户发出的通知,可以采用电子邮件、页面公告、常规信件、电话或游娱认为适合的形式。服务条款的修改或其他事项变更时,游娱将会以上述形式进行通知。</p> | ||
177 | + <h4>19. 全部协议</h4> | ||
178 | + <p>本服务协议和游娱的其他服务条款构成完整的协议。</p> | ||
179 | + <h4>20. 法律的适用和管辖</h4> | ||
180 | + <p>本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交广州仲裁委员会裁决。如果本服务协议中某项条款因与中华人民共和国现行法律相抵触而导致无效,将不影响其他部分的效力。</p> | ||
181 | + <h4>21. 生效条件</h4> | ||
182 | + <p>本协议自用户访问、浏览及使用游娱账号之时开始生效。</p> | ||
183 | + </div> | ||
184 | + <!-- end --> | ||
185 | + <script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script> | ||
186 | + <script type="text/javascript" src="js/zepto.min.js?20150923001"></script> | ||
187 | + <script type="text/javascript"> | ||
188 | + | ||
189 | + window.isGetData = 0; | ||
190 | + $(function() { | ||
191 | + FastClick.attach(document.body); | ||
192 | + }); | ||
193 | + </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> | ||
199 | + </body> | ||
200 | + | ||
201 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/center.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | +<meta name="viewport" content="width=device-width, user-scalable=no" /> | ||
5 | +<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
6 | +<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
7 | +<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
8 | +<meta name="format-detection" content="telephone=no"> | ||
9 | +<meta name="screen-orientation" content="portrait"> | ||
10 | +<meta name="full-screen" content="yes"> | ||
11 | +<meta http-equiv="x-ua-compatible" content="IE=edge" /> | ||
12 | + | ||
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" /> | ||
15 | + | ||
16 | + | ||
17 | +<title> | ||
18 | +平台登录 | ||
19 | +</title> | ||
20 | +</head> | ||
21 | +<body> | ||
22 | +<input type="hidden" name="loginUserName" value=""> | ||
23 | +<input type="hidden" name="loginPassword" value=""> | ||
24 | +<div class="mask"> | ||
25 | +<div class="container_load" id="loading"> | ||
26 | + <div class="content"> | ||
27 | + <div class="circle"></div> | ||
28 | + <div class="circle1"></div> | ||
29 | + </div> | ||
30 | +</div> | ||
31 | +<div class="alert alert-success hide" id="alert"> | ||
32 | + <!--<button type="button" class="close" data-dismiss="alert">×</button>--> | ||
33 | + <span></span> | ||
34 | +</div> | ||
35 | +<!-- 登录模块 --> | ||
36 | +<section id="login" class="hide" data-replace="1"> | ||
37 | + <div class="new-sdk-container"> | ||
38 | + <div class="new-container-box"> | ||
39 | + <div class="SDK-titlebox"></div> | ||
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> | ||
42 | + <div class="new-sdk-main"> | ||
43 | + <div class="inputbox clearfix" style="position: relative;"> | ||
44 | + <div class="ileft">账号:</div> | ||
45 | + <div class="iright"> | ||
46 | + | ||
47 | + <input type="text" name="username" placeholder="请输入账号" id="js_login_username"> | ||
48 | + <div class="bottom-icon drop-down"> | ||
49 | + <i class="iconfont icon-xiangxia"></i> | ||
50 | + </div> | ||
51 | + </div> | ||
52 | + <div class="pull-box"> | ||
53 | + <ul class="drop-ul"> | ||
54 | + | ||
55 | + </ul> | ||
56 | + </div> | ||
57 | + </div> | ||
58 | + <div class="inputbox clearfix"> | ||
59 | + <div class="ileft">密码:</div> | ||
60 | + <div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div> | ||
61 | + </div> | ||
62 | + <div class="other-login clearfix"> | ||
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"> | ||
65 | + <i class=" iconfont icon-unie61d"></i> | ||
66 | + </a> | ||
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"> | ||
69 | + </a> | ||
70 | + | ||
71 | + <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide"> | ||
72 | + </a> | ||
73 | + </p>--> | ||
74 | + | ||
75 | + <label><a href="#find_pwd" class="forgetpsw">找回密码</a></label> | ||
76 | + <div class="clear"></div> | ||
77 | + | ||
78 | + <label onclick="" class="input-control pull-left hide" > | ||
79 | + <input type="checkbox" checked="checked" class="eg" ></input> | ||
80 | + 进入帐号管理界面 | ||
81 | + </label> | ||
82 | + </div> | ||
83 | + </div> | ||
84 | + <ul class="inline-btn login-inline-btn"> | ||
85 | + <li> | ||
86 | + <a method="post" class="btn btn_pri_block" href="#register">一键注册</a> | ||
87 | + | ||
88 | + </li> | ||
89 | + <li> | ||
90 | +<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> --> | ||
91 | + | ||
92 | + <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> | ||
93 | + </li> | ||
94 | + </ul> | ||
95 | + </form> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | +</section> | ||
99 | +<!-- end --> | ||
100 | + | ||
101 | +<!-- 登录前模块 --> | ||
102 | +<section id="login_before" class="hide" data-replace="1"> | ||
103 | + | ||
104 | + <div class="new-sdk-container"> | ||
105 | + <div class="new-container-box"> | ||
106 | + <div class="SDK-titlebox"></div> | ||
107 | + <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | ||
108 | + <div class="login-third-list"> | ||
109 | + <div class="title">请选择快速登录</div> | ||
110 | + <div class="third-list"> | ||
111 | + <ul> | ||
112 | + <li class="login_case_qq"><a title="QQ帐号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li> | ||
113 | + <li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li> | ||
114 | + <div class="clear"></div> | ||
115 | + </ul> | ||
116 | + </div> | ||
117 | + <div class="only-btn"><a href="#login">返回</a></div> | ||
118 | + </div> | ||
119 | + </div> | ||
120 | + </div> | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | +</section> | ||
125 | +<!-- end--> | ||
126 | +<!-- 注册模块 --> | ||
127 | +<section id="register" class="hide"> | ||
128 | + | ||
129 | + | ||
130 | + <div class="new-sdk-container"> | ||
131 | + <div class="SDK-titlebox"></div> | ||
132 | + <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | ||
133 | + <form action="/sdk/register" class="ajax clearfix"> | ||
134 | + <div class="new-sdk-main"> | ||
135 | + <div class="inputbox clearfix"> | ||
136 | + <div class="ileft">账号:</div> | ||
137 | + <div class="iright"> | ||
138 | + <input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required> | ||
139 | + <div class="bottom-icon drop-down"> | ||
140 | + <i class="iconfont icon-xiangxia"></i> | ||
141 | + </div> | ||
142 | + </div> | ||
143 | + </div> | ||
144 | + <div class="inputbox clearfix"> | ||
145 | + <div class="ileft">密码:</div> | ||
146 | + <div class="iright"><input name="password" placeholder="密码长度为6-16个字符,不能包含空格" required></div> | ||
147 | + </div> | ||
148 | + <div class="ag-tx clearfix"> | ||
149 | + <span data-action="agreement" > | ||
150 | + <div class="checkbox checkbox-2 l" > | ||
151 | + <i class="iconfont icon-xuanzhong"></i> | ||
152 | + </div> | ||
153 | + <p class="l">接受<a href="agreement.html">网络服务协议</a></p> | ||
154 | + </span> | ||
155 | + | ||
156 | + </div> | ||
157 | + </div> | ||
158 | + <input type="hidden" name="old_usernmae" value="-1"> | ||
159 | + <input type="hidden" name="type" value="-1"> | ||
160 | + <ul class="inline-btn"> | ||
161 | + <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> | ||
162 | + <li><a class="submit btn larg " >确定注册</a></li> | ||
163 | + </ul> | ||
164 | + </form> | ||
165 | + </div> | ||
166 | + | ||
167 | +</section> | ||
168 | +<!-- end --> | ||
169 | + | ||
170 | + | ||
171 | +<!-- 协议模块 --> | ||
172 | +<section id="agreement" class="hide"> | ||
173 | + <div class="new-sdk-container"> | ||
174 | + <div class="SDK-titlebox"></div> | ||
175 | + <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | ||
176 | + <div class="new-sdk-content"> | ||
177 | + <h3>网络服务协议</h3> | ||
178 | + <div class="content-main"> | ||
179 | + <p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> | ||
180 | + <h4>一、账号注册</h4> | ||
181 | + <p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> | ||
182 | + <h4>二、账号注册</h4> | ||
183 | + <p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p> | ||
184 | + </div> | ||
185 | + </div> | ||
186 | + | ||
187 | + <div class="only-btn inline-btn"> | ||
188 | + <a href="#register" class="submit btn-orange">确定</a> | ||
189 | + <div class="agreement l" style="margin-right: 0;"> | ||
190 | + <div class="checkbox checkbox-2 l" > | ||
191 | + <i class="iconfont icon-xuanzhong"></i> | ||
192 | + </div> | ||
193 | + <p class="l">已阅读</p> | ||
194 | + </div> | ||
195 | + </div> | ||
196 | + </div> | ||
197 | + | ||
198 | +</section> | ||
199 | +<!-- end --> | ||
200 | +<!-- 活动公告模块 --> | ||
201 | +<section id="activity" class="hide" data-auth="1"> | ||
202 | + <div class="new-sdk-container"> | ||
203 | + <div class="SDK-titlebox"></div> | ||
204 | + <div class="user-center"> | ||
205 | + <a href="#home" class="lefticon"> | ||
206 | + <i class="iconfont icon-fanhui"></i> | ||
207 | + </a> | ||
208 | + 活动公告 | ||
209 | + <!--<a href="#message" class="btn-link posrgt"> | ||
210 | + 个人消息 | ||
211 | + </a>--> | ||
212 | + </div> | ||
213 | + <div class="container activity"> | ||
214 | + <div class="box_info_center" style="height: 100%;"> | ||
215 | + <div id="activity_wrapper" style="position: relative" class="scroll"> | ||
216 | + <ol class="activity-list list" data-role="ajax-html" | ||
217 | + data-params-url="/sdk/notice/list?page_size=10" | ||
218 | + data-params-template="tpl_activity"> | ||
219 | + </ol> | ||
220 | + </div> | ||
221 | + </div> | ||
222 | + </div> | ||
223 | + </div> | ||
224 | + | ||
225 | +</section> | ||
226 | +<!-- end --> | ||
227 | +<!-- 活动公告详细页面模块 --> | ||
228 | +<section id="activity_detail" class="hide" data-auth="1" data-attr="dot"> | ||
229 | +</section> | ||
230 | +<!-- end --> | ||
231 | +<!-- 消息列表模块 --> | ||
232 | +<section id="message" class="hide" data-auth="1"> | ||
233 | + <div class="new-sdk-container"> | ||
234 | + <div class="SDK-titlebox"></div> | ||
235 | + <div class="user-center"> | ||
236 | + <a href="#activity" class="lefticon op-back"> | ||
237 | + <i class="iconfont icon-fanhui"></i> | ||
238 | + </a> | ||
239 | + 个人消息 | ||
240 | + </div> | ||
241 | + <div class="container activity"> | ||
242 | + <div class="box_info_center"> | ||
243 | + <div id="message_wrapper" style="position: relative" class="scroll"> | ||
244 | + <ol class="message-list list" data-role="ajax-html" | ||
245 | + data-params-url="/message/list?page_size=10" | ||
246 | + data-params-template="tpl_message_list"> | ||
247 | + </ol> | ||
248 | + </div> | ||
249 | + </div> | ||
250 | + </div> | ||
251 | + </div> | ||
252 | + | ||
253 | +</section> | ||
254 | +<!-- end --> | ||
255 | +<section id="message_detail" class="hide" data-attr="dot"> | ||
256 | +</section> | ||
257 | +<!-- 找回密码模块 --> | ||
258 | +<section id="find_pwd" class="hide" data-replace="1"> | ||
259 | + <input type="hidden" name="pwd_code" value=""> | ||
260 | + <div class="new-sdk-container"> | ||
261 | + <div class="SDK-titlebox"></div> | ||
262 | + <div class="user-center" style="border-bottom: none;"> | ||
263 | + <a href="#login" class="lefticon"> | ||
264 | + <i class="iconfont icon-fanhui"></i> | ||
265 | + </a> | ||
266 | + <span>找回密码</span> | ||
267 | + </div> | ||
268 | + <div class="pwd_box"> | ||
269 | + <ul class="step-tab"> | ||
270 | + <li><a href="javascript:;">通过手机找回</a></li> | ||
271 | + <li><a href="javascript:;">通过密保找回</a></li> | ||
272 | + <!--<li><a href="javascript:;">通过邮箱找回</a></li>--> | ||
273 | + <li><a href="javascript:;">联系客服</a></li> | ||
274 | + </ul> | ||
275 | + | ||
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> | ||
297 | + <div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form"> | ||
298 | + <div class="question-input-box clearfix"> | ||
299 | + <div class="pull-left qib-txt"> | ||
300 | + 您的账户: | ||
301 | + </div> | ||
302 | + <div class="pull-left qib-input"> | ||
303 | + <input type="text" name="username" placeholder="输入您的账号" style="text-align: left;" class="function-input username" required/> | ||
304 | + </div> | ||
305 | + </div> | ||
306 | + | ||
307 | + <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a> | ||
308 | + </div> | ||
309 | + <!--<div id="email_get_pwd_form" action="/user/password_by_mail" todo="password_by_mail_callback" class="function-list-content ajax hide form"> | ||
310 | + | ||
311 | + <input type="text" name="email" placeholder="输入您绑定的邮箱地址" class="function-input mail" style="margin: 0 0 30px;"/> | ||
312 | + <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a> | ||
313 | + </div>--> | ||
314 | + <div class="function-list-content hide"> | ||
315 | + <div class="pwd_txt"> | ||
316 | + <div class="default_text" style="display: none;"> | ||
317 | + <p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p> | ||
318 | + <p>客服电话:<a href="tel:"></a></p> | ||
319 | + <p>玩家交流群:<a href="javascript:;" id="js_player"></a></p> | ||
320 | + </div> | ||
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> | ||
344 | + </div> | ||
345 | + </div> | ||
346 | + </div> | ||
347 | + </div> | ||
348 | + | ||
349 | + </div> | ||
350 | +</section> | ||
351 | +<!-- end --> | ||
352 | +<section id="help" class="hide" data-auth="1"> | ||
353 | + <div class="header"> | ||
354 | + <span class="title">手游平台</span> | ||
355 | + <a class="btn pull-left op-back" href="#home">返回</a> | ||
356 | + </div> | ||
357 | + | ||
358 | + <div class="container"> | ||
359 | + <div class="box_info_center"> | ||
360 | + <div class='align-left'> | ||
361 | + | ||
362 | + </div> | ||
363 | + </div> | ||
364 | + </div> | ||
365 | +</section> | ||
366 | +<!-- 首页模块 --> | ||
367 | +<section id="home" class="hide" data-attr="dot" data-auth="1"></section> | ||
368 | +<!-- 重置密码模块 --> | ||
369 | +<section id="reset_pwd" data-attr="dot" class="hide"></section> | ||
370 | +<!-- 修改密码模块 --> | ||
371 | +<section id="modify_pwd" data-attr="dot" class="hide" data-auth="1"></section> | ||
372 | +<!-- 密保模块 --> | ||
373 | +<section id="mibao" data-attr="dot" class="hide" data-auth="1"></section> | ||
374 | +<!-- 回答密保模块 --> | ||
375 | +<section id="answer_question" data-attr="dot" class="hide"></section> | ||
376 | +<!-- 绑定模块 --> | ||
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> | ||
382 | +<!-- 绑定邮箱模块 --> | ||
383 | +<section id="mail" data-attr="dot" class="hide" data-auth="1"></section> | ||
384 | +<!-- doT模板 --> | ||
385 | +<section id="frame" data-attr="dot" class="hide" ></section> | ||
386 | + | ||
387 | + | ||
388 | +<script id="frame_template" type="text/x-jquery-tmpl" > | ||
389 | + | ||
390 | +<div class="new-sdk-container"> | ||
391 | + <div class="SDK-titlebox"></div> | ||
392 | + <div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;"> | ||
393 | + <a href="#"><img src="images/new-sdk-logo.png"></a> | ||
394 | + <a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;"> | ||
395 | + <i class="iconfont icon-fanhui"></i> | ||
396 | + </a> | ||
397 | + </div> | ||
398 | + <div class="container" style=" margin-bottom: 20px;"> | ||
399 | + <div class="ios_scroll"> | ||
400 | + <iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe> | ||
401 | + </div> | ||
402 | + </div> | ||
403 | + | ||
404 | +</div> | ||
405 | +</script> | ||
406 | +<script id="home_template" type="text/x-jquery-tmpl"> | ||
407 | + <input type="hidden" name="initUserName" value="{{=Core.Data.nickname}}" /> | ||
408 | + <div class="new-sdk-container"> | ||
409 | + <div class="new-container-box"> | ||
410 | + <div class="SDK-titlebox"></div> | ||
411 | + <div class="user-center"> | ||
412 | + 用户中心 | ||
413 | + <a href="/sdk/logout" class="op-logout">切换账户</a> | ||
414 | + </div> | ||
415 | + | ||
416 | + {{? Core.Data.is_guest == 1}} | ||
417 | + <div class="user-center-box"> | ||
418 | + <div class="top clearfix"> | ||
419 | + <div class="pull-left txt w_45"> | ||
420 | + <p>欢迎您!</p> | ||
421 | + <p>{{=Core.Data.nickname}}</p> | ||
422 | + </div> | ||
423 | + <div class="inline-btn pull-right w_45"> | ||
424 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
425 | + </div> | ||
426 | + </div> | ||
427 | + <div class="bind-user"> | ||
428 | + <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> | ||
429 | + 您当前还是游客,为保证账号安全,请升级账号! | ||
430 | + </div> | ||
431 | + <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> | ||
432 | + <a class="btn btn-bind" href="#modify_pwd">马上升级</a> | ||
433 | + </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> | ||
447 | + <ul class="list-item clearfix"> | ||
448 | + {{? Core.Data.bind_phone === ""}} | ||
449 | + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | ||
450 | + {{??}} | ||
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> | ||
456 | + </ul> | ||
457 | + </div> | ||
458 | + {{??}} | ||
459 | + <div class="user-center-box"> | ||
460 | + <div class="top clearfix" style="border-bottom: none;"> | ||
461 | + <div class="pull-left txt w_45"> | ||
462 | + <p>欢迎您!</p> | ||
463 | + <p>{{=Core.Data.nickname}}</p> | ||
464 | + </div> | ||
465 | + <div class="inline-btn pull-right w_45"> | ||
466 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
467 | + </div> | ||
468 | + </div> | ||
469 | + <ul class="list-item clearfix"> | ||
470 | + {{? Core.Data.bind_phone === ""}} | ||
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> --> | ||
476 | + <li><a href="#mibao">设置密保</a></li> | ||
477 | + <li><a href="#modify_pwd">修改密码</a></li> | ||
478 | + </ul> | ||
479 | + </div> | ||
480 | + | ||
481 | + {{?}} | ||
482 | + | ||
483 | + </div> | ||
484 | + </div> | ||
485 | +</script> | ||
486 | +<script id="mail_template" type="text/x-jquery-tmpl" > | ||
487 | + | ||
488 | + <div class="new-sdk-container"> | ||
489 | + <div class="SDK-titlebox"></div> | ||
490 | + <div class="user-center"> | ||
491 | + <a href="#home" class="lefticon"> | ||
492 | + <i class="iconfont icon-fanhui"></i> | ||
493 | + </a> | ||
494 | + 绑定邮箱 | ||
495 | + </div> | ||
496 | + | ||
497 | + {{? Core.Data.bind_mail_statu == 0}} | ||
498 | + | ||
499 | + <div class="new-sdk-box"> | ||
500 | + <div class="acount-name"> | ||
501 | + 账号:{{=Core.Data.username}} | ||
502 | + </div> | ||
503 | + <form id="pwd_by_question_form" action="/user/bind_mail" class="ajax" method="post"> | ||
504 | + <div class="input" style="padding: 0;"> | ||
505 | + <input type="text" name="email" required placeholder="请输入你要绑定的邮箱"> | ||
506 | + <input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;"> | ||
507 | + </div> | ||
508 | + </form> | ||
509 | + <p>提示:发送绑定邮件后,请您登录邮箱操作!</p> | ||
510 | + </div> | ||
511 | + <ul class="inline-btn"> | ||
512 | + <li style="margin: 0 auto; padding: 1em 0; float: none;"> | ||
513 | + <a class="submit btn larg btn-orange" href="">发送绑定邮件</a> | ||
514 | + </li> | ||
515 | + </ul> | ||
516 | + | ||
517 | + | ||
518 | + {{?? Core.Data.bind_mail_statu == 1}} | ||
519 | + | ||
520 | + <div class="new-sdk-box"> | ||
521 | + <form id="bind_mail_form" action="/user/bind_mail" class="ajax" todo="bind_mail_callback" style="display:none; "> | ||
522 | + <div class="input"> | ||
523 | + <input type="text" name="email" required placeholder="输入想要绑定的邮箱地址"> | ||
524 | + <input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;"> | ||
525 | + </div> | ||
526 | + </form> | ||
527 | + <p>待绑定邮箱:<span class="text-info">{{=Core.Data.mail}}</span></p> | ||
528 | + </div> | ||
529 | + <ul class="inline-btn"> | ||
530 | + <li style="margin: 0 auto; padding: 1em 0; float: none;" id="change-mail-btn" class=""><a class="btn larg btn-orange" href="#">更换邮箱</a></li> | ||
531 | + <li style="margin: 0 auto; padding: 1em 0; float: none; background: #ff9600;" id="bind-mail-btn" class="hide"><a class="btn larg op-primary btn-orange" href="#home">保存设置</a></li> | ||
532 | + | ||
533 | + </ul> | ||
534 | + | ||
535 | + {{?? Core.Data.bind_mail_statu == 2}} | ||
536 | + | ||
537 | + <div class="new-sdk-box"> | ||
538 | + <div class="input" style="padding: 0;"> | ||
539 | + <input type="text" name="email" required disabled="disabled" value="{{=Core.Data.mail}}"> | ||
540 | + </div> | ||
541 | + <p>可以通过绑定的邮箱找回密码</p> | ||
542 | + </div> | ||
543 | + | ||
544 | + {{?}} | ||
545 | + | ||
546 | + </div> | ||
547 | + | ||
548 | + | ||
549 | +</script> | ||
550 | +<script id="reset_pwd_template" type="text/x-jquery-tmpl" > | ||
551 | + | ||
552 | + <div class="new-sdk-container"> | ||
553 | + <div class="SDK-titlebox"></div> | ||
554 | + | ||
555 | + <div class="new-sdk-box"> | ||
556 | + <div class="question-input mt10"> | ||
557 | + 账号:{{=Core.Data.username}} | ||
558 | + </div> | ||
559 | + <div class="question-input mt10"> | ||
560 | + <p>你的新密码是:{{=Core.Data.new_pwd}}</p> | ||
561 | + <p style="color: #949494;">请妥善保管,切勿外泄</p> | ||
562 | + </div> | ||
563 | + </div> | ||
564 | + <ul class="inline-btn"> | ||
565 | + <li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange" href="#login">我知道了</a></li> | ||
566 | + </ul> | ||
567 | + | ||
568 | + </div> | ||
569 | +</script> | ||
570 | +<script id="modify_pwd_template" type="text/x-jquery-tmpl"> | ||
571 | + | ||
572 | + | ||
573 | + <div class="new-sdk-container"> | ||
574 | + <div class="SDK-titlebox"></div> | ||
575 | + <div class="user-center"> | ||
576 | + <a href="#home" class="lefticon"> | ||
577 | + <i class="iconfont icon-fanhui"></i> | ||
578 | + </a> | ||
579 | + {{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}} | ||
580 | + </div> | ||
581 | + <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > | ||
582 | + <div class="new-sdk-box"> | ||
583 | + <div class="input new-sdk-psw clearfix"> | ||
584 | + <i>{{? Core.Data.is_guest == 1}}正式账号:{{??}}旧密码:{{?}}</i> | ||
585 | + <label> | ||
586 | + | ||
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/> | ||
588 | + </label> | ||
589 | + </div> | ||
590 | + <div class="input new-sdk-psw clearfix"> | ||
591 | + <i>{{? Core.Data.is_guest == 1}}正式密码:{{??}}新密码:{{?}}</i> | ||
592 | + <label> | ||
593 | + | ||
594 | + <input class="" name="newpwd" required type="text" placeholder="{{? Core.Data.is_guest == 1}}请输入6-16位字母或数字{{??}}请输入密码{{?}}" /> | ||
595 | + | ||
596 | + | ||
597 | + </label> | ||
598 | + </div> | ||
599 | + {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} | ||
600 | + | ||
601 | + </div> | ||
602 | + | ||
603 | + <ul class="inline-btn"> | ||
604 | + <li style="margin: 0 auto; padding: 1em 0; float: none;"> | ||
605 | + <a class="submit btn larg btn-orange" autocomplete="off" >保存更改</a> | ||
606 | + </li> | ||
607 | + </ul> | ||
608 | + </form> | ||
609 | + </div> | ||
610 | + | ||
611 | + | ||
612 | +</script> | ||
613 | +<script id="mibao_template" type="text/x-jquery-tmpl" > | ||
614 | +{{? Core.Data.safe_question == "" }} | ||
615 | +<div class="new-sdk-container"> | ||
616 | + <div class="SDK-titlebox"></div> | ||
617 | + <div class="user-center"> | ||
618 | + <a href="#home" class="lefticon"> | ||
619 | + <i class="iconfont icon-fanhui"></i> | ||
620 | + </a> | ||
621 | + 设置密保 | ||
622 | + </div> | ||
623 | + <form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" > | ||
624 | + <div class="new-sdk-box"> | ||
625 | + <div class="input select" style="padding: 25px;"> | ||
626 | + <select name="question" class="" > | ||
627 | + {{~ Core.Data.question_list :item:index }} | ||
628 | + <option value='{{=item}}'>{{=item}}</option> | ||
629 | + {{~}} | ||
630 | + | ||
631 | + </select> | ||
632 | + </div> | ||
633 | + <div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div> | ||
634 | + <p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p> | ||
635 | + </div> | ||
636 | + <ul class="inline-btn"> | ||
637 | + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange ">保存设置</a></li> | ||
638 | + </ul> | ||
639 | + </form> | ||
640 | + </div> | ||
641 | + | ||
642 | +{{??}} | ||
643 | + <div class="new-sdk-container"> | ||
644 | + <div class="SDK-titlebox"></div> | ||
645 | + <div class="user-center"> | ||
646 | + <a href="#home" class="lefticon"> | ||
647 | + <i class="iconfont icon-fanhui"></i> | ||
648 | + </a> | ||
649 | + 设置密保 | ||
650 | + </div> | ||
651 | + <form action=""> | ||
652 | + <div class="new-sdk-box"> | ||
653 | + <p>问题:{{=Core.Data.safe_question}}</p> | ||
654 | + <p>答案:{{=Core.Data.safe_answer}}</p> | ||
655 | + </div> | ||
656 | + </form> | ||
657 | + </div> | ||
658 | +{{?}} | ||
659 | + | ||
660 | + | ||
661 | +</script> | ||
662 | +<script id="answer_question_template" type="text/x-jquery-tmpl" > | ||
663 | + <div class="new-sdk-container"> | ||
664 | + <div class="SDK-titlebox"></div> | ||
665 | + <div class="user-center"> | ||
666 | + <a href="#login" class="lefticon"> | ||
667 | + <i class="iconfont icon-fanhui"></i> | ||
668 | + </a> | ||
669 | + 密保找回密码 | ||
670 | + </div> | ||
671 | + | ||
672 | + <div class="new-sdk-box" style="border-top: 1px solid #c4c3c3;"> | ||
673 | + <div id="pwd_by_question_form" action="/sdk/find/question/" class="ajax " method="post" > | ||
674 | + <input type="hidden" name="username" value="{{=Core.Data.ans_temp.username}}" /> | ||
675 | + <input type="hidden" name="question" value="{{=Core.Data.ans_temp.question}}" /> | ||
676 | + | ||
677 | + <div class="question-input" style="margin-bottom: 20px;"> | ||
678 | + {{=Core.Data.ans_temp.question}} | ||
679 | + <i class="iconfont icon-xiangxia"></i> | ||
680 | + </div> | ||
681 | + | ||
682 | + <div class="input" style="padding: 0;"> | ||
683 | + <input type="text" name="answer" required class="larg " placeholder="请输入答案" required/> | ||
684 | + </div> | ||
685 | + | ||
686 | + </div> | ||
687 | + </div> | ||
688 | + | ||
689 | + <ul class="inline-btn"> | ||
690 | + <li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange submit op-primary" >确定</a></li> | ||
691 | + </ul> | ||
692 | + </div> | ||
693 | + | ||
694 | + | ||
695 | +</script> | ||
696 | +<script id="bind_template" type="text/x-jquery-tmpl" > | ||
697 | + <div class="new-sdk-container"> | ||
698 | + <div class="SDK-titlebox"></div> | ||
699 | + <div class="user-center"> | ||
700 | + <a href="#login" class="lefticon"> | ||
701 | + <i class="iconfont icon-fanhui"></i> | ||
702 | + </a> | ||
703 | + 绑定手机 | ||
704 | + </div> | ||
705 | + | ||
706 | + <div class="new-sdk-box"> | ||
707 | + | ||
708 | + {{? Core.Data.bind_phone == "" && Core.Data.bind_statu == 0 }} | ||
709 | + <div class="acount-name"> | ||
710 | + 账号:{{=Core.Data.username}} | ||
711 | + </div> | ||
712 | + <form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" > | ||
713 | + <div class="input" style="padding: 0;"> | ||
714 | + <input id="js_iphone" type="text" required name="mobile" placeholder="请输入您要绑定的手机号码"> | ||
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> | ||
721 | + </div> | ||
722 | + <ul class="inline-btn"> | ||
723 | + <li><a class="larg btn btn-orange submit" id="js_conform" value="" >确定</a></li> | ||
724 | + <li><a class="btn" href="#home">返回</a></li> | ||
725 | + </ul> | ||
726 | + </form> | ||
727 | + | ||
728 | + {{?? Core.Data.bind_statu == 1}} | ||
729 | + | ||
730 | + | ||
731 | + <form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" > | ||
732 | + <div class="new-sdk-box"> | ||
733 | + <div class="input" style="padding: 0;"><input type="text" required name="mobile" placeholder="{{=Core.Data.bind_phone}}"></div> | ||
734 | + <p>当前号码待绑定,更换手机号码请直接修改</p> | ||
735 | + <p>请用绑定的手机拨打<span>{{=Core.Data.mobile_helper_number}}</span>(电话会自动挂断,此呼叫免费)完成绑定,才可以通过手机修改密码。</p> | ||
736 | + </div> | ||
737 | + <ul class="inline-btn"> | ||
738 | + <li><a class="larg btn btn-orange submit" >保存设置</a></li> | ||
739 | + <li><a class="btn" href="#home">返回</a></li> | ||
740 | + </ul> | ||
741 | + </form> | ||
742 | + | ||
743 | + {{?? Core.Data.bind_statu == 2}} | ||
744 | + | ||
745 | + | ||
746 | + <form action=""> | ||
747 | + <div class="new-sdk-box"> | ||
748 | + <div class="input" style="padding: 0;"><input type="text" value="{{=Core.Data.bind_phone}}"></div> | ||
749 | + <p>解除绑定,请用绑定的手机发送短信内容“<span>qxbd</span>”发送到<span>{{=Core.Data.mobile_helper_number}}</span></p> | ||
750 | + </div> | ||
751 | + <div class="only-btn"><a class="btn" href="#home">返回</a></div> | ||
752 | + </form> | ||
753 | + | ||
754 | + | ||
755 | + {{?}} | ||
756 | + </div> | ||
757 | + </div> | ||
758 | + | ||
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> | ||
820 | +<script id="message_detail_template" type="text/x-jquery-tmpl"> | ||
821 | + <div class="header"> | ||
822 | + <a class="btn pull-left op-back" href="#message">返回</a> | ||
823 | + <span class="title">消息内容</span> | ||
824 | + </div> | ||
825 | + <div class="container"> | ||
826 | + <div class="box_info_center"> | ||
827 | + <div class="message-comm"> | ||
828 | + <div class="align-center bor_b_h3"> | ||
829 | + <h3>{{=Core.Data.message_detail.title}}</h3> | ||
830 | + <p class="text-info"> | ||
831 | + <span class="mar-r-10">{{=Core.Data.message_detail.nickname}}</span> | ||
832 | + <span>[{{=Core.Data.message_detail.create_time}}]</span> | ||
833 | + </p> | ||
834 | + </div> | ||
835 | + <div class="message_text"> | ||
836 | + {{=Core.Data.message_detail.content}} | ||
837 | + </div> | ||
838 | + </div> | ||
839 | + </div> | ||
840 | + </div> | ||
841 | +</script> | ||
842 | +<script id="activity_detail_template" type="text/x-jquery-tmpl"> | ||
843 | + <div class="new-sdk-container" style="background: #fff;"> | ||
844 | + <div class="SDK-titlebox"></div> | ||
845 | + <div class="user-center"> | ||
846 | + <a href="#activity" class="lefticon"> | ||
847 | + <i class="iconfont icon-fanhui"></i> | ||
848 | + </a> | ||
849 | + 活动公告详情 | ||
850 | + </div> | ||
851 | + <div class="container activity"> | ||
852 | + <div class="align-center bor_b_h3 clearfix"> | ||
853 | + <h3 class="pull-left">{{=Core.Data.activity_detail.title}}</h3> | ||
854 | + <p class="text-info pull-right"> | ||
855 | + <span>{{=Core.Data.activity_detail.notice_time}}</span> | ||
856 | + </p> | ||
857 | + </div> | ||
858 | + <div class="box_info_center" style="height: 100%; margin: 0 37px;"> | ||
859 | + <div class="detail_scroller scroll" id="detail_scroller"> | ||
860 | + <div class="activity-comm"> | ||
861 | + <div class="activity_text"> | ||
862 | + {{=Core.Data.activity_detail.content}} | ||
863 | + </div> | ||
864 | + </div> | ||
865 | + </div> | ||
866 | + </div> | ||
867 | + </div> | ||
868 | + </div> | ||
869 | +</script> | ||
870 | + | ||
871 | +<script id='tpl_message_list_template' type='text/x-jquery-tmpl'> | ||
872 | +{{? it.model_list.length == 1 }} | ||
873 | + <p>没有消息.</p> | ||
874 | +{{??}} | ||
875 | + {{~ it.model_list :item:index }} | ||
876 | + {{? item.id}} | ||
877 | + <li > | ||
878 | + <a class="item" data-id="{{=item.id}}"> | ||
879 | + <span class="pull-right">{{=item.nickname}}</span> | ||
880 | + <span class="pull-right text-info mar-r-10">{{=item.create_time}}</span> | ||
881 | + <p> | ||
882 | + <span class="title">{{=item.title}}</span> {{? item.read == 0}}<span class="statu">未读</span>{{?}} | ||
883 | + </p> | ||
884 | + </a> | ||
885 | + </li> | ||
886 | + {{?}} | ||
887 | + {{~ }} | ||
888 | + {{? it.page_num < it.total_page}} | ||
889 | + <li class="more"> | ||
890 | + <a class="btn" href="/message/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_message_list" data-params-append="true" >点击加载更多帖子</a> | ||
891 | + </li> | ||
892 | + {{?}} | ||
893 | +{{?}} | ||
894 | +</script> | ||
895 | +<script id='tpl_activity_template' type='text/x-jquery-tmpl'> | ||
896 | +{{? it.model_list.length == 1 }} | ||
897 | + <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> | ||
898 | +{{??}} | ||
899 | + {{~ it.model_list :item:index }} | ||
900 | + {{? item.id}} | ||
901 | + <li > | ||
902 | + <a class="item" href="#" data-id="{{=item.id}}"> | ||
903 | + <span class="pull-right act_time">{{=item.notice_time}}</span> | ||
904 | + <span class="act_title{{? item.update_time.indexOf('刚刚') > -1}}new{{?}}">{{=item.title}}</span> | ||
905 | + </a> | ||
906 | + </li> | ||
907 | + {{?}} | ||
908 | + {{~ }} | ||
909 | + {{? it.page_num < it.total_page}} | ||
910 | + <li class="more"> | ||
911 | + <a class="btn" href="/sdk/notice/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_activity" data-params-append="true" >点击加载</a> | ||
912 | + </li> | ||
913 | + {{?}} | ||
914 | +{{?}} | ||
915 | +</script> | ||
916 | + | ||
917 | +</div> | ||
918 | + | ||
919 | +<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script> | ||
920 | +<script type="text/javascript" src="js/zepto.min.js?20150923001"></script> | ||
921 | +<script type="text/javascript" src="js/doT.min.js?20150923001" ></script> | ||
922 | +<script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script> | ||
923 | +<script type="text/javascript"> | ||
924 | +window.isGetData = 0; | ||
925 | +$(function() { | ||
926 | +FastClick.attach(document.body); | ||
927 | +}); | ||
928 | +</script> | ||
929 | +<script type="text/javascript" src="js/core.min.js?20150923001" ></script> | ||
930 | +<script type="text/javascript" src="js/login.min.js?2016111" ></script> | ||
931 | +<script type="text/javascript" src="js/loader.min.js?20150923001"></script> | ||
932 | + | ||
933 | +<script type="text/javascript"> | ||
934 | +window.onload = window.onresize = initMatching; | ||
935 | +(function(){ | ||
936 | + getData('/sdk/login/json'); | ||
937 | +})(); | ||
938 | + | ||
939 | +// $(document).ready(function(){ | ||
940 | +// setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000) | ||
941 | +// }) | ||
942 | +</script> | ||
943 | + | ||
944 | +</body> | ||
945 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/config.js
0 → 100644
1 | +//游戏皮肤对应manifest文件的生成配置文件, 包括基本的第三方库、业务逻辑js、样式 | ||
2 | + | ||
3 | +var base_js = [ | ||
4 | + 'js/fastclick.min.1.0.js', | ||
5 | + 'js/zepto.min.js', | ||
6 | + 'js/doT.min.js', | ||
7 | + 'js/iscroll.min.1.0.js' | ||
8 | +] | ||
9 | + | ||
10 | +var concat_with_mtime = [ | ||
11 | + 'skin/new_sdk.min.css', | ||
12 | + 'skin/responsive.min.css', | ||
13 | + 'js/core.min.js', | ||
14 | + 'js/loader.min.js', | ||
15 | + 'js/center.min.js', | ||
16 | + 'js/pay.min.js', | ||
17 | + 'js/login.min.js' | ||
18 | +] | ||
19 | + | ||
20 | +var htmls = [ | ||
21 | + 'login.html', | ||
22 | + 'center.html', | ||
23 | + 'pay.html', | ||
24 | + 'share.html' | ||
25 | +] | ||
26 | + | ||
27 | +var images = 'skin/img'; | ||
28 | + | ||
29 | +var target = [ | ||
30 | + 'bllm', | ||
31 | + 'bwts', | ||
32 | + 'bwzq', | ||
33 | + 'fytx', | ||
34 | + 'hxjh', | ||
35 | + 'rxxt', | ||
36 | + 'sgg', | ||
37 | + 'smlw', | ||
38 | + 'twzw', | ||
39 | + 'whj' | ||
40 | +] | ||
41 | +exports.htmls = htmls; | ||
42 | +exports.target = target; | ||
43 | +exports.concat_with_mtime = concat_with_mtime; | ||
44 | +exports.base_js = base_js; | ||
45 | +exports.images = images; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
No preview for this file type
1 | +<?xml version="1.0" standalone="no"?> | ||
2 | +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | ||
3 | +<svg xmlns="http://www.w3.org/2000/svg"> | ||
4 | +<metadata> | ||
5 | +Created by FontForge 20120731 at Wed Jul 20 14:44:24 2016 | ||
6 | + By admin | ||
7 | +</metadata> | ||
8 | +<defs> | ||
9 | +<font id="iconfont" horiz-adv-x="1024" > | ||
10 | + <font-face | ||
11 | + font-family="iconfont" | ||
12 | + font-weight="500" | ||
13 | + font-stretch="normal" | ||
14 | + units-per-em="1024" | ||
15 | + panose-1="2 0 6 3 0 0 0 0 0 0" | ||
16 | + ascent="896" | ||
17 | + descent="-128" | ||
18 | + x-height="792" | ||
19 | + bbox="0 -212 1024 896" | ||
20 | + underline-thickness="50" | ||
21 | + underline-position="-100" | ||
22 | + unicode-range="U+0078-E612" | ||
23 | + /> | ||
24 | +<missing-glyph horiz-adv-x="374" | ||
25 | +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
26 | + <glyph glyph-name=".notdef" horiz-adv-x="374" | ||
27 | +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
28 | + <glyph glyph-name=".null" horiz-adv-x="0" | ||
29 | + /> | ||
30 | + <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" | ||
31 | + /> | ||
32 | + <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" | ||
33 | +d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 | ||
34 | +t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 | ||
35 | +t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> | ||
36 | + <glyph glyph-name="uniE600" unicode="" | ||
37 | +d="M580 300q-9 0 -16 -7t-7 -17q0 -8 7 -15t16 -7q13 0 21.5 6.5t8.5 15.5q0 10 -8.5 17t-21.5 7zM503 413q14 0 22 8t8 21t-8 21t-22 8t-24 -8t-10 -21t10 -21t24 -8zM512 811q-104 0 -198.5 -40.5t-163 -109t-109 -163t-40.5 -198.5t40.5 -199t109 -163.5t163 -109 | ||
38 | +t198.5 -40.5t199 40.5t163.5 109t109 163.5t40.5 199t-40.5 198.5t-109 163t-163.5 109t-199 40.5zM416 170q-36 0 -83 13l-84 -42l24 72q-94 66 -94 158q0 84 69 142t168 58q87 0 154.5 -46.5t82.5 -118.5q-12 2 -22 2q-85 0 -143 -55t-58 -132q0 -23 6 -50q-6 -1 -20 -1z | ||
39 | +M763 88l17 -60l-63 36q-5 -1 -22 -5t-28 -5.5t-22 -1.5q-84 0 -142 50t-58 121.5t58 121.5t142 50q80 0 140.5 -50.5t60.5 -121.5q0 -74 -83 -135zM338 471q-14 0 -25 -8t-11 -21t11 -21t25 -8q13 0 21.5 8t8.5 21t-8.5 21t-21.5 8zM711 300q-10 0 -17 -7t-7 -17 | ||
40 | +q0 -8 7.5 -15t16.5 -7q12 0 20.5 6.5t8.5 15.5q0 10 -8.5 17t-20.5 7zM711 300z" /> | ||
41 | + <glyph glyph-name="uniE601" unicode="" | ||
42 | +d="M332 306l-1 3l-1 4v2v9v3l1 4l2 4l1 4l3 5l3 4v3v3v4l2 4l1 5l1 2l1 3l2 2l1 2v11l1 5l1 7l2 8l2 8l2 4l1 5l2 5l2 5l3 5l2 5l3 5l4 6l2 3l1 2l4 6l4 5l5 6l5 6l5 6l6 5l6 6l5 4l5 4l5 4l6 3l5 3l6 3l7 3l7 2l6 2l7 2l7 2l8 2l7 1l15 2h8h23l8 -1l8 -1l7 -1l8 -1l8 -2 | ||
43 | +l7 -2l8 -2l7 -3l7 -3l8 -3l7 -3l6 -4l7 -4l5 -4l3 -2l3 -2l5 -4l4 -5l5 -4l4 -5l4 -5l4 -5l3 -5l3 -4l3 -6l2 -5l5 -10l2 -5l2 -5l1 -5l2 -5l1 -4l1 -5l3 -9l1 -7l1 -8l1 -6l1 -9l1 -1l1 -2l3 -5l1 -3l2 -3l2 -4l2 -4l1 -5l2 -4l1 -5v-3v-3v-2v-3v-3l-1 -3l-1 -6l-2 -3 | ||
44 | +l-1 -4v-1l1 -1l1 -2l7 -10l6 -8l2 -5l4 -6l3 -6l3 -6l4 -8l4 -8l2 -5l2 -5l2 -5l1 -5l2 -5l1 -5l2 -9l1 -9l1 -8v-12l-1 -4v-7l-2 -7l-2 -5v-3l-2 -3l-1 -2l-1 -2l-1 -2l-2 -2l-2 -1l-1 -2h-2l-2 -1l-1 -1h-2l-2 1l-2 1l-1 1l-2 1l-1 1l-1 1l-3 3l-2 4l-3 3l-2 3l-2 4l-3 6 | ||
45 | +l-3 6h-1l-1 -1l-1 -1l-1 -2l-2 -7l-4 -8l-4 -11l-3 -5l-4 -6l-4 -6l-4 -6l-2 -3l-3 -3l-6 -6l1 -1l3 -2l13 -6l6 -3l5 -3l5 -4l5 -4l2 -2l2 -2l2 -2l1 -3l1 -2l1 -2v-3l1 -2l-1 -2v-2v-2l-1 -1l-1 -2v-1l-3 -3l-2 -3l-2 -2l-1 -1l-3 -3l-4 -2l-5 -2l-4 -2l-5 -2l-3 -1l-2 -1 | ||
46 | +l-6 -1l-6 -1l-6 -2l-7 -1h-7l-7 -1h-22l-8 1h-7l-8 1l-8 1l-8 1l-8 2l-8 2l-8 2l-7 3l-8 2l-4 2l-4 1l-2 1h-3h-6l-8 1h-3l-5 1l-3 -3l-5 -3l-6 -2l-6 -4l-4 -2l-4 -1l-9 -4l-5 -1l-5 -2l-7 -1h-4l-5 -1h-5l-6 -1h-23l-13 1l-13 1l-6 1l-13 2l-6 1l-6 2l-5 1l-5 2l-5 2l-5 2 | ||
47 | +l-4 2l-3 3l-2 2l-1 1l-2 2l-1 2l-1 1l-1 2l-1 3l-1 2v2v2v2v3l1 2v4v2l1 3l1 2l1 4l2 1l1 1l2 3l2 2l2 1l1 1l3 1l2 1l3 2l3 1h3l3 1l4 1h4h4l1 1h1v1l-1 1l-2 1l-6 5l-4 3l-4 4l-5 4l-4 6l-6 6l-2 3l-2 4l-2 4l-3 4l-2 5l-2 4l-2 5l-2 6l-2 5l-1 6h-1l-1 1l-1 -1h-1v-1v-1 | ||
48 | +l-1 -2l-1 -1l-2 -5l-2 -3l-2 -2l-2 -3l-3 -4l-2 -3l-3 -2l-3 -3l-3 -2l-4 -2l-3 -2l-4 -1h-4h-1h-1l-1 2l-1 1l-1 3l-1 2l-1 3l-1 3l-1 3l-1 7v4v12v10l1 5l1 5l1 5l1 5l2 6l2 6l2 6l2 5l3 6l3 6l3 6l4 6l4 5l4 7l4 4l4 5l5 5l2 2l3 3l4 3l4 4l6 5l5 4zM511 -159 | ||
49 | +q-91 0 -174 35q-80 34 -142 96t-96 142q-35 84 -35 175t35 174q34 80 96 142t142 96q83 35 174 35t175 -35q80 -34 142 -96t96 -142q35 -83 35 -174t-35 -175q-34 -80 -96 -142t-142 -96q-84 -35 -175 -35zM511.5 710q-114.5 0 -211.5 -56.5t-153.5 -153.5t-56.5 -211.5 | ||
50 | +t56.5 -211.5t153.5 -153.5t211.5 -56.5t211.5 56.5t153.5 153.5t56.5 211.5t-56.5 211.5t-153.5 153.5t-211.5 56.5z" /> | ||
51 | + <glyph glyph-name="uniE602" unicode="" | ||
52 | +d="M139 233q-24 -59 -27.5 -108t15.5 -60q13 -7 32.5 7.5t38.5 45.5q16 -66 72 -116q-29 -11 -45.5 -28.5t-16.5 -37.5q0 -34 43.5 -57.5t105.5 -23.5q56 0 97.5 19.5t50.5 48.5h18q8 -29 50 -48.5t98 -19.5q62 0 105.5 23.5t43.5 57.5q0 20 -16.5 37.5t-45.5 28.5 | ||
53 | +q56 50 71 116q20 -31 39 -45.5t32 -7.5q19 11 16 60t-27 108q-19 46 -42 78t-43 40q1 7 1 12q0 35 -17 64v4q0 16 -7 30q-5 125 -77.5 207t-190 82t-189.5 -82t-77 -207q-7 -14 -7 -30v-4q-17 -29 -17 -64q0 -5 1 -12q-20 -8 -43.5 -40t-41.5 -78z" /> | ||
54 | + <glyph glyph-name="uniE603" unicode="" | ||
55 | +d="M671 454q15 0 31 -2q-20 93 -113 154.5t-212 61.5q-87 0 -161 -34.5t-117.5 -95t-43.5 -131.5q0 -122 129 -208l-32 -93l112 54q82 -15 113 -15q14 0 30 1q-10 32 -10 64q0 102 80 173t194 71zM498 538q18 0 29 -11t11 -28t-11 -27.5t-29 -10.5q-19 0 -33.5 10.5 | ||
56 | +t-14.5 27.5t14.5 28t33.5 11zM272 461q-19 0 -33.5 10.5t-14.5 27.5t14.5 28t33.5 11t30 -11t11 -28t-11 -27.5t-30 -10.5zM966 214q0 92 -82.5 158t-191.5 66q-115 0 -194.5 -65.5t-79.5 -158.5t79.5 -158t194.5 -65q32 0 96 15l89 -46l-24 77q113 81 113 177zM603 253 | ||
57 | +q-12 0 -22 9.5t-10 21t10 21t22 9.5q17 0 28.5 -9t11.5 -21.5t-11 -21.5t-29 -9zM780 253q-12 0 -22 9.5t-10 21t10 21t22 9.5q18 0 29.5 -9t11.5 -21.5t-11.5 -21.5t-29.5 -9z" /> | ||
58 | + <glyph glyph-name="uniE604" unicode="" | ||
59 | +d="M512 812q-104 0 -199 -40.5t-163.5 -109t-109 -163.5t-40.5 -199t40.5 -199t109 -163.5t163.5 -109t199 -40.5t199 40.5t163.5 109t109 163.5t40.5 199t-40.5 199t-109 163.5t-163.5 109t-199 40.5zM794 140q-10 -8 -25.5 0.5t-32.5 31.5q-14 -38 -36 -71q51 -18 51 -47 | ||
60 | +q0 -25 -39 -43t-94 -18q-66 0 -106 24q-39 -24 -106 -24q-55 0 -93.5 18t-38.5 43q0 29 50 47q-21 32 -36 71q-16 -23 -31.5 -31.5t-25.5 -0.5q-14 13 -9.5 52.5t24.5 81.5q9 20 20 35q3 124 74.5 211t171.5 87q101 0 172.5 -87t74.5 -211q10 -15 19 -35q20 -42 24.5 -81.5 | ||
61 | +t-8.5 -52.5z" /> | ||
62 | + <glyph glyph-name="uniE605" unicode="" | ||
63 | +d="M696 -95q11 -9 26 -9q17 0 29 12t12 29v704q0 17 -12 29t-29 12q-16 0 -28 -11l-411 -351q-17 -12 -17 -32t16 -32l414 -351v0z" /> | ||
64 | + <glyph glyph-name="uniE606" unicode="" | ||
65 | +d="M308 467zM270 467.5q0 15.5 11.5 26.5t27 11t26.5 -11t11 -26.5t-11 -26.5t-26.5 -11t-27 11t-11.5 26.5zM594 273zM564 272.5q0 12.5 8.5 21t21 8.5t21 -8.5t8.5 -21t-8.5 -21t-21 -8.5t-21 8.5t-8.5 21zM500 467zM463 467.5q0 15.5 11 26.5t26.5 11t26.5 -11t11 -26.5 | ||
66 | +t-11 -26.5t-26.5 -11t-26.5 11t-11 26.5zM814 750h-605q-60 0 -102.5 -42.5t-42.5 -102.5v-604q0 -61 42.5 -103.5t102.5 -42.5h605q60 0 102.5 42.5t42.5 103.5v604q0 60 -42.5 102.5t-102.5 42.5zM400 151q-26 0 -95 13l-95 -47l27 81q-109 76 -109 183q0 97 80 164 | ||
67 | +t192 67q100 0 178 -54t96 -136q-15 1 -26 1q-97 0 -164 -62.5t-67 -151.5q0 -29 8 -57q-14 -1 -25 -1zM800 56l21 -68l-75 41q-54 -14 -81 -14q-97 0 -164 57.5t-67 139t67 139.5t164 58q92 0 161 -58.5t69 -138.5q0 -85 -95 -156zM741 273zM712 272.5q0 12.5 8.5 21t21 8.5 | ||
68 | +t21 -8.5t8.5 -21t-8.5 -21t-21 -8.5t-21 8.5t-8.5 21z" /> | ||
69 | + <glyph glyph-name="uniE607" unicode="" | ||
70 | +d="M896 896h-768q-53 0 -90.5 -37.5t-37.5 -90.5v-768q0 -53 37.5 -90.5t90.5 -37.5h768q53 0 90.5 37.5t37.5 90.5v768q0 53 -37.5 90.5t-90.5 37.5zM973 0q0 -32 -22.5 -54.5t-54.5 -22.5h-768q-32 0 -54.5 22.5t-22.5 54.5v768q0 32 22.5 54.5t54.5 22.5h768 | ||
71 | +q32 0 54.5 -22.5t22.5 -54.5v-768zM429 19q113 212 242 395q45 62 101 128.5t90 101.5l34 34l-26 71q-17 -11 -44.5 -31t-99 -78.5t-124.5 -113.5q-54 -55 -108 -123.5t-80.5 -108t-26.5 -40.5l-184 167l-75 -77z" /> | ||
72 | + <glyph glyph-name="uniE608" unicode="" | ||
73 | +d="M875 -128h-727q-61 0 -104.5 43.5t-43.5 105.5v727q0 61 43.5 104.5t104.5 43.5h727q62 0 105.5 -43.5t43.5 -104.5v-727q0 -62 -43.5 -105.5t-105.5 -43.5zM964 688q0 62 -43.5 105.5t-104.5 43.5h-608q-62 0 -105.5 -43.5t-43.5 -105.5v-608q0 -61 43.5 -104.5 | ||
74 | +t105.5 -43.5h608q61 0 104.5 43.5t43.5 104.5v608z" /> | ||
75 | + <glyph glyph-name="uniE609" unicode="" | ||
76 | +d="M755 599l-243 -242l-243 242q-10 10 -23.5 10t-23.5 -9.5t-10 -23.5t10 -24l243 -243l-243 -243q-10 -9 -10 -23t10 -24t23.5 -10t23.5 10l243 243l243 -243q10 -10 23.5 -10t23.5 10t10 24t-10 23l-243 243l243 243q10 10 10 24t-10 23.5t-23.5 9.5t-23.5 -10z" /> | ||
77 | + <glyph glyph-name="uniE60A" unicode="" | ||
78 | +d="M625 632l-40 40l-365 -366l365 -366l40 40l-326 326z" /> | ||
79 | + <glyph glyph-name="uniE60B" unicode="" | ||
80 | +d="M1024 300q0 139 -68.5 257t-186.5 186.5t-257 68.5t-257 -68.5t-186.5 -186.5t-68.5 -257q0 -110 44 -207.5t121 -169.5q13 -16 38 -31q137 -104 309 -104q181 0 322 114q9 7 17 14q81 72 127 171.5t46 212.5zM48 300q0 192 136 328t328 136t328 -136t136 -328 | ||
81 | +q0 -168 -108 -297q-3 15 -8 26.5t-14.5 20t-16.5 14t-22.5 10t-24 6.5t-29.5 6t-31 6q-6 1 -22.5 4.5t-23 5t-20.5 5t-19.5 6.5t-15 8.5t-13 11t-8.5 14t-5.5 18.5t1 23.5t5.5 28.5q15 12 29.5 34.5t29.5 42.5t35 28q12 18 11.5 40.5t-11.5 35.5q-7 9 -15 10.5t-10 7.5 | ||
82 | +q-1 15 2.5 60.5t-0.5 73t-23 40.5q-9 5 -20 5q-3 0 -11 -0.5t-12 -0.5q-9 0 -15 3q-11 4 -23.5 22t-26.5 19h-21q-20 -14 -64 -21t-48 -8q-4 -2 -5 -2q-29 -9 -43 -36t-14 -88q0 -11 0.5 -33t0.5 -31q-25 -13 -26 -50q-1 -19 5 -34q3 -11 18 -24t20 -18q8 -10 22 -33.5 | ||
83 | +t22 -32.5q10 -9 19 -11v-68q-9 -12 -19 -20q-21 -18 -58.5 -29.5t-70 -17t-64.5 -22t-46 -43.5q-3 -6 -6 -11.5t-3 -6.5q-112 131 -112 302z" /> | ||
84 | + <glyph glyph-name="uniE60C" unicode="" | ||
85 | +d="M115 313h-52v-108h52v108zM115 25h-52q0 -56 39 -95t95 -39v52q-34 0 -58 24t-24 58zM115 169h-52v-107h52v107zM343 627h-108v-53h108v53zM627 582v45h-108v-53h99q5 5 9 8zM486 627h-107v-53h107v53zM197 574v53q-56 0 -95 -39t-39 -95h52q0 34 24 57.5t58 23.5z | ||
86 | +M115 453h-52v-108h52v108zM750 205h52v108h-52v-108zM756 345h46v60q-24 -30 -46 -60zM750 62h52v107h-52v-107zM379 -111h107v53h-107v-53zM235 -111h108v53h-108v-53zM667 -57v-52q55 0 94.5 39t39.5 95h-53q0 -34 -23.5 -58t-57.5 -24zM519 -111h108v53h-108v-53z | ||
87 | +M939 726q-87 -53 -170 -116.5t-147.5 -124t-108.5 -107t-80 -89.5l-197 154l-87 -70l340 -345q50 127 181.5 316.5t288.5 333.5z" /> | ||
88 | + <glyph glyph-name="uniE60D" unicode="" | ||
89 | +d="M511 747q-91 0 -174 -35.5t-143 -95t-95 -142.5t-35 -174t35 -173.5t95 -142.5t143 -95.5t174 -35.5t173.5 35.5t142.5 95.5t95.5 142.5t35.5 173.5t-35.5 174t-95.5 142.5t-142.5 95t-173.5 35.5zM510.5 -51q-95.5 0 -176.5 47t-128 128t-47 176.5t47 176.5t128 128 | ||
90 | +t176.5 47t176.5 -47t128 -128t47 -176.5t-47 -176.5t-128 -128t-176.5 -47zM511 300zM296 300.5q0 88.5 63 151.5t151.5 63t151.5 -63t63 -151.5t-63 -151.5t-151.5 -63t-151.5 63t-63 151.5z" /> | ||
91 | + <glyph glyph-name="uniE60E" unicode="" | ||
92 | +d="M384 570l48 50l338 -335l-338 -335l-48 49l284 286z" /> | ||
93 | + <glyph glyph-name="uniE60F" unicode="" | ||
94 | +d="M777 550l-265 -266l-265 266q-9 10 -22.5 10t-23 -9.5t-9.5 -23t9 -22.5l287 -288q9 -9 24 -9q15 -1 24 9l287 288q9 9 9 22.5t-9.5 23t-23 9.5t-22.5 -10z" /> | ||
95 | + <glyph glyph-name="uniE610" unicode="" | ||
96 | +d="M592 164.5q-14 -13.5 -33 -13.5t-33 13l-181 184h-1l-2 2q-14 13 -13 33q0 20 13 34q1 0 2 0.5t1 1.5l183 184q13 14 32.5 14t33 -13.5t13.5 -33t-13 -33.5l-153 -154l151 -153q14 -13 14 -32.5t-14 -33zM962 141q-3 -14 -14 -24v0q-14 -13 -31 -13q-20 0 -33.5 14 | ||
97 | +t-13.5 33v4q0 17 12 31q50 93 50 199q0 114 -56 210.5t-152.5 152.5t-210.5 56t-211 -56t-153 -152.5t-56 -210.5t56 -211t153 -153t211 -56q136 0 246 81q14 15 34 15t33.5 -13.5t13.5 -33.5l-1 -4q0 -16 -9.5 -28.5t-24.5 -16.5q-133 -93 -293 -93q-139 0 -257 68.5 | ||
98 | +t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257q0 -129 -62 -243z" /> | ||
99 | + <glyph glyph-name="uniE611" unicode="" | ||
100 | +d="M512 896q-139 0 -257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5t257 68.5t186.5 186.5t68.5 257t-68.5 257t-186.5 186.5t-257 68.5zM512 -81q-95 0 -181 36q-62 26 -115 69q24 18 61 34l43 17q32 13 49 21q52 26 66 63v2l1 3q2 20 2 84v12 | ||
101 | +l-10 6h-1l-6 6q-5 8 -12 21q-13 27 -16 54l-2 15l-17 2q-2 0 -5 4q-8 9 -11 33q-2 17 6 22l13 8l-4 14q-30 116 -3 179q31 71 140 73h1q58 0 72 -24l5 -8l9 -1q36 -5 54 -30q16 -23 19 -60q5 -59 -18 -128l-5 -15l13 -8v-1l2 -2q2 -1 2.5 -3.5t1 -6.5t0.5 -9q-3 -23 -11 -33 | ||
102 | +q-3 -4 -5 -4l-17 -2l-2 -15q-2 -26 -16 -54q-6 -13 -12 -21q-2 -2 -5 -6l-11 -6v-12q0 -64 2 -84v-3l1 -2q14 -38 66 -63q16 -8 48.5 -21t43.5 -17q35 -15 60 -33q-52 -43 -115 -70q-86 -36 -181 -36zM842 56q-28 23 -76 43q-4 2 -37 15q-33 14 -52 23q-34 17 -42 35 | ||
103 | +q-2 26 -2 66h1l1 1q3 2 6 6q8 10 16 27q12 25 17 57h2q11 4 15 11q16 20 21 56q3 28 -13 49q22 71 17 132q-4 50 -28 83q-25 35 -74 46q-30 37 -104 37h-1v0q-69 -1 -115 -28q-46 -26 -66 -72q-32 -73 -2 -197q-17 -21 -14 -50q5 -36 21 -56q5 -6 15 -11h2q6 -33 18 -57 | ||
104 | +q8 -16 17 -27q1 -2 6 -6l1 -1q0 -45 -2 -65q-8 -19 -41 -36q-17 -8 -53 -22q-29 -12 -37 -16q-48 -20 -77 -43q-64 64 -99 147q-36 86 -36 181t36 181q35 83 100 148t148 100q86 36 181 36t181 -36q84 -36 148 -100t100 -148q36 -86 36 -181t-36 -181q-35 -83 -99 -147z" /> | ||
105 | + <glyph glyph-name="uniE612" unicode="" | ||
106 | +d="M630 651l-272 -267l272 -266v533z" /> | ||
107 | + </font> | ||
108 | +</defs></svg> |
No preview for this file type
No preview for this file type

7.05 KB

10.4 KB
publicAndroidSDK/assets/sdk/js/center.min.js
0 → 100644
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 | + '您的评价: <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 |
publicAndroidSDK/assets/sdk/js/core.min.js
0 → 100644
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 | + | ||
149 | + Core.server = 'https://sdk.uuufish.com'; | ||
150 | + | ||
151 | + var lastServer = localStorage.getItem('last_server'); | ||
152 | + if(lastServer && lastServer.indexOf('http:')==0){ | ||
153 | + if(Core.isFile){ | ||
154 | + Core.server = lastServer; | ||
155 | + }else if(location.href.indexOf(lastServer)==-1){ | ||
156 | + location.href = location.href.replace(Core.server,lastServer); | ||
157 | + } | ||
158 | + } | ||
159 | + var ary = null; | ||
160 | + if (location.hash.indexOf('app_id') != -1) { | ||
161 | + ary = location.hash.match(/.*%7C(\d+)_(\d+)&/); | ||
162 | + } else { | ||
163 | + ary = location.search.match(/.*%7C(\d+)_(\d+)&/); | ||
164 | + } | ||
165 | + if (ary && ary.length == 3) { | ||
166 | + //成功匹配屏幕大小, 直接计算屏幕高度 | ||
167 | + Core.sdk_w = parseInt(ary[1]); | ||
168 | + Core.sdk_h = parseInt(ary[2]); | ||
169 | + if(Core.isIos && userAgent.indexOf('iPad')!=-1 && Core.sdk_h < 600){ | ||
170 | + Core.sdk_w *= 2; | ||
171 | + Core.sdk_h *= 2; | ||
172 | + } | ||
173 | + } | ||
174 | + if(location.href.indexOf('callBackUrl')!=-1){ | ||
175 | + try{ | ||
176 | + Core.Data.back_url = unescape(location.href.match(/callBackUrl=([^&]+)/)[1]); | ||
177 | + }catch(e){} | ||
178 | + | ||
179 | + } | ||
180 | + | ||
181 | + var _head = $('head'); | ||
182 | + if (Core.isAndroid) { | ||
183 | + $('html').attr('data-useragent', 'android'); | ||
184 | + if (ratio > 1.5) { | ||
185 | + $('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(_head);//340 | ||
186 | + //Core.ratio = 1.5; | ||
187 | + } else if (ratio < 1) { | ||
188 | + $('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(_head);//260 | ||
189 | + //Core.ratio = 1; | ||
190 | + } else if(ratio == 1){ | ||
191 | + $('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(_head);//300 | ||
192 | + //Core.ratio = 1.25; | ||
193 | + }else{ | ||
194 | + $('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(_head);//340 | ||
195 | + } | ||
196 | + } | ||
197 | + var _w = null; | ||
198 | + if (Core.isIos) { | ||
199 | + $('html').attr('data-useragent', 'ios'); | ||
200 | + | ||
201 | + if (!Core.sdk_w) Core.sdk_w = 600; | ||
202 | + _scale = 1; | ||
203 | + if (ratio > 1.5){//6s plus, | ||
204 | + _scale = 2.8 / ratio; | ||
205 | + } else if (ratio < 1) { | ||
206 | + _scale = 1.5 / ratio; | ||
207 | + } else { | ||
208 | + _scale = 1; | ||
209 | + } | ||
210 | + if(userAgent.indexOf('iPad') != -1 && Core.sdk_w > 768){ | ||
211 | + Core.sdk_w = Core.sdk_w / 2; | ||
212 | + Core.sdk_h = Core.sdk_h / 2 / _scale; | ||
213 | + }else{ | ||
214 | + Core.sdk_h = Core.sdk_h * _scale; | ||
215 | + } | ||
216 | + _w = Core.sdk_w * _scale; | ||
217 | + | ||
218 | + Core.ios_w = _w; | ||
219 | + | ||
220 | + $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); | ||
221 | + //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); | ||
222 | + //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); | ||
223 | + $(window.document).on('touchmove', function(e) { | ||
224 | + if (e.target.tagName != "IFRAME") | ||
225 | + e.preventDefault(); | ||
226 | + }); | ||
227 | + $('body').addClass('ios'); | ||
228 | + if($("div")[0].getAttribute("class")!="mask"){ | ||
229 | + $("div")[0].remove(); | ||
230 | + } | ||
231 | + } | ||
232 | +})(); | ||
233 | +(function(window, core) { | ||
234 | + | ||
235 | + var modules = {}, tip_timeOut = null; | ||
236 | + // 数据 | ||
237 | + core.Data = {}; | ||
238 | + core.cur_mod = null; | ||
239 | + core.last_mod = null; | ||
240 | + // 加载Script模板 | ||
241 | + core.getTemplate = function(moduleId) { | ||
242 | + var tpl = $("#" + moduleId + "_template").html(); | ||
243 | + return tpl; | ||
244 | + }; | ||
245 | + core.getMod = function(modId){ | ||
246 | + if (!modId in modules) { | ||
247 | + console.error('没有对应的模块id的section:' + modId); | ||
248 | + return; | ||
249 | + } | ||
250 | + return modules[modId]; | ||
251 | + }; | ||
252 | + // 模块注册 | ||
253 | + core.registerMod = function(modId, modCreator) { | ||
254 | + if ($('#' + modId).length == 0) | ||
255 | + console.error('没有对应的模块id的section:' + modId); | ||
256 | + if (modules[modId]) | ||
257 | + console.error('模块已经存在:' + modId); | ||
258 | + | ||
259 | + modules[modId] = new modCreator(modId); | ||
260 | + modules[modId].init(); | ||
261 | + }; | ||
262 | + //绑定客户端返回按钮 | ||
263 | + core.back = function() { | ||
264 | + if (!core.cur_mod || core.cur_mod == '') core.cur_mod = 'home'; | ||
265 | + var _$ = $('#' + core.cur_mod); | ||
266 | + var _$btn = _$.find('.op-back'); | ||
267 | + if (_$btn.length == 0) { | ||
268 | + location.href = 'sdk://exit?action=login'; | ||
269 | + } else { | ||
270 | + var path = _$btn.attr('href'); | ||
271 | + if (path.indexOf('#') == 0) { | ||
272 | + //模块跳转 | ||
273 | + location.hash = path; | ||
274 | + } else { | ||
275 | + location.href = path; | ||
276 | + } | ||
277 | + } | ||
278 | + }; | ||
279 | + //清除iframe内容 | ||
280 | + core.clearFrame = function() { | ||
281 | + var _$ = $('#frame iframe'); | ||
282 | + _$.remove(); | ||
283 | + //if (_$.length > 0) { | ||
284 | + // setTimeout(function(){ | ||
285 | + // _$.remove(); | ||
286 | + // },3000); | ||
287 | + //} | ||
288 | + } | ||
289 | + core.get_url = function(url){ | ||
290 | + var url = url | ||
291 | + if (core.isFile) { | ||
292 | + url = Core.server + url; | ||
293 | + } | ||
294 | + if (core.Data.open_id && core.Data.login_key){ | ||
295 | + var connect_str = url.indexOf('?') >=0 ? '&' : '?' | ||
296 | + url = url + connect_str + 'open_id=' + core.Data.open_id + '&login_key=' + core.Data.login_key; | ||
297 | + } | ||
298 | + return url | ||
299 | + } | ||
300 | + //格式化输出字符串 | ||
301 | + // core.format = function(str){ | ||
302 | + // var params = Array.prototype.slice.call(arguments, 1); | ||
303 | + // var re = null; | ||
304 | + // for(var i=1, l=params.length; i<=l; i++){ | ||
305 | + // re = new RegExp('\\$' + i, 'g'); | ||
306 | + // if(params[i-1] == undefined) break; | ||
307 | + // str = str.replace(re, params[i-1]); | ||
308 | + // } | ||
309 | + // return str; | ||
310 | + // } | ||
311 | + | ||
312 | + core.updateData = function(data) { | ||
313 | + var appId = Core.Data.app_id; //保留app_id | ||
314 | + if (!data) { | ||
315 | + Core.Data.username = null; | ||
316 | + Core.Data.nickname = null; | ||
317 | + | ||
318 | + return; | ||
319 | + } | ||
320 | + Core.Data = data | ||
321 | + Core.Data.app_id = appId; | ||
322 | + Core.Data.open_id = Core.Data.open_id + ''; | ||
323 | + Core.Data.timestamp = Core.Data.timestamp + ''; | ||
324 | + if(data.face){ | ||
325 | + Core.Data.face = Core.server + data.face; | ||
326 | + } | ||
327 | + | ||
328 | + } | ||
329 | + | ||
330 | + /** | ||
331 | + * 强行更新一个模块,并显示出来 | ||
332 | + */ | ||
333 | + core.updateMod = function(modId) { | ||
334 | + if (!modId in modules) { | ||
335 | + console.error('没有对应的模块id的section:' + modId); | ||
336 | + modId = 'home' | ||
337 | + //return; | ||
338 | + } | ||
339 | + location.hash = "#" + modId + '&force'; | ||
340 | + } | ||
341 | + | ||
342 | + /** | ||
343 | + * 强行重绘所有模块,在用户登出操作后 | ||
344 | + */ | ||
345 | + core.clearMods = function() { | ||
346 | + for(var mod in modules){ | ||
347 | + modules[mod].isValid = false; | ||
348 | + } | ||
349 | + } | ||
350 | + | ||
351 | + /** | ||
352 | + * 显示指定的模块 | ||
353 | + */ | ||
354 | + core.showMod = function(modId) { | ||
355 | + if (!modId in modules) { | ||
356 | + console.error('没有对应的模块id的section:' + modId); | ||
357 | + return; | ||
358 | + } | ||
359 | + //location.replace = "#" + modId; | ||
360 | + location.hash = "#" + modId; | ||
361 | + } | ||
362 | + | ||
363 | + // 显示信息type=1: success, type=0: error, type=2: info, time默认2秒 | ||
364 | + core.showTips = function(msg, type, time) { | ||
365 | + if (typeof msg == 'object') msg = msg.msg; | ||
366 | + if (type == undefined) | ||
367 | + type = 1; | ||
368 | + if (time == undefined) | ||
369 | + time = 4000; | ||
370 | + var $alert = $('#alert'); | ||
371 | + if (type) | ||
372 | + $alert.removeClass('alert-error').addClass('alert-success'); | ||
373 | + else | ||
374 | + $alert.removeClass('alert-success').addClass('alert-error'); | ||
375 | + if (tip_timeOut != null) { | ||
376 | + // 上一个消息没消失,替换内容 | ||
377 | + $('#alert span').html(msg); | ||
378 | + clearTimeout(tip_timeOut); | ||
379 | + tip_timeOut = null; | ||
380 | + tip_timeOut = setTimeout(function() { | ||
381 | + $('#alert').hide(); | ||
382 | + tip_timeOut = null; | ||
383 | + }, time); | ||
384 | + return; | ||
385 | + } | ||
386 | + // 显示信息 | ||
387 | + $('#alert span').html(msg); | ||
388 | + $alert.show(); | ||
389 | + tip_timeOut = setTimeout(function() { | ||
390 | + $('#alert').hide(); | ||
391 | + tip_timeOut = null; | ||
392 | + }, time); | ||
393 | + }; | ||
394 | + | ||
395 | + core.isValid = function($form) { | ||
396 | + var isvalid = true; | ||
397 | + $form.find('input[required]').each(function() { | ||
398 | + if (!isvalid) { | ||
399 | + //已经出错了,直接return; | ||
400 | + return; | ||
401 | + } | ||
402 | + if ($(this).val() == '') { | ||
403 | + $(this).focus(); | ||
404 | + isvalid = false; | ||
405 | + } | ||
406 | + }); | ||
407 | + if (!isvalid) { | ||
408 | + Core.showTips('请先填写相应信息!', false, 2000); | ||
409 | + return false; | ||
410 | + } | ||
411 | + return true; | ||
412 | + } | ||
413 | + | ||
414 | + /** | ||
415 | + * sdk跳转功能,浏览器下打开新页跳转 | ||
416 | + */ | ||
417 | + core.goTo = function(url){ | ||
418 | + if(!core.Data.game_url){ | ||
419 | + url = 'sdk://open?url=' + encodeURIComponent(url); | ||
420 | + } | ||
421 | + location.href = url; | ||
422 | + } | ||
423 | + | ||
424 | + core.getCookie = function(name) { | ||
425 | + var r = document.cookie.match("\\b" + name + "=([^;]*)\\b"); | ||
426 | + return r ? r[1] : undefined; | ||
427 | + } | ||
428 | + | ||
429 | + core.GetParameter = function(the_form) { | ||
430 | + var result = ""; | ||
431 | + $(the_form).find("input,textarea,select").each( | ||
432 | + function() { | ||
433 | + if ($(this).attr('name') == undefined || $(this).attr('name') == '') { | ||
434 | + return; | ||
435 | + } | ||
436 | + // 过滤不需要的input | ||
437 | + var type = $(this).attr('type'); | ||
438 | + if (type == "button" || type == "submit") | ||
439 | + return; | ||
440 | + | ||
441 | + var chk_box = false; | ||
442 | + if (type == "checkbox" || type == "radio") | ||
443 | + chk_box = true; | ||
444 | + | ||
445 | + var chk = false; | ||
446 | + | ||
447 | + if (chk_box) { | ||
448 | + if (!$(this)[0].checked) | ||
449 | + return; | ||
450 | + // 等于 each中的continue; | ||
451 | + } | ||
452 | + | ||
453 | + result += $(this).attr('name') + "=" + encodeURIComponent($(this).val().trim()) + "&"; | ||
454 | + | ||
455 | + }); | ||
456 | + result += 'app_id=' + encodeURIComponent(core.Data.app_id ? core.Data.app_id : core.Data.game_id); | ||
457 | + if (result.indexOf('_xsrf') == -1) { | ||
458 | + result += "&_xsrf=" + core.getCookie("_xsrf"); | ||
459 | + } | ||
460 | + return result; | ||
461 | + } | ||
462 | + core.ajax = function(settings){ | ||
463 | + //跨域修复https://github.com/imweb/mobile/issues/6 | ||
464 | + settings.url = Core.get_url(settings.url) | ||
465 | + settings.beforeSend = function(xhr) { | ||
466 | + try { | ||
467 | + xhr.withCredentials = true; | ||
468 | + } catch (e) { | ||
469 | + var nativeOpen = xhr.open; | ||
470 | + xhr.open = function() { | ||
471 | + var result = nativeOpen.apply(xhr, arguments); | ||
472 | + xhr.withCredentials = true; | ||
473 | + return result; | ||
474 | + }; | ||
475 | + } | ||
476 | + } | ||
477 | + | ||
478 | + return $.ajax(settings); | ||
479 | + }, | ||
480 | + core.ajax_do = function($obj, func, context) { | ||
481 | + var param = ''; | ||
482 | + var action_methon = null; | ||
483 | + var post_url = ''; | ||
484 | + var $sub_btn = $obj.find('[type=submit]'); | ||
485 | + var temp = $sub_btn.is('button') ? $sub_btn.html() : $sub_btn | ||
486 | + .attr('value'); | ||
487 | + | ||
488 | + if ($obj[0].tagName == "FORM" || $obj[0].getAttribute('action')) { | ||
489 | + if ($obj[0].disabled) { | ||
490 | + Core.showTips('请求已提交,请稍候!'); | ||
491 | + return; | ||
492 | + } | ||
493 | + if (!core.isValid($obj)) | ||
494 | + return; | ||
495 | + param = core.GetParameter($obj); | ||
496 | + post_url = $obj.attr('action'); | ||
497 | + action_method = "post"; | ||
498 | + } else { | ||
499 | + if ($obj[0].disabled) { | ||
500 | + //点击重入 | ||
501 | + Core.showTips('请求已提交,请稍候!'); | ||
502 | + return; | ||
503 | + } | ||
504 | + post_url = $obj.attr('href'); | ||
505 | + param = $obj.attr('params'); | ||
506 | + var action_method = $obj.attr('method'); | ||
507 | + if (!action_method) { | ||
508 | + action_method = "get"; | ||
509 | + } | ||
510 | + } | ||
511 | + if (post_url.indexOf('?') != -1) { | ||
512 | + post_url += '&format=json'; | ||
513 | + } else { | ||
514 | + post_url += '?format=json'; | ||
515 | + } | ||
516 | + | ||
517 | + | ||
518 | + var options = { | ||
519 | + type: action_method, | ||
520 | + url: post_url, | ||
521 | + dataType: 'json', | ||
522 | + contentType: "application/x-www-form-urlencoded; charset=utf-8", | ||
523 | + data: param, | ||
524 | + beforeSend: function(xhr) { | ||
525 | + try { | ||
526 | + xhr.withCredentials = true; | ||
527 | + } catch (e) { | ||
528 | + var nativeOpen = xhr.open; | ||
529 | + xhr.open = function() { | ||
530 | + var result = nativeOpen.apply(xhr, arguments); | ||
531 | + xhr.withCredentials = true; | ||
532 | + return result; | ||
533 | + }; | ||
534 | + } | ||
535 | + }, | ||
536 | + success: function(result, textStatus) { | ||
537 | + if (result.code == -10) { | ||
538 | + // 未登录,跳转的登录界面 | ||
539 | + } else if (result.code == 0) { | ||
540 | + | ||
541 | + if (func && typeof func == "function") { | ||
542 | + context ? func.call(context, result) : func(result); | ||
543 | + } | ||
544 | + if (typeof(result.msg) == '$object' && result.msg.msg) | ||
545 | + result.msg = result.msg.msg; | ||
546 | + | ||
547 | + } | ||
548 | + if ($obj[0].tagName == "FORM") { | ||
549 | + $obj[0].disabled = false; | ||
550 | + $obj.find("input, button").attr('disabled', null); | ||
551 | + var $but_input = $obj.find('[type=submit]'); | ||
552 | + if ($but_input.is('button')) { | ||
553 | + $but_input.html(temp); | ||
554 | + } else { | ||
555 | + $but_input.attr('value', temp); | ||
556 | + } | ||
557 | + } else { | ||
558 | + $obj[0].disabled = false; | ||
559 | + } | ||
560 | + if (result.msg != '') { | ||
561 | + if (result.code != 0) | ||
562 | + core.showTips(result.msg, false); | ||
563 | + } | ||
564 | + | ||
565 | + }, | ||
566 | + cache: false, | ||
567 | + timeout: 10000, | ||
568 | + error: function(XMLHttpRequest, textStatus) { | ||
569 | + var response_status = XMLHttpRequest.status; | ||
570 | + var msg = "网络不给力,请重试!" + response_status; | ||
571 | + | ||
572 | + if (response_status == 403 || response_status == 401) { | ||
573 | + msg = '请先登录!'; | ||
574 | + } else if (response_status == 408) { | ||
575 | + msg = '请求超时,请再尝试!'; | ||
576 | + } else if (response_status == 411) { | ||
577 | + msg = '提交内容过长。'; | ||
578 | + } | ||
579 | + if ($obj[0].tagName == "FORM") { | ||
580 | + core.showTips(msg, false, 3000); | ||
581 | + $obj[0].disabled = false; | ||
582 | + $obj.find("input, button").attr('disabled', null); | ||
583 | + var $but_input = $obj.find('[type=submit]'); | ||
584 | + if ($but_input.is('button')) { | ||
585 | + $but_input.html(temp); | ||
586 | + } else { | ||
587 | + $but_input.attr('value', temp); | ||
588 | + } | ||
589 | + | ||
590 | + } else { | ||
591 | + core.showTips(msg, false, 3000); | ||
592 | + $obj[0].disabled = false; | ||
593 | + } | ||
594 | + } | ||
595 | + } | ||
596 | + if ($obj[0].tagName == "FORM") { | ||
597 | + $obj[0].disabled = true; | ||
598 | + $obj.find("input, button").attr('disabled', true); | ||
599 | + if ($sub_btn.is('button')) { | ||
600 | + $sub_btn.html("提交中..."); | ||
601 | + } else { | ||
602 | + $sub_btn.attr('value', "提交中..."); | ||
603 | + } | ||
604 | + } else { | ||
605 | + //a标签触发的请求 | ||
606 | + $obj[0].disabled = true; | ||
607 | + } | ||
608 | + Core.showTips('加载中...', true, 5000); | ||
609 | + Core.ajax(options); | ||
610 | + return false; | ||
611 | + } | ||
612 | + | ||
613 | + core.load_json = function($obj, func, context) { | ||
614 | + var path = $obj.data('path'); | ||
615 | + if ($obj.data('disabled') == true) { | ||
616 | + Core.showTips('请求已提交,请稍候。'); | ||
617 | + return; | ||
618 | + } | ||
619 | + | ||
620 | + var options = { | ||
621 | + type: "get", | ||
622 | + url: path, | ||
623 | + dataType: 'json', | ||
624 | + timeout: 10000, | ||
625 | + success: function(data) { | ||
626 | + if (func && typeof func == "function") { | ||
627 | + context ? func.call(context, data) : func(data); | ||
628 | + } | ||
629 | + $obj.data('disabled', false); | ||
630 | + }, | ||
631 | + error: function() { | ||
632 | + //数据加载出错 | ||
633 | + Core.showTips('数据加载出错,请检查网络状态。', false, 3000); | ||
634 | + $obj.data('disabled', false); | ||
635 | + } | ||
636 | + } | ||
637 | + $obj.data('disabled', true); | ||
638 | + Core.showTips('加载中...', true, 5000); | ||
639 | + Core.ajax(options); | ||
640 | + return false; | ||
641 | + } | ||
642 | + | ||
643 | + core.load_html = function($obj, func, context) { | ||
644 | + var data_url = ''; | ||
645 | + var isAppend = false; | ||
646 | + var data_tpl_url = $obj.attr('data-params-template'); | ||
647 | + if ($obj[0].tagName == "A") { | ||
648 | + data_url = $obj.attr('href'); | ||
649 | + isAppend = $obj.attr('data-params-append') == 'true' ? true : false; | ||
650 | + } else { | ||
651 | + data_url = $obj.attr('data-params-url'); | ||
652 | + } | ||
653 | + if (data_url == '') | ||
654 | + return; | ||
655 | + if (data_url.indexOf('?') != -1) { | ||
656 | + data_url += '&format=json'; | ||
657 | + } else { | ||
658 | + data_url += '?format=json'; | ||
659 | + } | ||
660 | + if (data_url.indexOf('game_id') == -1) { | ||
661 | + var _id = core.Data.game_id ? core.Data.game_id : core.Data.app_id; | ||
662 | + data_url += '&game_id=' + _id; | ||
663 | + } | ||
664 | + var dataType = ''; | ||
665 | + if (data_tpl_url && data_tpl_url != "") { | ||
666 | + dataType = 'json'; | ||
667 | + } | ||
668 | + var data_result = ''; | ||
669 | + | ||
670 | + var options = { | ||
671 | + type: "get", | ||
672 | + url: data_url, | ||
673 | + dataType: dataType, | ||
674 | + contentType: "application/x-www-form-urlencoded; charset=utf-8", | ||
675 | + success: function(result) { | ||
676 | + if(result.code && result.code != 0){ | ||
677 | + //出错 | ||
678 | + Core.showTips(result.msg, false); | ||
679 | + return; | ||
680 | + } | ||
681 | + data_result = result; | ||
682 | + if (data_tpl_url && data_tpl_url != "") { | ||
683 | + // 加载模板 | ||
684 | + tpl = Core.getTemplate(data_tpl_url); | ||
685 | + var doTpl = doT.template(tpl); | ||
686 | + result = doTpl(data_result); | ||
687 | + if (isAppend) { | ||
688 | + // 删除最后一项,并将新的内容append进去 | ||
689 | + var $wrap = $obj.parent(); | ||
690 | + $wrap.is('.more') ? $wrap.replaceWith(result) : $obj | ||
691 | + .find('.more').replaceWith(result); | ||
692 | + } else { | ||
693 | + $obj.html(result); | ||
694 | + } | ||
695 | + if (func && typeof func == "function") { | ||
696 | + context ? func.call(context, result) : func(result); | ||
697 | + } | ||
698 | + Core.showTips('加载完毕!', true, 2000); | ||
699 | + } else { | ||
700 | + $obj.html(result); | ||
701 | + if (func && typeof func == "function") { | ||
702 | + context ? func.call(context, result) : func(result); | ||
703 | + } | ||
704 | + Core.showTips('加载完毕!', true, 2000); | ||
705 | + } | ||
706 | + | ||
707 | + }, | ||
708 | + cache: false, | ||
709 | + timeout: 5000, | ||
710 | + error: function(e) { | ||
711 | + Core.showTips('json format has error'); | ||
712 | + } | ||
713 | + } | ||
714 | + Core.showTips('加载中...', true, 5000); | ||
715 | + Core.ajax(options); | ||
716 | + } | ||
717 | + // 判断用户是否登录,使用两个 | ||
718 | + core.isAuths = function() { | ||
719 | + if($('#login').length == 1 && !core.Data.username){ | ||
720 | + return false; | ||
721 | + } | ||
722 | + return true; | ||
723 | + } | ||
724 | + // 继承 | ||
725 | + core.inherit = function(childCtor, parentCtor) { | ||
726 | + /** @constructor */ | ||
727 | + | ||
728 | + function temCtor() {} | ||
729 | + temCtor.prototype = parentCtor.prototype; | ||
730 | + childCtor.superClass_ = parentCtor.prototype; | ||
731 | + childCtor.prototype = new temCtor(); | ||
732 | + /** @override */ | ||
733 | + childCtor.prototype.constructor = childCtor; | ||
734 | + } | ||
735 | + // 动画显示模块 | ||
736 | + core.show_anim = function($target) { | ||
737 | + $target.css({ | ||
738 | + zIndex: 2 | ||
739 | + }); | ||
740 | + $target.show(); | ||
741 | + } | ||
742 | + | ||
743 | + /** | ||
744 | + * sdk.loadfinished | ||
745 | + */ | ||
746 | + core.loadFinished = function() { | ||
747 | + if (Core.isAndroid) { //If WebKit browser | ||
748 | + if(!Core.Data.game_url){ | ||
749 | + try{ | ||
750 | + return; | ||
751 | + location.href="sdk://finishLoad?action=login"; | ||
752 | + }catch(e){} | ||
753 | + } | ||
754 | + } else { | ||
755 | + console.log('not wbkit browser!'); | ||
756 | + } | ||
757 | + } | ||
758 | + core.finishPay = function() { | ||
759 | + var pay_url = "sdk://exit?action=pay"; | ||
760 | + core.clearFrame() | ||
761 | + if(Core.Data.game_url && Core.Data.game_url != ''){ | ||
762 | + if(Core.Data.back_url){ | ||
763 | + pay_url = Core.Data.back_url; | ||
764 | + }else{ | ||
765 | + pay_url = Core.Data.game_url; | ||
766 | + } | ||
767 | + }else{ | ||
768 | + if(Core.Data.trade_id && Core.Data.trade_id != ''){ | ||
769 | + pay_url = "sdk://pay?order_id=" + Core.Data.trade_id; | ||
770 | + pay_url += Core.Data.current_pay_channel ? '&paytype=' + Core.Data.current_pay_channel.name : '' | ||
771 | + } | ||
772 | + } | ||
773 | + try{ | ||
774 | + location.href = pay_url; | ||
775 | + }catch(e){} | ||
776 | + } | ||
777 | + core.finishLogin = function() { | ||
778 | + var login_url = 'sdk://exit?action=login'; | ||
779 | + var login_params = "open_id=" + Core.Data.open_id + "&token=" + Core.Data.token + "×tamp=" + Core.Data.timestamp ; | ||
780 | + login_params += Core.Data.login_count ? '&login_count=' + Core.Data.login_count : '' ; | ||
781 | + if(Core.Data.game_url && Core.Data.game_url != ''){ | ||
782 | + if(Core.Data.back_url){ | ||
783 | + login_url = Core.Data.back_url; | ||
784 | + }else{ | ||
785 | + login_url = Core.Data.game_url; | ||
786 | + } | ||
787 | + if(login_url.indexOf("?")!=-1){ | ||
788 | + login_url +="&"; | ||
789 | + }else{ | ||
790 | + login_url +="?"; | ||
791 | + } | ||
792 | + login_url += login_params; | ||
793 | + }else{ | ||
794 | + login_url = "sdk://login?"+login_params; | ||
795 | + login_url += "&login_key=" + Core.Data.login_key; | ||
796 | + } | ||
797 | + | ||
798 | + try{ | ||
799 | + location.href = login_url; | ||
800 | + }catch(e){} | ||
801 | + } | ||
802 | + | ||
803 | + // 隐藏指定模块 | ||
804 | + core.hide = function(modId) { | ||
805 | + if (!modId) | ||
806 | + modId = core.cur_mod; | ||
807 | + if (!(modId in modules)) { | ||
808 | + console.log('没有对应的模块id的section:' + modId); | ||
809 | + return; | ||
810 | + } | ||
811 | + var page_w = $(window).width(); | ||
812 | + var $target = $('#' + modId); | ||
813 | + if ($target.find('iframe').length > 0) { | ||
814 | + core.clearFrame(); | ||
815 | + } | ||
816 | + | ||
817 | + $target.css({ | ||
818 | + zIndex: 1 | ||
819 | + }); | ||
820 | + | ||
821 | + $target.hide(); | ||
822 | + core.last_mod = modId; | ||
823 | + | ||
824 | + } | ||
825 | + | ||
826 | + // 核心初始化,注册事件 | ||
827 | + core.init = function() { | ||
828 | + // $('#loading').hide(); | ||
829 | + if(localStorage.getItem('guest_n') || Core.user_names){ | ||
830 | + core.isFresh = false; | ||
831 | + } else { | ||
832 | + core.isFresh = true; | ||
833 | + } | ||
834 | + | ||
835 | + // 注册提示框的关闭按钮 | ||
836 | + $('#alert').on('click', '', function(e) { | ||
837 | + if (tip_timeOut) { | ||
838 | + clearTimeout(tip_timeOut); | ||
839 | + tip_timeOut = null; | ||
840 | + $('#alert').hide(); | ||
841 | + } | ||
842 | + }); | ||
843 | + window.onhashchange = function() { | ||
844 | + | ||
845 | + var hash = location.hash, | ||
846 | + module, params; | ||
847 | + var strs = hash.split('&'); | ||
848 | + hash = strs[0]; | ||
849 | + params = strs[1]; | ||
850 | + if (hash == '') { | ||
851 | + | ||
852 | + if (Core.start_page) { | ||
853 | + hash = Core.start_page; | ||
854 | + } else { | ||
855 | + hash = 'home'; | ||
856 | + } | ||
857 | + } else { | ||
858 | + hash = hash.substring(1); | ||
859 | + } | ||
860 | + if (!(hash in modules)) { | ||
861 | + console.log('没有对应的模块id的section:' + hash); | ||
862 | + hash = 'home'; | ||
863 | + } | ||
864 | + core.hide(); | ||
865 | + | ||
866 | + module = modules[hash]; | ||
867 | + core.cur_mod = hash; | ||
868 | + if (params && params.indexOf('force') != -1) { | ||
869 | + if (module.isDef) { | ||
870 | + module.show(false); // 强制更新面板 | ||
871 | + } else { // 列表更新 | ||
872 | + //Core.showTips('update list'); | ||
873 | + module.$c.find('ol').empty(); | ||
874 | + module.show(); | ||
875 | + } | ||
876 | + } else { | ||
877 | + module.show(); | ||
878 | + } | ||
879 | + } | ||
880 | + // 监听hashChange事件 | ||
881 | + var lochash = location.hash.split('&')[0]; | ||
882 | + var mod = null; | ||
883 | + if (lochash == '') { | ||
884 | + if (Core.start_page) { | ||
885 | + mod = Core.start_page; | ||
886 | + } else { | ||
887 | + mod = 'home'; | ||
888 | + } | ||
889 | + | ||
890 | + location.hash = "#" + mod; | ||
891 | + } else { | ||
892 | + mod = lochash.substring(1); | ||
893 | + | ||
894 | + onhashchange(); | ||
895 | + } | ||
896 | + | ||
897 | + // if(Core.isIos){ | ||
898 | + //ios下,不需要自动登录和加载完成消息 | ||
899 | + // return; | ||
900 | + // } | ||
901 | + //新版sdk,支持直接登录、加载后回调 | ||
902 | + if (Core.Data.open_id && Core.Data.open_id != '' && $('#login').length != 0 && Core.Data.auto_login == 1 && Core.Data.is_guest == 0) { | ||
903 | + //登录模块,判定可否自动登录 | ||
904 | + var d = new Date().getTime(); | ||
905 | + var auto = localStorage.getItem('auto'); | ||
906 | + var auto_time = parseInt(localStorage.getItem('auto_time')); | ||
907 | + if (auto && auto == 'true') { | ||
908 | + if ((d - auto_time) > 600000) { | ||
909 | + //距离上次登录10分钟,尝试自动登录 | ||
910 | + localStorage.setItem('auto_time', d); | ||
911 | + core.finishLogin(); | ||
912 | + } else { | ||
913 | + //距离上次登录,小于10分钟,手动登录 | ||
914 | + localStorage.setItem('auto_time', d); | ||
915 | + core.loadFinished(); | ||
916 | + } | ||
917 | + } else { | ||
918 | + //自动登录 | ||
919 | + localStorage.setItem('auto', true); | ||
920 | + localStorage.setItem('auto_time', d); | ||
921 | + Core.finishLogin(); | ||
922 | + } | ||
923 | + } else { | ||
924 | + if ($('#login').length != 0) { | ||
925 | + //第一次没有登录,进入手动登录,写入信息 | ||
926 | + var f = new Date().getTime(); | ||
927 | + localStorage.setItem('auto', true); | ||
928 | + localStorage.setItem('auto_time', f); | ||
929 | + } | ||
930 | + core.loadFinished(); | ||
931 | + } | ||
932 | + } | ||
933 | + | ||
934 | + $(function() { | ||
935 | + // 调整页面高度适应 | ||
936 | + var page_w, page_h, tag, c_w, c_h; | ||
937 | + var ratio = window.devicePixelRatio; | ||
938 | + if (Core.sdk_h) { | ||
939 | + //成功匹配屏幕大小, 直接计算屏幕高度 | ||
940 | + if (ratio != Core.ratio) { | ||
941 | + page_h = Core.sdk_h * (Core.ratio / ratio); | ||
942 | + } else { | ||
943 | + page_h = Core.sdk_h; | ||
944 | + } | ||
945 | + //alert('sdk:' + page_h + ':' + ratio + ':' + Core.ratio + ':' + Core.ios_w, true, 5000); | ||
946 | + } else { | ||
947 | + //旧版sdk,只能通过高度取值 | ||
948 | + page_w = $(window).width(); | ||
949 | + page_h = $(window).height(); | ||
950 | + c_w = document.documentElement.clientWidth; | ||
951 | + c_h = document.documentElement.clientHeight; | ||
952 | + if (c_w && c_w > page_w) page_w = c_w; | ||
953 | + if (c_h && c_h > page_h) page_h = c_h; | ||
954 | + //Core.showTips(page_h + ':' + ratio, true, 5000); | ||
955 | + if (page_h < 450 && page_w == 450) { | ||
956 | + page_h = 450; | ||
957 | + } | ||
958 | + } | ||
959 | + //Core.showTips('page_h:' + page_h + ';sdk_h:' + Core.sdk_h, true, 50000); | ||
960 | + //$('body').height(page_h); | ||
961 | + if(Core.isIos && $(window).width() < $('body').width()){ | ||
962 | + $('meta[name="viewport"]').attr('content','width=' + $('body').width() + ',maximum-scale=0.5,user-scalable=no'); | ||
963 | + } | ||
964 | + // var x = (page_h - 76) / page_h * 100 + '%'; | ||
965 | + // $('<style>.container{height:' + x + ';}</style>').appendTo($('body')); | ||
966 | + | ||
967 | + // setTimeout(function(){ | ||
968 | + // Core.showTips('page-w:' + $('body').width() + ';page-h:' + $('body').height() + 'ratio:' + core.ratio); | ||
969 | + // }, 2000); | ||
970 | + }); | ||
971 | +})(window, Core); | ||
972 | + | ||
973 | + | ||
974 | +/** | ||
975 | + * 基础模块 | ||
976 | + */ | ||
977 | +Module = function(modId) { | ||
978 | + this.isDef = null; | ||
979 | + this.isAuth = false; | ||
980 | + this.isReplace = false; //模块内容部分信息需要在显示前替换,如login模块的app_id替换 | ||
981 | + this.moduleId = modId; | ||
982 | + this.$c = $('#' + modId); | ||
983 | + this.isValid = false; | ||
984 | +} | ||
985 | +Module.prototype.init = function() { | ||
986 | + if (this.$c.attr('data-attr') == 'dot') { | ||
987 | + this.isDef = true; | ||
988 | + } else { | ||
989 | + this.isValid = true; | ||
990 | + } | ||
991 | + if(this.$c.attr('data-replace') == '1'){ | ||
992 | + this.isReplace = true; | ||
993 | + } | ||
994 | + if (this.$c.attr('data-auth') == '1') { | ||
995 | + this.isAuth = true; | ||
996 | + } | ||
997 | + if (this.bind && typeof this.bind == 'function') | ||
998 | + this.bind(); | ||
999 | +} | ||
1000 | + | ||
1001 | +Module.prototype.show = function(valid) { | ||
1002 | + if (valid != undefined) | ||
1003 | + this.isValid = valid; | ||
1004 | + if (this.isAuth && !Core.isAuths()) { | ||
1005 | + if (location.hash.indexOf('login') == -1) { | ||
1006 | + Core.isFresh ? Core.showMod('login') : Core.showMod('login'); | ||
1007 | + return; | ||
1008 | + } | ||
1009 | + } | ||
1010 | + if (!this.isDef) { | ||
1011 | + if(this.isReplace){ | ||
1012 | + //模块第一次显示,需要替换部分未知变量。 | ||
1013 | + this.$c.find('[data-replace]').each(function(index){ | ||
1014 | + var $elem = $(this), val; | ||
1015 | + var attr = $elem.attr('data-replace'); | ||
1016 | + var oldValue = $elem.attr(attr); | ||
1017 | + var arrays = /\{([\w]+)\}/.exec(oldValue); | ||
1018 | + if(arrays.length == 2 && arrays[1] in Core.Data){ | ||
1019 | + val = Core.Data[arrays[1]]; | ||
1020 | + var newValue = oldValue.replace(arrays[0], val) | ||
1021 | + $elem.attr(attr, newValue); | ||
1022 | + } else { | ||
1023 | + console.log('can not find variable in:' + oldValue); | ||
1024 | + } | ||
1025 | + }); | ||
1026 | + //只需在模块第一次显示时替换变量。 | ||
1027 | + this.isReplace = false; | ||
1028 | + } | ||
1029 | + Core.show_anim(this.$c); | ||
1030 | + } else { | ||
1031 | + if (this.isValid) { | ||
1032 | + Core.show_anim(this.$c); | ||
1033 | + } else { | ||
1034 | + if (!this.tpl) | ||
1035 | + this.tpl = doT.template(Core.getTemplate(this.moduleId)); | ||
1036 | + this.$c.html(this.tpl()); | ||
1037 | + Core.show_anim(this.$c); | ||
1038 | + this.isValid = true; | ||
1039 | + } | ||
1040 | + } | ||
1041 | + if (this.show_after && typeof this.show_after == 'function') | ||
1042 | + this.show_after(); | ||
1043 | +} |
publicAndroidSDK/assets/sdk/js/doT.min.js
0 → 100644
1 | +// Laura Doktorova https://github.com/olado/doT | ||
2 | +(function(){function o(){var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},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(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 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 |
publicAndroidSDK/assets/sdk/js/loader.min.js
0 → 100644
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 | + Core.ajax({ | ||
75 | + type: 'GET', | ||
76 | + url: url + '?' + params, | ||
77 | + dataType: 'json', | ||
78 | + success: function(data) { | ||
79 | + if (data.code == 0) { | ||
80 | + // 成功请求 | ||
81 | + Core.Data = data.msg; | ||
82 | + if (Core.Data.face) { | ||
83 | + Core.Data.face = Core.server + data.msg.face; | ||
84 | + } | ||
85 | + //更新server | ||
86 | + var lastServer = localStorage.getItem('last_server'); | ||
87 | + if (Core.Data.new_server) { | ||
88 | + if (lastServer && lastServer == Core.Data.new_server) { | ||
89 | + //没有变化 | ||
90 | + } else { | ||
91 | + //需要更新server | ||
92 | + var s = 'sdk://changeServer?addr=' + Core.Data.new_server; | ||
93 | + localStorage.setItem('last_server', Core.Data.new_server); | ||
94 | + location.href = s; | ||
95 | + } | ||
96 | + } | ||
97 | + | ||
98 | + if (!setSkin && data.skin) { | ||
99 | + $('#skin').attr('href', Core.server + '/static/sdk/skin/' + data.skin + '/skin.css' + skin_v); | ||
100 | + localStorage.setItem('skin_' + appId, data.skin); | ||
101 | + } | ||
102 | + localStorage.setItem('data_' + url, JSON.stringify(data.msg)); | ||
103 | + | ||
104 | + //模块初始化函数,兼容旧版本sdk | ||
105 | + if (typeof(window.initFunc) == "function") { | ||
106 | + window.initFunc(); | ||
107 | + } | ||
108 | + // 核心初始化 | ||
109 | + $('#loading').hide(); | ||
110 | + if (tryAutoLogin) { | ||
111 | + goInit(); | ||
112 | + } else { | ||
113 | + var first_mod = Core.start_page? Core.start_page: 'home'; | ||
114 | + Core.updateMod(first_mod); | ||
115 | + } | ||
116 | + } else { | ||
117 | + //参数出错,没有游戏服什么的. | ||
118 | + $('#loading').hide(); | ||
119 | + $('<h2 class="error_title">出错了,正在努力抢修中...</h2>').appendTo($('.mask')); | ||
120 | + Core.showTips(data.msg, false, 6000); | ||
121 | + // 核心初始化 | ||
122 | + Core.loadFinished(); | ||
123 | + } | ||
124 | + | ||
125 | + }, | ||
126 | + error: function(xhr, type) { | ||
127 | + // 请求失败,服务器崩溃 | ||
128 | + //尝试从缓存中获取数据 | ||
129 | + var data_str = localStorage.getItem('data_' + url); | ||
130 | + if (data_str && data_str != '') { | ||
131 | + var data = JSON.parse(data_str); | ||
132 | + if (typeof data == "object") { | ||
133 | + Core.Data = data; | ||
134 | + if (tryAutoLogin) { | ||
135 | + goInit(); | ||
136 | + } else { | ||
137 | + Core.updateMod('home'); | ||
138 | + } | ||
139 | + } | ||
140 | + } | ||
141 | + Core.showTips('网络出错,请检查网络状态。', false); | ||
142 | + // 核心初始化 | ||
143 | + $('#loading').hide(); | ||
144 | + } | ||
145 | + | ||
146 | + }); | ||
147 | + } | ||
148 | + window.getData = getData; | ||
149 | +})(); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/js/login.min.js
0 → 100644
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 | + } | ||
53 | + | ||
54 | + Home.prototype.logout_cb = function(data) { | ||
55 | + Core.updateData(); | ||
56 | + Core.clearMods(); | ||
57 | + Core.showMod('login'); | ||
58 | + | ||
59 | + } | ||
60 | + Home.prototype.show_after = function(){ | ||
61 | + $('#login').hide() | ||
62 | + } | ||
63 | + Core.registerMod('home', Home); | ||
64 | + | ||
65 | + // 帮助信息模块 | ||
66 | + var Help = function(modId) { | ||
67 | + Module.call(this, modId); | ||
68 | + } | ||
69 | + Core.inherit(Help, Module); | ||
70 | + Core.registerMod('help', Help); | ||
71 | + | ||
72 | + // 注册协议 | ||
73 | + var Agreement = function(modId) { | ||
74 | + Module.call(this, modId); | ||
75 | + } | ||
76 | + Core.inherit(Agreement, Module); | ||
77 | + Agreement.prototype.bind = function() { | ||
78 | + var that = this; | ||
79 | + var checkbox = that.$c.find(".checkbox"); | ||
80 | + var checkbox_type = that.$c.find("i.icon-xuanzhong"); | ||
81 | + | ||
82 | + that.$c.on("click",checkbox,function(e){ | ||
83 | + if(checkbox.hasClass('checkbox-2')){ | ||
84 | + checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | ||
85 | + checkbox_type.addClass("checkbx"); | ||
86 | + }else{ | ||
87 | + checkbox_type.parents(".checkbox").addClass("checkbox-2"); | ||
88 | + checkbox_type.removeClass("checkbx"); | ||
89 | + } | ||
90 | + }); | ||
91 | + | ||
92 | + | ||
93 | + that.$c.on('click', '[type=submit],.submit', function(e) { | ||
94 | + if (that.$c.find('.checkbox-2').length<=0 ){ | ||
95 | + Core.showTips('已阅读请打勾',1); | ||
96 | + return false; | ||
97 | + } | ||
98 | + | ||
99 | + }); | ||
100 | + } | ||
101 | + Core.registerMod('agreement', Agreement); | ||
102 | + | ||
103 | + | ||
104 | + // Login模块 | ||
105 | + var Login = function(modId) { | ||
106 | + this.other_login = true; | ||
107 | + Module.call(this, modId); | ||
108 | + } | ||
109 | + // 继承基础模块 | ||
110 | + Core.inherit(Login, Module); | ||
111 | + | ||
112 | + Login.prototype.bind = function() { | ||
113 | + var that = this; | ||
114 | + that.$c.on('click', 'input[type=submit],.submit', function(e) { | ||
115 | + e.preventDefault(); | ||
116 | + if (that.$c.find('.eg')[0].checked == false) { | ||
117 | + // 直接进入游戏 | ||
118 | + Core.ajax_do(that.$c.find('.ajax'), that.login_eg_cb, | ||
119 | + that); | ||
120 | + } else { | ||
121 | + Core.ajax_do(that.$c.find('.ajax'), that.login_cb, | ||
122 | + that); | ||
123 | + } | ||
124 | + return false; | ||
125 | + }); | ||
126 | + that.$c.on('click', '.drop-down', function(e) { | ||
127 | + e.preventDefault(); | ||
128 | + that.$c.find('.pull-box').toggle(); | ||
129 | + return false; | ||
130 | + }); | ||
131 | + that.$c.on('click', 'ul.drop-ul li a', function(e) { | ||
132 | + e.preventDefault(); | ||
133 | + that.$c.find('input[name=username]').val( | ||
134 | + $(e.target).html()); | ||
135 | + that.$c.find('input[name=password]').val($(e.target).attr('data-p')); | ||
136 | + that.$c.find('.pull-box').hide(); | ||
137 | + | ||
138 | + return false; | ||
139 | + }) | ||
140 | + that.$c.on('click', '.op-guest', function(e) { | ||
141 | + e.preventDefault(); | ||
142 | + var _name = localStorage.getItem('guest_n'); | ||
143 | + var _pwd = localStorage.getItem('guest_p'); | ||
144 | + if (_name && _name != '') { | ||
145 | + //已经有游客帐号,使用游客帐号登录 | ||
146 | + that.$c.find('input[name=username]').val(_name); | ||
147 | + that.$c.find('input[name=password]').val(_pwd); | ||
148 | + console.log('submit-u:' + _name + ":" + _pwd); | ||
149 | + Core.ajax_do(that.$c.find('.ajax'), that.login_cb, | ||
150 | + that); | ||
151 | + } else { | ||
152 | + Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, | ||
153 | + that); | ||
154 | + } | ||
155 | + return false; | ||
156 | + }); | ||
157 | + that.$c.on('click', '.iframe', function(e) { | ||
158 | + e.preventDefault(); | ||
159 | + var src = $(this).attr('href'); | ||
160 | + var title = $(this).attr('title'); | ||
161 | + if (Core.isFile) { | ||
162 | + src = Core.server + src; | ||
163 | + } | ||
164 | + Core.Data.frame_title = title; | ||
165 | + Core.Data.frame_src = src; | ||
166 | + Core.updateMod('frame'); | ||
167 | + return false; | ||
168 | + }); | ||
169 | + | ||
170 | + } | ||
171 | + | ||
172 | + Login.prototype.cache = function(n, p) { | ||
173 | + var name = n ? n : this.$c.find('input[name=username]').val(), | ||
174 | + password = p ? p : this.$c.find('input[name=password]').val(), | ||
175 | + name_ary,index_ary,firstUser; | ||
176 | + var _d = localStorage.getItem('user_names'); | ||
177 | + if (_d) { | ||
178 | + name_ary = JSON.parse(_d); | ||
179 | + } | ||
180 | + var _i = localStorage.getItem('user_indexs'); | ||
181 | + if (_i) { | ||
182 | + index_ary = JSON.parse(_i); | ||
183 | + } | ||
184 | + | ||
185 | + if(index_ary == null){ | ||
186 | + index_ary = []; | ||
187 | + index_ary.unshift(name); | ||
188 | + localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | ||
189 | + }else{ | ||
190 | + if($.inArray(name,index_ary) == -1){ | ||
191 | + index_ary.unshift(name); | ||
192 | + localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | ||
193 | + } | ||
194 | + } | ||
195 | + if (name_ary == null) { | ||
196 | + name_ary = {}; | ||
197 | + name_ary[name] = password; | ||
198 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
199 | + } else { | ||
200 | + if (!(name in name_ary)) { | ||
201 | + name_ary[name] = password; | ||
202 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
203 | + } else { | ||
204 | + if (name_ary[name] != password) { | ||
205 | + name_ary[name] = password; | ||
206 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
207 | + } | ||
208 | + } | ||
209 | + } | ||
210 | + Core.user_indexs = index_ary; | ||
211 | + Core.user_names = name_ary; | ||
212 | + | ||
213 | + $("input[name='loginUserName']").val(Core.Data.username); | ||
214 | + $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); | ||
215 | + | ||
216 | + } | ||
217 | + Login.prototype.login_cb = function(result) { | ||
218 | + Core.updateData(result.msg); | ||
219 | + // 显示一个登录成功信息,并跳转到home | ||
220 | + Core.first_user = this.$c.find('[name="username"]').val() | ||
221 | + Core.first_password = this.$c.find('[name="password"]').val() | ||
222 | + this.cache(); | ||
223 | + Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); | ||
224 | + | ||
225 | + Core.updateMod('home'); | ||
226 | + } | ||
227 | + Login.prototype.login_eg_cb = function(result) { | ||
228 | + Core.updateData(result.msg); | ||
229 | + // 跳转进入游戏 | ||
230 | + this.cache(); | ||
231 | + Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏'); | ||
232 | + setTimeout(function() { | ||
233 | + Core.finishLogin(); | ||
234 | + }, 1000); | ||
235 | + } | ||
236 | + Login.prototype.guest_cb = function(data) { | ||
237 | + Core.updateData(data.msg); | ||
238 | + //保存游客用户名和密码到localstorage | ||
239 | + localStorage.setItem('guest_n', data.msg.username); | ||
240 | + localStorage.setItem('guest_p', data.msg.pwd); | ||
241 | + this.cache(data.msg.username, data.msg.pwd); | ||
242 | + Core.isFresh = false; | ||
243 | + Core.updateMod('home'); | ||
244 | + Core.showTips("游客登录成功,请及时修改帐号和密码。", true); | ||
245 | + } | ||
246 | + | ||
247 | + Login.prototype.show_after = function() { | ||
248 | + var user_indexs = localStorage.getItem('user_indexs'), | ||
249 | + names = localStorage.getItem('user_names'); | ||
250 | + var loginUserName = $("input[name='loginUserName']").val(), | ||
251 | + loginPassword = $("input[name='loginPassword']").val(), | ||
252 | + initUserName = $("input[name='initUserName']").val(); | ||
253 | + this.$c.find(".forgetpsw").click(function(){ | ||
254 | + $(".pwd_box").children(".step-tab").css("display","block"); | ||
255 | + $(".pwd_box").children(".step-box").css("display","none"); | ||
256 | + }); | ||
257 | + var names = JSON.parse(names); | ||
258 | + var userIdx = JSON.parse(user_indexs); | ||
259 | + if (names != null) { | ||
260 | + | ||
261 | + delete names["undefined"]; | ||
262 | + | ||
263 | + this.$c.find('.drop-down').show(); | ||
264 | + var lis = ''; | ||
265 | + | ||
266 | + for(var ele = 0,l = userIdx.length;ele<l;ele++){ | ||
267 | + lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>'; | ||
268 | + } | ||
269 | + | ||
270 | + this.$c.find('.drop-ul').html(lis); | ||
271 | + | ||
272 | + if(loginUserName != ""){ | ||
273 | + this.$c.find("input#js_login_username").val(loginUserName); | ||
274 | + }else if(initUserName != ""){ | ||
275 | + this.$c.find("input#js_login_username").val(initUserName); | ||
276 | + this.$c.find("input#js_login_password").val(Core.user_names[initUserName]); | ||
277 | + } | ||
278 | + | ||
279 | + }else{ | ||
280 | + this.$c.find("input#js_login_username").val(Core.first_user); | ||
281 | + this.$c.find("input#js_login_password").val(Core.first_password); | ||
282 | + } | ||
283 | + if (Core.Data.other_login && this.other_login) { | ||
284 | + if(Core.Data.other_login.length > 0){ | ||
285 | + this.$c.find(".other-login-bx").removeClass("hide"); | ||
286 | + } | ||
287 | + | ||
288 | + //设置第三方登录显示 | ||
289 | + for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { | ||
290 | + this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); | ||
291 | + } | ||
292 | + this.other_login = false; | ||
293 | + } | ||
294 | + | ||
295 | + if(loginPassword != ""){ | ||
296 | + this.$c.find("input#js_login_password").val(loginPassword); | ||
297 | + } | ||
298 | + | ||
299 | + var old_pwd = localStorage.getItem('old_pwd'); | ||
300 | + if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){ | ||
301 | + this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]); | ||
302 | + console.log($("input#js_login_password").val()); | ||
303 | + } | ||
304 | + | ||
305 | + $("#find_pwd").find(".user-center span").html("找回密码"); | ||
306 | + | ||
307 | + } | ||
308 | + | ||
309 | + Core.registerMod('login', Login); | ||
310 | + | ||
311 | + // Login_before模块 | ||
312 | + var Login_before = function(modId) { | ||
313 | + this.other_login = true; | ||
314 | + Module.call(this, modId); | ||
315 | + } | ||
316 | + // 继承基础模块 | ||
317 | + Core.inherit(Login_before, Module); | ||
318 | + | ||
319 | + Login_before.prototype.bind = function() { | ||
320 | + var that = this; | ||
321 | + that.$c.on('click', '.login_case2', function(e) { | ||
322 | + e.preventDefault(); | ||
323 | + Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that); | ||
324 | + return false; | ||
325 | + }); | ||
326 | + | ||
327 | + that.$c.on('click', '.login_case_qq', function(e){ | ||
328 | + e.preventDefault(); | ||
329 | + | ||
330 | + var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id; | ||
331 | + if (Core.isFile) { | ||
332 | + src = Core.server + src; | ||
333 | + } | ||
334 | + Core.Data.frame_title = 'QQ登录'; | ||
335 | + Core.Data.frame_src = src; | ||
336 | + Core.updateMod('frame'); | ||
337 | + return false; | ||
338 | + }); | ||
339 | + } | ||
340 | + //使用Login模块的业务逻辑 | ||
341 | + Login_before.prototype.cache = Login.prototype.cache; | ||
342 | + Login_before.prototype.guest_cb = Login.prototype.guest_cb; | ||
343 | + Login_before.prototype.show_after = function() { | ||
344 | + if (Core.Data.other_login && this.other_login) { | ||
345 | + //设置第三方登录显示 | ||
346 | + for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { | ||
347 | + this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); | ||
348 | + } | ||
349 | + if(Core.Data.other_login.length == 0){ | ||
350 | + //没有可用的第三方登录,直接跳转到home界面 | ||
351 | + Core.updateMod('home'); | ||
352 | + } | ||
353 | + this.other_login = false; | ||
354 | + } | ||
355 | + | ||
356 | + } | ||
357 | + Core.registerMod('login_before', Login_before); | ||
358 | + | ||
359 | + // Register模块 | ||
360 | + var Register = function(modId) { | ||
361 | + this._username = null | ||
362 | + this._pwd = null | ||
363 | + Module.call(this, modId); | ||
364 | + } | ||
365 | + // 继承基础模块 | ||
366 | + Core.inherit(Register, Module); | ||
367 | + Register.prototype.bind = function() { | ||
368 | + var that = this; | ||
369 | + var checkbox = that.$c.find(".checkbox"); | ||
370 | + var checkbox_type = that.$c.find("i.icon-xuanzhong"); | ||
371 | + | ||
372 | + that.$c.on("click",checkbox,function(e){ | ||
373 | + if(checkbox.hasClass('checkbox-2')){ | ||
374 | + checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | ||
375 | + checkbox_type.addClass("checkbx"); | ||
376 | + }else{ | ||
377 | + checkbox_type.parents(".checkbox").addClass("checkbox-2"); | ||
378 | + checkbox_type.removeClass("checkbx"); | ||
379 | + } | ||
380 | + }); | ||
381 | + | ||
382 | + | ||
383 | + that.$c.on('click', '[type=submit],.submit', function(e) { | ||
384 | + e.preventDefault(); | ||
385 | + if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | ||
386 | + Core.showTips("账号不能有大写字母!"); | ||
387 | + }else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){ | ||
388 | + Core.showTips("密码不能有大写字母!"); | ||
389 | + }else if(!that.$c.find('.checkbox-2').length>0){ | ||
390 | + Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1); | ||
391 | + }else{ | ||
392 | + //如果是游客的话则调用安卓截屏方法 | ||
393 | + if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ | ||
394 | + window.android.screenShot(); | ||
395 | + } | ||
396 | + Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); | ||
397 | + } | ||
398 | + return false; | ||
399 | + }); | ||
400 | + | ||
401 | + that.$c.on('change','[name="username"]',function(e){ | ||
402 | + if (this.value == that.$c.find('[name="old_usernmae"]').val()){ | ||
403 | + that.$c.find('[name="type"]').val(-1) | ||
404 | + } else{ | ||
405 | + that.$c.find('[name="type"]').val(0) | ||
406 | + } | ||
407 | + }) | ||
408 | + | ||
409 | + } | ||
410 | + Register.prototype.set_random = function(){ | ||
411 | + var that = this; | ||
412 | + var random_name = 'yy' + Math.random().toString(36).substr(-2) + new Date().getTime().toString(36).substr(-4) | ||
413 | + var random_passwd = Math.random().toString(36).substr(-6) | ||
414 | + that.$c.find('[name="username"]').val(random_name) | ||
415 | + that.$c.find('[name="old_usernmae"]').val(random_name) | ||
416 | + that.$c.find('[name="password"]').val(random_passwd) | ||
417 | + that.$c.find('[name="type"]').val(-1) | ||
418 | + | ||
419 | + } | ||
420 | + Register.prototype.cache = Login.prototype.cache; | ||
421 | + | ||
422 | + Register.prototype.register_cb = function(result) { | ||
423 | + Core.updateData(result.msg); | ||
424 | + Core.first_user = this.$c.find('[name="username"]').val() | ||
425 | + Core.first_password = this.$c.find('[name="password"]').val() | ||
426 | + // 显示一个注册成功信息,并跳转到home | ||
427 | + this.cache(); | ||
428 | + Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | ||
429 | + Core.updateMod('home'); | ||
430 | + } | ||
431 | + Register.prototype.show_after = function() { | ||
432 | + this.set_random(); | ||
433 | + } | ||
434 | + Core.registerMod('register', Register); | ||
435 | + | ||
436 | + // Mibao模块 | ||
437 | + var Mibao = function(modId) { | ||
438 | + Module.call(this, modId); | ||
439 | + } | ||
440 | + // 继承基础模块 | ||
441 | + Core.inherit(Mibao, Module); | ||
442 | + Mibao.prototype.bind = function() { | ||
443 | + var that = this; | ||
444 | + that.$c.on('click', '[type=submit],.submit', function(e) { | ||
445 | + e.preventDefault(); | ||
446 | + Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that); | ||
447 | + return false; | ||
448 | + }); | ||
449 | + } | ||
450 | + Mibao.prototype.mibao_cb = function(data) { | ||
451 | + var status_code = data.code; | ||
452 | + var msg = data.msg; | ||
453 | + if (0 == status_code) { | ||
454 | + Core.Data.safe_question = msg.question; | ||
455 | + Core.Data.safe_answer = msg.answer; | ||
456 | + } | ||
457 | + // 显示一个成功信息,并跳转到home | ||
458 | + Core.showTips("成功设置密保!", true); | ||
459 | + this.isValid = false; | ||
460 | + Core.showMod('home'); | ||
461 | + } | ||
462 | + Core.registerMod('mibao', Mibao); | ||
463 | + | ||
464 | + // 找回密码模块 | ||
465 | + var Find_pwd = function(modId) { | ||
466 | + Module.call(this, modId); | ||
467 | + } | ||
468 | + Core.inherit(Find_pwd, Module); | ||
469 | + Find_pwd.prototype.bind = function() { | ||
470 | + var that = this; | ||
471 | + var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"]; | ||
472 | + var pwd_header_back = { | ||
473 | + 0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>', | ||
474 | + 1 : '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>' | ||
475 | + }; | ||
476 | + var browser = { | ||
477 | + versions: function() { | ||
478 | + var u = navigator.userAgent, | ||
479 | + app = navigator.appVersion; | ||
480 | + return { //移动终端浏览器版本信息 | ||
481 | + trident: u.indexOf('Trident') > -1, | ||
482 | + presto: u.indexOf('Presto') > -1, | ||
483 | + webKit: u.indexOf('AppleWebKit') > -1, | ||
484 | + gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, | ||
485 | + mobile: !!u.match(/AppleWebKit.*Mobile.*/), | ||
486 | + ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), | ||
487 | + android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, | ||
488 | + iPhone: u.indexOf('iPhone') > -1, | ||
489 | + iPad: u.indexOf('iPad') > -1, | ||
490 | + webApp: u.indexOf('Safari') == -1 | ||
491 | + }; | ||
492 | + }(), | ||
493 | + language: (navigator.browserLanguage || navigator.language).toLowerCase() | ||
494 | + }; | ||
495 | + if (browser.versions.mobile) { //判断是否是移动设备打开 | ||
496 | + var ua = navigator.userAgent.toLowerCase(); | ||
497 | + if (browser.versions.ios) { | ||
498 | + //是否在IOS浏览器打开 | ||
499 | + $("#js_kefu_qq").href = "mqq://im/chat?chat_type=wpa&uin=2739920773&version=1&src_type=web"; | ||
500 | + $("#js_player").href = "mqq://im/chat?chat_type=wpa&uin=167355030&version=1&src_type=web"; | ||
501 | + } | ||
502 | + if (browser.versions.android) { | ||
503 | + //是否在安卓浏览器打开 | ||
504 | + $("#js_kefu_qq").href = "mqqwpa://im/chat?chat_type=wpa&uin=2739920773"; | ||
505 | + $("#js_player").href = "mqqwpa://im/chat?chat_type=wpa&uin=167355030"; | ||
506 | + } | ||
507 | + } else { | ||
508 | + //否则就是PC浏览器打开 | ||
509 | + $("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes"; | ||
510 | + $("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes"; | ||
511 | + } | ||
512 | + that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码 | ||
513 | + var $self = $(this) | ||
514 | + phone = $("#js_findPSW_mobile").val(); | ||
515 | + Core.ajax({ | ||
516 | + type:"post", | ||
517 | + url:"/sms_validate_code/?mobile="+phone, | ||
518 | + success:function(msg){ | ||
519 | + if(msg.length == 0){//为空(已经发送) | ||
520 | + Core.showTips('验证码发送成功,请注意查收', true); | ||
521 | + $self.addClass("disabled"); | ||
522 | + var counter = 60; | ||
523 | + var timer = setInterval(function(){ | ||
524 | + if(counter > 0){ | ||
525 | + $self.text(counter + "秒再获取"); | ||
526 | + counter --; | ||
527 | + }else{ | ||
528 | + clearInterval(timer); | ||
529 | + $self.text("获取验证码"); | ||
530 | + $self.removeClass("disabled"); | ||
531 | + } | ||
532 | + },1000); | ||
533 | + }else{ | ||
534 | + Core.showTips(msg, true); | ||
535 | + } | ||
536 | + } | ||
537 | + }); | ||
538 | + }); | ||
539 | + that.$c.on("click","#js_findPSW_confirm",function(){ | ||
540 | + var code = that.$c.find("#js_findPSW_ranks").val(), | ||
541 | + accout = $("#js_findPSW_accout").val(), | ||
542 | + phoneTest = $("#js_findPSW_mobile").val(), | ||
543 | + //iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; | ||
544 | + iphoneReg = /^1(3|4|5|7|8)\d{9}$/; | ||
545 | + if($.trim(accout) == ""){ | ||
546 | + Core.showTips('请输入账号!', false); | ||
547 | + return false; | ||
548 | + } | ||
549 | + if($.trim(phoneTest) == ""){ | ||
550 | + Core.showTips('请输入手机号码!', false); | ||
551 | + return false; | ||
552 | + } | ||
553 | + if(!iphoneReg.test(phoneTest)){ | ||
554 | + Core.showTips('请输入11位手机号码!', false); | ||
555 | + return false; | ||
556 | + } | ||
557 | + if($.trim(code) == ""){ | ||
558 | + Core.showTips('请输入验证码!', true); | ||
559 | + return false; | ||
560 | + } | ||
561 | + Core.ajax({ | ||
562 | + type:"post", | ||
563 | + url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code, | ||
564 | + data:{format:"json"}, | ||
565 | + dataType:"json", | ||
566 | + success:function(res){ | ||
567 | + if(res.code === 0){ | ||
568 | + var message = JSON.parse(res.msg); | ||
569 | + Core.showTips('验证成功!请设置新密码', true); | ||
570 | + that.$c.find("input[name='pwd_code']").val(message.pwd_code); | ||
571 | + that.$c.find(".user-center span").html(pwd_header[4]); | ||
572 | + that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(3).removeClass("hide").siblings("div").addClass("hide"); | ||
573 | + that.$c.find("#js_UserName").text(message.username); | ||
574 | + $("input[name='loginUserName']").val(message.username); | ||
575 | + }else{ | ||
576 | + Core.showTips(res.msg, true); | ||
577 | + } | ||
578 | + } | ||
579 | + }); | ||
580 | + }); | ||
581 | + that.$c.on("click","#returnhome",function(){ | ||
582 | + that.$c.find(".user-center span").html("找回密码"); | ||
583 | + }); | ||
584 | + that.$c.on("click","#js_confirm_resetnewpsw",function(){ | ||
585 | + var NewPsw = that.$c.find("#js_reset_newpsw").val(), | ||
586 | + NewKey = that.$c.find("input[name='pwd_code']").val(), | ||
587 | + account = $("input[name='loginUserName']").val(); | ||
588 | + var names = localStorage.getItem('user_names'); | ||
589 | + names = JSON.parse(names); | ||
590 | + Core.ajax({ | ||
591 | + type:"post", | ||
592 | + url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw, | ||
593 | + data:{format:"json"}, | ||
594 | + dataType:"json", | ||
595 | + success:function(res){ | ||
596 | + if(res.code === 0){ | ||
597 | + Core.showTips('重置密码成功!', true); | ||
598 | + $("input[name='loginPassword']").val(NewPsw); | ||
599 | + names[account] = NewPsw; | ||
600 | + localStorage.setItem('user_names',JSON.stringify(names)); | ||
601 | + Core.user_names = names; | ||
602 | + $("#js_reset_newpsw").val(""); | ||
603 | + setTimeout(function() { | ||
604 | + Core.updateMod('login'); | ||
605 | + }, 500); | ||
606 | + }else{ | ||
607 | + Core.showTips(res.msg, true); | ||
608 | + } | ||
609 | + } | ||
610 | + }); | ||
611 | + }); | ||
612 | + | ||
613 | + var checkbox = that.$c.find(".checkbox"); | ||
614 | + var checkbox_type = that.$c.find("i.icon-xuanzhong"); | ||
615 | + var checkboxInput = that.$c.find("input#js_reset_newpsw"); | ||
616 | + | ||
617 | + that.$c.on("click",checkbox,function(e){ | ||
618 | + if(checkbox.hasClass('checkbox-2')){ | ||
619 | + checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | ||
620 | + checkbox_type.addClass("checkbx"); | ||
621 | + checkboxInput.attr("type","password"); | ||
622 | + }else{ | ||
623 | + checkbox_type.parents(".checkbox").addClass("checkbox-2"); | ||
624 | + checkbox_type.removeClass("checkbx"); | ||
625 | + checkboxInput.attr("type","text"); | ||
626 | + } | ||
627 | + }); | ||
628 | + | ||
629 | + that.$c.on('click', '.pwd_box .step-tab li a', function(e) { | ||
630 | + var ipar = $(this).parent("li"), | ||
631 | + iIndex = ipar.index(); | ||
632 | + | ||
633 | + that.$c.find("#js_findPSW_ranks").val(""); | ||
634 | + $("#js_findPSW_accout").val(""); | ||
635 | + $("#js_findPSW_mobile").val(""); | ||
636 | + | ||
637 | + 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"); | ||
638 | + that.$c.find(".user-center span").html(pwd_header[iIndex]); | ||
639 | + that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); | ||
640 | + }); | ||
641 | + | ||
642 | + that.$c.on('click', '.user-center a.back-btn', function(e) { | ||
643 | + $(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show(); | ||
644 | + that.$c.find(".user-center span").html(pwd_header[4]); | ||
645 | + that.$c.find(".user-center a").replaceWith(pwd_header_back[0]); | ||
646 | + }); | ||
647 | + | ||
648 | + that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) { | ||
649 | + $(this).parents(".step-box").hide().siblings(".step-tab").show(); | ||
650 | + that.$c.find(".user-center span").html(pwd_header[4]); | ||
651 | + that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); | ||
652 | + }); | ||
653 | + | ||
654 | + | ||
655 | + that.$c.on('click', '.op-primary', function(e) { | ||
656 | + | ||
657 | + var $form = that.$c.find('.fn-icon-2'); | ||
658 | + e.preventDefault(); | ||
659 | + console.log($form); | ||
660 | + Core.ajax_do($form, that.findpwd_cb, that); | ||
661 | + return false; | ||
662 | + }); | ||
663 | + | ||
664 | + | ||
665 | + that.$c.on('click', '.step-tab .function-list-title', function(e) { | ||
666 | + | ||
667 | + that.$c.find('.step-tab .function-list-content').hide(); | ||
668 | + $(e.target).parent().next().show(); | ||
669 | + that.$c.find('.step-tab .function-list-icon').removeClass('function-list-icon-2') | ||
670 | + $(this).find('.function-list-icon').addClass('function-list-icon-2').addClass('function-list-icon-1') | ||
671 | + if (!$(e.target).parent().next().is('.form')) { | ||
672 | + that.$c.find('.next-btn').hide(); | ||
673 | + } else { | ||
674 | + that.$c.find('.next-btn').show(); | ||
675 | + } | ||
676 | + }); | ||
677 | + } | ||
678 | + Find_pwd.prototype.findpwd_cb = function(data) { | ||
679 | + var code = data.code; | ||
680 | + var msg = data.msg; | ||
681 | + | ||
682 | + if (0 != code) { | ||
683 | + Core.showTips(msg, false); | ||
684 | + return; | ||
685 | + } | ||
686 | + if (typeof msg == 'object') { | ||
687 | + // 回答密保 | ||
688 | + Core.Data.ans_temp = msg; | ||
689 | + Core.updateMod('answer_question'); | ||
690 | + Core.showTips('加载成功.', true,100); | ||
691 | + } else { | ||
692 | + // 通过邮箱 | ||
693 | + Core.showTips(msg, true); | ||
694 | + Core.showMod("login"); | ||
695 | + } | ||
696 | + | ||
697 | + } | ||
698 | + Find_pwd.prototype.show_after = function() { | ||
699 | + var that = this; | ||
700 | + this.$c.find('input[name="username"]').val($('#login input[name="username"]').val()); | ||
701 | + this.$c.find('.sms').html(Core.Data.mobile_helper_number); | ||
702 | + | ||
703 | + var kefu = Core.Data.kefu_info, | ||
704 | + kefuInfo = JSON.stringify(kefu); | ||
705 | + if(typeof(kefuInfo) !== "undefined"){ | ||
706 | + localStorage.setItem("kefuInfo",kefuInfo); | ||
707 | + }else{ | ||
708 | + that.$c.find(".pwd_txt .default_text").css("display","block"); | ||
709 | + that.$c.find(".pwd_txt .get_text").html("").css("display","none"); | ||
710 | + } | ||
711 | + var getItem = localStorage.getItem("kefuInfo"), | ||
712 | + kefu_info = JSON.parse(getItem), | ||
713 | + isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/, | ||
714 | + 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})$/; | ||
715 | + | ||
716 | + if(kefu_info == ""){ | ||
717 | + that.$c.find(".pwd_txt .default_text").css("display","block"); | ||
718 | + that.$c.find(".pwd_txt .get_text").html("").css("display","none"); | ||
719 | + }else{ | ||
720 | + that.$c.find(".pwd_txt .default_text").css("display","none"); | ||
721 | + that.$c.find(".pwd_txt .get_text").html("").css("display","block"); | ||
722 | + for(var key in kefu_info){ | ||
723 | + var reg = /\d+/g, | ||
724 | + str = kefu_info[key], | ||
725 | + ms = str.match(reg), | ||
726 | + result = ms.join("-"); | ||
727 | + | ||
728 | + if( isMob.test(result) || isPhone.test(result) ){ | ||
729 | + var hrefTel = '<a href="tel:'+result+'">'+result+'</a>', | ||
730 | + stringTel = str.split(":")[0]; | ||
731 | + that.$c.find(".pwd_txt .get_text").append('<p>'+stringTel+':'+hrefTel+'</p>'); | ||
732 | + }else{ | ||
733 | + that.$c.find(".pwd_txt .get_text").append('<p>'+kefu_info[key]+'</p>'); | ||
734 | + } | ||
735 | + } | ||
736 | + } | ||
737 | + } | ||
738 | + Core.registerMod('find_pwd', Find_pwd); | ||
739 | + | ||
740 | + // Mibao模块 | ||
741 | + var Bind = function(modId) { | ||
742 | + Module.call(this, modId); | ||
743 | + } | ||
744 | + // 继承基础模块 | ||
745 | + Core.inherit(Bind, Module); | ||
746 | + Bind.prototype.bind = function() { | ||
747 | + var that = this; | ||
748 | + that.$c.on('click', '[type=submit],.submit', function(e) { | ||
749 | + e.preventDefault(); | ||
750 | + Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that); | ||
751 | + return false; | ||
752 | + }); | ||
753 | + that.$c.on('click', '#bind-mobile', function(e) { | ||
754 | + e.preventDefault(); | ||
755 | + that.$c.find('#bind_phone_form').show(); | ||
756 | + return false; | ||
757 | + }); | ||
758 | + that.$c.on('click', '#bind-check', function(e) { | ||
759 | + e.preventDefault(); | ||
760 | + Core.ajax_do($(e.target), that.bind_ch, that); | ||
761 | + return false; | ||
762 | + }); | ||
763 | + } | ||
764 | + Bind.prototype.bind_ch = function(data) { | ||
765 | + var code = data.code; | ||
766 | + Core.Data.bind_statu = data.msg.bind_statu; | ||
767 | + if (data.msg.bind_statu == 1) { | ||
768 | + Core.showTips('电话绑定未成功', false); | ||
769 | + } | ||
770 | + Core.updateMod('bind'); | ||
771 | + } | ||
772 | + Bind.prototype.bind_cb = function(data) { | ||
773 | + | ||
774 | + var code = data.code; | ||
775 | + if (code != 0) | ||
776 | + return; | ||
777 | + $(".bind_phone_tip").html(Core.Data.bind_mobile_tips); | ||
778 | + Core.Data.bind_statu = 1; | ||
779 | + Core.Data.bind_phone = this.$c.find('input[name=mobile]').val(); | ||
780 | + this.$c.find('span.text-info').html(this.$c.find('input[name=mobile]').val()); | ||
781 | + Core.showTips('通过电话确认后可绑定手机!', true); | ||
782 | + | ||
783 | + this.$c.find('#bind_phone_form').hide(); | ||
784 | + this.isValid = false; | ||
785 | + setTimeout(function() { | ||
786 | + Core.updateMod('bind'); | ||
787 | + }, 1000); | ||
788 | + } | ||
789 | + Core.registerMod('bind', Bind); | ||
790 | + | ||
791 | + //绑定手机模块 | ||
792 | + var BindMobile = function(modId){ | ||
793 | + Module.call(this, modId); | ||
794 | + } | ||
795 | + Core.inherit(BindMobile, Module); | ||
796 | + BindMobile.prototype.bind = function(){ | ||
797 | + var that = this; | ||
798 | + var SendMsg = { | ||
799 | + mobileReg : function(iphone){ | ||
800 | + var iphoneReg = /^1(3|4|5|7|8)\d{9}$/, | ||
801 | + phoneTest = $(iphone).val(); | ||
802 | + if($.trim(phoneTest) == ""){ | ||
803 | + Core.showTips('请输入手机号码!', false); | ||
804 | + return false; | ||
805 | + } | ||
806 | + if(!iphoneReg.test(phoneTest)){ | ||
807 | + Core.showTips('请输入11位手机号码!', false); | ||
808 | + return false; | ||
809 | + } | ||
810 | + }, | ||
811 | + send : function(element,iphone){ | ||
812 | + var self = this, | ||
813 | + ele = that.$c; | ||
814 | + ele.on("click",element,function(){ | ||
815 | + var phoneTest = $(iphone).val(); | ||
816 | + if(self.mobileReg(iphone) == false) return false; | ||
817 | + Core.ajax({ | ||
818 | + type:"post", | ||
819 | + url:"/sms_validate_code/?mobile="+phoneTest, | ||
820 | + success:function(msg){ | ||
821 | + if(msg.length == 0){//为空(已经发送) | ||
822 | + Core.showTips('验证码发送成功,请注意查收', true); | ||
823 | + $(element).addClass("disabled"); | ||
824 | + var counter = 60; | ||
825 | + var timer = setInterval(function(){ | ||
826 | + if(counter > 0){ | ||
827 | + $(element).text(counter + "秒再获取"); | ||
828 | + counter --; | ||
829 | + }else{ | ||
830 | + clearInterval(timer); | ||
831 | + $(element).text("获取验证码"); | ||
832 | + $(element).removeClass("disabled"); | ||
833 | + } | ||
834 | + },1000); | ||
835 | + }else{ | ||
836 | + Core.showTips(msg, true); | ||
837 | + } | ||
838 | + } | ||
839 | + }); | ||
840 | + }); | ||
841 | + }, | ||
842 | + bind : function(element,iphone,rank){ | ||
843 | + var self = this, | ||
844 | + ele = that.$c; | ||
845 | + ele.on("click",element,function(){ | ||
846 | + var code = $(rank).val(), | ||
847 | + phoneTest = $(iphone).val(); | ||
848 | + if(self.mobileReg(iphone) == false) return false; | ||
849 | + if($.trim(code) == ""){ | ||
850 | + Core.showTips('请输入验证码!', true); | ||
851 | + return false; | ||
852 | + } | ||
853 | + Core.ajax({ | ||
854 | + type:"post", | ||
855 | + url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code, | ||
856 | + data:{format:"json"}, | ||
857 | + dataType:"json", | ||
858 | + success:function(res){ | ||
859 | + if(res.code === 0){ | ||
860 | + Core.showTips('绑定成功!', true); | ||
861 | + Core.Data.bind_phone = phoneTest; | ||
862 | + setTimeout(function() { | ||
863 | + Core.updateMod('home'); | ||
864 | + }, 500); | ||
865 | + }else{ | ||
866 | + Core.showTips(res.msg, true); | ||
867 | + } | ||
868 | + } | ||
869 | + }); | ||
870 | + }); | ||
871 | + } | ||
872 | + }; | ||
873 | + SendMsg.send("#js_getcode","#js_iphone"); | ||
874 | + SendMsg.bind("#js_conform","#js_iphone","#js_ranks"); | ||
875 | + } | ||
876 | + BindMobile.prototype.show_after = function(){ | ||
877 | + | ||
878 | + } | ||
879 | + Core.registerMod('bindMobile', BindMobile); | ||
880 | + | ||
881 | + //解绑手机模块 | ||
882 | + var UnBindMobile = function(modId){ | ||
883 | + Module.call(this, modId); | ||
884 | + } | ||
885 | + Core.inherit(UnBindMobile, Module); | ||
886 | + UnBindMobile.prototype.bind = function(){ | ||
887 | + var that = this; | ||
888 | + that.$c.on("click","#js_unbind_getcode",function(){ | ||
889 | + var $self = $(this), | ||
890 | + phone = Core.Data.bind_phone; | ||
891 | + Core.ajax({ | ||
892 | + type:"post", | ||
893 | + url:"/sms_validate_code/?mobile="+phone, | ||
894 | + success:function(msg){ | ||
895 | + if(msg.length == 0){//为空(已经发送) | ||
896 | + Core.showTips('验证码发送成功,请注意查收', true); | ||
897 | + $self.addClass("disabled"); | ||
898 | + var counter = 60; | ||
899 | + var timer = setInterval(function(){ | ||
900 | + if(counter > 0){ | ||
901 | + $self.text(counter + "秒再获取"); | ||
902 | + counter --; | ||
903 | + }else{ | ||
904 | + clearInterval(timer); | ||
905 | + $self.text("获取验证码"); | ||
906 | + $self.removeClass("disabled"); | ||
907 | + } | ||
908 | + },1000); | ||
909 | + }else{ | ||
910 | + Core.showTips(msg, true); | ||
911 | + } | ||
912 | + } | ||
913 | + }); | ||
914 | + }); | ||
915 | + that.$c.on("click","#js_unbind",function(){ | ||
916 | + var code = $("#js_unbind_ranks").val(), | ||
917 | + phoneTest = Core.Data.bind_phone; | ||
918 | + if($.trim(code) == ""){ | ||
919 | + Core.showTips('请输入验证码!', true); | ||
920 | + return false; | ||
921 | + } | ||
922 | + Core.ajax({ | ||
923 | + type:"post", | ||
924 | + url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code, | ||
925 | + data:{format:"json"}, | ||
926 | + dataType:"json", | ||
927 | + success:function(res){ | ||
928 | + if(res.code === 0){ | ||
929 | + Core.showTips('解绑成功!', true); | ||
930 | + Core.Data.bind_phone = ""; | ||
931 | + $("#js_iphone").val(""); | ||
932 | + $("#js_ranks").val(""); | ||
933 | + setTimeout(function() { | ||
934 | + Core.updateMod('home'); | ||
935 | + }, 500); | ||
936 | + }else{ | ||
937 | + Core.showTips(res.msg, true); | ||
938 | + } | ||
939 | + } | ||
940 | + }); | ||
941 | + }); | ||
942 | + } | ||
943 | + UnBindMobile.prototype.show_after = function(){ | ||
944 | + var phoneMobile = Core.Data.bind_phone, | ||
945 | + getBefore = phoneMobile.substring(0,3), | ||
946 | + getAfter = phoneMobile.substring(8,11), | ||
947 | + phoneHtml = getBefore+"****"+getAfter; | ||
948 | + this.$c.find(".phoneMobile").html(phoneHtml); | ||
949 | + } | ||
950 | + Core.registerMod('unbindMobile', UnBindMobile); | ||
951 | + | ||
952 | + //实名认证 | ||
953 | + var IdentityCard = function(modId) { | ||
954 | + Module.call(this, modId); | ||
955 | + } | ||
956 | + // 继承基础模块 | ||
957 | + Core.inherit(IdentityCard, Module); | ||
958 | + IdentityCard.prototype.bind = function() { | ||
959 | + var that = this; | ||
960 | + this.$c.on('click', '.submit', function() { | ||
961 | + var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 | ||
962 | + compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 | ||
963 | + compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 | ||
964 | + if($.trim(identityCard) == ""){ | ||
965 | + Core.showTips("请输入身份证号码",false); | ||
966 | + return false; | ||
967 | + }else if(IsIdCard(identityCard) == false){ | ||
968 | + Core.showTips("请输入正确的身份证信息",false); | ||
969 | + return false; | ||
970 | + }else if($.trim(compellationName) == ""){ | ||
971 | + Core.showTips("请输入姓名",false); | ||
972 | + return false; | ||
973 | + }else if(!compellationNameReg.test(compellationName)){ | ||
974 | + Core.showTips("请输入正确的中文姓名",false); | ||
975 | + return false; | ||
976 | + } | ||
977 | + Core.ajax({ | ||
978 | + type:"post", | ||
979 | + url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName, | ||
980 | + data:{format:"json"}, | ||
981 | + dataType:"json", | ||
982 | + success:function(res){ | ||
983 | + if(res.code === 0){ | ||
984 | + Core.showTips('认证成功!', true); | ||
985 | + Core.Data.compellation_name = compellationName; | ||
986 | + Core.Data.identity_card = identityCard; | ||
987 | + setTimeout(function() { | ||
988 | + Core.updateMod('home'); | ||
989 | + }, 500); | ||
990 | + }else{ | ||
991 | + Core.showTips(res.msg, true); | ||
992 | + } | ||
993 | + } | ||
994 | + }); | ||
995 | + }); | ||
996 | + } | ||
997 | + IdentityCard.prototype.show_after = function(){ | ||
998 | + | ||
999 | + } | ||
1000 | + Core.registerMod('identityCard', IdentityCard); | ||
1001 | + | ||
1002 | + //已认证 | ||
1003 | + var IdentityCardOk = function(modId) { | ||
1004 | + Module.call(this, modId); | ||
1005 | + } | ||
1006 | + // 继承基础模块 | ||
1007 | + Core.inherit(IdentityCardOk, Module); | ||
1008 | + IdentityCardOk.prototype.show_after = function(){ | ||
1009 | + var compellation_name = Core.Data.compellation_name,//姓名 | ||
1010 | + identity_card = Core.Data.identity_card;//身份证 | ||
1011 | + if(compellation_name.length == 2){ | ||
1012 | + var getBefore = compellation_name.substring(0,1), | ||
1013 | + nameHtml = getBefore+"*"; | ||
1014 | + }else if(compellation_name.length == 3){ | ||
1015 | + var getBefore = compellation_name.substring(0,1), | ||
1016 | + nameHtml = getBefore+"**"; | ||
1017 | + }else if(compellation_name.length == 4){ | ||
1018 | + var getBefore = compellation_name.substring(0,2), | ||
1019 | + nameHtml = getBefore+"**"; | ||
1020 | + }else if(compellation_name.length > 4){ | ||
1021 | + var getBefore = compellation_name.substring(0,2), | ||
1022 | + starNum = compellation_name.length, | ||
1023 | + star = ""; | ||
1024 | + for(var i = 0;i<starNum - 2;i++){ | ||
1025 | + star += "*"; | ||
1026 | + } | ||
1027 | + nameHtml = getBefore+star; | ||
1028 | + }; | ||
1029 | + if(identity_card.length == 15){ | ||
1030 | + var getBefore = identity_card.substring(0,1), | ||
1031 | + getAfter = identity_card.substring(14,15), | ||
1032 | + cardHtml = getBefore+"*************"+getAfter; | ||
1033 | + }else if(identity_card.length == 18){ | ||
1034 | + var getBefore = identity_card.substring(0,1), | ||
1035 | + getAfter = identity_card.substring(17,18), | ||
1036 | + cardHtml = getBefore+"****************"+getAfter; | ||
1037 | + }; | ||
1038 | + this.$c.find(".compellation_name").html(nameHtml); | ||
1039 | + this.$c.find(".identity_card").html(cardHtml); | ||
1040 | + }; | ||
1041 | + Core.registerMod('identityCard_ok', IdentityCardOk); | ||
1042 | + | ||
1043 | + // Mail模块 | ||
1044 | + var Mail = function(modId) { | ||
1045 | + Module.call(this, modId); | ||
1046 | + } | ||
1047 | + // 继承基础模块 | ||
1048 | + Core.inherit(Mail, Module); | ||
1049 | + Mail.prototype.bind = function() { | ||
1050 | + var that = this; | ||
1051 | + that.$c.on('click', '[type=submit],.submit', function(e) { | ||
1052 | + e.preventDefault(); | ||
1053 | + Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); | ||
1054 | + return false; | ||
1055 | + }); | ||
1056 | + that.$c.on('click', '#change-mail-btn', function(e) { | ||
1057 | + e.preventDefault(); | ||
1058 | + that.$c.find('#bind_mail_form').show(); | ||
1059 | + that.$c.find('#bind-mail-btn').show(); | ||
1060 | + $(this).hide() | ||
1061 | + return false; | ||
1062 | + }); | ||
1063 | + that.$c.on('click', '.op-primary', function(e) { | ||
1064 | + e.preventDefault(); | ||
1065 | + Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); | ||
1066 | + return false; | ||
1067 | + }); | ||
1068 | + } | ||
1069 | + Mail.prototype.mail_cb = function(data) { | ||
1070 | + var code = data.code; | ||
1071 | + Core.Data.bind_mail_statu = 1; | ||
1072 | + Core.Data.mail = this.$c.find('input[name=email]').val(); | ||
1073 | + this.$c.find('span.text-info').html(this.$c.find('input[name=email]').val()); | ||
1074 | + Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true); | ||
1075 | + this.$c.find('#bind_mail_form').hide(); | ||
1076 | + this.isValid = false; | ||
1077 | + setTimeout(function() { | ||
1078 | + Core.updateMod('mail'); | ||
1079 | + }, 1000); | ||
1080 | + } | ||
1081 | + Core.registerMod('mail', Mail); | ||
1082 | + | ||
1083 | + // 重置密码模块 | ||
1084 | + var Reset_pwd = function(modId) { | ||
1085 | + Module.call(this, modId); | ||
1086 | + } | ||
1087 | + // 继承基础模块 | ||
1088 | + Core.inherit(Reset_pwd, Module); | ||
1089 | + | ||
1090 | + Reset_pwd.prototype.bind = function() { | ||
1091 | + this.$c.on('click', '.op-primary', function() { | ||
1092 | + Core.updateMod("modify_pwd"); | ||
1093 | + }); | ||
1094 | + } | ||
1095 | + Core.registerMod('reset_pwd', Reset_pwd); | ||
1096 | + | ||
1097 | + // 回答密保模块 | ||
1098 | + var Answer_question = function(modId) { | ||
1099 | + Module.call(this, modId); | ||
1100 | + } | ||
1101 | + Core.inherit(Answer_question, Module); | ||
1102 | + | ||
1103 | + Answer_question.prototype.bind = function() { | ||
1104 | + var that = this; | ||
1105 | + that.$c.on('click', '.op-primary', function(e) { | ||
1106 | + e.preventDefault(); | ||
1107 | + | ||
1108 | + Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that); | ||
1109 | + return false; | ||
1110 | + }); | ||
1111 | + } | ||
1112 | + Answer_question.prototype.aq_cb = function(data) { | ||
1113 | + console.log(data); | ||
1114 | + var code = data.code; | ||
1115 | + var msg = data.msg; | ||
1116 | + var name = localStorage.getItem('user_names'); | ||
1117 | + Core.updateData(msg); | ||
1118 | + Core.Data.new_pwd = msg.password; | ||
1119 | + | ||
1120 | + name = JSON.parse(name); | ||
1121 | + if(name == null){ | ||
1122 | + name = null; | ||
1123 | + }else{ | ||
1124 | + name[msg.nickname] = msg.password; | ||
1125 | + } | ||
1126 | + | ||
1127 | + localStorage.setItem('user_names',JSON.stringify(name)); | ||
1128 | + Core.user_names = name; | ||
1129 | + | ||
1130 | + // 强制更新显示重置密码模块 | ||
1131 | + Core.updateMod('reset_pwd'); | ||
1132 | + Core.showTips('重置成功.',true,1000); | ||
1133 | + localStorage.setItem('old_pwd',Core.Data.new_pwd); | ||
1134 | + } | ||
1135 | + Core.registerMod('answer_question', Answer_question); | ||
1136 | + | ||
1137 | + var Modify_pwd = function(modId) { | ||
1138 | + Module.call(this, modId); | ||
1139 | + } | ||
1140 | + Core.inherit(Modify_pwd, Module); | ||
1141 | + | ||
1142 | + Modify_pwd.prototype.bind = function() { | ||
1143 | + var that = this; | ||
1144 | + that.$c.on('click', '[type=submit],.submit', function(e) { | ||
1145 | + e.preventDefault(); | ||
1146 | + if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | ||
1147 | + Core.showTips("账号不能有大写字母!"); | ||
1148 | + }else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){ | ||
1149 | + Core.showTips("密码不能有大写字母!"); | ||
1150 | + }else{ | ||
1151 | + Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that); | ||
1152 | + } | ||
1153 | + | ||
1154 | + return false; | ||
1155 | + }); | ||
1156 | + that.$c.on('click', '.op-logout', function(e) { | ||
1157 | + e.preventDefault(); | ||
1158 | + // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, | ||
1159 | + // that); | ||
1160 | + that.logout_cb(); | ||
1161 | + return false; | ||
1162 | + }); | ||
1163 | + } | ||
1164 | + Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb; | ||
1165 | + Modify_pwd.prototype.modify_cb = function(data) { | ||
1166 | + var status_code = data.code; | ||
1167 | + var msg = data.msg, | ||
1168 | + name = this.$c.find('input[name=username]').val(), | ||
1169 | + password = this.$c.find('input[name=newpwd]').val(), | ||
1170 | + name_ary,index_ary; | ||
1171 | + | ||
1172 | + var _d = localStorage.getItem('user_names'), | ||
1173 | + _i = localStorage.getItem('user_indexs'); | ||
1174 | + if (_d) { | ||
1175 | + name_ary = JSON.parse(_d); | ||
1176 | + } | ||
1177 | + if (_i) { | ||
1178 | + index_ary = JSON.parse(_i); | ||
1179 | + } | ||
1180 | + | ||
1181 | + if (status_code == 0) { | ||
1182 | + if(Core.Data.is_guest == 1){ | ||
1183 | + //游客帐号转正 | ||
1184 | + localStorage.removeItem('guest_n'); | ||
1185 | + Core.showTips('升级账号成功!请妥善保管正式账号!', true); | ||
1186 | + delete name_ary[Core.Data.nickname]; | ||
1187 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
1188 | + }else{ | ||
1189 | + Core.showTips('成功修改密码, 请记住新密码。', true); | ||
1190 | + name_ary[msg.username] = password; | ||
1191 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
1192 | + } | ||
1193 | + | ||
1194 | + var getAcc = Core.Data.nickname;//升级前账号 | ||
1195 | + var getIndex = $.inArray(getAcc,index_ary); | ||
1196 | + | ||
1197 | + if(index_ary == null){ | ||
1198 | + index_ary = []; | ||
1199 | + index_ary.unshift(name); | ||
1200 | + localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | ||
1201 | + }else{ | ||
1202 | + if(getIndex == -1){ | ||
1203 | + index_ary.unshift(name); | ||
1204 | + localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | ||
1205 | + }else{ | ||
1206 | + index_ary.splice(getIndex,1); | ||
1207 | + index_ary.unshift(msg.username); | ||
1208 | + localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | ||
1209 | + } | ||
1210 | + } | ||
1211 | + if (name_ary == null) { | ||
1212 | + name_ary = {}; | ||
1213 | + name_ary[name] = password; | ||
1214 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
1215 | + } else { | ||
1216 | + if (!(name in name_ary)) { | ||
1217 | + name_ary[name] = password; | ||
1218 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
1219 | + } else { | ||
1220 | + name_ary[msg.username] = password; | ||
1221 | + localStorage.setItem('user_names', JSON.stringify(name_ary)); | ||
1222 | + } | ||
1223 | + } | ||
1224 | + | ||
1225 | + Core.user_names = name_ary; | ||
1226 | + Core.user_indexs = index_ary; | ||
1227 | + | ||
1228 | + Core.Data.is_guest = msg.is_guest; | ||
1229 | + Core.Data.username = msg.username; | ||
1230 | + Core.Data.nickname = msg.nickname; | ||
1231 | + $("input[name='loginUserName']").val(Core.Data.username); | ||
1232 | + $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); | ||
1233 | + // 强制更新显示home模块,模块自刷新 | ||
1234 | + this.isValid = false; | ||
1235 | + Core.updateMod('home'); | ||
1236 | + } else { | ||
1237 | + Core.showTips(msg, false); | ||
1238 | + } | ||
1239 | + } | ||
1240 | + Core.registerMod('modify_pwd', Modify_pwd); | ||
1241 | + | ||
1242 | + var Frame = function(modId) { | ||
1243 | + Module.call(this, modId); | ||
1244 | + } | ||
1245 | + Core.inherit(Frame, Module); | ||
1246 | + Frame.prototype.bind = function() { | ||
1247 | + var that = this; | ||
1248 | + that.$c.on('click', '.scroll-btn', function(e) { | ||
1249 | + e.preventDefault(); | ||
1250 | + e.stopPropagation(); | ||
1251 | + var $frame = that.$c.find('iframe'); | ||
1252 | + var h1 = $frame.height(); | ||
1253 | + var h2 = that.$c.find('.ios_scroll').height(); | ||
1254 | + var top = parseInt($frame.css('margin-top')); | ||
1255 | + if ($(e.currentTarget).hasClass('scroll-up')) { | ||
1256 | + if (Math.abs(top) + 20 > (h1 - h2)) return; | ||
1257 | + $frame.css('margin-top', top - 50); | ||
1258 | + } else { | ||
1259 | + if (top >= 0) return; | ||
1260 | + $frame.css('margin-top', top + 50); | ||
1261 | + } | ||
1262 | + }); | ||
1263 | + } | ||
1264 | + Frame.prototype.show_after = function() { | ||
1265 | + var that = this; | ||
1266 | + var _des = Core.last_mod ? Core.last_mod : 'home'; | ||
1267 | + var $frame = that.$c.find('iframe'); | ||
1268 | + var $div = that.$c.find('.ios_scroll'); | ||
1269 | + var isFix = that.$c.is('.fix, .nofix'); | ||
1270 | + this.$c.find('a.btn.pull-left').attr('href', '#' + _des); | ||
1271 | + $frame[0].onload = function() { | ||
1272 | + that.$c.find('#loading_frame').hide(); | ||
1273 | + if (Core.isAndroid && !isFix) { | ||
1274 | + var h1 = $frame.height(); | ||
1275 | + var h2 = $div.height(); | ||
1276 | + if (h1 > h2) { | ||
1277 | + //android 低版本浏览器,需要提供手动滚动iframe | ||
1278 | + that.$c.addClass('fix'); | ||
1279 | + } else { | ||
1280 | + that.$c.addClass('nofix'); | ||
1281 | + } | ||
1282 | + } | ||
1283 | + } | ||
1284 | + } | ||
1285 | + Core.registerMod('frame', Frame); | ||
1286 | + | ||
1287 | + /** | ||
1288 | + * 公告活动记录模块 | ||
1289 | + */ | ||
1290 | + var Activity = function(modId) { | ||
1291 | + this.myScroll = null; | ||
1292 | + this.cur_id = null; | ||
1293 | + Module.call(this, modId); | ||
1294 | + } | ||
1295 | + Core.inherit(Activity, Module); | ||
1296 | + Activity.prototype.bind = function() { | ||
1297 | + var that = this; | ||
1298 | + that.$c.on('click', 'li>a.item', function(e) { | ||
1299 | + e.preventDefault(); | ||
1300 | + /* | ||
1301 | + * @todo-list bug fixed in android,the click event fired twice! | ||
1302 | + */ | ||
1303 | + if (Core.cur_mod == 'activity_detail') | ||
1304 | + return; | ||
1305 | + var $e = $(e.target); | ||
1306 | + if (!$e.is('a')) | ||
1307 | + $e = $e.parent(); | ||
1308 | + var id = $e.attr('data-id'); | ||
1309 | + if (id == that.cur_id) { | ||
1310 | + Core.Data.activity_update = false; | ||
1311 | + Core.showMod('activity_detail'); | ||
1312 | + return false; | ||
1313 | + } | ||
1314 | + that.cur_id = id; | ||
1315 | + Core.Data.activity_update = true; | ||
1316 | + Core.showTips('加载中...', true, 2000); | ||
1317 | + $e.data('path', '/sdk/notice/view/?id=' + id); | ||
1318 | + Core.load_json($e, function(data) { | ||
1319 | + Core.Data.activity_detail = data; | ||
1320 | + Core.showTips('加载完成!', true, 2000); | ||
1321 | + Core.updateMod('activity_detail'); | ||
1322 | + }, that); | ||
1323 | + // $.getJSON('/sdk/notice/view/?id=' + id, function(data) { | ||
1324 | + // Core.Data.activity_detail = data; | ||
1325 | + // Core.showTips('加载完成!', true, 2000); | ||
1326 | + // Core.updateMod('activity_detail'); | ||
1327 | + // }); | ||
1328 | + return false; | ||
1329 | + }); | ||
1330 | + that.$c.on('click', 'li.more a', function(e) { | ||
1331 | + e.preventDefault(); | ||
1332 | + Core.load_html($(e.target), that.refresh, that); | ||
1333 | + return false; | ||
1334 | + }); | ||
1335 | + } | ||
1336 | + Activity.prototype.refresh = function() { | ||
1337 | + this.myScroll.refresh(); | ||
1338 | + } | ||
1339 | + Activity.prototype.show_after = function() { | ||
1340 | + if (this.$c.find('.activity-list').children().length == 0) { | ||
1341 | + Core.load_html(this.$c.find('.activity-list'), | ||
1342 | + this.act_cb, this); | ||
1343 | + } | ||
1344 | + var $badge = this.$c.find('.badge'); | ||
1345 | + if ($badge.length == 0) { | ||
1346 | + if (Core.Data.msg_count > 0) { | ||
1347 | + var $btn = this.$c.find('.badge_msg'); | ||
1348 | + $btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html()); | ||
1349 | + } | ||
1350 | + } | ||
1351 | + } | ||
1352 | + Activity.prototype.act_cb = function(data) { | ||
1353 | + this.myScroll = new iScroll('activity_wrapper'); | ||
1354 | + } | ||
1355 | + Core.registerMod('activity', Activity); | ||
1356 | + | ||
1357 | + /** | ||
1358 | + * 公告活动详细模块 | ||
1359 | + */ | ||
1360 | + var Activity_detail = function(modId) { | ||
1361 | + this.myScroll = null; | ||
1362 | + Module.call(this, modId); | ||
1363 | + } | ||
1364 | + Core.inherit(Activity_detail, Module); | ||
1365 | + Activity_detail.prototype.bind = function() { | ||
1366 | + var that = this; | ||
1367 | + } | ||
1368 | + Activity_detail.prototype.show_after = function() { | ||
1369 | + var that = this; | ||
1370 | + if (Core.Data.activity_update) { | ||
1371 | + console.log('new scroller'); | ||
1372 | + this.myScroll = new iScroll('detail_scroller'); | ||
1373 | + that.myScroll.refresh(); | ||
1374 | + this.$c.find('.scroll img').on('load', function(e) { | ||
1375 | + console.log('img loaded in scroll'); | ||
1376 | + that.myScroll.refresh(); | ||
1377 | + }); | ||
1378 | + } | ||
1379 | + } | ||
1380 | + | ||
1381 | + Core.registerMod('activity_detail', Activity_detail); | ||
1382 | + /** | ||
1383 | + * 消息列表模块 | ||
1384 | + */ | ||
1385 | + var Message = function(modId) { | ||
1386 | + this.myScroll = null; | ||
1387 | + this.cur_id = null; | ||
1388 | + Module.call(this, modId); | ||
1389 | + } | ||
1390 | + Core.inherit(Message, Module); | ||
1391 | + Message.prototype.bind = function() { | ||
1392 | + var that = this; | ||
1393 | + that.$c.on('click', 'li>a.item', function(e) { | ||
1394 | + e.preventDefault(); | ||
1395 | + e.stopPropagation(); | ||
1396 | + /* | ||
1397 | + * @todo-list bug fixed in android,the click event fired twice! | ||
1398 | + */ | ||
1399 | + if (Core.cur_mod == 'message_detail') | ||
1400 | + return; | ||
1401 | + var $e = $(e.currentTarget); | ||
1402 | + var id = $e.attr('data-id'); | ||
1403 | + if (id == that.cur_id) { | ||
1404 | + Core.showMod('message_detail'); | ||
1405 | + return false; | ||
1406 | + } | ||
1407 | + that.cur_id = id; | ||
1408 | + $e.data('path', '/message/' + id + '.html?format=json'); | ||
1409 | + Core.load_json($e, function(data) { | ||
1410 | + Core.Data.message_detail = data; | ||
1411 | + Core.showTips('加载完成!', true, 2000); | ||
1412 | + Core.updateMod('message_detail'); | ||
1413 | + }, that); | ||
1414 | + return false; | ||
1415 | + }); | ||
1416 | + that.$c.on('click', 'li.more a', function(e) { | ||
1417 | + e.preventDefault(); | ||
1418 | + Core.load_html($(e.target), that.refresh, that); | ||
1419 | + return false; | ||
1420 | + }); | ||
1421 | + } | ||
1422 | + Message.prototype.refresh = function() { | ||
1423 | + this.myScroll.refresh(); | ||
1424 | + } | ||
1425 | + Message.prototype.show_after = function() { | ||
1426 | + if (this.$c.find('.message-list').children().length == 0) { | ||
1427 | + Core.load_html(this.$c.find('.message-list'), this.act_cb, | ||
1428 | + this); | ||
1429 | + } | ||
1430 | + } | ||
1431 | + Message.prototype.act_cb = function(data) { | ||
1432 | + this.myScroll = new iScroll('message_wrapper'); | ||
1433 | + } | ||
1434 | + Core.registerMod('message', Message); | ||
1435 | + | ||
1436 | + /** | ||
1437 | + * 消息内容详细模块 | ||
1438 | + */ | ||
1439 | + var Message_detail = function(modId) { | ||
1440 | + Module.call(this, modId); | ||
1441 | + } | ||
1442 | + Core.inherit(Message_detail, Module); | ||
1443 | + | ||
1444 | + Core.registerMod('message_detail', Message_detail); | ||
1445 | + | ||
1446 | + | ||
1447 | + function login_init() { | ||
1448 | + | ||
1449 | + var names = localStorage.getItem("user_names"), | ||
1450 | + userIndexs = localStorage.getItem("user_indexs"); | ||
1451 | + names = JSON.parse(names); | ||
1452 | + if (names == null){ | ||
1453 | + names = null | ||
1454 | + } | ||
1455 | + else { | ||
1456 | + delete names["undefined"]; | ||
1457 | + var user_indexs = []; | ||
1458 | + for (var item in names){//遍历对象,排序 | ||
1459 | + if($.inArray(item,user_indexs) == -1){ | ||
1460 | + user_indexs.unshift(item); | ||
1461 | + } | ||
1462 | + } | ||
1463 | + userIndexs = user_indexs; | ||
1464 | + localStorage.setItem('user_indexs', JSON.stringify(userIndexs)); | ||
1465 | + } | ||
1466 | + | ||
1467 | + if ($.isArray(names)) { | ||
1468 | + //旧版本,直接清除 | ||
1469 | + var i, l, _names = {}; | ||
1470 | + for (i = 0, l = names.length; i < l; i++) { | ||
1471 | + _names[names[i]] = ''; | ||
1472 | + } | ||
1473 | + names = _names | ||
1474 | + localStorage.setItem('user_names', JSON.stringify(names)); | ||
1475 | + } | ||
1476 | + Core.user_names = names; | ||
1477 | + Core.user_indexs = userIndexs; | ||
1478 | + | ||
1479 | + if (names) { | ||
1480 | + for (var item in names) { | ||
1481 | + Core.first_user = item; | ||
1482 | + Core.first_password = names[item]; | ||
1483 | + break; | ||
1484 | + } | ||
1485 | + } | ||
1486 | + $("input#js_login_username").val(Core.first_user); | ||
1487 | + $("input#js_login_password").val(Core.first_password); | ||
1488 | + } | ||
1489 | + login_init(); | ||
1490 | + if (window.isGetData == 1) { | ||
1491 | + // 兼容旧版本sdk | ||
1492 | + $('#loading').hide(); | ||
1493 | + Core.init(); | ||
1494 | + } else { | ||
1495 | + window.isGetData = 1; | ||
1496 | + } | ||
1497 | + } | ||
1498 | +})(); | ||
1499 | + | ||
1500 | +$(document).on("click", ".mask", function(){ | ||
1501 | + $("input[type=password]").bind('cut copy paste', function(e){ | ||
1502 | + return false; | ||
1503 | + }); | ||
1504 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/js/pay.min.js
0 → 100644
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 | + '您的评价: <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 |
1 | +/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){return n.apply(b,v.call(arguments,0).concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice;this.listeners=this.listeners||{},a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),this.$results.append(d)},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")});var f=e.filter("[aria-selected=true]");f.length>0?f.first().trigger("mouseenter"):e.first().trigger("mouseenter")})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";{a(h)}this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b){var c=this,d=b.id+"-results";this.$results.attr("id",d),b.on("results:all",function(a){c.clear(),c.append(a.data),b.isOpen()&&c.setClasses()}),b.on("results:append",function(a){c.append(a.data),b.isOpen()&&c.setClasses()}),b.on("query",function(a){c.showLoading(a)}),b.on("select",function(){b.isOpen()&&c.setClasses()}),b.on("unselect",function(){b.isOpen()&&c.setClasses()}),b.on("open",function(){c.$results.attr("aria-expanded","true"),c.$results.attr("aria-hidden","false"),c.setClasses(),c.ensureHighlightVisible()}),b.on("close",function(){c.$results.attr("aria-expanded","false"),c.$results.attr("aria-hidden","true"),c.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=c.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=c.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?c.trigger("close"):c.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=c.getHighlightedResults(),b=c.$results.find("[aria-selected]"),d=b.index(a);if(0!==d){var e=d-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=c.$results.offset().top,h=f.offset().top,i=c.$results.scrollTop()+(h-g);0===e?c.$results.scrollTop(0):0>h-g&&c.$results.scrollTop(i)}}),b.on("results:next",function(){var a=c.getHighlightedResults(),b=c.$results.find("[aria-selected]"),d=b.index(a),e=d+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=c.$results.offset().top+c.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=c.$results.scrollTop()+h-g;0===e?c.$results.scrollTop(0):h>g&&c.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){c.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=c.$results.scrollTop(),d=c.$results.get(0).scrollHeight-c.$results.scrollTop()+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&d<=c.$results.height();e?(c.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(c.$results.scrollTop(c.$results.get(0).scrollHeight-c.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var d=a(this),e=d.data("data");return"true"===d.attr("aria-selected")?void(c.options.get("multiple")?c.trigger("unselect",{originalEvent:b,data:e}):c.trigger("close")):void c.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var b=a(this).data("data");c.getHighlightedResults().removeClass("select2-results__option--highlighted"),c.trigger("results:focus",{data:b,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a){var b=this,d=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){b.trigger("focus",a)}),this.$selection.on("blur",function(a){b.trigger("blur",a)}),this.$selection.on("keydown",function(a){b.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){b.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){b.update(a.data)}),a.on("open",function(){b.$selection.attr("aria-expanded","true"),b.$selection.attr("aria-owns",d),b._attachCloseHandler(a)}),a.on("close",function(){b.$selection.attr("aria-expanded","false"),b.$selection.removeAttr("aria-activedescendant"),b.$selection.removeAttr("aria-owns"),b.$selection.focus(),b._detachCloseHandler(a)}),a.on("enable",function(){b.$selection.attr("tabindex",b._tabindex)}),a.on("disable",function(){b.$selection.attr("tabindex","-1")})},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c){function d(){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},d.prototype.bind=function(a){var b=this;d.__super__.bind.apply(this,arguments);var c=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",c),this.$selection.attr("aria-labelledby",c),this.$selection.on("mousedown",function(a){1===a.which&&b.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),a.on("selection:update",function(a){b.update(a.data)})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){var b=this.options.get("templateSelection"),c=this.options.get("escapeMarkup");return c(b(a))},d.prototype.selectionContainer=function(){return a("<span></span>")},d.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.display(b),d=this.$selection.find(".select2-selection__rendered");d.empty().append(c),d.prop("title",b.title||b.text)},d}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(){var b=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){b.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(c){var d=a(this),e=d.parent(),f=e.data("data");b.trigger("unselect",{originalEvent:c,data:f})})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){var b=this.options.get("templateSelection"),c=this.options.get("escapeMarkup");return c(b(a))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.display(e),g=this.selectionContainer();g.append(f),g.prop("title",e.title||e.text),g.data("data",e),b.push(g)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(){function a(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},a.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},a}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle")}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus()}),b.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val(""),e.$search.focus()}),b.on("enable",function(){e.$search.prop("disabled",!1)}),b.on("disable",function(){e.$search.prop("disabled",!0)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e.trigger("blur",a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}}),this.$selection.on("input",".select2-search--inline",function(){e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input",".select2-search--inline",function(a){e.handleSearch(a)})},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.trigger("open"),this.$search.val(b.text+" ")},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a){var b=this;this.container=a,a.on("select",function(a){b.select(a.data)}),a.on("unselect",function(a){b.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={}; | ||
2 | +if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=(c.extend(!0,{},l,j),this.option(l));k.replaceWith(m)}else{var n=this.option(j);if(j.children){var o=this.convertToOptions(j.children);b.appendMany(n,o)}h.push(n)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(b,c){this.ajaxOptions=this._applyDefaults(c.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),a.__super__.constructor.call(this,b,c)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return{q:a.term}},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url(a)),"function"==typeof f.data&&(f.data=f.data(a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");if(void 0!==f&&(this.createTag=f),b.call(this,c,d),a.isArray(e))for(var g=0;g<e.length;g++){var h=e[g],i=this._normalizeItem(h),j=this.option(i);this.$element.append(j)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(){var b=(this._lastTag,this.$element.find("option[data-select2-tag]"));b.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(a,b,c){function d(a){e.select(a)}var e=this;b.term=b.term||"";var f=this.tokenizer(b,this.options,d);f.term!==b.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),b.term=f.term),a.call(this,b,c)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);e(m),g=g.substr(h+1)||"",h=0}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.position=function(){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a){function b(){}return b.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},b.prototype.handleSearch=function(){if(!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},b.prototype.showSearch=function(){return!0},b}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="option load-more" role="treeitem"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(a,b,c){this.$dropdownParent=c.get("dropdownParent")||document.body,a.call(this,b,c)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c){var d=this,e="scroll.select2."+c.id,f="resize.select2."+c.id,g="orientationchange.select2."+c.id,h=this.$container.parents().filter(b.hasScroll);h.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),h.on(e,function(){var b=a(this).data("select2-scroll-position");a(this).scrollTop(b.y)}),a(window).on(e+" "+f+" "+g,function(){d._positionDropdown(),d._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c){var d="scroll.select2."+c.id,e="resize.select2."+c.id,f="orientationchange.select2."+c.id,g=this.$container.parents().filter(b.hasScroll);g.off(d),a(window).off(d+" "+e+" "+f)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=(this.$container.position(),this.$container.offset());f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom};c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(){d._handleSelectOnClose()})},a.prototype._handleSelectOnClose=function(){var a=this.getHighlightedResults();a.length<1||this.trigger("select",{data:a.data("data")})},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close")},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend({},this.defaults,l),null==l.dataAdapter){if(l.dataAdapter=null!=l.ajax?o:null!=l.data?n:m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.selectionAdapter=l.multiple?e:d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=a.prop("dir")?a.prop("dir"):a.closest("[dir]").prop("dir")?a.closest("[dir]").prop("dir"):"ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this._sync=c.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",b._sync,!1)},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("focus",function(){a.$container.addClass("select2-container--focus")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open"),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ENTER?(a.trigger("results:select"),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle"),b.preventDefault()):c===d.UP?(a.trigger("results:previous"),b.preventDefault()):c===d.DOWN?(a.trigger("results:next"),b.preventDefault()):(c===d.ESC||c===d.TAB)&&(a.close(),b.preventDefault()):(c===d.ENTER||c===d.SPACE||(c===d.DOWN||c===d.UP)&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},e.prototype.close=function(){this.isOpen()&&this.trigger("close")},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(a,b,c,d){if(b("jquery.mousewheel"),null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){{var d=a.extend({},b,!0);new c(a(this),d)}}),this;if("string"==typeof b){var d=this.data("select2");null==d&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2.");var f=Array.prototype.slice.call(arguments,1),g=d[b](f);return a.inArray(b,e)>-1?this:g}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),b.define("jquery.mousewheel",["jquery"],function(a){return a}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
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 |
publicAndroidSDK/assets/sdk/js/zepto.min.js
0 → 100644
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 |
publicAndroidSDK/assets/sdk/login.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | +<meta name="viewport" content="width=device-width, user-scalable=no" /> | ||
5 | +<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
6 | +<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
7 | +<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
8 | +<meta name="format-detection" content="telephone=no"> | ||
9 | +<meta name="screen-orientation" content="portrait"> | ||
10 | +<meta name="full-screen" content="yes"> | ||
11 | +<meta http-equiv="x-ua-compatible" content="IE=edge" /> | ||
12 | + | ||
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" /> | ||
15 | + | ||
16 | + | ||
17 | +<title> | ||
18 | +平台登录 | ||
19 | +</title> | ||
20 | +</head> | ||
21 | +<body> | ||
22 | +<input type="hidden" name="loginUserName" value=""> | ||
23 | +<input type="hidden" name="loginPassword" value=""> | ||
24 | +<div class="mask"> | ||
25 | +<div class="container_load" id="loading"> | ||
26 | + <div class="content"> | ||
27 | + <div class="circle"></div> | ||
28 | + <div class="circle1"></div> | ||
29 | + </div> | ||
30 | +</div> | ||
31 | +<div class="alert alert-success hide" id="alert"> | ||
32 | + <!--<button type="button" class="close" data-dismiss="alert">×</button>--> | ||
33 | + <span></span> | ||
34 | +</div> | ||
35 | +<!-- 登录模块 --> | ||
36 | +<section id="login" class="" data-replace="1"> | ||
37 | + <div class="new-sdk-container"> | ||
38 | + <div class="new-container-box"> | ||
39 | + <div class="SDK-titlebox"></div> | ||
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> | ||
42 | + <div class="new-sdk-main"> | ||
43 | + <div class="inputbox clearfix" style="position: relative;"> | ||
44 | + <div class="ileft">账号:</div> | ||
45 | + <div class="iright"> | ||
46 | + | ||
47 | + <input type="text" name="username" placeholder="请输入账号" id="js_login_username"> | ||
48 | + <div class="bottom-icon drop-down"> | ||
49 | + <i class="iconfont icon-xiangxia"></i> | ||
50 | + </div> | ||
51 | + </div> | ||
52 | + <div class="pull-box horizontall"> | ||
53 | + <ul class="drop-ul"> | ||
54 | + | ||
55 | + </ul> | ||
56 | + </div> | ||
57 | + </div> | ||
58 | + <div class="inputbox clearfix"> | ||
59 | + <div class="ileft">密码:</div> | ||
60 | + <div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div> | ||
61 | + </div> | ||
62 | + <div class="other-login clearfix"> | ||
63 | + <p class="other-login-bx 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> | ||
66 | + </a> | ||
67 | + | ||
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> | ||
70 | + | ||
71 | + <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide"> | ||
72 | + </a> | ||
73 | + </p> | ||
74 | + | ||
75 | + <label><a href="#find_pwd" class="forgetpsw">找回密码</a></label> | ||
76 | + <div class="clear"></div> | ||
77 | + | ||
78 | + <label onclick="" class="input-control pull-left hide" > | ||
79 | + <input type="checkbox" checked="checked" class="eg" ></input> | ||
80 | + 进入帐号管理界面 | ||
81 | + </label> | ||
82 | + </div> | ||
83 | + </div> | ||
84 | + <ul class="inline-btn login-inline-btn"> | ||
85 | + <li> | ||
86 | + <a method="post" class="btn btn_pri_block" href="#register">一键注册</a> | ||
87 | + | ||
88 | + </li> | ||
89 | + <li> | ||
90 | +<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> --> | ||
91 | + | ||
92 | + <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> | ||
93 | + </li> | ||
94 | + </ul> | ||
95 | + </form> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | +</section> | ||
99 | +<!-- end --> | ||
100 | +<!-- 登录前模块 --> | ||
101 | +<section id="login_before" class="hide" data-replace="1"> | ||
102 | + | ||
103 | + <div class="new-sdk-container"> | ||
104 | + <div class="new-container-box"> | ||
105 | + <div class="SDK-titlebox"></div> | ||
106 | + <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | ||
107 | + <div class="login-third-list"> | ||
108 | + <div class="title">请选择快速登录</div> | ||
109 | + <div class="third-list"> | ||
110 | + <ul> | ||
111 | + <li class="login_case_qq"><a title="QQ帐号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li> | ||
112 | + <li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li> | ||
113 | + <div class="clear"></div> | ||
114 | + </ul> | ||
115 | + </div> | ||
116 | + <div class="only-btn"><a href="#login">返回</a></div> | ||
117 | + </div> | ||
118 | + </div> | ||
119 | + </div> | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | +</section> | ||
124 | +<!-- end--> | ||
125 | +<!-- 注册模块 --> | ||
126 | +<section id="register" class="hide"> | ||
127 | + | ||
128 | + | ||
129 | + <div class="new-sdk-container"> | ||
130 | + <div class="SDK-titlebox"></div> | ||
131 | + <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | ||
132 | + <form action="/sdk/register" class="ajax clearfix"> | ||
133 | + <div class="new-sdk-main"> | ||
134 | + <div class="inputbox clearfix"> | ||
135 | + <div class="ileft">账号:</div> | ||
136 | + <div class="iright"> | ||
137 | + <input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required> | ||
138 | + <!--<div class="bottom-icon drop-down"> | ||
139 | + <i class="iconfont icon-xiangxia"></i> | ||
140 | + </div>--> | ||
141 | + </div> | ||
142 | + </div> | ||
143 | + <div class="inputbox clearfix"> | ||
144 | + <div class="ileft">密码:</div> | ||
145 | + <div class="iright"><input name="password" placeholder="密码长度为6-16个字符,不能包含空格" required></div> | ||
146 | + </div> | ||
147 | + <div class="ag-tx clearfix"> | ||
148 | + <span data-action="agreement" > | ||
149 | + <div class="checkbox checkbox-2 l" > | ||
150 | + <i class="iconfont icon-xuanzhong"></i> | ||
151 | + </div> | ||
152 | + <p class="l">接受<a href="#agreement">网络服务协议</a></p> | ||
153 | + </span> | ||
154 | + | ||
155 | + </div> | ||
156 | + </div> | ||
157 | + <input type="hidden" name="old_usernmae" value="-1"> | ||
158 | + <input type="hidden" name="type" value="-1"> | ||
159 | + <ul class="inline-btn"> | ||
160 | + <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> | ||
161 | + <li><a class="submit btn larg " >确定注册</a></li> | ||
162 | + </ul> | ||
163 | + </form> | ||
164 | + </div> | ||
165 | + | ||
166 | +</section> | ||
167 | +<!-- end --> | ||
168 | +<!-- 协议模块 --> | ||
169 | +<section id="agreement" class="hide"> | ||
170 | + <div class="new-sdk-container"> | ||
171 | + <div class="SDK-titlebox"></div> | ||
172 | + <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | ||
173 | + <div class="new-sdk-content" style="overflow: hidden;"> | ||
174 | + <h3>网络服务协议</h3> | ||
175 | + <div class="content-main" style="height: 220px;"> | ||
176 | + | ||
177 | + <iframe src="agreement.html" name="myiframe" id="iframepage" frameborder="0" scrolling="auto" width="100%"></iframe> | ||
178 | + | ||
179 | + </div> | ||
180 | + </div> | ||
181 | + | ||
182 | + <div class="only-btn inline-btn"> | ||
183 | + <a href="#register" class="submit btn-orange">确定</a> | ||
184 | + <div class="agreement l" style="margin-right: 0;"> | ||
185 | + <div class="checkbox checkbox-2 l" > | ||
186 | + <i class="iconfont icon-xuanzhong"></i> | ||
187 | + </div> | ||
188 | + <p class="l">已阅读</p> | ||
189 | + </div> | ||
190 | + </div> | ||
191 | + </div> | ||
192 | + | ||
193 | +</section> | ||
194 | +<!-- end --> | ||
195 | +<!-- 活动公告模块 --> | ||
196 | +<section id="activity" class="hide" data-auth="1"> | ||
197 | + <div class="new-sdk-container"> | ||
198 | + <div class="SDK-titlebox"></div> | ||
199 | + <div class="user-center"> | ||
200 | + <a href="#home" class="lefticon"> | ||
201 | + <i class="iconfont icon-fanhui"></i> | ||
202 | + </a> | ||
203 | + 活动公告 | ||
204 | + <!--<a href="#message" class="btn-link posrgt"> | ||
205 | + 个人消息 | ||
206 | + </a>--> | ||
207 | + </div> | ||
208 | + <div class="container activity"> | ||
209 | + <div class="box_info_center" style="height: 100%;"> | ||
210 | + <div id="activity_wrapper" style="position: relative" class="scroll"> | ||
211 | + <ol class="activity-list list" data-role="ajax-html" | ||
212 | + data-params-url="/sdk/notice/list?page_size=10" | ||
213 | + data-params-template="tpl_activity"> | ||
214 | + </ol> | ||
215 | + </div> | ||
216 | + </div> | ||
217 | + </div> | ||
218 | + </div> | ||
219 | + | ||
220 | +</section> | ||
221 | +<!-- end --> | ||
222 | +<!-- 活动公告详细页面模块 --> | ||
223 | +<section id="activity_detail" class="hide" data-auth="1" data-attr="dot"> | ||
224 | +</section> | ||
225 | +<!-- end --> | ||
226 | +<!-- 消息列表模块 --> | ||
227 | +<section id="message" class="hide" data-auth="1"> | ||
228 | + <div class="new-sdk-container"> | ||
229 | + <div class="SDK-titlebox"></div> | ||
230 | + <div class="user-center"> | ||
231 | + <a href="#activity" class="lefticon op-back"> | ||
232 | + <i class="iconfont icon-fanhui"></i> | ||
233 | + </a> | ||
234 | + 个人消息 | ||
235 | + </div> | ||
236 | + <div class="container activity"> | ||
237 | + <div class="box_info_center"> | ||
238 | + <div id="message_wrapper" style="position: relative" class="scroll"> | ||
239 | + <ol class="message-list list" data-role="ajax-html" | ||
240 | + data-params-url="/message/list?page_size=10" | ||
241 | + data-params-template="tpl_message_list"> | ||
242 | + </ol> | ||
243 | + </div> | ||
244 | + </div> | ||
245 | + </div> | ||
246 | + </div> | ||
247 | + | ||
248 | +</section> | ||
249 | +<!-- end --> | ||
250 | +<section id="message_detail" class="hide" data-attr="dot"> | ||
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> | ||
256 | +<!-- 找回密码模块 --> | ||
257 | +<section id="find_pwd" class="hide" data-replace="1"> | ||
258 | + <input type="hidden" name="pwd_code" value=""> | ||
259 | + <div class="new-sdk-container"> | ||
260 | + <div class="SDK-titlebox"></div> | ||
261 | + <div class="user-center" style="border-bottom: none;"> | ||
262 | + <a href="#login" class="lefticon"> | ||
263 | + <i class="iconfont icon-fanhui"></i> | ||
264 | + </a> | ||
265 | + <span>找回密码</span> | ||
266 | + </div> | ||
267 | + <div class="pwd_box"> | ||
268 | + <ul class="step-tab"> | ||
269 | + <li><a href="javascript:;">通过手机找回</a></li> | ||
270 | + <li><a href="javascript:;">通过密保找回</a></li> | ||
271 | + <!--<li><a href="javascript:;">通过邮箱找回</a></li>--> | ||
272 | + <li><a href="javascript:;">联系客服</a></li> | ||
273 | + </ul> | ||
274 | + | ||
275 | + <div class="step-box"> | ||
276 | + <div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;"> | ||
277 | + <div class="new-sdk-box"> | ||
278 | + <div class="input" style="padding: 15px 0;"> | ||
279 | + <input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;"> | ||
280 | + </div> | ||
281 | + <div class="input" style="padding: 15px 0;"> | ||
282 | + <input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;"> | ||
283 | + </div> | ||
284 | + <div class="inputCode clearfix"> | ||
285 | + <div class="input fl" style="padding: 15px 0;"> | ||
286 | + <input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;"> | ||
287 | + </div> | ||
288 | + <a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a> | ||
289 | + </div> | ||
290 | + <ul class="inline-btn" style="margin-top: 15px;"> | ||
291 | + <li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li> | ||
292 | + <li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li> | ||
293 | + </ul> | ||
294 | + </div> | ||
295 | + </div> | ||
296 | + <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 class="question-input-box clearfix"> | ||
298 | + <div class="pull-left qib-txt"> | ||
299 | + 您的账户: | ||
300 | + </div> | ||
301 | + <div class="pull-left qib-input"> | ||
302 | + <input type="text" name="username" placeholder="输入您的账号" style="text-align: left;" class="function-input username" required/> | ||
303 | + </div> | ||
304 | + </div> | ||
305 | + | ||
306 | + <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a> | ||
307 | + </div> | ||
308 | + <!--<div id="email_get_pwd_form" action="/user/password_by_mail" todo="password_by_mail_callback" class="function-list-content ajax hide form"> | ||
309 | + | ||
310 | + <input type="text" name="email" placeholder="输入您绑定的邮箱地址" class="function-input mail" style="margin: 0 0 30px;"/> | ||
311 | + <a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a> | ||
312 | + </div>--> | ||
313 | + <div class="function-list-content hide"> | ||
314 | + <div class="pwd_txt"> | ||
315 | + <div class="default_text"> | ||
316 | + <p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p> | ||
317 | + <p>客服电话:<a href="tel:"></a></p> | ||
318 | + <p>玩家交流群:<a href="javascript:;" id="js_player"></a></p> | ||
319 | + </div> | ||
320 | + <div class="get_text"></div> | ||
321 | + </div> | ||
322 | + <a href="javascript:;" class="kefu_subbtn">确定</a> | ||
323 | + </div> | ||
324 | + <div class="reset_psw_mobile hide" style="border-top: 1px solid #fff;"> | ||
325 | + <div class="new-sdk-box"> | ||
326 | + <div class="acount-name"> | ||
327 | + <p style="margin-top: 0;">账号:<span id="js_UserName" style="color: #000;"></span></p> | ||
328 | + </div> | ||
329 | + <div class="inputCode clearfix"> | ||
330 | + <div class="input fl" style="width: 100%; padding:15px 0;"> | ||
331 | + <input type="text" required placeholder="请输入新密码" id="js_reset_newpsw" style="margin: 0; text-align: left; padding: 0 20px;"> | ||
332 | + </div> | ||
333 | + </div> | ||
334 | + <div class="ag-tx clearfix"> | ||
335 | + <span data-action=""> | ||
336 | + <div class="checkbox checkbox-2 l"> | ||
337 | + <i class="iconfont icon-xuanzhong"></i> | ||
338 | + </div> | ||
339 | + <p class="l" style="margin-top: 0;">显示密码</p> | ||
340 | + </span> | ||
341 | + </div> | ||
342 | + <a href="javascript:;" class="btn-orange" id="js_confirm_resetnewpsw">保存修改</a> | ||
343 | + </div> | ||
344 | + </div> | ||
345 | + </div> | ||
346 | + </div> | ||
347 | + | ||
348 | + </div> | ||
349 | +</section> | ||
350 | +<!-- end --> | ||
351 | +<section id="help" class="hide" data-auth="1"> | ||
352 | + <div class="header"> | ||
353 | + <span class="title">手游平台</span> | ||
354 | + <a class="btn pull-left op-back" href="#home">返回</a> | ||
355 | + </div> | ||
356 | + | ||
357 | + <div class="container"> | ||
358 | + <div class="box_info_center"> | ||
359 | + <div class='align-left'> | ||
360 | + | ||
361 | + </div> | ||
362 | + </div> | ||
363 | + </div> | ||
364 | +</section> | ||
365 | +<!-- 首页模块 --> | ||
366 | +<section id="home" class="hide" data-attr="dot" data-auth="1"></section> | ||
367 | +<!-- 重置密码模块 --> | ||
368 | +<section id="reset_pwd" data-attr="dot" class="hide"></section> | ||
369 | +<!-- 修改密码模块 --> | ||
370 | +<section id="modify_pwd" data-attr="dot" class="hide" data-auth="1"></section> | ||
371 | +<!-- 密保模块 --> | ||
372 | +<section id="mibao" data-attr="dot" class="hide" data-auth="1"></section> | ||
373 | +<!-- 回答密保模块 --> | ||
374 | +<section id="answer_question" data-attr="dot" class="hide"></section> | ||
375 | +<!-- 绑定模块 --> | ||
376 | +<section id="bind" data-attr="dot" class="hide" data-auth="1"></section> | ||
377 | +<!-- 绑定手机 --> | ||
378 | +<section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section> | ||
379 | +<!-- 解绑手机模块 --> | ||
380 | +<section id="unbindMobile" data-attr="dot" class="hide" data-auth="1"></section> | ||
381 | +<!-- 绑定邮箱模块 --> | ||
382 | +<section id="mail" data-attr="dot" class="hide" data-auth="1"></section> | ||
383 | +<!-- doT模板 --> | ||
384 | +<section id="frame" data-attr="dot" class="hide" ></section> | ||
385 | + | ||
386 | +<script id="frame_template" type="text/x-jquery-tmpl" > | ||
387 | + | ||
388 | +<div class="new-sdk-container"> | ||
389 | + <div class="SDK-titlebox"></div> | ||
390 | + <div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;"> | ||
391 | + <a href="#"><img src="images/new-sdk-logo.png"></a> | ||
392 | + <a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;"> | ||
393 | + <i class="iconfont icon-fanhui"></i> | ||
394 | + </a> | ||
395 | + </div> | ||
396 | + <div class="container" style=" margin-bottom: 20px;"> | ||
397 | + <div class="ios_scroll"> | ||
398 | + <iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe> | ||
399 | + </div> | ||
400 | + </div> | ||
401 | + | ||
402 | +</div> | ||
403 | +</script> | ||
404 | +<script id="home_template" type="text/x-jquery-tmpl"> | ||
405 | + <input type="hidden" name="initUserName" value="{{=Core.Data.nickname}}" /> | ||
406 | + <div class="new-sdk-container"> | ||
407 | + <div class="new-container-box"> | ||
408 | + <div class="SDK-titlebox"></div> | ||
409 | + <div class="user-center"> | ||
410 | + 用户中心 | ||
411 | + <a href="/sdk/logout" class="op-logout">切换账户</a> | ||
412 | + </div> | ||
413 | + | ||
414 | + {{? Core.Data.is_guest == 1}} | ||
415 | + <div class="user-center-box"> | ||
416 | + <div class="top clearfix"> | ||
417 | + <div class="pull-left txt w_45"> | ||
418 | + <p>欢迎您!</p> | ||
419 | + <p>{{=Core.Data.nickname}}</p> | ||
420 | + </div> | ||
421 | + <div class="inline-btn pull-right w_45"> | ||
422 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
423 | + </div> | ||
424 | + </div> | ||
425 | + <div class="bind-user"> | ||
426 | + <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> | ||
427 | + 您当前还是游客,为保证账号安全,请升级账号! | ||
428 | + </div> | ||
429 | + <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> | ||
430 | + <a class="btn btn-bind" href="#modify_pwd">马上升级</a> | ||
431 | + </div> | ||
432 | + </div> | ||
433 | + </div> | ||
434 | + {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> | ||
435 | + <div class="user-center-box"> | ||
436 | + <div class="top clearfix" style="border-bottom: none;"> | ||
437 | + <div class="pull-left txt w_45"> | ||
438 | + <p>欢迎您!</p> | ||
439 | + <p>{{=Core.Data.nickname}}</p> | ||
440 | + </div> | ||
441 | + <div class="inline-btn pull-right w_45"> | ||
442 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
443 | + </div> | ||
444 | + </div> | ||
445 | + {{? Core.Data.bind_phone === ""}} | ||
446 | + <ul class="list-item clearfix"> | ||
447 | + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | ||
448 | + <li><a href="#mibao">设置密保</a></li> | ||
449 | + <li><a href="#modify_pwd">修改密码</a></li> | ||
450 | + </ul> | ||
451 | + {{??}} | ||
452 | + <ul class="list-item clearfix"> | ||
453 | + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | ||
454 | + <li style="width:50%;"><a href="#mibao">设置密保</a></li> | ||
455 | + </ul> | ||
456 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
457 | + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | ||
458 | + <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | ||
459 | + </ul> | ||
460 | + {{?}} | ||
461 | + </div> | ||
462 | + {{?? Core.Data.is_guest == 0}} | ||
463 | + <div class="user-center-box"> | ||
464 | + <div class="top clearfix" style="border-bottom: none;"> | ||
465 | + <div class="pull-left txt w_45"> | ||
466 | + <p>欢迎您!</p> | ||
467 | + <p>{{=Core.Data.nickname}}</p> | ||
468 | + </div> | ||
469 | + <div class="inline-btn pull-right w_45"> | ||
470 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
471 | + </div> | ||
472 | + </div> | ||
473 | + | ||
474 | + {{? Core.Data.bind_phone === ""}} | ||
475 | + <ul class="list-item clearfix"> | ||
476 | + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | ||
477 | + <li><a href="#mibao">设置密保</a></li> | ||
478 | + <li><a href="#modify_pwd">修改密码</a></li> | ||
479 | + </ul> | ||
480 | + {{??}} | ||
481 | + <ul class="list-item clearfix"> | ||
482 | + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | ||
483 | + <li style="width:50%;"><a href="#mibao">设置密保</a></li> | ||
484 | + </ul> | ||
485 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
486 | + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | ||
487 | + {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}} | ||
488 | + <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | ||
489 | + {{??}} | ||
490 | + <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证 | ||
491 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span> | ||
492 | + </a></li> | ||
493 | + {{?}} | ||
494 | + </ul> | ||
495 | + {{?}} | ||
496 | + <!--<ul class="list-item clearfix"> | ||
497 | + {{? Core.Data.bind_phone === ""}} | ||
498 | + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | ||
499 | + {{??}} | ||
500 | + <li><a href="#unbindMobile">解绑手机</a></li> | ||
501 | + <li><a href="#">实名认证</a></li> | ||
502 | + {{?}} | ||
503 | + <li><a href="#mibao">设置密保</a></li> | ||
504 | + <li><a href="#modify_pwd">修改密码</a></li> | ||
505 | + | ||
506 | + </ul>--> | ||
507 | + </div> | ||
508 | + | ||
509 | + {{?}} | ||
510 | + | ||
511 | + </div> | ||
512 | + </div> | ||
513 | +</script> | ||
514 | +<script id="mail_template" type="text/x-jquery-tmpl" > | ||
515 | + | ||
516 | + <div class="new-sdk-container"> | ||
517 | + <div class="SDK-titlebox"></div> | ||
518 | + <div class="user-center"> | ||
519 | + <a href="#home" class="lefticon"> | ||
520 | + <i class="iconfont icon-fanhui"></i> | ||
521 | + </a> | ||
522 | + 绑定邮箱 | ||
523 | + </div> | ||
524 | + | ||
525 | + {{? Core.Data.bind_mail_statu == 0}} | ||
526 | + | ||
527 | + <div class="new-sdk-box"> | ||
528 | + <div class="acount-name"> | ||
529 | + 账号:{{=Core.Data.username}} | ||
530 | + </div> | ||
531 | + <form id="pwd_by_question_form" action="/user/bind_mail" class="ajax" method="post"> | ||
532 | + <div class="input" style="padding: 0;"> | ||
533 | + <input type="text" name="email" required placeholder="请输入你要绑定的邮箱"> | ||
534 | + <input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;"> | ||
535 | + </div> | ||
536 | + </form> | ||
537 | + <p>提示:发送绑定邮件后,请您登录邮箱操作!</p> | ||
538 | + </div> | ||
539 | + <ul class="inline-btn"> | ||
540 | + <li style="margin: 0 auto; padding: 1em 0; float: none;"> | ||
541 | + <a class="submit btn larg btn-orange" href="">发送绑定邮件</a> | ||
542 | + </li> | ||
543 | + </ul> | ||
544 | + | ||
545 | + | ||
546 | + {{?? Core.Data.bind_mail_statu == 1}} | ||
547 | + | ||
548 | + <div class="new-sdk-box"> | ||
549 | + <form id="bind_mail_form" action="/user/bind_mail" class="ajax" todo="bind_mail_callback" style="display:none; "> | ||
550 | + <div class="input"> | ||
551 | + <input type="text" name="email" required placeholder="输入想要绑定的邮箱地址"> | ||
552 | + <input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;"> | ||
553 | + </div> | ||
554 | + </form> | ||
555 | + <p>待绑定邮箱:<span class="text-info">{{=Core.Data.mail}}</span></p> | ||
556 | + </div> | ||
557 | + <ul class="inline-btn"> | ||
558 | + <li style="margin: 0 auto; padding: 1em 0; float: none;" id="change-mail-btn" class=""><a class="btn larg btn-orange" href="#">更换邮箱</a></li> | ||
559 | + <li style="margin: 0 auto; padding: 1em 0; float: none; background: #ff9600;" id="bind-mail-btn" class="hide"><a class="btn larg op-primary btn-orange" href="#home">保存设置</a></li> | ||
560 | + | ||
561 | + </ul> | ||
562 | + | ||
563 | + {{?? Core.Data.bind_mail_statu == 2}} | ||
564 | + | ||
565 | + <div class="new-sdk-box"> | ||
566 | + <div class="input" style="padding: 0;"> | ||
567 | + <input type="text" name="email" required disabled="disabled" value="{{=Core.Data.mail}}"> | ||
568 | + </div> | ||
569 | + <p>可以通过绑定的邮箱找回密码</p> | ||
570 | + </div> | ||
571 | + | ||
572 | + {{?}} | ||
573 | + | ||
574 | + </div> | ||
575 | + | ||
576 | + | ||
577 | +</script> | ||
578 | +<script id="reset_pwd_template" type="text/x-jquery-tmpl" > | ||
579 | + | ||
580 | + <div class="new-sdk-container"> | ||
581 | + <div class="SDK-titlebox"></div> | ||
582 | + | ||
583 | + <div class="new-sdk-box"> | ||
584 | + <div class="question-input mt10"> | ||
585 | + 账号:{{=Core.Data.username}} | ||
586 | + </div> | ||
587 | + <div class="question-input mt10"> | ||
588 | + <p>你的新密码是:{{=Core.Data.new_pwd}}</p> | ||
589 | + <p style="color: #949494;">请妥善保管,切勿外泄</p> | ||
590 | + </div> | ||
591 | + </div> | ||
592 | + <ul class="inline-btn"> | ||
593 | + <li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange" href="#login">我知道了</a></li> | ||
594 | + </ul> | ||
595 | + | ||
596 | + </div> | ||
597 | +</script> | ||
598 | +<script id="modify_pwd_template" type="text/x-jquery-tmpl"> | ||
599 | + | ||
600 | + | ||
601 | + <div class="new-sdk-container"> | ||
602 | + <div class="SDK-titlebox"></div> | ||
603 | + <div class="user-center"> | ||
604 | + <a href="#home" class="lefticon"> | ||
605 | + <i class="iconfont icon-fanhui"></i> | ||
606 | + </a> | ||
607 | + {{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}} | ||
608 | + </div> | ||
609 | + <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > | ||
610 | + <div class="new-sdk-box"> | ||
611 | + <div class="input new-sdk-psw clearfix"> | ||
612 | + <i>{{? Core.Data.is_guest == 1}}正式账号:{{??}}旧密码:{{?}}</i> | ||
613 | + <label> | ||
614 | + | ||
615 | + <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/> | ||
616 | + </label> | ||
617 | + </div> | ||
618 | + <div class="input new-sdk-psw clearfix"> | ||
619 | + <i>{{? Core.Data.is_guest == 1}}正式密码:{{??}}新密码:{{?}}</i> | ||
620 | + <label> | ||
621 | + | ||
622 | + <input class="" name="newpwd" required type="text" placeholder="{{? Core.Data.is_guest == 1}}请输入6-16位字母或数字{{??}}请输入密码{{?}}" /> | ||
623 | + | ||
624 | + | ||
625 | + </label> | ||
626 | + </div> | ||
627 | + {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} | ||
628 | + | ||
629 | + </div> | ||
630 | + | ||
631 | + <ul class="inline-btn"> | ||
632 | + <li style="margin: 0 auto; padding: 1em 0; float: none;"> | ||
633 | + <a class="submit btn larg btn-orange" autocomplete="off" >保存更改</a> | ||
634 | + </li> | ||
635 | + </ul> | ||
636 | + </form> | ||
637 | + </div> | ||
638 | + | ||
639 | + | ||
640 | +</script> | ||
641 | + | ||
642 | +<script id="identityCard_template" type="text/x-jquery-tmpl" > | ||
643 | + <div class="new-sdk-container"> | ||
644 | + <div class="SDK-titlebox"></div> | ||
645 | + <div class="user-center"> | ||
646 | + <a href="#home" class="lefticon"> | ||
647 | + <i class="iconfont icon-fanhui"></i> | ||
648 | + </a> | ||
649 | + 实名认证 | ||
650 | + </div> | ||
651 | + <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | ||
652 | + <div class="new-sdk-box"> | ||
653 | + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div> | ||
654 | + <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> | ||
655 | + </div> | ||
656 | + <ul class="inline-btn"> | ||
657 | + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | ||
658 | + </ul> | ||
659 | + </form> | ||
660 | + </div> | ||
661 | +</script> | ||
662 | + | ||
663 | +<script id="mibao_template" type="text/x-jquery-tmpl" > | ||
664 | +{{? Core.Data.safe_question == "" }} | ||
665 | +<div class="new-sdk-container"> | ||
666 | + <div class="SDK-titlebox"></div> | ||
667 | + <div class="user-center"> | ||
668 | + <a href="#home" class="lefticon"> | ||
669 | + <i class="iconfont icon-fanhui"></i> | ||
670 | + </a> | ||
671 | + 设置密保 | ||
672 | + </div> | ||
673 | + <form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" onkeydown="if(event.keyCode==13) return false;" > | ||
674 | + <div class="new-sdk-box"> | ||
675 | + <div class="input select" style="padding:0 25px; position: relative;"> | ||
676 | + <select name="question" class="" > | ||
677 | + {{~ Core.Data.question_list :item:index }} | ||
678 | + <option value='{{=item}}'>{{=item}}</option> | ||
679 | + {{~}} | ||
680 | + </select> | ||
681 | + <i class="iconfont icon-xiangxia" style=" | ||
682 | + position: absolute; | ||
683 | + right: -25px; | ||
684 | + top: 21px; | ||
685 | + "></i> | ||
686 | + </div> | ||
687 | + <div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div> | ||
688 | + <p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p> | ||
689 | + </div> | ||
690 | + <ul class="inline-btn"> | ||
691 | + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">保存设置</a></li> | ||
692 | + </ul> | ||
693 | + </form> | ||
694 | + </div> | ||
695 | + | ||
696 | +{{??}} | ||
697 | + <div class="new-sdk-container"> | ||
698 | + <div class="SDK-titlebox"></div> | ||
699 | + <div class="user-center"> | ||
700 | + <a href="#home" class="lefticon"> | ||
701 | + <i class="iconfont icon-fanhui"></i> | ||
702 | + </a> | ||
703 | + 设置密保 | ||
704 | + </div> | ||
705 | + <form action=""> | ||
706 | + <div class="new-sdk-box"> | ||
707 | + <p>问题:{{=Core.Data.safe_question}}</p> | ||
708 | + <p>答案:{{=Core.Data.safe_answer}}</p> | ||
709 | + </div> | ||
710 | + </form> | ||
711 | + </div> | ||
712 | +{{?}} | ||
713 | + | ||
714 | + | ||
715 | +</script> | ||
716 | +<script id="answer_question_template" type="text/x-jquery-tmpl" > | ||
717 | + <div class="new-sdk-container"> | ||
718 | + <div class="SDK-titlebox"></div> | ||
719 | + <div class="user-center"> | ||
720 | + <a href="#login" class="lefticon back-btn"> | ||
721 | + <i class="iconfont icon-fanhui"></i> | ||
722 | + </a> | ||
723 | + 密保找回密码 | ||
724 | + </div> | ||
725 | + | ||
726 | + <div class="new-sdk-box" style="border-top: 1px solid #c4c3c3;"> | ||
727 | + <div id="pwd_by_question_form" action="/sdk/find/question/" class="ajax " method="post" > | ||
728 | + <input type="hidden" name="username" value="{{=Core.Data.ans_temp.username}}" /> | ||
729 | + <input type="hidden" name="question" value="{{=Core.Data.ans_temp.question}}" /> | ||
730 | + | ||
731 | + <div class="question-input" style="margin-bottom: 20px;"> | ||
732 | + {{=Core.Data.ans_temp.question}} | ||
733 | + <i class="iconfont icon-xiangxia"></i> | ||
734 | + </div> | ||
735 | + | ||
736 | + <div class="input" style="padding: 0;"> | ||
737 | + <input type="text" name="answer" required class="larg " placeholder="请输入答案" required/> | ||
738 | + </div> | ||
739 | + | ||
740 | + </div> | ||
741 | + </div> | ||
742 | + | ||
743 | + <ul class="inline-btn"> | ||
744 | + <li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange submit op-primary" >确定</a></li> | ||
745 | + </ul> | ||
746 | + </div> | ||
747 | + | ||
748 | + | ||
749 | +</script> | ||
750 | +<script id="bind_template" type="text/x-jquery-tmpl" > | ||
751 | + <div class="new-sdk-container"> | ||
752 | + <div class="SDK-titlebox"></div> | ||
753 | + <div class="user-center"> | ||
754 | + <a href="#login" class="lefticon"> | ||
755 | + <i class="iconfont icon-fanhui"></i> | ||
756 | + </a> | ||
757 | + 绑定手机 | ||
758 | + </div> | ||
759 | + | ||
760 | + <div class="new-sdk-box"> | ||
761 | + | ||
762 | + {{? Core.Data.bind_phone == "" && Core.Data.bind_statu == 0 }} | ||
763 | + <div class="acount-name"> | ||
764 | + 账号:{{=Core.Data.username}} | ||
765 | + </div> | ||
766 | + <form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" > | ||
767 | + <div class="input" style="padding: 0;"> | ||
768 | + <input id="js_iphone" type="text" required name="mobile" placeholder="请输入您要绑定的手机号码"> | ||
769 | + </div> | ||
770 | + <div class="inputCode clearfix"> | ||
771 | + <div class="input fl"> | ||
772 | + <input id="js_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码"> | ||
773 | + </div> | ||
774 | + <a href="javascript:;" class="getCode" id="js_getcode">获取验证码</a> | ||
775 | + </div> | ||
776 | + <ul class="inline-btn"> | ||
777 | + <li><a class="larg btn btn-orange submit" id="js_conform" value="" >确定</a></li> | ||
778 | + <li><a class="btn" href="#home">返回</a></li> | ||
779 | + </ul> | ||
780 | + </form> | ||
781 | + | ||
782 | + {{?? Core.Data.bind_statu == 1}} | ||
783 | + | ||
784 | + | ||
785 | + <form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" > | ||
786 | + <div class="new-sdk-box"> | ||
787 | + <div class="input" style="padding: 0;"><input type="text" required name="mobile" placeholder="{{=Core.Data.bind_phone}}"></div> | ||
788 | + <p>当前号码待绑定,更换手机号码请直接修改</p> | ||
789 | + <p>请用绑定的手机拨打<span>{{=Core.Data.mobile_helper_number}}</span>(电话会自动挂断,此呼叫免费)完成绑定,才可以通过手机修改密码。</p> | ||
790 | + </div> | ||
791 | + <ul class="inline-btn"> | ||
792 | + <li><a class="larg btn btn-orange submit" >保存设置</a></li> | ||
793 | + <li><a class="btn" href="#home">返回</a></li> | ||
794 | + </ul> | ||
795 | + </form> | ||
796 | + | ||
797 | + {{?? Core.Data.bind_statu == 2}} | ||
798 | + | ||
799 | + | ||
800 | + <form action=""> | ||
801 | + <div class="new-sdk-box"> | ||
802 | + <div class="input" style="padding: 0;"><input type="text" value="{{=Core.Data.bind_phone}}"></div> | ||
803 | + <p>解除绑定,请用绑定的手机发送短信内容“<span>qxbd</span>”发送到<span>{{=Core.Data.mobile_helper_number}}</span></p> | ||
804 | + </div> | ||
805 | + <div class="only-btn"><a class="btn" href="#home">返回</a></div> | ||
806 | + </form> | ||
807 | + | ||
808 | + | ||
809 | + {{?}} | ||
810 | + </div> | ||
811 | + </div> | ||
812 | + | ||
813 | +</script> | ||
814 | +<script id="bindMobile_template" type="text/x-jquery-tmpl"> | ||
815 | + <div class="new-sdk-container"> | ||
816 | + <div class="SDK-titlebox"></div> | ||
817 | + <div class="user-center"> | ||
818 | + <a href="#home" class="lefticon"> | ||
819 | + <i class="iconfont icon-fanhui"></i> | ||
820 | + </a> | ||
821 | + 绑定手机 | ||
822 | + </div> | ||
823 | + <div class="new-sdk-box"> | ||
824 | + <div class="acount-name"> | ||
825 | + 账号:{{=Core.Data.username}} | ||
826 | + </div> | ||
827 | + <form id="bind_mobile_form" action="/user/bind_mobile"> | ||
828 | + <div class="input" style="padding: 0;"> | ||
829 | + <input id="js_iphone" type="text" required placeholder="请输入您要绑定的手机号码"> | ||
830 | + </div> | ||
831 | + <div class="inputCode clearfix"> | ||
832 | + <div class="input fl"> | ||
833 | + <input id="js_ranks" type="text" required placeholder="请输入短信验证码"> | ||
834 | + </div> | ||
835 | + <a href="javascript:;" class="getCode" id="js_getcode" style="padding: 20px 0;">获取验证码</a> | ||
836 | + </div> | ||
837 | + <ul class="inline-btn"> | ||
838 | + <li><a class="larg btn btn-orange" id="js_conform" value="" >确定</a></li> | ||
839 | + <li><a class="btn" href="#home">返回</a></li> | ||
840 | + </ul> | ||
841 | + </form> | ||
842 | + </div> | ||
843 | + </div> | ||
844 | +</script> | ||
845 | +<script id="unbindMobile_template" type="text/x-jquery-tmpl"> | ||
846 | + <div class="new-sdk-container"> | ||
847 | + <div class="SDK-titlebox"></div> | ||
848 | + <div class="user-center"> | ||
849 | + <a href="#home" class="lefticon"> | ||
850 | + <i class="iconfont icon-fanhui"></i> | ||
851 | + </a> | ||
852 | + 解绑手机 | ||
853 | + </div> | ||
854 | + <div class="new-sdk-box"> | ||
855 | + <div class="acount-name"> | ||
856 | + <p style="margin-top: 0;">账号:{{=Core.Data.username}}</p> | ||
857 | + <p>手机:<span class="phoneMobile"></span></p> | ||
858 | + </div> | ||
859 | + <form id="unbind_mobile_form" action="/user/bind_mobile"> | ||
860 | + <div class="inputCode clearfix"> | ||
861 | + <div class="input fl"> | ||
862 | + <input id="js_unbind_ranks" type="text" required placeholder="请输入短信验证码"> | ||
863 | + </div> | ||
864 | + <a href="javascript:;" class="getCode" id="js_unbind_getcode" style="padding:20px 0;">获取验证码</a> | ||
865 | + </div> | ||
866 | + <ul class="inline-btn" style="margin-top: 25px;"> | ||
867 | + <li><a class="larg btn btn-orange" id="js_unbind" value="" >确定</a></li> | ||
868 | + <li><a class="btn" href="#home">返回</a></li> | ||
869 | + </ul> | ||
870 | + </form> | ||
871 | + </div> | ||
872 | + </div> | ||
873 | +</script> | ||
874 | +<script id="identityCard_ok_template" type="text/x-jquery-tmpl"> | ||
875 | + <div class="new-sdk-container"> | ||
876 | + <div class="SDK-titlebox"></div> | ||
877 | + <div class="user-center"> | ||
878 | + <a href="#home" class="lefticon"> | ||
879 | + <i class="iconfont icon-fanhui"></i> | ||
880 | + </a> | ||
881 | + 实名认证 | ||
882 | + </div> | ||
883 | + <div class="new-sdk-box"> | ||
884 | + <div class="acount-name"> | ||
885 | + <p style="margin-top: 0;">姓名:<span class="compellation_name"></span></p> | ||
886 | + <p>身份证:<span class="identity_card"></span></p> | ||
887 | + </div> | ||
888 | + </div> | ||
889 | + </div> | ||
890 | +</script> | ||
891 | +<script id="message_detail_template" type="text/x-jquery-tmpl"> | ||
892 | + <div class="header"> | ||
893 | + <a class="btn pull-left op-back" href="#message">返回</a> | ||
894 | + <span class="title">消息内容</span> | ||
895 | + </div> | ||
896 | + <div class="container"> | ||
897 | + <div class="box_info_center"> | ||
898 | + <div class="message-comm"> | ||
899 | + <div class="align-center bor_b_h3"> | ||
900 | + <h3>{{=Core.Data.message_detail.title}}</h3> | ||
901 | + <p class="text-info"> | ||
902 | + <span class="mar-r-10">{{=Core.Data.message_detail.nickname}}</span> | ||
903 | + <span>[{{=Core.Data.message_detail.create_time}}]</span> | ||
904 | + </p> | ||
905 | + </div> | ||
906 | + <div class="message_text"> | ||
907 | + {{=Core.Data.message_detail.content}} | ||
908 | + </div> | ||
909 | + </div> | ||
910 | + </div> | ||
911 | + </div> | ||
912 | +</script> | ||
913 | +<script id="activity_detail_template" type="text/x-jquery-tmpl"> | ||
914 | + <div class="new-sdk-container" style="background: #fff;"> | ||
915 | + <div class="SDK-titlebox"></div> | ||
916 | + <div class="user-center"> | ||
917 | + <a href="#activity" class="lefticon"> | ||
918 | + <i class="iconfont icon-fanhui"></i> | ||
919 | + </a> | ||
920 | + 活动公告详情 | ||
921 | + </div> | ||
922 | + <div class="container activity"> | ||
923 | + <div class="align-center bor_b_h3 clearfix"> | ||
924 | + <h3 class="pull-left">{{=Core.Data.activity_detail.title}}</h3> | ||
925 | + <p class="text-info pull-right"> | ||
926 | + <span>{{=Core.Data.activity_detail.notice_time}}</span> | ||
927 | + </p> | ||
928 | + </div> | ||
929 | + <div class="box_info_center" style="height: 100%; margin: 0 37px;"> | ||
930 | + <div class="detail_scroller scroll" id="detail_scroller"> | ||
931 | + <div class="activity-comm"> | ||
932 | + <div class="activity_text"> | ||
933 | + {{=Core.Data.activity_detail.content}} | ||
934 | + </div> | ||
935 | + </div> | ||
936 | + </div> | ||
937 | + </div> | ||
938 | + </div> | ||
939 | + </div> | ||
940 | +</script> | ||
941 | + | ||
942 | +<script id='tpl_message_list_template' type='text/x-jquery-tmpl'> | ||
943 | +{{? it.model_list.length == 1 }} | ||
944 | + <p>没有消息.</p> | ||
945 | +{{??}} | ||
946 | + {{~ it.model_list :item:index }} | ||
947 | + {{? item.id}} | ||
948 | + <li > | ||
949 | + <a class="item" data-id="{{=item.id}}"> | ||
950 | + <span class="pull-right">{{=item.nickname}}</span> | ||
951 | + <span class="pull-right text-info mar-r-10">{{=item.create_time}}</span> | ||
952 | + <p> | ||
953 | + <span class="title">{{=item.title}}</span> {{? item.read == 0}}<span class="statu">未读</span>{{?}} | ||
954 | + </p> | ||
955 | + </a> | ||
956 | + </li> | ||
957 | + {{?}} | ||
958 | + {{~ }} | ||
959 | + {{? it.page_num < it.total_page}} | ||
960 | + <li class="more"> | ||
961 | + <a class="btn" href="/message/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_message_list" data-params-append="true" >点击加载更多帖子</a> | ||
962 | + </li> | ||
963 | + {{?}} | ||
964 | +{{?}} | ||
965 | +</script> | ||
966 | +<script id='tpl_activity_template' type='text/x-jquery-tmpl'> | ||
967 | +{{? it.model_list.length == 1 }} | ||
968 | + <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> | ||
969 | +{{??}} | ||
970 | + {{~ it.model_list :item:index }} | ||
971 | + {{? item.id}} | ||
972 | + <li > | ||
973 | + <a class="item" href="#" data-id="{{=item.id}}"> | ||
974 | + <span class="pull-right act_time">{{=item.notice_time}}</span> | ||
975 | + <span class="act_title{{? item.update_time.indexOf('刚刚') > -1}}new{{?}}">{{=item.title}}</span> | ||
976 | + </a> | ||
977 | + </li> | ||
978 | + {{?}} | ||
979 | + {{~ }} | ||
980 | + {{? it.page_num < it.total_page}} | ||
981 | + <li class="more"> | ||
982 | + <a class="btn" href="/sdk/notice/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_activity" data-params-append="true" >点击加载</a> | ||
983 | + </li> | ||
984 | + {{?}} | ||
985 | +{{?}} | ||
986 | +</script> | ||
987 | + | ||
988 | +</div> | ||
989 | + | ||
990 | +<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script> | ||
991 | +<script type="text/javascript" src="js/zepto.min.js?20150923001"></script> | ||
992 | +<script type="text/javascript" src="js/doT.min.js?20150923001" ></script> | ||
993 | +<script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script> | ||
994 | +<script type="text/javascript"> | ||
995 | + | ||
996 | +window.isGetData = 0; | ||
997 | +$(function() { | ||
998 | +FastClick.attach(document.body); | ||
999 | +}); | ||
1000 | +</script> | ||
1001 | +<script type="text/javascript" src="js/core.min.js?20150923001" ></script> | ||
1002 | +<script type="text/javascript" src="js/login.min.js?2016111" ></script> | ||
1003 | +<script type="text/javascript" src="js/loader.min.js?20150923001"></script> | ||
1004 | +<script type="text/javascript" src="js/simpScroller-min.js"></script> | ||
1005 | +<script type="text/javascript" src="js/identity_id.js" ></script> | ||
1006 | +<script type="text/javascript"> | ||
1007 | +window.onload = window.onresize = initMatching; | ||
1008 | +(function(){ | ||
1009 | + getData('/sdk/login/json'); | ||
1010 | +})(); | ||
1011 | +simpScroller(document.querySelector(".horizontall"), {}); | ||
1012 | +// $(document).ready(function(){ | ||
1013 | +// setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000) | ||
1014 | +// }) | ||
1015 | +</script> | ||
1016 | + | ||
1017 | +</body> | ||
1018 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/makefile.js
0 → 100644
1 | +/** | ||
2 | + * 动态生成各游戏皮肤下对应的manifest文件。分别将带上修改时间戳的第三方库、业务逻辑js、 | ||
3 | + * sdk基本样式、指定皮肤样式、皮肤资源文件的路径添加到manifes文件中 | ||
4 | + * 并将修改时间更新到html文档的资源引用中 | ||
5 | + * 配置文件:config.js | ||
6 | + * 生成文件:skin/xxxx/sdk.manifest | ||
7 | + * 运行方法:node makefile.js | ||
8 | + **/ | ||
9 | +var fs = require('fs'), | ||
10 | + PATH = require('path'), | ||
11 | + config = require('./config.js'); | ||
12 | + | ||
13 | +var target = config.target; | ||
14 | +var concat_with_mtime = config.concat_with_mtime; | ||
15 | +var base_js = config.base_js; | ||
16 | +var base_img = config.images; | ||
17 | +var htmls = config.htmls; | ||
18 | +//读取三个html文件的内容,以便后面更新引用信息 | ||
19 | + | ||
20 | +var html_content = []; | ||
21 | +for (i = 0, l = htmls.length; i < l; i++) { | ||
22 | + html_content.push(fs.readFileSync(htmls[i], 'utf-8')); | ||
23 | +} | ||
24 | + | ||
25 | +function formatTime(mtime) { | ||
26 | + var date = ''; | ||
27 | + date += mtime.getFullYear(); | ||
28 | + var month = mtime.getMonth() + 1; | ||
29 | + month < 10 ? date += '0' + month : date += month; | ||
30 | + var day = mtime.getDate(); | ||
31 | + day < 10 ? date += '0' + day : date += day; | ||
32 | + var hour = mtime.getHours(); | ||
33 | + hour < 10 ? date += '0' + hour : date += hour; | ||
34 | + var minute = mtime.getMinutes(); | ||
35 | + minute < 10 ? date += '0' + minute : date += minute; | ||
36 | + return date; | ||
37 | +} | ||
38 | +var content = []; | ||
39 | +var path, mtime, jsPath, reg; | ||
40 | +content.push('CACHE MANIFEST'); | ||
41 | +content.push(''); | ||
42 | + | ||
43 | +var now = new Date(); | ||
44 | +content.push('#version=' + formatTime(now)); | ||
45 | + | ||
46 | +for(var i=0, l= htmls.length; i<l; i++){ | ||
47 | + path = htmls[i]; | ||
48 | + if(PATH.existsSync(path)){ | ||
49 | + // mtime = formatTime(fs.statSync(path).mtime); | ||
50 | + content.push('/static/sdk/' + path);// + '?' + mtime); | ||
51 | + } | ||
52 | +} | ||
53 | +for (i = 0, l = base_js.length; i < l; i++) { | ||
54 | + path = base_js[i]; | ||
55 | + if (PATH.existsSync(path)) { | ||
56 | + mtime = formatTime(fs.statSync(path).mtime); | ||
57 | + content.push('/static/sdk/' + path + '?' + mtime); | ||
58 | + //更新login.html, center.html, pay.html的引用信息的版本号 | ||
59 | + for (var j = 0, k = html_content.length; j < k; j++) { | ||
60 | + reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') | ||
61 | + html_content[j] = html_content[j].replace(reg, path + '?' + mtime); | ||
62 | + } | ||
63 | + } else { | ||
64 | + console.error('指定文件不存在:' + base_js[i]); | ||
65 | + } | ||
66 | +} | ||
67 | + | ||
68 | +for (i = 0, l = concat_with_mtime.length; i < l; i++) { | ||
69 | + path = concat_with_mtime[i]; | ||
70 | + if (PATH.existsSync(path)) { | ||
71 | + mtime = formatTime(fs.statSync(path).mtime); | ||
72 | + content.push('/static/sdk/' + path + '?' + mtime); | ||
73 | + //更新login.html, center.html, pay.html的引用信息的版本号 | ||
74 | + for (j = 0, k = html_content.length; j < k; j++) { | ||
75 | + reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') | ||
76 | + html_content[j] = html_content[j].replace(reg, path + '?' + mtime); | ||
77 | + } | ||
78 | + } else { | ||
79 | + console.error('指定文件不存在:' + path); | ||
80 | + } | ||
81 | +} | ||
82 | +// 添加sdk基本图片资源 | ||
83 | +/* | ||
84 | +var base_img_files = fs.readdirSync(base_img); | ||
85 | +for(i=0,l=base_img_files.length; i<l; i++){ | ||
86 | + if(base_img_files[i].indexOf('.') == 0) continue; | ||
87 | + path = base_img + '/' + base_img_files[i]; | ||
88 | + content.push('/static/sdk/' + path); | ||
89 | +} | ||
90 | +*/ | ||
91 | +//获取皮肤的最大mtime | ||
92 | +/* | ||
93 | +var skin_mtime = 0; | ||
94 | +for(i=0, l= target.length; i<l; i++){ | ||
95 | + path = 'skin/' + target[i] + '/skin.css'; | ||
96 | + mtime = parseInt(formatTime(fs.statSync(path).mtime)); | ||
97 | + if(mtime > skin_mtime) skin_mtime = mtime; | ||
98 | +} | ||
99 | +*/ | ||
100 | +//在基础文件上添加对应皮肤的样式和所需要的图片 | ||
101 | + | ||
102 | +var skin_content; | ||
103 | +for (i = 0, l = target.length; i < l; i++) { | ||
104 | + | ||
105 | + path = 'skin/' + target[i]; | ||
106 | + skin_content = content.concat(); | ||
107 | + /* | ||
108 | + skin_content.push('/static/sdk/' + path + '/skin.css' + '?' + skin_mtime); | ||
109 | + */ | ||
110 | + //更新login.html, center.html, pay.html的引用信息的版本号 | ||
111 | + for (j = 0, k = html_content.length; j < k; j++) { | ||
112 | + reg = new RegExp('data-v="\\d+"'); | ||
113 | + html_content[j] = html_content[j].replace(reg, 'data-v="' + skin_mtime + '"'); | ||
114 | + } | ||
115 | + //push the img fiels if exists | ||
116 | + /* | ||
117 | + var images = fs.readdirSync(path + '/img'); | ||
118 | + for (var j = 0, k = images.length; j < k; j++) { | ||
119 | + if(images[j].indexOf('.') == 0) continue; | ||
120 | + var img_path = path + '/img/' + images[j]; | ||
121 | + // mtime = formatTime(fs.statSync(img_path).mtime); | ||
122 | + skin_content.push('/static/sdk/' + path + '/img/' + images[j]) //+ '?' + mtime); | ||
123 | + } | ||
124 | + */ | ||
125 | + skin_content.push('NETWORK:'); | ||
126 | + skin_content.push('*'); | ||
127 | + skin_content = skin_content.join('\n'); | ||
128 | + fs.writeFileSync(path + '/sdk.manifest', skin_content); | ||
129 | +} | ||
130 | + | ||
131 | + | ||
132 | +content.push('NETWORK:'); | ||
133 | +content.push('*'); | ||
134 | +//生成基础的没有皮肤的缓存文件 | ||
135 | +fs.writeFileSync('skin/sdk.manifest', content.join('\n')); | ||
136 | +//将对html文件引用信息的修改写回文件中 | ||
137 | +for(i=0, l=htmls.length; i<l; i++){ | ||
138 | + fs.writeFileSync(htmls[i], html_content[i]); | ||
139 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/pay.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | +<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="apple-mobile-web-app-capable" content="yes" /> | ||
6 | +<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
7 | +<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
8 | +<meta name="format-detection" content="telephone=no"> | ||
9 | +<meta name="screen-orientation" content="portrait"> | ||
10 | +<meta name="full-screen" content="yes"> | ||
11 | +<meta http-equiv="x-ua-compatible" content="IE=edge" /> | ||
12 | + | ||
13 | +<link href="skin/pay.css?v=20150318002" type="text/css" rel="stylesheet" /> | ||
14 | +<link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" /> | ||
15 | +<style> | ||
16 | + .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;} | ||
17 | +</style> | ||
18 | +<title> | ||
19 | +手游平台支付 | ||
20 | +</title> | ||
21 | +</head> | ||
22 | +<body> | ||
23 | +<div class="mask"> | ||
24 | +<div class="container_load" id="loading"> | ||
25 | + <div class="content"> | ||
26 | + <div class="circle"></div> | ||
27 | + <div class="circle1"></div> | ||
28 | + </div> | ||
29 | +</div> | ||
30 | +<div class="alert alert-success hide" id="alert"> | ||
31 | + <button type="button" class="close" data-dismiss="alert">×</button> | ||
32 | + <span></span> | ||
33 | +</div> | ||
34 | +<!-- 首页模块 --> | ||
35 | +<section id="home" class="hide" data-attr="dot" data-auth="1"></section> | ||
36 | +<!-- end --> | ||
37 | +<!-- 兑换元宝列表模块 --> | ||
38 | +<section id="exchange" class="hide" data-attr="dot" data-auth="1"></section> | ||
39 | +<!-- end --> | ||
40 | +<!-- 充值方式列表模块 --> | ||
41 | +<section id="channel_list" class="hide" data-attr="dot" data-auth="1"></section> | ||
42 | +<!-- end --> | ||
43 | +<!-- 充值操作模块 --> | ||
44 | +<section id="pay" class="hide" data-attr="dot" data-auth="1"></section> | ||
45 | +<!-- end --> | ||
46 | +<!-- 客服问题列表模块 --> | ||
47 | +<section id="kefu_list" class="hide" data-auth="1" data-attr="dot"></section> | ||
48 | +<!-- end --> | ||
49 | +<!-- 账号升级模块 --> | ||
50 | +<section id="modify_pwd" class="hide" data-auth="1" data-attr="dot"></section> | ||
51 | +<!-- end --> | ||
52 | +<!-- 客服问题详细页面模块 --> | ||
53 | +<section id="question_detail" class="hide" data-auth="1" data-attr="dot"></section> | ||
54 | +<!-- 充值记录模块 --> | ||
55 | +<section id="trade_record" class="hide" data-auth="1" > | ||
56 | +<div class="header"> | ||
57 | + <span class="title">充值记录</span> | ||
58 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | ||
59 | + <!-- <a class="btn pull-right" href="#proxy_record">代付记录</a> --> | ||
60 | + </div> | ||
61 | +<div class="container"> | ||
62 | + <div class="box_info_center"> | ||
63 | + <div id="wrapper" style="position:relative" class="scroll"> | ||
64 | + <div id="scroller"> | ||
65 | + | ||
66 | + <ol class="trade-list" data-role="ajax-html" | ||
67 | + data-params-url="/trade/list/user?page_size=5" data-params-template="tpl_trade_record"> | ||
68 | + </ol> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | +</div> | ||
73 | +</section> | ||
74 | +<!-- 代付记录模块 --> | ||
75 | +<section id="proxy_record" class="hide" data-auth="1"> | ||
76 | +<div class="header"> | ||
77 | + <span class="title">代付记录</span> | ||
78 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#trade_record">返回</a> | ||
79 | + </div> | ||
80 | +<div class="container"> | ||
81 | + <div class="box_info_center"> | ||
82 | + <div id="proxy_wrapper" style="position:relative" class="scroll"> | ||
83 | + <div id="proxy_scroller"> | ||
84 | + <ol class="trade-list" data-role="ajax-html" data-params-url="/trade/list/proxy?page_size=5" data-params-template="tpl_proxy_record"> | ||
85 | + | ||
86 | + </ol> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | + </div> | ||
90 | +</div> | ||
91 | +</section> | ||
92 | +<section id="pay_feedback" class="hide" data-replace="1"> | ||
93 | + <div class="header"> | ||
94 | + <span class="title">充值问题</span> | ||
95 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#pay"></a> | ||
96 | + <a class="btn-link posrgt" href="#kefu_list">在线客服</a> | ||
97 | + </div> | ||
98 | + <div class="container"> | ||
99 | + <div class="box_info_center"> | ||
100 | + <form class="ajax mar-t-10" method="post" action="/user/question/add"> | ||
101 | + <input type="hidden" name="game_id" data-replace="value" value="{app_id}"/> | ||
102 | + <input type="hidden" name="q_type" value="2"/> | ||
103 | + <input type="hidden" name="secret" value="1"> | ||
104 | + <textarea name="content" cols="40" rows="5" placeholder="请输入问题描述,字数限制在150内."></textarea> | ||
105 | + <input type="submit" class="btn submit" value="提交" style="background: #ff9600;"/> | ||
106 | + </form> | ||
107 | + <p class="text-muted align-left">注:提交问题后,可通过在线客服,查看问题是否得到解决</p> | ||
108 | + </div> | ||
109 | + </div> | ||
110 | +</section> | ||
111 | +<!-- 代付模块 --> | ||
112 | +<section id="pay_proxy" data-attr="dot" class="hide" data-auth="1"></section> | ||
113 | +<!-- end --> | ||
114 | +<!-- 充值结果模块 --> | ||
115 | +<section id="pay_result" data-attr="dot" class="hide" data-auth="1"></section> | ||
116 | +<!-- end --> | ||
117 | +<!-- 确认付款 模块 --> | ||
118 | +<!-- <section id="pay_confirm" data-attr="dot" class="hide" data-auth="1"></section> --> | ||
119 | +<!-- end --> | ||
120 | +<!-- 其他充值方式模块 --> | ||
121 | +<section id="other" data-attr="dot" class="hide" data-auth="1"></section> | ||
122 | +<!-- end --> | ||
123 | +<!-- 邀请好友模块 --> | ||
124 | +<section id="invite_friend" data-attr="dot" class="hide" data-auth="1"></section> | ||
125 | +<!-- end --> | ||
126 | +<!-- 验证码模块 --> | ||
127 | +<section id="verify" data-attr="dot" class="hide" data-auth="1"></section> | ||
128 | +<!-- end --> | ||
129 | +<section id="pay_for" data-attr="dot" class="hide" data-auth="1"></section> | ||
130 | +<section id="frame" data-attr="dot" class="hide" data-auth="1"></section> | ||
131 | +<script id="frame_template" type="text/x-jquery-tmpl" > | ||
132 | + <div class="header"> | ||
133 | + <span class="title">{{=Core.Data.frame_title}}</span> | ||
134 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | ||
135 | + </div> | ||
136 | + <div class="container" style=""> | ||
137 | + <div class="container_load in_frame" id="loading_frame" onclick="$(this).hide()"> | ||
138 | + <div class="content"> | ||
139 | + <div class="circle"></div> | ||
140 | + <div class="circle1"></div> | ||
141 | + </div> | ||
142 | + </div> | ||
143 | + <a class="btn scroll-btn scroll-up"><img src="skin/img/s_up.png"></a> | ||
144 | + <a class="btn scroll-btn scroll-down"><img src="skin/img/s_down.png"></a> | ||
145 | + <div class="ios_scroll"> | ||
146 | + <iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe> | ||
147 | + </div> | ||
148 | + </div> | ||
149 | +</script> | ||
150 | +<script id='home_template' type='text/x-jquery-tmpl'> | ||
151 | + <div class="header"> | ||
152 | + <span class="title">充值中心</span> | ||
153 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | ||
154 | + {{? Core.Data.pay_only != 1 }} | ||
155 | + | ||
156 | + <a class="btn-link posrgt" href="#trade_record">充值记录</a> | ||
157 | + | ||
158 | + {{?}} | ||
159 | + </div> | ||
160 | + <div class="container"> | ||
161 | + <div class="box_info_center"> | ||
162 | + <h2 class="align-left"> | ||
163 | + | ||
164 | + </h2> | ||
165 | + <p class="align-left text-muted"> | ||
166 | + | ||
167 | + </p> | ||
168 | + <br> | ||
169 | + <p class="align-left text-success tips9133"> | ||
170 | + {{? Core.Data.pay_only != 1 }} | ||
171 | + {{? Core.Data.is_guest == 1}} | ||
172 | + 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。 | ||
173 | + {{??}} | ||
174 | + | ||
175 | + {{?}} | ||
176 | + {{?}} | ||
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 | + | ||
185 | + </div> | ||
186 | + </div> | ||
187 | +</script> | ||
188 | + | ||
189 | +<script id='modify_pwd_template' type='text/x-jquery-tmpl'> | ||
190 | + <div class="header"> | ||
191 | + <a class="iconfont icon-iconfontxiangyou poslft" href="##home"></a> | ||
192 | + <span class="title">帐号升级</span> | ||
193 | + </div> | ||
194 | + <div class="container"> | ||
195 | + <div class="box_info_center"> | ||
196 | + {{? Core.Data.is_guest >= 1}} | ||
197 | + <form action="/sdk/change_password" method="post" class="ajax " todo="modify_pwd_callback" > | ||
198 | + <input type="text" class="old_pwd required larg" name="username" value="" required="required" placeholder="请设置登录帐号名" /> | ||
199 | + <input class="larg" name="newpwd" required type="password" placeholder="输入新密码" /> | ||
200 | + <input type="submit" class="btn larg" value="确认升级" autocomplete="off" /> | ||
201 | + </form> | ||
202 | + <p class="text-warning align-left">游客账号是系统临时生成,存在风险,为了您的账号安全建议升级永久账号。</p> | ||
203 | + {{??}} | ||
204 | + <p class="text-success align-left">您的账号已经成功升级成手游平台永久账号。</p> | ||
205 | + {{?}} | ||
206 | + </div> | ||
207 | + </div> | ||
208 | +</script> | ||
209 | + | ||
210 | +<script id="pay_for_template" type="text/x-jquery-tmpl" > | ||
211 | + <div class="header"> | ||
212 | + <span class="title">找他人代付</span> | ||
213 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | ||
214 | + <a class="btn-link posrgt" href="#proxy_record">代付记录</a> | ||
215 | + </div> | ||
216 | +<div class="container"> | ||
217 | +<div class="box_info_center"> | ||
218 | + <form id="pay_for_form" action="/sdk/pay" method="post" class="ajax" > | ||
219 | + <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | ||
220 | + <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | ||
221 | + <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | ||
222 | + <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> | ||
223 | + <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | ||
224 | + <input type="hidden" name="money" value="{{=Core.Data.money}}" /> | ||
225 | + <p class="align-left" > | ||
226 | + 充值<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>元 | ||
227 | + </p> | ||
228 | + | ||
229 | + <div class="proxy_pay"> | ||
230 | + <p> | ||
231 | + <input class="larg" type="text" data-key="pay_user" required="required" name="pay_user" placeholder="请输入代付人手游平台帐号" /> | ||
232 | + </p> | ||
233 | + <p> | ||
234 | + <input class="larg" type="text" name="pay_message" placeholder="给他留言···" /> | ||
235 | + </p> | ||
236 | + | ||
237 | + <p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p> | ||
238 | + </div> | ||
239 | + </div> | ||
240 | +</div> | ||
241 | +</script> | ||
242 | +<script id="exchange_template" type="text/x-jquery-tmpl" > | ||
243 | + <div class="header"> | ||
244 | + <span class="title">兑换{{=Core.Data.game_unit_name}}</span> | ||
245 | + {{? Core.Data.enter_amount && Core.Data.enter_amount >0}} | ||
246 | + <a class="btn pull-left op-back op-primary" href="javascript:Core.finishPay()">返回游戏</a> | ||
247 | + {{??}} | ||
248 | + <a class="btn pull-left op-back op-primary" href="#home">修改数量</a> | ||
249 | + {{?}} | ||
250 | + <a class="btn pull-right" href="#trade_record">兑换记录</a> | ||
251 | + </div> | ||
252 | + <div class="container"> | ||
253 | + <div class="box_info_center"> | ||
254 | + <form id="exchange_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" > | ||
255 | + <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | ||
256 | + <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | ||
257 | + <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | ||
258 | + <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> | ||
259 | + <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | ||
260 | + <input type="hidden" name="money" value="{{=Core.Data.money}}" /> | ||
261 | + <p class="align-left" > | ||
262 | + 当前可用游爱星为<span class="text-info">{{=Core.Data.total_amount}}</span>颗,兑换<span class="text-info">{{=Core.Data.game_amount}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}}需要支付<span class="text-info">{{=Core.Data.youai_star}}</span>个游爱星 | ||
263 | + </p> | ||
264 | + <p class="align-left text-muted"> | ||
265 | + 注:<span class="text-info">1</span>颗游爱星可兑换<span class="text-info">{{=Core.Data.exchange_rate}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}} | ||
266 | + </p> | ||
267 | + <div class="verify align-left"> | ||
268 | + <input type="number" name="vdcode" id="vdcode" required="" placeholder="输入验证码"> | ||
269 | + <img id="vdimgck1" src="{{=Core.server}}/validate_code/" onclick="this.src=this.src+'?'+(new Date()).getTime()" style="cursor: pointer;" alt="看不清?点击更换" /> | ||
270 | + </div> | ||
271 | + | ||
272 | + <hr/> | ||
273 | + <div class="clearfix"> | ||
274 | + <a href="#channel_list&force" class="btn width100" >使用支付宝、银行卡、神州行充值</a> | ||
275 | + </div> | ||
276 | + </form> | ||
277 | + </div> | ||
278 | + </div> | ||
279 | +</script> | ||
280 | + | ||
281 | +<script id='channel_list_template' type='text/x-jquery-tmpl'> | ||
282 | + <div class="header"> | ||
283 | + <span class="title">充值中心</span> | ||
284 | + {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }} | ||
285 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | ||
286 | + {{??}} | ||
287 | + <a class="btn-link poslft" href="#home">修改数量</a> | ||
288 | + {{?}} | ||
289 | + {{? Core.Data.pay_only != 1 }} | ||
290 | + <a class="btn-link posrgt" href="#trade_record">充值记录</a> | ||
291 | + {{?}} | ||
292 | + </div> | ||
293 | + | ||
294 | + | ||
295 | + <div class="container"> | ||
296 | + | ||
297 | + <div id="channel_list_wrapper" style="position:relative" class="scroll"> | ||
298 | + <div id="channel_list_scroller"> | ||
299 | + <div class="pay-info-cont clearfix"> | ||
300 | + <div class="iconfont icon-yonghutouxiang pull-left"></div> | ||
301 | + <div class="user-msg pull-left align-left"> | ||
302 | + <h2>玩家:{{=Core.Data.username}}</h2> | ||
303 | + <h2>ID:{{=Core.Data.user_id}}</h2> | ||
304 | + <p>充值金额:<span>{{=Core.Data.money}}元</span></p> | ||
305 | + </div> | ||
306 | + </div> | ||
307 | + | ||
308 | + | ||
309 | + | ||
310 | + <div class="box_info_center"> | ||
311 | + | ||
312 | + <div class="channel_list align-left" > | ||
313 | + {{? Core.Data.youai_star <= Core.Data.total_amount }} | ||
314 | + <!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>--> | ||
315 | + {{?}} | ||
316 | + {{~Core.Data.game_pay_channel_list :item:index }} | ||
317 | + {{?item.name}} | ||
318 | + | ||
319 | + <a href="#" data-id="{{=item.id}}" class="btn channel btn-block clearfix"> | ||
320 | + <div class="image pull-left"><img src="{{=item.icon}}"/></div> | ||
321 | + {{=item.name}} <i class="iconfont icon-xiangyou pull-right" style="color:#b5b5b6;font-size:24px;"></i></a> | ||
322 | + | ||
323 | + {{?}} | ||
324 | + {{~}} | ||
325 | + {{? Core.Data.pay_only != 1 }} | ||
326 | + {{? Core.Data.ad_game.length >= 1}} | ||
327 | + {{??}} | ||
328 | + {{?}} | ||
329 | + {{?}} | ||
330 | + | ||
331 | + </div> | ||
332 | + | ||
333 | + | ||
334 | + <div class="warm-prompt align-left"> | ||
335 | + <h2>温馨提示</h2> | ||
336 | + <p>* 充值过程中遇到问题,可<a href="#">联系客服</a></p> | ||
337 | + <p>* {{=Core.Data.money}}元={{=Core.Data.game_amount}} {{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}},充值一般1-10分钟即可到账,请放心充值。</p> | ||
338 | + /*<p> | ||
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>元人民币. | ||
340 | + </p>*/ | ||
341 | + </div> | ||
342 | + | ||
343 | + | ||
344 | + {{? Core.Data.pay_only != 1 }} | ||
345 | + <p class="align-left text-muted tips9133"> | ||
346 | + {{? Core.Data.vip > 0}} | ||
347 | + {{??}} | ||
348 | + {{?}} | ||
349 | + </p> | ||
350 | + {{?}} | ||
351 | + </div> | ||
352 | + </div> | ||
353 | + </div> | ||
354 | + </div> | ||
355 | + | ||
356 | +</script> | ||
357 | + | ||
358 | + | ||
359 | +<script id='pay_template' type='text/x-jquery-tmpl'> | ||
360 | + <div class="header"> | ||
361 | + <span class="title">{{=Core.Data.current_pay_channel.name}}充值</span> | ||
362 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | ||
363 | + <a class="btn-link posrgt" href="#pay_feedback">无法充值?</a> | ||
364 | + </div> | ||
365 | + <div class="container"> | ||
366 | + | ||
367 | + <div id="pay_panel_wrapper"> | ||
368 | + | ||
369 | + <div class="pay-info-cont clearfix"> | ||
370 | + <div class="iconfont icon-yonghutouxiang pull-left"></div> | ||
371 | + <div class="user-msg pull-left align-left"> | ||
372 | + <h2>玩家:{{=Core.Data.username}}</h2> | ||
373 | + <h2>ID:{{=Core.Data.user_id}}</h2> | ||
374 | + <p>充值金额:<span>{{=Core.Data.money}}元</span></p> | ||
375 | + </div> | ||
376 | + </div> | ||
377 | + <div class="box_info_center"> | ||
378 | + <form id="pay_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" > | ||
379 | + <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | ||
380 | + <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | ||
381 | + <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | ||
382 | + <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> | ||
383 | + {{? Core.Data.current_pay_channel }} | ||
384 | + <input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" /> | ||
385 | + | ||
386 | + <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | ||
387 | + <input type="hidden" name="money" value="{{=Core.Data.money}}" /> | ||
388 | + <div class="require_input "> | ||
389 | + {{? Core.Data.current_pay_channel.config['input_item'] }} | ||
390 | + <p class="align-left"> | ||
391 | + <label>您选择了<span>{{=Core.Data.current_pay_channel.name}}</span>充值方式</label> | ||
392 | + </p> | ||
393 | + <p class="clearfix" style="margin:15px 0 20px"> | ||
394 | + <label class="pull-left">充值卡面额:</label> | ||
395 | + <select class="card_amount larg pull-left" name="amount" > | ||
396 | + <option value='选择金额' >选择金额</option> | ||
397 | + {{~ Core.Data.current_pay_channel.config['amount_level'] :amount}} | ||
398 | + {{? amount >= Core.Data.money }} | ||
399 | + <option value="{{=amount}}" >{{=amount}}</option> | ||
400 | + {{?}} | ||
401 | + {{~}} | ||
402 | + </select> | ||
403 | + </p> | ||
404 | + {{~ Core.Data.current_pay_channel.config['input_item'] :item:index }} | ||
405 | + {{? item.name === 'card_num' }} | ||
406 | + <p class="clearfix"> | ||
407 | + <label class="pull-left">充值卡号:</label> | ||
408 | + <input type="text" required="" class="larg pull-left" name="{{=item.name}}" format="{{=item.format}}" title="{{=item.title}}" placeholder="{{=item.placeholder}}" /> | ||
409 | + </p> | ||
410 | + {{?? item.name === 'card_pwd' }} | ||
411 | + <p class="clearfix"> | ||
412 | + <label class="pull-left">充值密码:</label> | ||
413 | + <input type="password" required class="larg pull-left" name="{{=item.name}}" title="{{=item.title}}" placeholder="{{=item.placeholder}}" /> | ||
414 | + </p> | ||
415 | + {{?}} | ||
416 | + {{~}} | ||
417 | + | ||
418 | + <div class="clearfix"> | ||
419 | + <a href="#channel_list" class="btn-cancel pull-left w235 btn">取消</a> | ||
420 | + <input class="larg btn btn-determine pull-right" style="width:235px; margin:0;" type="submit" value="确定" /> | ||
421 | + </div> | ||
422 | + | ||
423 | + <div class="warm-prompt"> | ||
424 | + <h2>温馨提示</h2> | ||
425 | + <p>* 请根据充值卡面额选择正确的充值金额,并确保卡号密码输入无误。</p> | ||
426 | + <p>* 充值过程中遇到问题,<a href="#">可联系客服</a></p> | ||
427 | + /*<p class="align-left text-muted select-info"></p>*/ | ||
428 | + </div> | ||
429 | + {{?? }} | ||
430 | + <div class="align-left"> | ||
431 | + 充值<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>元 | ||
432 | + </div> | ||
433 | + <div class="align-left text-muted">注:<span class="text-info">1</span>元人民币可以兑换<span class="text-info">{{=Core.Data.rate*Core.Data.exchange_rate}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}}.</div> | ||
434 | + <input class="larg btn zhifubaoBtn" type="submit" value="前往付款" /> | ||
435 | + {{?}} | ||
436 | + </div> | ||
437 | + {{?}} | ||
438 | + </form> | ||
439 | + </div> | ||
440 | + | ||
441 | + </div> | ||
442 | +</div> | ||
443 | +</script> | ||
444 | + | ||
445 | +<script id="pay_proxy_template" type="text/x-jquery-tmpl"> | ||
446 | + <div class="header"> | ||
447 | + <span class="title">确认代付</span> | ||
448 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#proxy_record"></a> | ||
449 | + </div> | ||
450 | + <div class="container"> | ||
451 | + {{? !Core.Data.temp.msg }} | ||
452 | + <h4 class="align-left" > | ||
453 | + 来自<span class="text-info" > | ||
454 | + 【{{=Core.Data.temp.game_name}}】</span> - 【{{=Core.Data.temp.server_name}}】的 | ||
455 | + <span class="text-warning">【{{=Core.Data.temp.role_name}}】</span> | ||
456 | + 向你发起一笔代付,请你帮忙付款 | ||
457 | + <span class="text-warning" > | ||
458 | + {{=Core.Data.temp.game_amount}} | ||
459 | + {{=Core.Data.temp.game_amount_unit}} | ||
460 | + {{=Core.Data.temp.game_amount_unit_name}} | ||
461 | + </span> | ||
462 | + </h4> | ||
463 | + <form action="/pay/proxy/pay" method="post" class="ajax" data-todo="pay_proxy_callback" > | ||
464 | + <div class="pay-proxy-info clearfix"> | ||
465 | + <div class="btn-group clearfix" > | ||
466 | + <input type="hidden" name="id" value="{{=Core.Data.temp.trade_id}}" /> | ||
467 | + <button class="btn btn-payfor" type="submit">确认为他付款</button><br/> | ||
468 | + or<br/> | ||
469 | + <a class="ajax btn-undo" href="/pay/proxy/undo?id={{=Core.Data.temp.trade_id}}">拒绝付款</a> | ||
470 | + </div> | ||
471 | + <div class="desc"> | ||
472 | + <p> | ||
473 | + 可用游爱星:<span class="text-warning">{{=Core.Data.temp.amount}}颗</span> | ||
474 | + </p> | ||
475 | + <p> | ||
476 | + 应付游爱星:<span class="text-warning">{{=Core.Data.temp.youai_star}}颗</span> | ||
477 | + <small>(1:{{=Core.Data.temp.exchange_rate}})</small> | ||
478 | + </p> | ||
479 | + {{?Core.Data.temp.pay_message != ''}} | ||
480 | + <p class="pay-message"> | ||
481 | + <small>他说:{{=Core.Data.temp.pay_message}}</small> | ||
482 | + </p> | ||
483 | + {{?}} | ||
484 | + </div> | ||
485 | + </div> | ||
486 | + </form> | ||
487 | + <div class="alert align-left"> | ||
488 | + <small>为避免风险,建议和代付申请人通过电话等方式确认以上信息</small> | ||
489 | + </div> | ||
490 | + {{??}} | ||
491 | + <h1>{{=Core.Data.temp.msg}}</h1> | ||
492 | + <a class="btn larg" href="#back" > | ||
493 | + 返回 | ||
494 | + </a> | ||
495 | + {{?}} | ||
496 | + </div> | ||
497 | +</script> | ||
498 | + | ||
499 | +<script id='pay_result_template' type='text/x-jquery-tmpl'> | ||
500 | + <div class="header"> | ||
501 | + <span class="title">支付结果</span> | ||
502 | + | ||
503 | + </div> | ||
504 | + <div class="container"> | ||
505 | + <p class="lead" style=" font-size:30px; text-align:center; margin:30px 0;"> | ||
506 | + {{=Core.Data.success_msg}} | ||
507 | + </p> | ||
508 | + | ||
509 | + <a href="javascript:Core.finishPay()" class="btn larg conBtn">继续游戏</a> | ||
510 | + </div> | ||
511 | +</script> | ||
512 | +<script id="invite_friend_template" type="text/x-jquery-tmpl"> | ||
513 | + <div class="header"> | ||
514 | + <span class="title">分享得{{=Core.Data.game_unit_name}}</span> | ||
515 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | ||
516 | + </div> | ||
517 | + <div class="container align-left"> | ||
518 | + <div class="box_info_center"> | ||
519 | + | ||
520 | + <div class="fs_box invite_box"> | ||
521 | + <h3 class="text-info">奖励说明:</h3> | ||
522 | + | ||
523 | + </div> | ||
524 | + </div> | ||
525 | + </div> | ||
526 | +</script> | ||
527 | +<script id='other_template' type='text/x-jquery-tmpl'> | ||
528 | + <div class="header"> | ||
529 | + <span class="title">免费获得{{=Core.Data.game_unit_name}}</span> | ||
530 | + <a class="btn pull-left op-back op-primary" href="#channel_list">返回</a> | ||
531 | + </div> | ||
532 | + <div class="container align-left"> | ||
533 | + {{? Core.Data.ad_game.length >= 1}} | ||
534 | + <div class="sec sec_invtite"> | ||
535 | + <p class="title-fs">方式一:下载指定游戏可获得{{=Core.Data.game_unit_name}}</p> | ||
536 | + <ol class="other-pay"> | ||
537 | + {{~ Core.Data.ad_game :item:index}} | ||
538 | + {{? item.id}} | ||
539 | + <li> | ||
540 | + <a href="/ad/get/star/?id={{=item.id}}" target="_bank"> | ||
541 | + <img src="{{=item.icon}}"/> | ||
542 | + <h4>{{=item.name}}</h4> | ||
543 | + <span>可获<strong class="text-info">{{=item.ad_prize}}颗</strong>游戏币</span> | ||
544 | + </a> | ||
545 | + </li> | ||
546 | + {{?}} | ||
547 | + {{~}} | ||
548 | + </ol> | ||
549 | + </div> | ||
550 | + <div class="sec sec_invtite"> | ||
551 | + | ||
552 | + </div> | ||
553 | + {{??}} | ||
554 | + <div class="sec sec_invtite"> | ||
555 | + | ||
556 | + </div> | ||
557 | + {{?}} | ||
558 | + </div> | ||
559 | +</script> | ||
560 | +<script id="kefu_list_template" type="text/x-jquery-tmpl"> | ||
561 | + <div class="header"> | ||
562 | + <span class="title">在线客服</span> | ||
563 | + {{? Core.start_page == 'kefu_list'}} | ||
564 | + <a class="btn-link poslft" href="sdk://exit?action=center">返回游戏</a> | ||
565 | + {{??}} | ||
566 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#pay_feedback"></a> | ||
567 | + {{?}} | ||
568 | + </div> | ||
569 | + <div class="container"> | ||
570 | + <div class="box_info_center padding_box"> | ||
571 | + <div id="kefu_wrapper" style="position: relative" class="scroll"> | ||
572 | + <ol class="kefu-list list" data-role="ajax-html" | ||
573 | + data-params-url="/user/question/list?page_size=10" | ||
574 | + data-params-template="tpl_kefu_list"> | ||
575 | + | ||
576 | + </ol> | ||
577 | + </div> | ||
578 | + </div> | ||
579 | + </div> | ||
580 | +</script> | ||
581 | +<script id="question_detail_template" type="text/x-jquery-tmpl"> | ||
582 | + <div class="header"> | ||
583 | + <span class="title">问题详细</span> | ||
584 | + <a class="btn pull-left op-back" href="#kefu_list">返回</a> | ||
585 | + </div> | ||
586 | + <div class="container"> | ||
587 | + <div class="detail_scroller scroll" id="question_detail_scroller"> | ||
588 | + <div> | ||
589 | + <div class="align-left question_del"> | ||
590 | + <h2>Q:【{{=Core.Data.question_detail.q_type}}】{{=Core.Data.question_detail.question}} <span class="q_time">{{=Core.Data.question_detail.create_time}}</span> </h2> | ||
591 | + </div> | ||
592 | + <hr> | ||
593 | + <ol class="question-list list"> | ||
594 | + {{? Core.Data.question_detail.the_question_list.length == 1 }} | ||
595 | + <p class="tip">客服MM还没回复...</p> | ||
596 | + {{??}} | ||
597 | + {{~ Core.Data.question_detail.the_question_list :item:index }} | ||
598 | + {{? item.id}} | ||
599 | + <li > | ||
600 | + <span class="pull-right">{{=item.reply_time}}</span> | ||
601 | + <span class="kefu text-warning"> | ||
602 | + 客服-{{=item.nickname}}说: | ||
603 | + </span> | ||
604 | + <div class="content">{{=item.answer}} | ||
605 | + </div> | ||
606 | + <p class="scroe"> | ||
607 | + {{? item.score != -1 }} | ||
608 | + 您的评价: <span class="btn">{{=item.score_name}}</span> | ||
609 | + {{??}} | ||
610 | + {{~ Core.Data.question_detail.score_map :qa:pos}} | ||
611 | + {{? qa.key}} | ||
612 | + <a href="/user/question/evaluate/?id={{=item.id}}&score={{=qa.key}}" class="btn ajax" data-todo="question_evaluate">{{=qa.val}}</a> | ||
613 | + {{?}} | ||
614 | + {{~}} | ||
615 | + {{?}} | ||
616 | + </p> | ||
617 | + </li> | ||
618 | + {{?}} | ||
619 | + {{~ }} | ||
620 | + {{? Core.Data.question_detail.page_num < Core.Data.question_detail.total_page}} | ||
621 | + <li class="more"> | ||
622 | + <a class="btn" href="/user/question/{{=Core.Data.question_detail.id}}&format=json&page_size=5&page_num={{=(Core.Data.question_detail.page_num+1)}}.html" data-role="ajax-html" data-params-template="tpl_question_detail" data-params-append="true" >点击加载</a> | ||
623 | + </li> | ||
624 | + {{?}} | ||
625 | + {{?}} | ||
626 | + </ol> | ||
627 | + </div> | ||
628 | + </div> | ||
629 | + </div> | ||
630 | + </script> | ||
631 | + | ||
632 | +<script id='tpl_kefu_list_template' type='text/x-jquery-tmpl'> | ||
633 | +{{? it.model_list.length == 1 }} | ||
634 | + <p>您好,手游平台客服MM全身心为您服务。请点击右上角的按钮输入您所遇到的问题,或者点击常见问题查看是否有您遇到的问题。</p> | ||
635 | +{{??}} | ||
636 | + {{~ it.model_list :item:index }} | ||
637 | + {{? item.id}} | ||
638 | + <li > | ||
639 | + <a class="item" href="" type="button" data-id="{{=item.id}}"> | ||
640 | + <span class="question_title">{{=item.question}}</span> | ||
641 | + {{? item.status == 1 }} | ||
642 | + <span class="statu statu_yes">已解答</span> | ||
643 | + {{??}} | ||
644 | + <span class="statu statu_no">未解答</span> | ||
645 | + {{?}} | ||
646 | + <span class="pull-right q_time">{{=item.create_time}}</span> | ||
647 | + </a> | ||
648 | + </li> | ||
649 | + {{?}} | ||
650 | + {{~ }} | ||
651 | + {{? it.page_num < it.total_page}} | ||
652 | + <li class="more"> | ||
653 | + <a class="btn" href="/user/question/list?format=json&page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_kefu_list" data-params-append="true" >点击加载</a> | ||
654 | + </li> | ||
655 | + {{?}} | ||
656 | +{{?}} | ||
657 | +</script> | ||
658 | +<script id='tpl_question_detail_template' type='text/x-jquery-tmpl'> | ||
659 | +{{~ it.model_list :item:index }} | ||
660 | + {{? item.id}} | ||
661 | + <li > | ||
662 | + <span class="pull-right">{{=item.reply_time}}</span> | ||
663 | + <span class="kefu text-warning"> | ||
664 | + 客服-{{=item.nickname}}说: | ||
665 | + </span> | ||
666 | + <div class="content ">{{=item.answer}} | ||
667 | + </div> | ||
668 | + <p class="score"> | ||
669 | + {{? item.score != -1 }} | ||
670 | + 您的评价: <span class="btn">{{=item.score_name}}</span> | ||
671 | + {{??}} | ||
672 | + {{~ it.score_map :qa:pos}} | ||
673 | + {{? qa.key}} | ||
674 | + <a href="/user/question/evaluate/?id={{=item.id}}&score={{=qa.key}}" class="btn ajax" data-todo="question_evaluate">{{=qa.val}}</a> | ||
675 | + {{?}} | ||
676 | + {{~}} | ||
677 | + {{?}} | ||
678 | + </p> | ||
679 | + </li> | ||
680 | + {{?}} | ||
681 | + {{~ }} | ||
682 | + {{? it.page_num < it.total_page}} | ||
683 | + <li class="more"> | ||
684 | + <a class="btn" href="/user/question/{{=it.id}}&format=json&page_size=5&page_num={{=(it.page_num+1)}}.html" data-role="ajax-html" data-params-template="tpl_question_detail" data-params-append="true" >点击加载</a> | ||
685 | + </li> | ||
686 | + {{?}} | ||
687 | +</script> | ||
688 | +<script id='tpl_trade_record_template' type='text/x-jquery-tmpl'> | ||
689 | +{{? it.model_list.length == 1 }} | ||
690 | + <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> | ||
691 | +{{??}} | ||
692 | +{{? it.page_num == 1}} | ||
693 | + <div class="pay-info-cont clearfix"> | ||
694 | + <div class="iconfont icon-yonghutouxiang pull-left"></div> | ||
695 | + <div class="user-msg pull-left align-left"> | ||
696 | + <h2>玩家:{{=Core.Data.username}}</h2> | ||
697 | + </div> | ||
698 | + </div> | ||
699 | +{{?}} | ||
700 | + {{~ it.model_list :item:index }} | ||
701 | + {{? item.id}} | ||
702 | + <li class="integral"> | ||
703 | + <div class="box"> | ||
704 | + <h2> | ||
705 | + <i class="icon iconfont icon-shuangyuanquan"></i> | ||
706 | + <div class="time"><h3>{{=item.last_firendlyTime}}</h3></div> | ||
707 | + </h2> | ||
708 | + <div class="textbox"> | ||
709 | + <div class="text"> | ||
710 | + <h3> | ||
711 | + <strong>{{=item.server_name}}</strong><small><{{=item.role_name}}></small> | ||
712 | + <span class="statu {{? item.get_status.indexOf('成功') > -1 }} text-success {{?? item.get_status.indexOf('拒绝')>-1 || item.get_status.indexOf('失败')>-1}} text-error{{??}} text-info{{?}}"> | ||
713 | + [{{? item.remark}} | ||
714 | + <span class="text-error">{{=item.remark}}</span> | ||
715 | + {{?}} | ||
716 | + {{=item.get_status}}] | ||
717 | + </span> | ||
718 | + </h3> | ||
719 | + <div class="txt"> | ||
720 | + <h3>获得{{=Core.Data.game_unit_name}}<strong>{{=item.game_amount}}</strong>{{=Core.Data.game_unit}}。</h3> | ||
721 | + <p>订单:{{=item.id}}</> | ||
722 | + </div> | ||
723 | + <div class="position"><i class="iconfont icon-triangle-left-copy"></i></div> | ||
724 | + </div> | ||
725 | + </div> | ||
726 | + </div> | ||
727 | + | ||
728 | + | ||
729 | + </li> | ||
730 | + {{?}} | ||
731 | + {{~ }} | ||
732 | + {{? it.page_num < it.total_page}} | ||
733 | + <li class="more"> | ||
734 | + <a class="btn" href="/trade/list/user?page_size=5&page_num={{=(it.page_num+1)}}&game_id={{=it.search_profile.game_id}}&server_id={{=it.search_profile.server_id}}" data-role="ajax-html" data-params-template="tpl_trade_record" data-params-append="true" data-params-todo="refresh_iscorll" >下一页</a> | ||
735 | + </li> | ||
736 | + {{?}} | ||
737 | +{{?}} | ||
738 | +</script> | ||
739 | + | ||
740 | +<script id='tpl_proxy_record_template' type='text/x-jquery-tmpl'> | ||
741 | +{{? it.model_list.length == 1 }} | ||
742 | + <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> | ||
743 | +{{??}} | ||
744 | + {{~ it.model_list :item:index }} | ||
745 | + {{? item.id}} | ||
746 | + <li> | ||
747 | + <p class="detail"> | ||
748 | + <span class="statu {{? item.get_status.indexOf('成功') > -1 }} text-success {{?? item.get_status.indexOf('拒绝')>-1 || item.get_status.indexOf('失败')>-1}} text-error{{??}} text-info{{?}}"> | ||
749 | + [{{? item.status == 1 }} | ||
750 | + <a class="btn op-payfor" href="#pay_proxy&id={{=item.id}}" data-id="{{=item.id}}">支付</a> | ||
751 | + {{??}} | ||
752 | + {{=item.get_status}}] | ||
753 | + {{?}} | ||
754 | + </span> | ||
755 | + <strong>{{=item.game_name}}</strong><small>{{=item.server_name}}<{{=item.role_name}}></small> | ||
756 | + </p> | ||
757 | + <p class="muted">消费游爱星<strong>{{=item.youai_star}}</strong>颗,获得{{=Core.Data.game_unit_name}}<strong>{{=item.game_amount}}</strong>{{=Core.Data.game_unit}}。</p> | ||
758 | + <p class="info"><small class="pull-right muted time_p">{{=item.last_firendlyTime}}</small> | ||
759 | + | ||
760 | + <span class="order-text">订单:{{=item.id}}</span> | ||
761 | + </p> | ||
762 | + </li> | ||
763 | + {{?}} | ||
764 | + {{~ }} | ||
765 | + {{? it.page_num < it.total_page}} | ||
766 | + <li class="more"> | ||
767 | + <a class="btn" href="/trade/list/proxy?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_proxy_record" data-params-append="true" >下一页</a> | ||
768 | + </li> | ||
769 | + {{?}} | ||
770 | +{{?}} | ||
771 | +</script> | ||
772 | +</div> | ||
773 | + | ||
774 | +<script type="text/javascript" src="js/fastclick.min.1.0.js?201309041309"></script> | ||
775 | +<script type="text/javascript" src="js/zepto.min.js?201309041309"></script> | ||
776 | +<script type="text/javascript" src="js/doT.min.js?201309041309" ></script> | ||
777 | +<script type="text/javascript" src="js/iscroll.min.1.0.js?201309041309" ></script> | ||
778 | +<script type="text/javascript"> | ||
779 | +window.isGetData = 0; | ||
780 | +$(function() { | ||
781 | +FastClick.attach(document.body); | ||
782 | +}); | ||
783 | +</script> | ||
784 | +<script type="text/javascript" src="js/core.min.js?201504218002" ></script> | ||
785 | +<script type="text/javascript" src="js/pay.min.js?201504218001" ></script> | ||
786 | +<script type="text/javascript" src="js/loader.min.js?201504218001"></script> | ||
787 | + | ||
788 | +<script type="text/javascript"> | ||
789 | +(function(){ | ||
790 | + getData('/sdk/pay/json'); | ||
791 | +})(); | ||
792 | +$(function(){ | ||
793 | + if (Core.isIos) { | ||
794 | + $('meta[name="viewport"]').attr('content','width=800,maximum-scale=1,user-scalable=no'); | ||
795 | + } | ||
796 | +}); | ||
797 | +</script> | ||
798 | + | ||
799 | +</body> | ||
800 | +</html> |
publicAndroidSDK/assets/sdk/readyme.txt
0 → 100644
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 |
publicAndroidSDK/assets/sdk/share.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | +<meta name="viewport" content="width=device-width, user-scalable=no,target-densitydpi=device-dpi" /> | ||
5 | +<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
6 | +<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
7 | +<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
8 | +<meta name="format-detection" content="telephone=no"> | ||
9 | +<meta name="screen-orientation" content="portrait"> | ||
10 | +<meta name="full-screen" content="yes"> | ||
11 | +<meta http-equiv="x-ua-compatible" content="IE=edge" /> | ||
12 | +<link href="skin/new_sdk.min.css?v=20150318002" 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" /> | ||
15 | +<title> | ||
16 | +手游平台登录 | ||
17 | +</title> | ||
18 | +</head> | ||
19 | +<body> | ||
20 | + | ||
21 | + | ||
22 | +<div class="mask"> | ||
23 | +<div class="container_load" id="loading"> | ||
24 | + <div class="content"> | ||
25 | + <div class="circle"></div> | ||
26 | + <div class="circle1"></div> | ||
27 | + </div> | ||
28 | +</div> | ||
29 | +<div class="alert alert-success hide" id="alert"> | ||
30 | + <button type="button" class="close" data-dismiss="alert">×</button> | ||
31 | + <span></span> | ||
32 | +</div> | ||
33 | +<section id="home" data-attr="dot" class="hide"></section> | ||
34 | +<section id="frame" data-attr="dot" class="hide" ></section> | ||
35 | +<script id="frame_template" type="text/x-jquery-tmpl" > | ||
36 | + <div class="header"> | ||
37 | + <span class="title">{{=Core.Data.frame_title}}</span> | ||
38 | + <a class="btn pull-left op-back" href="#main">返回</a> | ||
39 | + </div> | ||
40 | + <div class="container" style=""> | ||
41 | + <div class="container_load in_frame" id="loading_frame"> | ||
42 | + <div class="content"> | ||
43 | + <div class="circle"></div> | ||
44 | + <div class="circle1"></div> | ||
45 | + </div> | ||
46 | + </div> | ||
47 | + {{? Core.isIos}}<div class="ios_scroll">{{?}} | ||
48 | + <iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe> | ||
49 | + {{? Core.isIos}}</div>{{?}} | ||
50 | + </div> | ||
51 | +</script> | ||
52 | +<script id="home_template" type="text/x-jquery-tmpl"> | ||
53 | + <div class="header"> | ||
54 | + <span class="title">分享游戏</span> | ||
55 | + <a class="btn pull-left op-back" href="sdk://exit?action=share">回到游戏</a> | ||
56 | + </div> | ||
57 | + <div class="container"> | ||
58 | + <div class="box_info_center"> | ||
59 | + <div class="share_box1"> | ||
60 | + <div class="share_game clearfix"> | ||
61 | + <img class="pull-left game_face" src="{{=Core.Data.icon || ''}}" height="75" width="75"> | ||
62 | + <textarea class="s_content">{{=Core.Data.content || '这款游戏还不错噢,一起来玩吧!'}}</textarea> | ||
63 | + </div> | ||
64 | + </div> | ||
65 | + <div class="share_box2"> | ||
66 | + <div class=""> | ||
67 | + <h3 class="text-info">分享到</h3> | ||
68 | + <ul class="other-login inline clearfix"> | ||
69 | + <li><a href="/sdk/share/game/qq/?app_id={{=Core.Data.app_id || ''}}" class="qq" title="QQ空间分享"></a></li> | ||
70 | + <li><a href="/sdk/share/game/sina/?app_id={{=Core.Data.app_id || ''}}" class="sina" title="新浪微博分享"></a></li> | ||
71 | + <li><a href="/sdk/share/game/tqq/?app_id={{=Core.Data.app_id || ''}}" class="tqq" title="腾讯微博分享"></a></li> | ||
72 | + </ul> | ||
73 | + <div class="invite_box"> | ||
74 | + <h3 class="text-info">奖励说明:</h3> | ||
75 | + <p> | ||
76 | + 1.成功邀请好友一起玩游戏,您可获得<span class="text-info">5{{=Core.Data.game_unit_name}}</span>的奖励。 | ||
77 | + </p> | ||
78 | + <p> | ||
79 | + 2.好友若充值(限前10笔),您可获得<span class="text-info">5%</span>充值奖励。 | ||
80 | + </p> | ||
81 | + <p> | ||
82 | + 3.好友首次充值,因被您邀请可额外获得<span class="text-info">10%</span>充值返利。 | ||
83 | + </p> | ||
84 | + </div> | ||
85 | + </div> | ||
86 | + </div> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | +</script> | ||
90 | +</div> | ||
91 | + | ||
92 | +<script type="text/javascript" src="js/fastclick.min.1.0.js?201309041309"></script> | ||
93 | +<script type="text/javascript" src="js/zepto.min.js?201309041309"></script> | ||
94 | +<script type="text/javascript" src="js/doT.min.js?201309041309" ></script> | ||
95 | +<script type="text/javascript"> | ||
96 | +window.isGetData = 0; | ||
97 | +$(function() { | ||
98 | +FastClick.attach(document.body); | ||
99 | +}); | ||
100 | +</script> | ||
101 | +<script type="text/javascript" src="js/core.min.js?201403141112" ></script> | ||
102 | +<script type="text/javascript"> | ||
103 | + (function(){ | ||
104 | + // Home模块 | ||
105 | + var Home = function(modId) { | ||
106 | + Module.call(this, modId); | ||
107 | + } | ||
108 | + // 继承基础模块 | ||
109 | + Core.inherit(Home, Module); | ||
110 | + Home.prototype.bind = function(){ | ||
111 | + var that = this; | ||
112 | + that.$c.on('click', '.other-login a', function(e){ | ||
113 | + e.preventDefault(); | ||
114 | + //分享连接 | ||
115 | + var $tar = $(e.target); | ||
116 | + var content = that.$c.find('.s_content').val(); | ||
117 | + $tar.attr('params', 'content=' + content); | ||
118 | + Core.ajax_do($tar, function(data){ | ||
119 | + console.log(data); | ||
120 | + if(data.code == 0){ | ||
121 | + if(data.msg.next_url){ | ||
122 | + // 需要重新授权 | ||
123 | + var src = data.msg.next_url; | ||
124 | + if (Core.isFile) { | ||
125 | + src = Core.server + src; | ||
126 | + } | ||
127 | + Core.Data.frame_title = $tar.attr('title'); | ||
128 | + Core.Data.frame_src = src; | ||
129 | + Core.updateMod('frame'); | ||
130 | + } else { | ||
131 | + // | ||
132 | + Core.showTips(data.msg); | ||
133 | + } | ||
134 | + } | ||
135 | + }, that); | ||
136 | + }); | ||
137 | + } | ||
138 | + Core.registerMod('home', Home); | ||
139 | + var Frame = function(modId) { | ||
140 | + Module.call(this, modId); | ||
141 | + } | ||
142 | + Core.inherit(Frame, Module); | ||
143 | + Frame.prototype.show_after = function() { | ||
144 | + var that = this; | ||
145 | + var _des = Core.last_mod ? Core.last_mod : 'home'; | ||
146 | + this.$c.find('a.btn.pull-left').attr('href', '#' + _des); | ||
147 | + this.$c.find('iframe')[0].onload = function() { | ||
148 | + that.$c.find('#loading_frame').hide(); | ||
149 | + } | ||
150 | + } | ||
151 | + Core.registerMod('frame', Frame); | ||
152 | + })(); | ||
153 | +</script> | ||
154 | +<script type="text/javascript" src="js/loader.min.js?201401151617"></script> | ||
155 | +<script type="text/javascript"> | ||
156 | +(function(){ | ||
157 | + window.isGetData = 1; | ||
158 | + getData('/game/info/'); | ||
159 | +})(); | ||
160 | +</script> | ||
161 | + | ||
162 | +</body> | ||
163 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/skin/login.css
0 → 100644
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 | +} | ||
123 | +.new-sdk-container .new-sdk-logo img{ | ||
124 | + display: block; | ||
125 | + width: 210px; | ||
126 | + margin: 0 auto; | ||
127 | + padding: 15px 0 0 0; | ||
128 | + height:53px; | ||
129 | +} | ||
130 | +.new-sdk-container .new-sdk-box{ | ||
131 | + padding: 20px 37px; | ||
132 | + border-top: 1px solid #c4c3c3; | ||
133 | + box-sizing: border-box; | ||
134 | + -moz-box-sizing: border-box; | ||
135 | + -webkit-box-sizing: border-box; | ||
136 | +} | ||
137 | +.new-sdk-container .new-sdk-box .input{ | ||
138 | + margin-bottom: 15px; | ||
139 | + border: 1px solid #c0c0c0; | ||
140 | + /*box-shadow: 1px 2px 2px #c2c2c2 inset;*/ | ||
141 | + border-radius: 10px; | ||
142 | + -moz-border-radius: 10px; | ||
143 | + -webkit-border-radius: 10px; | ||
144 | + padding: 25px 0; | ||
145 | + background: #fff; | ||
146 | + box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; | ||
147 | +} | ||
148 | +.new-sdk-container .new-sdk-box .input input{ | ||
149 | + display: inline-block; | ||
150 | + width:100%; | ||
151 | + background: none; | ||
152 | + border: none; | ||
153 | + color: #000; | ||
154 | + font-size: 30px; | ||
155 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
156 | + white-space:nowrap; | ||
157 | + text-overflow:ellipsis; | ||
158 | + overflow:hidden; | ||
159 | + word-break:break-all; | ||
160 | + height: 45px; | ||
161 | + line-height: 45px; | ||
162 | + vertical-align: middle; | ||
163 | + margin: 20px 0; | ||
164 | +} | ||
165 | +.new-sdk-container .new-sdk-box .inputCode input,.new-sdk-container .new-sdk-box .inputCode .getCode{ | ||
166 | + width:100%; | ||
167 | + background: none; | ||
168 | + border: none; | ||
169 | + color: #000; | ||
170 | + font-size: 30px; | ||
171 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
172 | + white-space:nowrap; | ||
173 | + text-overflow:ellipsis; | ||
174 | + overflow:hidden; | ||
175 | + word-break:break-all; | ||
176 | +} | ||
177 | +/*#js_getcode{ | ||
178 | + height: 80px; | ||
179 | + line-height: 80px; | ||
180 | +}*/ | ||
181 | +/*.new-sdk-container .step-box .new-sdk-box .input input,.new-sdk-container .step-box .new-sdk-box .inputCode .getCode{ | ||
182 | + height: 80px; | ||
183 | + line-height: 80px; | ||
184 | +}*/ | ||
185 | +.new-sdk-container .new-sdk-box .inputCode .input{ | ||
186 | + float: left; | ||
187 | + width: 55%; | ||
188 | + padding: 0; | ||
189 | +} | ||
190 | +.new-sdk-container .new-sdk-box .inputCode .getCode{ | ||
191 | + width: 40%; | ||
192 | + float: right; | ||
193 | + color: #ff9600; | ||
194 | + border: 1px solid #ff9600; | ||
195 | + border-radius: 10px; | ||
196 | + text-align: center; | ||
197 | +} | ||
198 | +.new-sdk-container .new-sdk-box .inputCode .getCode.disabled{ | ||
199 | + border: 1px solid #c0c0c0; | ||
200 | + color: #c0c0c0; | ||
201 | + cursor : none; | ||
202 | + pointer-events: none; | ||
203 | +} | ||
204 | +.new-sdk-container .new-sdk-box p,.new-sdk-container .new-sdk-box p a{ | ||
205 | + color: #434343; | ||
206 | + font-size: 24px; | ||
207 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
208 | + margin: 20px 0 0; | ||
209 | +} | ||
210 | +.new-sdk-container .new-sdk-box .acount-name p span.phoneMobile{ | ||
211 | + color: #434343; | ||
212 | +} | ||
213 | +.new-sdk-container .new-sdk-box p span{ | ||
214 | + color: #da8000; | ||
215 | +} | ||
216 | +.new-sdk-container .inline-btn{ | ||
217 | + overflow: auto; | ||
218 | + zoom: 1; | ||
219 | + width: 88%; | ||
220 | + margin: 0px auto 25px auto; | ||
221 | +} | ||
222 | +.new-sdk-container .inline-btn li{ | ||
223 | + float: left; | ||
224 | + width: 45%; | ||
225 | + text-align: center; | ||
226 | + background: #ff9600; | ||
227 | + border-radius: 20px; | ||
228 | + padding: 26px 0; | ||
229 | +} | ||
230 | +.new-sdk-container .inline-btn li:nth-child(2n+2){ | ||
231 | + float: right; | ||
232 | + background: #00beef; | ||
233 | +} | ||
234 | +.new-sdk-container .login-inline-btn li{ | ||
235 | + background: #00beef; | ||
236 | +} | ||
237 | +.new-sdk-container .login-inline-btn li:nth-child(2n+2){ | ||
238 | + background: #ff9600; | ||
239 | +} | ||
240 | +.new-sdk-container .only-btn{ | ||
241 | + position: relative; | ||
242 | + text-align: center; | ||
243 | + width: calc(100% - 2em); | ||
244 | + width: -moz-calc(100% - 2em); | ||
245 | + width: -webkit-calc(100% - 2em); | ||
246 | + padding: 10px 0; | ||
247 | + /*background: #00beef;*/ | ||
248 | + border-radius: 10px; | ||
249 | + margin:1.0em auto 0; | ||
250 | +} | ||
251 | +.new-sdk-container .only-btn a.btn-orange{ | ||
252 | + display: block; | ||
253 | + width: 235px; | ||
254 | + margin: 0 auto; | ||
255 | + border-radius: 10px; | ||
256 | + font-size: 30px; | ||
257 | + padding: 25px 0; | ||
258 | +} | ||
259 | +.new-sdk-container .only-btn .readyed{ | ||
260 | + position: absolute; | ||
261 | + right: 0; | ||
262 | + top: 5px; | ||
263 | + color: #000; | ||
264 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
265 | + font-size: 18px; | ||
266 | +} | ||
267 | +.new-sdk-container .inline-btn a,.new-sdk-container .only-btn a{ | ||
268 | + display: block; | ||
269 | + color: #fff; | ||
270 | + font-size: 30px; | ||
271 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
272 | + letter-spacing: 2px; | ||
273 | +} | ||
274 | + | ||
275 | +.new-sdk-container .inline-btn .btn{ | ||
276 | + display:inline-block; | ||
277 | + border: 0; | ||
278 | + background: #00beef; | ||
279 | + color: #fff; | ||
280 | + font-size: 30px; | ||
281 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
282 | + letter-spacing: 2px; | ||
283 | + cursor: pointer; | ||
284 | + width: 100%; | ||
285 | + vertical-align: middle; | ||
286 | + border-radius: 20px; | ||
287 | + -moz-border-radius: 20px; | ||
288 | + -webkit-border-radius: 20px; | ||
289 | +} | ||
290 | +.new-sdk-container .inline-btn .btn-orange{ | ||
291 | + background: #ff9600 | ||
292 | +} | ||
293 | +.new-sdk-container .new-sdk-box .input select{ | ||
294 | + width: 100%; | ||
295 | + height: 88px; | ||
296 | + line-height: 88px; | ||
297 | + background: none; | ||
298 | + border: none; | ||
299 | + color: #434343; | ||
300 | + font-size: 30px; | ||
301 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
302 | +} | ||
303 | +.select2-container{ | ||
304 | + min-width: 100%; | ||
305 | +} | ||
306 | +.new-sdk-container .new-sdk-box .new-sdk-psw{ | ||
307 | + padding: 0 25px; | ||
308 | + | ||
309 | +} | ||
310 | +.new-sdk-container .new-sdk-box .input i{ | ||
311 | + display: inline-block; | ||
312 | + width: 90px; | ||
313 | + color: #000; | ||
314 | + font-size: 30px; | ||
315 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
316 | + font-style:normal; | ||
317 | +} | ||
318 | +.new-sdk-container .new-sdk-box .input label{ | ||
319 | + display: inline-block; | ||
320 | + width: calc(100% - 65px); | ||
321 | + width: -moz-calc(100% - 65px); | ||
322 | + width: -webkit-calc(100% - 65px); | ||
323 | +} | ||
324 | +.new-sdk-container .new-sdk-box .new-sdk-psw input{ | ||
325 | + padding: 0; | ||
326 | + text-align: left; | ||
327 | +} | ||
328 | + | ||
329 | +.new-sdk-container .new-sdk-box .new-sdk-lc{ | ||
330 | + margin:2em auto 0; | ||
331 | + overflow: auto; | ||
332 | + zoom: 1; | ||
333 | +} | ||
334 | +.new-sdk-container .new-sdk-box .new-sdk-lc .sleft{ | ||
335 | + float: left; | ||
336 | +} | ||
337 | +.new-sdk-container .new-sdk-lc .sleft .image{ | ||
338 | + width: 50px; | ||
339 | + height: 50px; | ||
340 | + position: relative; | ||
341 | +} | ||
342 | +.new-sdk-container .new-sdk-lc .sleft img{ | ||
343 | + max-height: 50px; | ||
344 | + max-width: 50px; | ||
345 | + width: auto; | ||
346 | + height: auto; | ||
347 | + position: absolute; | ||
348 | + left: 0; | ||
349 | + right: 0; | ||
350 | + top: 0; | ||
351 | + bottom: 0; | ||
352 | + margin: auto; | ||
353 | +} | ||
354 | +.new-sdk-container .new-sdk-lc .scenter{ | ||
355 | + float: left; | ||
356 | + margin-left: 10px; | ||
357 | + width: calc(100% - 180px); | ||
358 | + width: -moz-calc(100% - 180px); | ||
359 | + width: -webkit-calc(100% - 180px); | ||
360 | +} | ||
361 | +.new-sdk-container .new-sdk-lc .scenter p{ | ||
362 | + margin: 0; | ||
363 | + color: #000; | ||
364 | + text-overflow: ellipsis; | ||
365 | + white-space: nowrap; | ||
366 | + word-break: break-all; | ||
367 | + width: 100%; | ||
368 | + overflow: hidden; | ||
369 | + font-size: 14px; | ||
370 | +} | ||
371 | +.new-sdk-container .new-sdk-lc .scenter p a{ | ||
372 | + color: #0060b8; | ||
373 | +} | ||
374 | +.new-sdk-container .new-sdk-lc i{ | ||
375 | + float: right; | ||
376 | + width: 27px; | ||
377 | + height: 45px; | ||
378 | + background: url(../images/new-sdk-icon.png) no-repeat 0 -152px; | ||
379 | + margin: 4px 0; | ||
380 | + transform: scale(0.8); | ||
381 | +} | ||
382 | +.new-sdk-container .new-sdk-box .new-sdk-psw i{ | ||
383 | + width: 200px; | ||
384 | + height: 80px; | ||
385 | + line-height: 80px; | ||
386 | + float: left; | ||
387 | +} | ||
388 | +.new-sdk-container .new-sdk-box .new-sdk-psw label{ | ||
389 | + position: absolute; | ||
390 | + left: 215px; | ||
391 | + display: inline-block; | ||
392 | + height: 80px; | ||
393 | + line-height: 80px; | ||
394 | +} | ||
395 | +.new-sdk-container .new-sdk-lc .binding-link{ | ||
396 | + float: right; | ||
397 | + margin: 0.5em 0; | ||
398 | +} | ||
399 | +.new-sdk-container .new-sdk-lc .binding-link a{ | ||
400 | + display: block; | ||
401 | + background: #bceeff; | ||
402 | + color: #000; | ||
403 | + font-size: 14px; | ||
404 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
405 | + letter-spacing: 2px; | ||
406 | + padding: 10px; | ||
407 | +} | ||
408 | +.new-sdk-container .new-sdk-login{ | ||
409 | + padding:1em; | ||
410 | + | ||
411 | +} | ||
412 | +.new-sdk-container .Account-Login .new-sdk-lc{ | ||
413 | + margin: 10px 0 0; | ||
414 | +} | ||
415 | +.new-sdk-container .Account-Login .new-sdk-lc .scenter{ | ||
416 | + width: calc(100% - 75px); | ||
417 | +} | ||
418 | +.new-sdk-container .account-btn{ | ||
419 | + overflow: auto; | ||
420 | + zoom: 1; | ||
421 | + width: 90%; | ||
422 | + margin: 0 auto; | ||
423 | +} | ||
424 | +.new-sdk-container .account-btn li{ | ||
425 | + float: left; | ||
426 | + margin: 10px 0; | ||
427 | + width: 40%; | ||
428 | + | ||
429 | +} | ||
430 | +.new-sdk-container .account-btn li:nth-child(2n+2){ | ||
431 | + float: right; | ||
432 | +} | ||
433 | +.new-sdk-container .account-btn li a{ | ||
434 | + display: block; | ||
435 | + color: #000; | ||
436 | + font-size: 16px; | ||
437 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
438 | + background: #efefef; | ||
439 | + text-align: center; | ||
440 | + padding: 10px 0; | ||
441 | +} | ||
442 | +.new-sdk-container .account-btn li a:hover{ | ||
443 | + background: #bceeff; | ||
444 | +} | ||
445 | + | ||
446 | +.new-sdk-container .login-third { | ||
447 | + width: 90%; | ||
448 | + margin: 10px auto 0 auto; | ||
449 | +} | ||
450 | +.new-sdk-container .login-third .min-qq-icon { | ||
451 | + display: block; | ||
452 | + width: 33px; | ||
453 | + height: 34px; | ||
454 | + background: url("../images/icon.png") no-repeat -305px -108px; | ||
455 | + float: left; | ||
456 | + margin-right: 5px; | ||
457 | +} | ||
458 | +.new-sdk-container .login-third .title{ | ||
459 | + line-height: 29px; | ||
460 | + margin: 15px 0; | ||
461 | +} | ||
462 | +.new-sdk-container .login-third .min-weibo-icon { | ||
463 | + display: block; | ||
464 | + width: 36px; | ||
465 | + height: 29px; | ||
466 | + background: url("../images/icon.png") no-repeat -305px -75px; | ||
467 | + float: left; | ||
468 | + margin-right: 5px; | ||
469 | +} | ||
470 | +.new-sdk-container .login-third .title p { | ||
471 | + float: left; | ||
472 | + color: #000; | ||
473 | + font-size: 20px; | ||
474 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
475 | +} | ||
476 | +.new-sdk-container .login-third .input-box { | ||
477 | + width: 100%; | ||
478 | + border-radius: 10px; | ||
479 | + border: 2px solid #c2c2c2; | ||
480 | +} | ||
481 | +.new-sdk-container .login-third .login-third-input { | ||
482 | + border: none; | ||
483 | + width: calc(100% - 2em); | ||
484 | + width: -moz-calc(100% - 2em); | ||
485 | + width: -webkit-calc(100% - 2em); | ||
486 | + padding: 1em; | ||
487 | + border-bottom: 2px solid #c2c2c2; | ||
488 | + font-size: 16px; | ||
489 | + border-radius: 10px 10px 0 0; | ||
490 | +} | ||
491 | +.new-sdk-container .login-third .login-third-input:last-child { | ||
492 | + border-bottom: none; | ||
493 | + border-radius: 0 0 10px 10px; | ||
494 | +} | ||
495 | +.new-sdk-container .login-third .login-qq-submit{ | ||
496 | + background: #d90900; | ||
497 | + width: 100%; | ||
498 | + border-radius: 8px; | ||
499 | + padding: 10px 0; | ||
500 | + border: none; | ||
501 | + color: #fff; | ||
502 | + font-size: 16px; | ||
503 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
504 | + letter-spacing: 2px; | ||
505 | + margin-top: 15px; | ||
506 | +} | ||
507 | +.new-sdk-container .login-third .QQ-submit{ | ||
508 | + background: #72c429; | ||
509 | +} | ||
510 | +.new-sdk-container .login-third-list { | ||
511 | + width: 90%; | ||
512 | + border-top: 1px solid #B1B1B1; | ||
513 | + margin: 0 auto 0 auto; | ||
514 | +} | ||
515 | +.new-sdk-container .login-third-list .title { | ||
516 | + text-align: center; | ||
517 | + margin-top: 25px; | ||
518 | + font-size: 20px; | ||
519 | + color: #000; | ||
520 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
521 | +} | ||
522 | +.new-sdk-container .login-third-list .third-list { | ||
523 | + font-size: 20px; | ||
524 | + width: 90%; | ||
525 | + margin: 1em auto; | ||
526 | +} | ||
527 | +@media only screen and (min-width: 640px){ | ||
528 | + .new-sdk-container .login-third-list .third-list { | ||
529 | + width: 50%; | ||
530 | + } | ||
531 | +} | ||
532 | +.new-sdk-container .login-third-list .third-list li { | ||
533 | + border-radius: 100%; | ||
534 | + background: #fff; | ||
535 | + float: left; | ||
536 | + width: 130px; | ||
537 | + height: 130px; | ||
538 | + margin: 0 35px 0 35px; | ||
539 | +} | ||
540 | +.new-sdk-container .login-third-list .third-list li:nth-child(2n+2){ | ||
541 | + float: right; | ||
542 | +} | ||
543 | +.new-sdk-container .login-third-list .third-icon { | ||
544 | + background: url("../images/icon.png") no-repeat; | ||
545 | + margin: 10px auto 0; | ||
546 | +} | ||
547 | +.new-sdk-container .login-third-list .third-qq { | ||
548 | + width: 85px; | ||
549 | + height: 88px; | ||
550 | + background-position: 0 -75px; | ||
551 | + transform: scale(0.7); | ||
552 | +} | ||
553 | +.new-sdk-container .login-third-list .third-guest{ | ||
554 | + width: 85px; | ||
555 | + height: 88px; | ||
556 | + background-position: -219px -88px; | ||
557 | + transform: scale(0.7); | ||
558 | + | ||
559 | +} | ||
560 | + | ||
561 | +.new-sdk-container .login-third-list .third-weibo { | ||
562 | + width: 111px; | ||
563 | + height: 88px; | ||
564 | + background-position: -102px -69px; | ||
565 | + transform: scale(0.7); | ||
566 | +} | ||
567 | +.new-sdk-container .login-third-list p { | ||
568 | + text-align: center; | ||
569 | + color: #000; | ||
570 | + font-size: 14px; | ||
571 | +} | ||
572 | +/*登录*/ | ||
573 | +.new-sdk-container .new-sdk-main{ | ||
574 | + min-height: 14em; | ||
575 | + width: 90%; | ||
576 | + margin: 0 auto 0 auto; | ||
577 | +} | ||
578 | +.new-sdk-container .new-sdk-main .other-login{ | ||
579 | + margin: 17px auto; | ||
580 | + line-height: 28px; | ||
581 | + color: #434343; | ||
582 | + font-size: 24px; | ||
583 | +} | ||
584 | +.new-sdk-container .new-sdk-main .other-login p{ | ||
585 | + float: left; | ||
586 | +} | ||
587 | +.new-sdk-container .new-sdk-main .other-login p a{ | ||
588 | + display: inline-block; | ||
589 | + width: 45px; | ||
590 | + height: 45px; | ||
591 | + /*background: url(../images/new-sdk-icon.png) no-repeat;*/ | ||
592 | + margin-left: 15px; | ||
593 | + vertical-align: bottom; | ||
594 | +} | ||
595 | +.new-sdk-container .new-sdk-main .other-login p a.wb{ | ||
596 | + background-position: 0 -50px; | ||
597 | +} | ||
598 | +.new-sdk-container .new-sdk-main .other-login p a.qq{ | ||
599 | + background: url(../images/login_icon.png) no-repeat 0 0; | ||
600 | +} | ||
601 | +.new-sdk-container .new-sdk-main .other-login p a.weixin{ | ||
602 | + background: url(../images/login_icon.png) no-repeat 0 -45px; | ||
603 | +} | ||
604 | +.new-sdk-container .new-sdk-main .other-login label{ | ||
605 | + float: right; | ||
606 | +} | ||
607 | +.new-sdk-container .new-sdk-main .other-login label a{ | ||
608 | + font-size: 18px; | ||
609 | +} | ||
610 | +.new-sdk-container .new-sdk-main .inputbox{ | ||
611 | + margin: 0 auto; | ||
612 | + background: #fff; | ||
613 | + border-radius: 10px; | ||
614 | + padding: 30px 18px 24px 25px; | ||
615 | + overflow: visible; | ||
616 | + zoom: 1; | ||
617 | + margin-top: 30px; | ||
618 | + position: relative; | ||
619 | + border: 1px solid #c0c0c0; | ||
620 | + font-family:"Microsoft YaHei","微软雅黑"; | ||
621 | + color: #434343; | ||
622 | +} | ||
623 | +.new-sdk-container .new-sdk-main .inputbox .ileft{ | ||
624 | + float: left; | ||
625 | + width: 90px; | ||
626 | + min-width: 90px; | ||
627 | + font-size: 30px; | ||
628 | + font-family:"Microsoft YaHei","微软雅黑"; | ||
629 | + position: absolute; | ||
630 | + line-height: 30px; | ||
631 | +} | ||
632 | +.new-sdk-container .new-sdk-main .inputbox .iright{ | ||
633 | + float: left; | ||
634 | + width: calc(100% - 90px); | ||
635 | + width: -moz-calc(100% - 90px); | ||
636 | + width: -webkit-calc(100% - 90px); | ||
637 | + margin-left: 90px; | ||
638 | +} | ||
639 | +.new-sdk-container .new-sdk-main .inputbox input{ | ||
640 | + width: calc(100% - 47px); | ||
641 | + width: -moz-calc(100% - 47px); | ||
642 | + width: -webkit-calc(100% - 47px); | ||
643 | + font-size: 30px; | ||
644 | + line-height: 30px; | ||
645 | + border: none; | ||
646 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
647 | + white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all; | ||
648 | +} | ||
649 | +.new-sdk-container .new-sdk-main .iright .bottom-icon{ | ||
650 | + position: absolute; | ||
651 | + right: 0; | ||
652 | + top: 5px; | ||
653 | + width: 100px; | ||
654 | + height: 90px; | ||
655 | +} | ||
656 | +.new-sdk-container .new-sdk-main .iright .bottom-icon i.iconfont{ | ||
657 | + position: absolute; | ||
658 | + right: 25px; | ||
659 | + top: 50%; | ||
660 | + margin-top: -20px; | ||
661 | +} | ||
662 | +/*.new-sdk-container .new-sdk-main .iright .bottom-icon i{ | ||
663 | + display: block; | ||
664 | + width: 33px; | ||
665 | + height: 22px; | ||
666 | + background: url(../images/new-sdk-icon.png) no-repeat 0 0; | ||
667 | +}*/ | ||
668 | +.new-sdk-container input{ | ||
669 | + outline: medium; | ||
670 | +} | ||
671 | +.new-sdk-container .pull-box{ | ||
672 | + position:absolute; | ||
673 | + top: 85px; | ||
674 | + left: -1px; | ||
675 | + border: 1px solid #c0c0c0; | ||
676 | + border-top: 0; | ||
677 | + border-radius: 0 0 20px 20px; | ||
678 | + width: 100%; | ||
679 | + font-size:16px; | ||
680 | + z-index: 99; | ||
681 | + background: #fff; | ||
682 | + color: #333; | ||
683 | + display: none; | ||
684 | + font-family: 宋体; | ||
685 | + max-height: 11em; | ||
686 | + /*overflow-y: scroll;*/ | ||
687 | + height: 150px; | ||
688 | +} | ||
689 | +.new-sdk-container .pull-box ul{ | ||
690 | + margin-left: 65px; | ||
691 | +} | ||
692 | +.new-sdk-container .pull-box li{ | ||
693 | + text-indent: 15px; | ||
694 | + margin: 5px 0; | ||
695 | + color: #434343; | ||
696 | + font-size: 30px; | ||
697 | +} | ||
698 | +.new-sdk-container .pull-box li a{ | ||
699 | + display: block; | ||
700 | +} | ||
701 | +/*忘记密码*/ | ||
702 | +.new-sdk-container .forget-password .function-list { | ||
703 | + width: 100%; | ||
704 | + margin: 10px auto; | ||
705 | + font-size: 16px; | ||
706 | +} | ||
707 | +.new-sdk-container .forget-password .function-list li { | ||
708 | + margin-top: 10px; | ||
709 | +} | ||
710 | +.new-sdk-container .forget-password .function-list li:first-child { | ||
711 | + margin-top: 20px; | ||
712 | +} | ||
713 | +.new-sdk-container .forget-password .function-list-icon { | ||
714 | + display: block; | ||
715 | + width: 13px; | ||
716 | + height: 13px; | ||
717 | + background: url("../images/icon.png") no-repeat; | ||
718 | + margin: 5px 10px 0 0; | ||
719 | +} | ||
720 | +.new-sdk-container .forget-password .function-list-icon-1 { | ||
721 | + background-position: -245px -75px; | ||
722 | +} | ||
723 | +.new-sdk-container .forget-password .function-list-icon-2 { | ||
724 | + background-position: -280px -75px; | ||
725 | +} | ||
726 | +.new-sdk-container .forget-password .function-list-content { | ||
727 | + display: none; | ||
728 | + margin: 5px 0 0 20px; | ||
729 | +} | ||
730 | +.new-sdk-container .forget-password .function-list-content .function-input { | ||
731 | + width: calc(100% -20px); | ||
732 | + width: -moz-calc(100% - 20px); | ||
733 | + width: -webkit-calc(100% - 20px); | ||
734 | + border: 1px solid #c2c2c2; | ||
735 | + padding: 10px; | ||
736 | + font-size: 16px; | ||
737 | +} | ||
738 | +.new-sdk-container .forget-password .function-list-content p { | ||
739 | + color: #595757; | ||
740 | + font-size: 16px; | ||
741 | + margin: 0; | ||
742 | +} | ||
743 | +.login-box .forget-password .login-button { | ||
744 | + margin-top: 10px; | ||
745 | +} | ||
746 | +.function-list .function-list-text{ | ||
747 | + float: left; | ||
748 | + width: calc(100% -25px); | ||
749 | + width: -moz-calc(100% - 25px); | ||
750 | + width: -webkit-calc(100% - 25px); | ||
751 | + word-break: break-all; | ||
752 | +} | ||
753 | +/*服务协议*/ | ||
754 | +.new-sdk-container .new-sdk-content{ | ||
755 | + width: calc(100% - 76); | ||
756 | + width: -moz-calc(100% - 76); | ||
757 | + width: -webkit-calc(100% - 76); | ||
758 | + height: 300px; | ||
759 | + border: 1px solid #c0c0c0; | ||
760 | + border-right: none; | ||
761 | + border-bottom: none; | ||
762 | + margin: 25px 37px 15px; | ||
763 | + overflow-y: scroll; | ||
764 | + color: #000; | ||
765 | + background: #fff; | ||
766 | + -webkit-overflow-scrolling: touch; | ||
767 | +} | ||
768 | +@media only screen and (min-width: 100px) and (max-width: 640px) { | ||
769 | + .new-sdk-container .new-sdk-content{ | ||
770 | + height: 250px; | ||
771 | + } | ||
772 | +} | ||
773 | +.new-sdk-container .new-sdk-content h3 { | ||
774 | + font-size: 28px; | ||
775 | + font-weight: normal; | ||
776 | + text-align: center; | ||
777 | + margin: 5px 0 20px; | ||
778 | +} | ||
779 | +.new-sdk-container .new-sdk-content p, .new-sdk-container .new-sdk-content h4 { | ||
780 | + font-size: 24px; | ||
781 | + font-weight: normal; | ||
782 | + padding: 0 20px; | ||
783 | +} | ||
784 | +.new-sdk-container .new-sdk-content p { | ||
785 | + text-indent: 2em; | ||
786 | +} | ||
787 | +.new-sdk-container .agreement{ | ||
788 | + float: right; | ||
789 | + font-size: 24px; | ||
790 | + line-height: 20px; | ||
791 | + margin-right: 32px; | ||
792 | +} | ||
793 | +.new-sdk-container .checkbox { | ||
794 | + width: 24px; | ||
795 | + height: 24px; | ||
796 | + /*background: transparent url("../images/icon.png") no-repeat scroll 0% 0%;*/ | ||
797 | + margin: 0 10px; | ||
798 | + display: inline-block; | ||
799 | +} | ||
800 | +.new-sdk-container .checkbox-2 { | ||
801 | + background-position: -274px -7px; | ||
802 | +} | ||
803 | +/*填写注册*/ | ||
804 | +.new-sdk-container .checkbox-1 { | ||
805 | + background-position: -234px -7px; | ||
806 | +} | ||
807 | +.new-sdk-container .ag-tx{ | ||
808 | + font-size: 24px; | ||
809 | + margin: 20px 0 22px; | ||
810 | +} | ||
811 | +.new-sdk-container .ag-tx a{ | ||
812 | + color: #0078ff; | ||
813 | + text-decoration: underline; | ||
814 | +} | ||
815 | +.margintop{ | ||
816 | + margin-top: 20px; | ||
817 | +} | ||
818 | + | ||
819 | +/* 消息框 */ | ||
820 | +#alert { | ||
821 | + background:rgba(0, 0, 0, 0.65)!important; filter:Alpha(opacity=65); | ||
822 | + position: absolute; | ||
823 | + top: 50%; | ||
824 | + left: 50%; | ||
825 | + margin: auto 0; | ||
826 | + width: 80%; | ||
827 | + z-index: 1000; | ||
828 | + line-height: 38px; | ||
829 | + font-size: 30px; | ||
830 | + margin-left: -40%; | ||
831 | + text-align: center; | ||
832 | + color: #c3c3c3; | ||
833 | + border-radius: 10px; | ||
834 | + padding: 10px 0px; | ||
835 | +} | ||
836 | + | ||
837 | +button.close { | ||
838 | + padding: 0; | ||
839 | + cursor: pointer; | ||
840 | + background: transparent; | ||
841 | + border: 0; | ||
842 | + -webkit-appearance: none; | ||
843 | +} | ||
844 | +.alert { | ||
845 | + padding: 8px 35px 8px 14px; | ||
846 | + font-size: 16px; | ||
847 | + /* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);*/ | ||
848 | + background:rgba(250, 250, 250, 0.64); | ||
849 | + /*border: 1px solid #fbeed5;*/ | ||
850 | + -webkit-border-radius: 4px; | ||
851 | + -moz-border-radius: 4px; | ||
852 | + border-radius: 4px; | ||
853 | +} | ||
854 | +.alert, | ||
855 | +.alert h4 { | ||
856 | + color: #c09853; | ||
857 | +} | ||
858 | + | ||
859 | +.alert h4 { | ||
860 | + margin: 0; | ||
861 | +} | ||
862 | + | ||
863 | +.alert .close { | ||
864 | + position: relative; | ||
865 | + top: -2px; | ||
866 | + right: 8px; | ||
867 | + line-height: 20px; | ||
868 | +} | ||
869 | + | ||
870 | +.alert-success { | ||
871 | + color:#009933; | ||
872 | + /*border-bottom:2px solid #9f9f9f;*/ | ||
873 | + border-color: #d6e9c6; | ||
874 | + text-shadow:none; | ||
875 | +} | ||
876 | + | ||
877 | +.alert-success h3 { | ||
878 | + color: #468847; | ||
879 | +} | ||
880 | + | ||
881 | +.alert-danger, | ||
882 | +.alert-error { | ||
883 | + color:red; | ||
884 | + text-shadow:none; | ||
885 | +} | ||
886 | + | ||
887 | +.alert-danger h3, | ||
888 | +.alert-error h3 { | ||
889 | + color: #b94a48; | ||
890 | +} | ||
891 | + | ||
892 | + | ||
893 | +.ios_scroll iframe{ | ||
894 | + min-height: 320px; | ||
895 | + /*transform: scale(1.1);*/ | ||
896 | +} | ||
897 | +/*用户中心*/ | ||
898 | +.clearfix:before, | ||
899 | +.clearfix:after { | ||
900 | + display: table; | ||
901 | + line-height: 0; | ||
902 | + content: ""; | ||
903 | +} | ||
904 | +.clearfix:after { | ||
905 | + clear: both; | ||
906 | +} | ||
907 | +.pull-left{ float: left;} | ||
908 | +.pull-right{ float: right;} | ||
909 | +.w_45{ width: 45%;} | ||
910 | +.w_50{ width: 50%;} | ||
911 | +.poslft{ position: absolute; left: 1em;} | ||
912 | +.user-center{ | ||
913 | + position: relative; | ||
914 | + text-align: center; | ||
915 | + padding: 26px 0 18px; | ||
916 | + border-bottom: 2px solid #fff; | ||
917 | + color: #00beef; | ||
918 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
919 | + font-size: 36px; | ||
920 | +} | ||
921 | +.user-center a{ | ||
922 | + position: absolute; | ||
923 | + right: 27px; | ||
924 | + bottom:7px; | ||
925 | + color: #ff9600; | ||
926 | + font-size: 24px; | ||
927 | + padding:10px; | ||
928 | +} | ||
929 | +.user-center a.lefticon{ | ||
930 | + right: auto; | ||
931 | + left: 37px; | ||
932 | +} | ||
933 | +.user-center-box{ | ||
934 | + border-top: 1px solid #c4c3c3; | ||
935 | + padding: 0 37px 50px; | ||
936 | +} | ||
937 | +.user-center-box .top{ | ||
938 | + border-bottom: 2px solid #fff; | ||
939 | + padding: 43px 0 40px; | ||
940 | +} | ||
941 | +.user-center-box .top .txt p{ | ||
942 | + color: #434343; | ||
943 | + font-size: 30px; | ||
944 | + white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all; | ||
945 | + width: 100%; | ||
946 | +} | ||
947 | +.user-center-box .top .inline-btn{ | ||
948 | + margin: 0; | ||
949 | + width: 45%; | ||
950 | +} | ||
951 | +.user-center-box .top .inline-btn a{ | ||
952 | + border-radius: 10px; | ||
953 | + text-align: center; | ||
954 | + line-height: 85px; | ||
955 | + font-size: 30px; | ||
956 | +} | ||
957 | +.user-center-box .bind-user{ | ||
958 | + border-top: 1px solid #c4c3c3; | ||
959 | + padding: 30px 20px; | ||
960 | +} | ||
961 | +.user-center-box .bind-user .txt{ | ||
962 | + color:#949494; | ||
963 | + font-size: 20px; | ||
964 | +} | ||
965 | +.user-center-box .bind-user .btn-bind{ | ||
966 | + font-size: 30px; | ||
967 | + text-align: center; | ||
968 | + line-height: 60px; | ||
969 | + border: 1px solid #ff9600; | ||
970 | + color: #ff9600; | ||
971 | + border-radius: 10px; | ||
972 | + background: none; | ||
973 | +} | ||
974 | +.user-center-box .bind-user .inline-btn{ | ||
975 | + margin: 0; | ||
976 | + width: 35%; | ||
977 | + overflow: initial; | ||
978 | + margin-left: 10%; | ||
979 | +} | ||
980 | +.user-center-box .list-item{ | ||
981 | + border-left: 1px solid #c0c0c0; | ||
982 | + border-top: 1px solid #c0c0c0; | ||
983 | +} | ||
984 | +.user-center-box .list-item li{ | ||
985 | + 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; | ||
986 | +} | ||
987 | +.user-center-box .list-item li a{ display: block;} | ||
988 | +.user-center-box .list-item .redround{ | ||
989 | + position: absolute; | ||
990 | + top: 5px; | ||
991 | + right: 5px; | ||
992 | + background: #ff0000; | ||
993 | + display: block; | ||
994 | + width: 10px; | ||
995 | + height: 10px; | ||
996 | + border-radius: 100%; | ||
997 | +} | ||
998 | +.acount-name{ | ||
999 | + color: #434343; | ||
1000 | + font-size: 30px; | ||
1001 | + margin-bottom: 25px; | ||
1002 | +} | ||
1003 | +.user-center a.btn-link{ | ||
1004 | + font-size: 24px; | ||
1005 | + bottom: 20px; | ||
1006 | +} | ||
1007 | +.new-sdk-container .activity{ border-top: 1px solid #c4c3c3;} | ||
1008 | +.new-sdk-container .activity-list li:not(.more){ | ||
1009 | + padding: 20px; | ||
1010 | + border-bottom: 1px dashed #ddd; | ||
1011 | +} | ||
1012 | +.new-sdk-container .activity-list li:not(.more) a{ | ||
1013 | + font-size: 26px; | ||
1014 | +} | ||
1015 | +.new-sdk-container .activity-list .act_time { | ||
1016 | + color: #999; | ||
1017 | + font-size: 24px; | ||
1018 | +} | ||
1019 | +.new-sdk-container .activity-list .act_title{white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;display: block;width: 80%;} | ||
1020 | +.new-sdk-container .activity-list li.more a{ | ||
1021 | + display: block; | ||
1022 | + width: 235px; | ||
1023 | + margin: 20px auto; | ||
1024 | + text-align: center; | ||
1025 | + padding: 20px; | ||
1026 | + color: #fff; | ||
1027 | + font-size: 26px; | ||
1028 | + background: #00beef; | ||
1029 | + border-radius: 10px; | ||
1030 | +} | ||
1031 | +.new-sdk-container .activity .bor_b_h3{ | ||
1032 | + border-bottom: 1px solid #e0e0e0; | ||
1033 | + background: #fff; | ||
1034 | + padding: 20px 0; | ||
1035 | + margin: 0 37px; | ||
1036 | +} | ||
1037 | +.new-sdk-container .activity .bor_b_h3 h3{ | ||
1038 | + color: #000; | ||
1039 | + font-size: 26px; | ||
1040 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1041 | + font-weight: normal; | ||
1042 | +} | ||
1043 | +.scroll{ height: 100%;} | ||
1044 | +.new-sdk-container .activity .bor_b_h3 .text-info{ | ||
1045 | + color: #707070; | ||
1046 | + font-size: 24px; | ||
1047 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1048 | + font-weight: normal; | ||
1049 | + margin-top: 5px; | ||
1050 | +} | ||
1051 | +.new-sdk-container .activity .activity_text{ | ||
1052 | + color: #707070; | ||
1053 | + font-size: 26px; | ||
1054 | + padding: 20px; | ||
1055 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1056 | + background: #fff; | ||
1057 | +} | ||
1058 | +.new-sdk-container .activity .activity_text img{ | ||
1059 | + display: block; | ||
1060 | + width: 100%; | ||
1061 | +} | ||
1062 | +.new-sdk-container .pwd_box{ margin: 0 37px;} | ||
1063 | +.new-sdk-container .pwd_box li{ | ||
1064 | + border: 1px solid #c0c0c0; | ||
1065 | + border-radius: 10px; | ||
1066 | + -moz-border-radius: 10px; | ||
1067 | + -webkit-border-radius: 10px; | ||
1068 | + padding: 20px 0; | ||
1069 | + margin-bottom: 20px; | ||
1070 | + background: #fff; | ||
1071 | +} | ||
1072 | +.new-sdk-container .pwd_box #mobile_get_pwd_form .inline-btn li{ | ||
1073 | + border-radius: 20px; | ||
1074 | + -moz-border-radius: 20px; | ||
1075 | + -webkit-border-radius: 20px; | ||
1076 | + padding: 0; | ||
1077 | +} | ||
1078 | +.new-sdk-container .pwd_box li a{ | ||
1079 | + display: block; | ||
1080 | + color: #434343; | ||
1081 | + font-size: 30px; | ||
1082 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1083 | + text-align: center; | ||
1084 | +} | ||
1085 | +.pwd_box .step-box input{ | ||
1086 | + background: #fff; | ||
1087 | + width: 100%; | ||
1088 | + padding: 25px 0; | ||
1089 | + border-radius: 10px; | ||
1090 | + border: 1px solid #c0c0c0; | ||
1091 | + text-align: center; | ||
1092 | + margin: 83px 0 91px 0; | ||
1093 | + font-size: 30px; | ||
1094 | + line-height: 30px; | ||
1095 | + box-shadow: none; | ||
1096 | + box-sizing: border-box; | ||
1097 | + appearance:button; | ||
1098 | + -moz-appearance:button; /* Firefox */ | ||
1099 | + -webkit-appearance:button; /* Safari 和 Chrome */ | ||
1100 | +} | ||
1101 | +.pwd_box .step-box a{ | ||
1102 | + display: block; | ||
1103 | + text-align: center; | ||
1104 | + width: 235px; | ||
1105 | + background: #ff9600; | ||
1106 | + margin: 0 auto; | ||
1107 | + color: #fff; | ||
1108 | + padding: 25px 0; | ||
1109 | + border-radius: 10px; | ||
1110 | + font-size: 30px; | ||
1111 | +} | ||
1112 | +.pwd_box .step-box .pwd_txt{ | ||
1113 | + padding: 45px 25px 35px; | ||
1114 | + border: 1px solid #c0c0c0; | ||
1115 | + background: #fff; | ||
1116 | + margin: 9px 0 38px; | ||
1117 | + border-radius: 10px; | ||
1118 | +} | ||
1119 | +.pwd_box .step-box .pwd_txt p{ | ||
1120 | + color: #434343; | ||
1121 | + font-size: 30px; | ||
1122 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1123 | +} | ||
1124 | +.pwd_box .step-box .pwd_txt p a{ | ||
1125 | + display: inline-block; | ||
1126 | + text-align: left; | ||
1127 | + width: auto; | ||
1128 | + background: none; | ||
1129 | + color: #434343; | ||
1130 | + padding: 0; | ||
1131 | + border-radius: none; | ||
1132 | +} | ||
1133 | +.new-sdk-box .question-input{ | ||
1134 | + position: relative; | ||
1135 | + background: #fff; | ||
1136 | + border: 1px solid #c0c0c0; | ||
1137 | + border-radius: 10px; | ||
1138 | + padding: 25px 0; | ||
1139 | + text-align: center; | ||
1140 | + font-size: 30px; | ||
1141 | + color: #434343; | ||
1142 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1143 | +} | ||
1144 | +.new-sdk-box .question-input i{ | ||
1145 | + position: absolute; | ||
1146 | + right: 15px; | ||
1147 | + top: 27px; | ||
1148 | +} | ||
1149 | +.new-sdk-box .input input{ | ||
1150 | + text-align: center; | ||
1151 | +} | ||
1152 | +.new-sdk-box .question-input p{ | ||
1153 | + margin: 0; | ||
1154 | + font-size: 30px; | ||
1155 | + color: #434343; | ||
1156 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1157 | + | ||
1158 | +} | ||
1159 | +.mt10{ margin-top: 33px;} | ||
1160 | +.new-sdk-main .other-login p a.hide{ display: none;} | ||
1161 | +i.checkbx.icon-xuanzhong:before{ color: #999;} | ||
1162 | +.only-btn.inline-btn .agreement{ | ||
1163 | + position: absolute; | ||
1164 | + right: 37px;top: 10px; | ||
1165 | +} | ||
1166 | +*:focus,* {outline: none;} | ||
1167 | +input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { | ||
1168 | + color: #b5b5b6; | ||
1169 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1170 | + font-size: 30px; | ||
1171 | +} | ||
1172 | +.new-sdk-container .new-sdk-main .other-login label a{ | ||
1173 | + color: #434343; | ||
1174 | + font-size: 24px; | ||
1175 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1176 | + vertical-align: -webkit-baseline-middle; | ||
1177 | + padding: 10px; | ||
1178 | +} | ||
1179 | +.pwd_box .step-box .question-input-box{ | ||
1180 | + background: #fff; | ||
1181 | + padding: 25px 20px; | ||
1182 | + border-radius: 10px; | ||
1183 | + border: 1px solid #c0c0c0; | ||
1184 | + margin: 83px 0 91px 0; | ||
1185 | +} | ||
1186 | +.pwd_box .step-box .qib-txt{ | ||
1187 | + width: 150px; | ||
1188 | + color: #434343; | ||
1189 | + font-size: 30px; | ||
1190 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1191 | +} | ||
1192 | +.pwd_box .step-box .qib-input{ | ||
1193 | + width: calc(100% - 150px); | ||
1194 | +} | ||
1195 | +.pwd_box .step-box .question-input-box input{ | ||
1196 | + padding: 0; | ||
1197 | + line-height: 40px; | ||
1198 | + margin: 0; | ||
1199 | + border: none; | ||
1200 | +} | ||
1201 | +input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { | ||
1202 | + background-color: rgb(255, 255, 255) !important; | ||
1203 | + box-shadow: 0 0 0px 1000px white inset; | ||
1204 | +} | ||
1205 | +input:disabled{ | ||
1206 | + background-color:#ffffff; | ||
1207 | + color:#434343; | ||
1208 | +} | ||
1209 | +.new-sdk-container .pull-box .drop-ul li{ | ||
1210 | + border-bottom: 1px solid #ddd; | ||
1211 | +} |
publicAndroidSDK/assets/sdk/skin/pay.css
0 → 100644
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 | +CACHE MANIFEST | ||
2 | + | ||
3 | +#version=20151112001 | ||
4 | +/static/sdk_3/login.html?20151112001 | ||
5 | +/static/sdk_3/center.html?20151112001 | ||
6 | +/static/sdk_3/pay.html?20151112001 | ||
7 | +/static/sdk_3/share.html?20151112001 | ||
8 | +/static/sdk_3/js/fastclick.min.1.0.js?20151112001 | ||
9 | +/static/sdk_3/js/zepto.min.js?20151112001 | ||
10 | +/static/sdk_3/js/doT.min.js?20151112001 | ||
11 | +/static/sdk_3/js/iscroll.min.1.0.js?20151112001 | ||
12 | +/static/sdk_3/skin/login.css?20151112001 | ||
13 | +/static/sdk_3/skin/pay.css?20151112001 | ||
14 | + | ||
15 | +/static/sdk_3/js/core.min.js?20151112001 | ||
16 | +/static/sdk_3/js/loader.min.js?20151112001 | ||
17 | +/static/sdk_3/js/center.min.js?20151112001 | ||
18 | +/static/sdk_3/js/pay.min.js?20151112001 | ||
19 | +/static/sdk_3/js/login.min.js?20151112001 | ||
20 | +/static/sdk_3/images/login_icon.png?20151112001 | ||
21 | +/static/sdk_3/images/new-sdk-logo.png?20151112001 | ||
22 | +NETWORK: | ||
23 | +* | ||
... | \ 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 | + |
publicAndroidSDK/assets/sdk/version.txt
0 → 100644
1 | +20170511 |
publicAndroidSDK/assets/sdkconf.ini
0 → 100644
-
Please register or login to post a comment