Showing
81 changed files
with
2048 additions
and
1600 deletions
... | @@ -2,8 +2,9 @@ | ... | @@ -2,8 +2,9 @@ |
2 | <config> | 2 | <config> |
3 | 3 | ||
4 | <sdkconfig | 4 | <sdkconfig |
5 | - YA_APPID="59351848d8aa0f0e115a0d7a" | 5 | + YA_APPID="5b6bf23e665fff5f47475e56" |
6 | - YA_APPKEY="8cec1d074d3bb8bb012fd3f013c0acaa" | 6 | + YA_APPKEY="a6050ea63e9b3c4cfedbe6d8c629240f" |
7 | + styleName="sdk_11" | ||
7 | gamesimplename="fytx_test" | 8 | gamesimplename="fytx_test" |
8 | sdksimplename="i9133" | 9 | sdksimplename="i9133" |
9 | sdkversioncode="V1_0" | 10 | sdkversioncode="V1_0" | ... | ... |
assets/sdk.zip
deleted
100644 → 0
No preview for this file type
assets/sdk/.project
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>sdk_3</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>com.aptana.editor.php.aptanaPhpBuilder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>com.aptana.ide.core.unifiedBuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - </buildSpec> | ||
19 | - <natures> | ||
20 | - <nature>com.aptana.projects.webnature</nature> | ||
21 | - <nature>com.aptana.editor.php.phpNature</nature> | ||
22 | - </natures> | ||
23 | - <filteredResources> | ||
24 | - <filter> | ||
25 | - <id>1489975865951</id> | ||
26 | - <name></name> | ||
27 | - <type>26</type> | ||
28 | - <matcher> | ||
29 | - <id>org.eclipse.ui.ide.multiFilter</id> | ||
30 | - <arguments>1.0-name-matches-false-false-node_modules</arguments> | ||
31 | - </matcher> | ||
32 | - </filter> | ||
33 | - </filteredResources> | ||
34 | -</projectDescription> |
assets/sdk/readyme.txt
deleted
100644 → 0
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 |
assets/sdk/version.txt
deleted
100644 → 0
1 | -20170815 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -24,12 +24,12 @@ | ... | @@ -24,12 +24,12 @@ |
24 | <body> | 24 | <body> |
25 | <div class="mask"></div> | 25 | <div class="mask"></div> |
26 | <div class="horizontal" style="height: 220px;"> | 26 | <div class="horizontal" style="height: 220px;"> |
27 | - <h4>1. 9133账号服务条款的接受</h4> | 27 | + <h4>1. 游戏账号服务条款的接受</h4> |
28 | - <p>1.1 9133账号由上海游爱之星信息科技有限公司(以下简称“游爱之星”)及其关联公司所有并合法运营,游爱之星及其关联公司并在本用户服务协议的条款和要求下提供服务。</p> | 28 | + <p>1.1 游戏账号由上海游爱之星信息科技有限公司(以下简称“游爱之星”)及其关联公司所有并合法运营,游爱之星及其关联公司并在本用户服务协议的条款和要求下提供服务。</p> |
29 | - <p>1.2 当用户访问、浏览及使用9133账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p> | 29 | + <p>1.2 当用户访问、浏览及使用游戏账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p> |
30 | - <p>1.3 本服务协议所称的用户是指完全同意本服务协议所有条款(以下简称“服务条款”)并访问或浏览9133账号相关页面的服务接受者。</p> | 30 | + <p>1.3 本服务协议所称的用户是指完全同意本服务协议所有条款(以下简称“服务条款”)并访问或浏览游戏账号相关页面的服务接受者。</p> |
31 | <h4>2. 服务条款的变更和修改</h4> | 31 | <h4>2. 服务条款的变更和修改</h4> |
32 | - <p>游爱之星保留依其自主判断在将来的任何时间变更、修改、增加或删除本服务协议条款的权利。所有修改的协议均构成本服务协议的一部分。游爱之星有权随时对服务条款进行修改,一旦发生服务条款的变动,游爱之星将公示修改的内容;当用户使用9133账号的任何服务时,应接受9133账号随时提供的与该服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的服务;如果用户继续享用服务,则视为用户已经接受服务条款的修改。</p> | 32 | + <p>游爱之星保留依其自主判断在将来的任何时间变更、修改、增加或删除本服务协议条款的权利。所有修改的协议均构成本服务协议的一部分。游爱之星有权随时对服务条款进行修改,一旦发生服务条款的变动,游爱之星将公示修改的内容;当用户使用游戏账号的任何服务时,应接受游戏账号随时提供的与该服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的服务;如果用户继续享用服务,则视为用户已经接受服务条款的修改。</p> |
33 | <h4>3. 服务说明</h4> | 33 | <h4>3. 服务说明</h4> |
34 | <p>3.1 游爱之星运用自己的操作系统通过国际互联网向用户提供丰富的网上资源,包括网盘、书签、邮箱、皮肤、微博、空间、游戏、论坛、SNS社区和实时定位、好友识别等其它个性化服务(以下简称本服务)。除非另有明确规定,基于增强或强化目前服务目的所新增的任何新功能、服务、新产品,均无条件地适用本服务条款。</p> | 34 | <p>3.1 游爱之星运用自己的操作系统通过国际互联网向用户提供丰富的网上资源,包括网盘、书签、邮箱、皮肤、微博、空间、游戏、论坛、SNS社区和实时定位、好友识别等其它个性化服务(以下简称本服务)。除非另有明确规定,基于增强或强化目前服务目的所新增的任何新功能、服务、新产品,均无条件地适用本服务条款。</p> |
35 | <p>3.2 除非本协议中另有规定,否则游爱之星对服务不承担任何责任,即用户对服务的使用承担风险。游爱之星不保证服务一定会满足用户的使用要求,也不保证服务不会中断,对服务的及时性、安全性、准确性也不作担保。</p> | 35 | <p>3.2 除非本协议中另有规定,否则游爱之星对服务不承担任何责任,即用户对服务的使用承担风险。游爱之星不保证服务一定会满足用户的使用要求,也不保证服务不会中断,对服务的及时性、安全性、准确性也不作担保。</p> |
... | @@ -37,10 +37,10 @@ | ... | @@ -37,10 +37,10 @@ |
37 | <p>3.4 游爱之星保留在日后对全部或部分服务项目收取费用的权利。</p> | 37 | <p>3.4 游爱之星保留在日后对全部或部分服务项目收取费用的权利。</p> |
38 | <p>3.5 用户接受本服务时,须提供完整、真实、准确、最新的个人资料并按其变更情况不断更新账号资料。</p> | 38 | <p>3.5 用户接受本服务时,须提供完整、真实、准确、最新的个人资料并按其变更情况不断更新账号资料。</p> |
39 | <p>3.6 若用户提供任何错误、不实、过时或不完整的资料,或者游爱之星有合理理由怀疑前述资料为错误、不实、过时或不完整,游爱之星有权暂停或终止用户的账号,并拒绝其现在或将来使用本服务的全部或一部分。</p> | 39 | <p>3.6 若用户提供任何错误、不实、过时或不完整的资料,或者游爱之星有合理理由怀疑前述资料为错误、不实、过时或不完整,游爱之星有权暂停或终止用户的账号,并拒绝其现在或将来使用本服务的全部或一部分。</p> |
40 | - <p>3.7 游爱之星有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件信息或其他上载内容的时间、限制本服务一个账号可接收信息的数量等措施。如9133账号未能储存或删除本服务的内容或其他信息,游爱之星不负担任何责任。对于用户3个月未使用的账号,游爱之星有权(但无义务)予以删除。</p> | 40 | + <p>3.7 游爱之星有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件信息或其他上载内容的时间、限制本服务一个账号可接收信息的数量等措施。如游戏账号未能储存或删除本服务的内容或其他信息,游爱之星不负担任何责任。对于用户3个月未使用的账号,游爱之星有权(但无义务)予以删除。</p> |
41 | <p>3.8 由于用户经由本服务张贴、上传或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三方提出权利主张或使游爱之星遭受任何形式的罚款或处罚,用户同意以适当方式充分消除对游爱之星的不利影响,赔偿游爱之星及其分公司、关联公司、代理人或其他合作伙伴及员工的损失,并使其免受损害。</p> | 41 | <p>3.8 由于用户经由本服务张贴、上传或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三方提出权利主张或使游爱之星遭受任何形式的罚款或处罚,用户同意以适当方式充分消除对游爱之星的不利影响,赔偿游爱之星及其分公司、关联公司、代理人或其他合作伙伴及员工的损失,并使其免受损害。</p> |
42 | <h4>4. 用户应遵守以下法律及法规</h4> | 42 | <h4>4. 用户应遵守以下法律及法规</h4> |
43 | - <p>用户同意遵守中华人民共和国相关法律、法规的规定,在使用9133账号时,不得侵犯任何第三方的合法权益。在任何情况下,如果游爱之星有合理理由认为用户的行为可能违反上述法律、法规或侵犯第三方的合法权益,游爱之星可以在任何时候,不经事先通知终止向该用户提供服务。用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p> | 43 | + <p>用户同意遵守中华人民共和国相关法律、法规的规定,在使用游戏账号时,不得侵犯任何第三方的合法权益。在任何情况下,如果游爱之星有合理理由认为用户的行为可能违反上述法律、法规或侵犯第三方的合法权益,游爱之星可以在任何时候,不经事先通知终止向该用户提供服务。用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p> |
44 | <h4>5. 用户隐私权</h4> | 44 | <h4>5. 用户隐私权</h4> |
45 | <p>用户在遵守上述协议要求的前提下,游爱之星将充分保护用户享有个人隐私。除非因以下原因,未经用户授权,本网站不公开、编辑或透露其个人账号资料:</p> | 45 | <p>用户在遵守上述协议要求的前提下,游爱之星将充分保护用户享有个人隐私。除非因以下原因,未经用户授权,本网站不公开、编辑或透露其个人账号资料:</p> |
46 | <p>根据有关法律法规的要求;</p> | 46 | <p>根据有关法律法规的要求;</p> |
... | @@ -52,10 +52,10 @@ | ... | @@ -52,10 +52,10 @@ |
52 | <p>符合其他相关的要求。</p> | 52 | <p>符合其他相关的要求。</p> |
53 | <h4>6. 用户账号、密码和安全</h4> | 53 | <h4>6. 用户账号、密码和安全</h4> |
54 | <p>6.1 用户一旦注册成功,便成为游爱之星的注册用户,将得到一个密码和账号。用户有义务保证密码和账号的安全。用户对利用该密码和账号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,游爱之星无法也不会承担任何责任。</p> | 54 | <p>6.1 用户一旦注册成功,便成为游爱之星的注册用户,将得到一个密码和账号。用户有义务保证密码和账号的安全。用户对利用该密码和账号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,游爱之星无法也不会承担任何责任。</p> |
55 | - <p>6.2 用户的密码和账号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知游爱之星。用户在每次连线结束,应结束账号使用,否则用户可能得不到9133账号的安全保护。</p> | 55 | + <p>6.2 用户的密码和账号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知游爱之星。用户在每次连线结束,应结束账号使用,否则用户可能得不到游戏账号的安全保护。</p> |
56 | - <p>6.3 游爱之星禁止用户交易9133账号,游爱之星有权收回用户交易的9133账号。如果因用户交易9133账号引起的任何纠纷,游爱之星不承担任何责任。</p> | 56 | + <p>6.3 游爱之星禁止用户交易游戏账号,游爱之星有权收回用户交易的游戏账号。如果因用户交易游戏账号引起的任何纠纷,游爱之星不承担任何责任。</p> |
57 | <h4>7. 对用户信息的存储和限制</h4> | 57 | <h4>7. 对用户信息的存储和限制</h4> |
58 | - <p>游爱之星不对用户在9133账号任何服务下发布信息的删除或储存失败负责。游爱之星有权判断用户的行为是否符合9133账号服务条款的规定,如果游爱之星认为用户违反了服务条款的规定,游爱之星有权删除用户发布或发送的信息,直至中断或终止向其提供服务。</p> | 58 | + <p>游爱之星不对用户在游戏账号任何服务下发布信息的删除或储存失败负责。游爱之星有权判断用户的行为是否符合游戏账号服务条款的规定,如果游爱之星认为用户违反了服务条款的规定,游爱之星有权删除用户发布或发送的信息,直至中断或终止向其提供服务。</p> |
59 | <h4>8. 禁止用户从事以下行为:</h4> | 59 | <h4>8. 禁止用户从事以下行为:</h4> |
60 | <p>8.1 上载、张贴、发送或传送任何非法、淫秽、色情、低俗的,胁迫、骚扰、中伤他人的,诽谤、侵害他人隐私或诋毁他人名誉或商誉的,其他违反国家法律法规、社会主义道德规范及不适当的信息或电子邮件,包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息、视频或其他资料(以下简称内容)。</p> | 60 | <p>8.1 上载、张贴、发送或传送任何非法、淫秽、色情、低俗的,胁迫、骚扰、中伤他人的,诽谤、侵害他人隐私或诋毁他人名誉或商誉的,其他违反国家法律法规、社会主义道德规范及不适当的信息或电子邮件,包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息、视频或其他资料(以下简称内容)。</p> |
61 | <p>8.2 以任何方式危害未成年人。</p> | 61 | <p>8.2 以任何方式危害未成年人。</p> |
... | @@ -70,16 +70,16 @@ | ... | @@ -70,16 +70,16 @@ |
70 | <p>8.11 窃取他人密码、账号和其它数字化信息或财产。</p> | 70 | <p>8.11 窃取他人密码、账号和其它数字化信息或财产。</p> |
71 | <p>8.12 其他被游爱之星视为不适当的行为。</p> | 71 | <p>8.12 其他被游爱之星视为不适当的行为。</p> |
72 | <p>8.13 游爱之星有权对用户载、张贴、发送的内容进行审核,有任何违反法律法规或本协议之有关规定的内容,游爱之星有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> | 72 | <p>8.13 游爱之星有权对用户载、张贴、发送的内容进行审核,有任何违反法律法规或本协议之有关规定的内容,游爱之星有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> |
73 | - <p>8.14 9133账号封号规则</p> | 73 | + <p>8.14 游戏账号封号规则</p> |
74 | <p>1.无视国家规定,在姓名、游戏角色名等地方中使用违规词语或不文明词语、非法字符</p> | 74 | <p>1.无视国家规定,在姓名、游戏角色名等地方中使用违规词语或不文明词语、非法字符</p> |
75 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | 75 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> |
76 | <p>2.涉及到侵入、拦截、破坏、复制、修改游戏程序,以及宣扬、叫卖和使用各种辅助性程序或恶性非法程序,即使用外挂程序、或在游戏中宣传外挂程序的行为。</p> | 76 | <p>2.涉及到侵入、拦截、破坏、复制、修改游戏程序,以及宣扬、叫卖和使用各种辅助性程序或恶性非法程序,即使用外挂程序、或在游戏中宣传外挂程序的行为。</p> |
77 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | 77 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> |
78 | <p>3.以任何弄虚作假的形式来蒙蔽或者欺骗其他用户,如发布模仿官方并带有病毒的网站、非官方中奖信息、非法广告、游戏代码、木马、外挂、病毒、色情信息、垃圾广告等信息</p> | 78 | <p>3.以任何弄虚作假的形式来蒙蔽或者欺骗其他用户,如发布模仿官方并带有病毒的网站、非官方中奖信息、非法广告、游戏代码、木马、外挂、病毒、色情信息、垃圾广告等信息</p> |
79 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | 79 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> |
80 | - <p>4.通过9133账号发布非法网站,宣传或使用私服、游戏代码、木马、外挂、病毒、色情信息、垃圾广告、非法广告等信息</p> | 80 | + <p>4.通过游戏账号发布非法网站,宣传或使用私服、游戏代码、木马、外挂、病毒、色情信息、垃圾广告、非法广告等信息</p> |
81 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | 81 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> |
82 | - <p>5.通过9133账号发布触犯政府法令的文字如:煽动、反动、猥亵、暴力、种族歧视、宗教歧视等字眼,包含这类相关字的反向书写。</p> | 82 | + <p>5.通过游戏账号发布触犯政府法令的文字如:煽动、反动、猥亵、暴力、种族歧视、宗教歧视等字眼,包含这类相关字的反向书写。</p> |
83 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p> | 83 | <p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p> |
84 | <p>6.宣传或贩卖BUG、攻击服务器运行、牟取个人利益、影响游戏公平性,以及影响其他玩家正常进行游戏等行为</p> | 84 | <p>6.宣传或贩卖BUG、攻击服务器运行、牟取个人利益、影响游戏公平性,以及影响其他玩家正常进行游戏等行为</p> |
85 | <p>处罚规则:查证核实后,将暂停账号,并清除所有非法物品;视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> | 85 | <p>处罚规则:查证核实后,将暂停账号,并清除所有非法物品;视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p> |
... | @@ -93,23 +93,23 @@ | ... | @@ -93,23 +93,23 @@ |
93 | <p>法律程序所规定</p> | 93 | <p>法律程序所规定</p> |
94 | <p>本服务条款规定</p> | 94 | <p>本服务条款规定</p> |
95 | <p>被侵害的第三人提出权利主张</p> | 95 | <p>被侵害的第三人提出权利主张</p> |
96 | - <p>为保护9133账号、其使用者及社会公众的权利、财产或人身安全</p> | 96 | + <p>为保护游戏账号、其使用者及社会公众的权利、财产或人身安全</p> |
97 | <p>其他游爱之星认为有必要的情况。</p> | 97 | <p>其他游爱之星认为有必要的情况。</p> |
98 | <h4>10. 电子公告栏的张贴内容</h4> | 98 | <h4>10. 电子公告栏的张贴内容</h4> |
99 | <p>10.1 “电子公告栏”包括空间、论坛、SNS社区和其它一般公众可以使用的区域;</p> | 99 | <p>10.1 “电子公告栏”包括空间、论坛、SNS社区和其它一般公众可以使用的区域;</p> |
100 | <p>10.2 用户一旦在本服务电子公告栏上传或张贴内容,即视为用户授予游爱之星该内容著作权之免费及非独家、永久的许可使用权,游爱之星有权为展示、传播及推广前述内容之目的,对上述内容进行复制、修改、出版。由此展示、传播及推广行为所产生的损失或利润,均由游爱之星承担或享受。游爱之星有权自主决定是否给予此类用户鼓励或奖励。</p> | 100 | <p>10.2 用户一旦在本服务电子公告栏上传或张贴内容,即视为用户授予游爱之星该内容著作权之免费及非独家、永久的许可使用权,游爱之星有权为展示、传播及推广前述内容之目的,对上述内容进行复制、修改、出版。由此展示、传播及推广行为所产生的损失或利润,均由游爱之星承担或享受。游爱之星有权自主决定是否给予此类用户鼓励或奖励。</p> |
101 | <p>10.3 因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户须承担全部责任。</p> | 101 | <p>10.3 因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户须承担全部责任。</p> |
102 | <p>10.4 非经游爱之星事先许可,用户不得对他人上传或张贴在电子公告栏或本服务其他内容进行复制、出售或用作其他商业用途。</p> | 102 | <p>10.4 非经游爱之星事先许可,用户不得对他人上传或张贴在电子公告栏或本服务其他内容进行复制、出售或用作其他商业用途。</p> |
103 | - <h4>11. 9133账号服务使用规则</h4> | 103 | + <h4>11. 游戏账号服务使用规则</h4> |
104 | <p>11.1 用户必须保证,拥有上传之照片、文字等作品之著作权或已获得合法授权,在本网站之上传行为未侵犯任何第三方之合法权益。否则,将由用户承担由此带来的一切法律责任;用户不得将任何内部资料、机密资料、涉及他人隐私资料或侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、或以其他方式传送。</p> | 104 | <p>11.1 用户必须保证,拥有上传之照片、文字等作品之著作权或已获得合法授权,在本网站之上传行为未侵犯任何第三方之合法权益。否则,将由用户承担由此带来的一切法律责任;用户不得将任何内部资料、机密资料、涉及他人隐私资料或侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、或以其他方式传送。</p> |
105 | <p>11.2 用户不得利用本服务进行故意制作、传播计算机病毒等破坏性程序,不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则,否则游爱之星将保留追究其法律责任的权利并有权将其提交给相关部门处理。</p> | 105 | <p>11.2 用户不得利用本服务进行故意制作、传播计算机病毒等破坏性程序,不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则,否则游爱之星将保留追究其法律责任的权利并有权将其提交给相关部门处理。</p> |
106 | <p>11.3 游爱之星有权对用户上传的图片、添加的文字等内容进行审核,有任何违反法律法规或本协议之有关规定的图片、文字,游爱之星有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> | 106 | <p>11.3 游爱之星有权对用户上传的图片、添加的文字等内容进行审核,有任何违反法律法规或本协议之有关规定的图片、文字,游爱之星有权立即将其删除或屏蔽,且不需要对用户另行通知。</p> |
107 | <p>11.4 用户不得将广告函件、促销资料、垃圾邮件等,加以上载、张贴、发送电子邮件或以其他方式传送。</p> | 107 | <p>11.4 用户不得将广告函件、促销资料、垃圾邮件等,加以上载、张贴、发送电子邮件或以其他方式传送。</p> |
108 | <p>11.5 游爱之星郑重提请用户注意,任何经由本服务以上载、张贴、发送的资料、文字、照片、图形、视讯、信息、用户的登记资料或其他资料(以下简称“内容”),无论系公开还是私下传送,均由内容提供者承担责任。游爱之星无法控制经由本服务传送之内容,也无法对用户的使用行为进行全面控制,因此不保证内容的合法性、正确性、完整性、真实性或品质;用户已预知使用本服务时,可能会接触到令人不快、不适当或令人厌恶之内容,并同意将自行加以判断并承担所有风险,而不依赖于游爱之星。但在任何情况下,游爱之星有权依法停止传输任何前述内容并采取相应行动,包括但不限于暂停用户使用本服务的全部或部分,保存有关记录,并向有关机关报告。但游爱之星有权(但无义务)依其自行之考量,拒绝和删除可经由本服务提供之违反本条款的或其他引起游爱之星或用户反感的任何内容。</p> | 108 | <p>11.5 游爱之星郑重提请用户注意,任何经由本服务以上载、张贴、发送的资料、文字、照片、图形、视讯、信息、用户的登记资料或其他资料(以下简称“内容”),无论系公开还是私下传送,均由内容提供者承担责任。游爱之星无法控制经由本服务传送之内容,也无法对用户的使用行为进行全面控制,因此不保证内容的合法性、正确性、完整性、真实性或品质;用户已预知使用本服务时,可能会接触到令人不快、不适当或令人厌恶之内容,并同意将自行加以判断并承担所有风险,而不依赖于游爱之星。但在任何情况下,游爱之星有权依法停止传输任何前述内容并采取相应行动,包括但不限于暂停用户使用本服务的全部或部分,保存有关记录,并向有关机关报告。但游爱之星有权(但无义务)依其自行之考量,拒绝和删除可经由本服务提供之违反本条款的或其他引起游爱之星或用户反感的任何内容。</p> |
109 | - <p>11.6 用户完全理解并同意,若第三方在用户不知情或未经用户同意的前提下,将其文字、图片作品上传于9133账号空间及由此所产生的任何可能侵害其权益的行为,游爱之星均不对任何人承担任何责任。</p> | 109 | + <p>11.6 用户完全理解并同意,若第三方在用户不知情或未经用户同意的前提下,将其文字、图片作品上传于游戏账号空间及由此所产生的任何可能侵害其权益的行为,游爱之星均不对任何人承担任何责任。</p> |
110 | <p>11.7 游爱之星有权根据政府机关或权利人的要求删除用户上载、张贴、发送的内容,无论游爱之星事先是否通知。</p> | 110 | <p>11.7 游爱之星有权根据政府机关或权利人的要求删除用户上载、张贴、发送的内容,无论游爱之星事先是否通知。</p> |
111 | <p>11.8 游爱之星有权根据服务的需要,收回用户所用的空间域名或减少用户所用空间的大小,无论游爱之星事先是否通知。</p> | 111 | <p>11.8 游爱之星有权根据服务的需要,收回用户所用的空间域名或减少用户所用空间的大小,无论游爱之星事先是否通知。</p> |
112 | - <h4>12. 9133论坛规则</h4> | 112 | + <h4>12. 游戏论坛规则</h4> |
113 | <p>12.1 关于用户名和昵称</p> | 113 | <p>12.1 关于用户名和昵称</p> |
114 | <p>不得使用党和国家领导人或其他知名人士的真实姓名、字号、艺名、笔名作为用户名和昵称;</p> | 114 | <p>不得使用党和国家领导人或其他知名人士的真实姓名、字号、艺名、笔名作为用户名和昵称;</p> |
115 | <p>不得使用国家机构或其他机构的名称作为用户名和昵称;</p> | 115 | <p>不得使用国家机构或其他机构的名称作为用户名和昵称;</p> |
... | @@ -140,21 +140,21 @@ | ... | @@ -140,21 +140,21 @@ |
140 | <p>摘录、转贴的图片请注明出处及作者,禁止张贴侵犯他人著作权、版权等知识产权的图片;</p> | 140 | <p>摘录、转贴的图片请注明出处及作者,禁止张贴侵犯他人著作权、版权等知识产权的图片;</p> |
141 | <p>不得张贴与论坛主题无关的图片;</p> | 141 | <p>不得张贴与论坛主题无关的图片;</p> |
142 | <p>游爱之星有权在不需要通知和解释的情况下删除违反以上规定的图片,并对情节严重者予以封账号处理。</p> | 142 | <p>游爱之星有权在不需要通知和解释的情况下删除违反以上规定的图片,并对情节严重者予以封账号处理。</p> |
143 | - <h4>13. 9133账号游戏规则</h4> | 143 | + <h4>13. 游戏账号游戏规则</h4> |
144 | <p>13.1 用户应当遵守游戏公约、玩家守则及不时发布的游戏规则、公告等;</p> | 144 | <p>13.1 用户应当遵守游戏公约、玩家守则及不时发布的游戏规则、公告等;</p> |
145 | - <p>13.2 用户不得通过不正当的手段或其他不公平的手段使用9133账号的游戏产品和服务或参与9133账号的游戏活动。用户不得干扰游爱之星正常地提供产品和服务,包括但不限于:攻击、侵入游爱之星的网站服务器或使网站服务器过载;制作、发布、传播、使用任何形式的妨碍游戏公平性的辅助工具或程序(外挂);利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);不合理地干扰或阻碍他人使用游爱之星所提供的产品和服务。</p> | 145 | + <p>13.2 用户不得通过不正当的手段或其他不公平的手段使用游戏账号的游戏产品和服务或参与游戏账号的游戏活动。用户不得干扰游爱之星正常地提供产品和服务,包括但不限于:攻击、侵入游爱之星的网站服务器或使网站服务器过载;制作、发布、传播、使用任何形式的妨碍游戏公平性的辅助工具或程序(外挂);利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);不合理地干扰或阻碍他人使用游爱之星所提供的产品和服务。</p> |
146 | <p>13.3 为维护游戏的公平性,如果游爱之星发现用户数据异常,无论用户对该异常数据产生是否负有过错,游爱之星均有权根据本规则、游戏公约、玩家守则及后期不时发布的游戏公告等,采取相应措施:包括但不限于对该账号的冻结、终止、删除;用户在此承诺游爱之星有权采取上述行动,并承诺不得就上述行为要求游爱之星做任何补偿或退费。</p> | 146 | <p>13.3 为维护游戏的公平性,如果游爱之星发现用户数据异常,无论用户对该异常数据产生是否负有过错,游爱之星均有权根据本规则、游戏公约、玩家守则及后期不时发布的游戏公告等,采取相应措施:包括但不限于对该账号的冻结、终止、删除;用户在此承诺游爱之星有权采取上述行动,并承诺不得就上述行为要求游爱之星做任何补偿或退费。</p> |
147 | <p>13.4 游爱之星在此特别提示用户:</p> | 147 | <p>13.4 游爱之星在此特别提示用户:</p> |
148 | <p>游爱之星提供的游戏将按照现状提供,用户明确知道游戏中存在已知和未知的漏洞和错误(Bug)。尽管游爱之星将尽最大努力解决已知的漏洞和错误(Bug),但用户知道或应该知道游戏中仍可能包含未知的漏洞和错误(Bug)等。用户同意不向游爱之星及其关联公司因任何漏洞和错误(Bug)主张任何赔偿。游爱之星不提倡虚拟物品之间的交易,并不对该交易中产生的任何问题进行支持和保障。</p> | 148 | <p>游爱之星提供的游戏将按照现状提供,用户明确知道游戏中存在已知和未知的漏洞和错误(Bug)。尽管游爱之星将尽最大努力解决已知的漏洞和错误(Bug),但用户知道或应该知道游戏中仍可能包含未知的漏洞和错误(Bug)等。用户同意不向游爱之星及其关联公司因任何漏洞和错误(Bug)主张任何赔偿。游爱之星不提倡虚拟物品之间的交易,并不对该交易中产生的任何问题进行支持和保障。</p> |
149 | <h4>14. 手机特色功能说明</h4> | 149 | <h4>14. 手机特色功能说明</h4> |
150 | - <p>14.1 用户明确知道,游爱之星提供的实时定位服务将向用户及用户的不特定9133账号好友提供用户的实时空间位置信息。</p> | 150 | + <p>14.1 用户明确知道,游爱之星提供的实时定位服务将向用户及用户的不特定游戏账号好友提供用户的实时空间位置信息。</p> |
151 | - <p>14.2 用户可选择向9133账号导入手机通讯簿上所对应的好友关系链,但游爱之星确保将不导入好友关系链之外的任何信息(包括好友姓名及其他任何相关信息) </p> | 151 | + <p>14.2 用户可选择向游戏账号导入手机通讯簿上所对应的好友关系链,但游爱之星确保将不导入好友关系链之外的任何信息(包括好友姓名及其他任何相关信息) </p> |
152 | - <p>14.3 游爱之星将对好友关系链通过不可逆转的方式加密存储,包括9133账号和您的任何好友都将无法获知您的真实好友关系链和真实手机号码。</p> | 152 | + <p>14.3 游爱之星将对好友关系链通过不可逆转的方式加密存储,包括游戏账号和您的任何好友都将无法获知您的真实好友关系链和真实手机号码。</p> |
153 | <h4>15. 游爱之星的知识产权及其他权利</h4> | 153 | <h4>15. 游爱之星的知识产权及其他权利</h4> |
154 | <p>15.1 游爱之星对本服务及本服务所使用的软件和受知识产权相关法律或其他法律保护的资料享有相应的权利。</p> | 154 | <p>15.1 游爱之星对本服务及本服务所使用的软件和受知识产权相关法律或其他法律保护的资料享有相应的权利。</p> |
155 | <p>15.2 经由本服务传送的内容,受到著作权法、商标法、专利法或其他法律的保护;未经游爱之星明示授权许可,用户不得进行修改、出租、散布或衍生其他作品,用户本人创作并在公开使用区域张贴的内容除外。</p> | 155 | <p>15.2 经由本服务传送的内容,受到著作权法、商标法、专利法或其他法律的保护;未经游爱之星明示授权许可,用户不得进行修改、出租、散布或衍生其他作品,用户本人创作并在公开使用区域张贴的内容除外。</p> |
156 | <p>15.3 用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。</p> | 156 | <p>15.3 用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。</p> |
157 | - <p>15.4 9133账号及其他9133账号图样、产品及服务名称,均为游爱之星及其关联公司所享有的商标,未经游爱之星所事先书面授权,任何人不得使用、 复制或用作其他用途。</p> | 157 | + <p>15.4 游戏账号及其他游戏账号图样、产品及服务名称,均为游爱之星及其关联公司所享有的商标,未经游爱之星所事先书面授权,任何人不得使用、 复制或用作其他用途。</p> |
158 | <h4>16. 免责声明</h4> | 158 | <h4>16. 免责声明</h4> |
159 | <p>16.1 游爱之星对于本服务包含的或用户经由或从任何与本服务有关的途径所获得的任何内容、信息或广告,不保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,游爱之星不负保证责任。用户自行承担担使用本服务的风险。</p> | 159 | <p>16.1 游爱之星对于本服务包含的或用户经由或从任何与本服务有关的途径所获得的任何内容、信息或广告,不保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,游爱之星不负保证责任。用户自行承担担使用本服务的风险。</p> |
160 | <p>16.2 游爱之星有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。</p> | 160 | <p>16.2 游爱之星有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。</p> |
... | @@ -169,7 +169,7 @@ | ... | @@ -169,7 +169,7 @@ |
169 | <p>用户资料遭到未授权的使用或修改;</p> | 169 | <p>用户资料遭到未授权的使用或修改;</p> |
170 | <p>用户资料丢失或被删除;</p> | 170 | <p>用户资料丢失或被删除;</p> |
171 | <p>其他与本服务相关的事宜。</p> | 171 | <p>其他与本服务相关的事宜。</p> |
172 | - <p>16.6 用户在浏览网际网路时自行判断使用9133账号的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,游爱之星没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p> | 172 | + <p>16.6 用户在浏览网际网路时自行判断使用游戏账号的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,游爱之星没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p> |
173 | <h4>17. 服务的修改和终止</h4> | 173 | <h4>17. 服务的修改和终止</h4> |
174 | <p>游爱之星有权在未事前通知的情况下在任何时候,暂时或永久地修改或终止本服务或其中任何一部分。游爱之星对本服务的修改或终止对用户和任何第三人不承担任何责任。游爱之星有权基于任何理由,终止用户的账号、密码或拒绝其使用本服务,或删除、转移用户存储、发布在本服务的内容,游爱之星采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p> | 174 | <p>游爱之星有权在未事前通知的情况下在任何时候,暂时或永久地修改或终止本服务或其中任何一部分。游爱之星对本服务的修改或终止对用户和任何第三人不承担任何责任。游爱之星有权基于任何理由,终止用户的账号、密码或拒绝其使用本服务,或删除、转移用户存储、发布在本服务的内容,游爱之星采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p> |
175 | <h4>18. 通知</h4> | 175 | <h4>18. 通知</h4> |
... | @@ -179,7 +179,7 @@ | ... | @@ -179,7 +179,7 @@ |
179 | <h4>20. 法律的适用和管辖</h4> | 179 | <h4>20. 法律的适用和管辖</h4> |
180 | <p>本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交广州仲裁委员会裁决。如果本服务协议中某项条款因与中华人民共和国现行法律相抵触而导致无效,将不影响其他部分的效力。</p> | 180 | <p>本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交广州仲裁委员会裁决。如果本服务协议中某项条款因与中华人民共和国现行法律相抵触而导致无效,将不影响其他部分的效力。</p> |
181 | <h4>21. 生效条件</h4> | 181 | <h4>21. 生效条件</h4> |
182 | - <p>本协议自用户访问、浏览及使用9133账号之时开始生效。</p> | 182 | + <p>本协议自用户访问、浏览及使用游戏账号之时开始生效。</p> |
183 | </div> | 183 | </div> |
184 | <!-- end --> | 184 | <!-- end --> |
185 | <script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script> | 185 | <script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script> | ... | ... |
... | @@ -37,7 +37,7 @@ | ... | @@ -37,7 +37,7 @@ |
37 | <div class="new-sdk-container"> | 37 | <div class="new-sdk-container"> |
38 | <div class="new-container-box"> | 38 | <div class="new-container-box"> |
39 | <div class="SDK-titlebox"></div> | 39 | <div class="SDK-titlebox"></div> |
40 | - <form action="/sdk/login" method="post" class="ajax align-left clearfix"> | 40 | + <form action="/sdk/login2" method="post" class="ajax align-left clearfix"> |
41 | <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 41 | <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> |
42 | <div class="new-sdk-main"> | 42 | <div class="new-sdk-main"> |
43 | <div class="inputbox clearfix" style="position: relative;"> | 43 | <div class="inputbox clearfix" style="position: relative;"> |
... | @@ -68,7 +68,7 @@ | ... | @@ -68,7 +68,7 @@ |
68 | <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide"> | 68 | <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide"> |
69 | </a> | 69 | </a> |
70 | 70 | ||
71 | - <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide"> | 71 | + <a title="微信登录" data-replace="href" href="sdk://wxlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="wx hide"> |
72 | </a> | 72 | </a> |
73 | </p>--> | 73 | </p>--> |
74 | 74 | ||
... | @@ -87,7 +87,7 @@ | ... | @@ -87,7 +87,7 @@ |
87 | 87 | ||
88 | </li> | 88 | </li> |
89 | <li> | 89 | <li> |
90 | -<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> --> | 90 | +<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register2?type=-1&app_id={app_id}">一键注册</a> --> |
91 | 91 | ||
92 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> | 92 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> |
93 | </li> | 93 | </li> |
... | @@ -130,7 +130,7 @@ | ... | @@ -130,7 +130,7 @@ |
130 | <div class="new-sdk-container"> | 130 | <div class="new-sdk-container"> |
131 | <div class="SDK-titlebox"></div> | 131 | <div class="SDK-titlebox"></div> |
132 | <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></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"> | 133 | + <form action="/sdk/register2" class="ajax clearfix"> |
134 | <div class="new-sdk-main"> | 134 | <div class="new-sdk-main"> |
135 | <div class="inputbox clearfix"> | 135 | <div class="inputbox clearfix"> |
136 | <div class="ileft">账号:</div> | 136 | <div class="ileft">账号:</div> | ... | ... |
... | @@ -13,14 +13,14 @@ var concat_with_mtime = [ | ... | @@ -13,14 +13,14 @@ var concat_with_mtime = [ |
13 | 'js/core.min.js', | 13 | 'js/core.min.js', |
14 | 'js/loader.min.js', | 14 | 'js/loader.min.js', |
15 | 'js/center.min.js', | 15 | 'js/center.min.js', |
16 | - 'js/pay.min.js', | 16 | + 'js/zf.min.js', |
17 | 'js/login.min.js' | 17 | 'js/login.min.js' |
18 | ] | 18 | ] |
19 | 19 | ||
20 | var htmls = [ | 20 | var htmls = [ |
21 | 'login.html', | 21 | 'login.html', |
22 | 'center.html', | 22 | 'center.html', |
23 | - 'pay.html', | 23 | + 'zf.html', |
24 | 'share.html' | 24 | 'share.html' |
25 | ] | 25 | ] |
26 | 26 | ... | ... |
No preview for this file type
No preview for this file type
No preview for this file type
... | @@ -31,7 +31,7 @@ function initMatching(){ | ... | @@ -31,7 +31,7 @@ function initMatching(){ |
31 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; | 31 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; |
32 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; | 32 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; |
33 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 | 33 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 |
34 | - Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; | 34 | + Core.isWx = userAgent.indexOf('MicroMessenger') != -1; |
35 | var ratio = window.devicePixelRatio; | 35 | var ratio = window.devicePixelRatio; |
36 | Core.ratio = ratio; | 36 | Core.ratio = ratio; |
37 | 37 | ||
... | @@ -140,16 +140,16 @@ function initMatching(){ | ... | @@ -140,16 +140,16 @@ function initMatching(){ |
140 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; | 140 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; |
141 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; | 141 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; |
142 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 | 142 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 |
143 | - Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; | 143 | + Core.isWx = userAgent.indexOf('MicroMessenger') != -1; |
144 | var ratio = window.devicePixelRatio; | 144 | var ratio = window.devicePixelRatio; |
145 | Core.ratio = ratio; | 145 | Core.ratio = ratio; |
146 | 146 | ||
147 | - Core.PLATFORM_NAME = '9133游戏'; | 147 | + Core.PLATFORM_NAME = ''; |
148 | 148 | ||
149 | if(Core.isIos){ | 149 | if(Core.isIos){ |
150 | - Core.server = 'https://sdk.i9133.com'; | 150 | + Core.server = 'https://sdk.9133.com'; |
151 | }else{ | 151 | }else{ |
152 | - Core.server = 'http://sdk.i9133.com'; | 152 | + Core.server = 'http://sdk.9133.com'; |
153 | } | 153 | } |
154 | 154 | ||
155 | var lastServer = localStorage.getItem('last_server'); | 155 | var lastServer = localStorage.getItem('last_server'); |
... | @@ -518,8 +518,6 @@ function initMatching(){ | ... | @@ -518,8 +518,6 @@ function initMatching(){ |
518 | } else { | 518 | } else { |
519 | post_url += '?format=json'; | 519 | post_url += '?format=json'; |
520 | } | 520 | } |
521 | - | ||
522 | - | ||
523 | var options = { | 521 | var options = { |
524 | type: action_method, | 522 | type: action_method, |
525 | url: post_url, | 523 | url: post_url, |
... | @@ -761,26 +759,31 @@ function initMatching(){ | ... | @@ -761,26 +759,31 @@ function initMatching(){ |
761 | console.log('not wbkit browser!'); | 759 | console.log('not wbkit browser!'); |
762 | } | 760 | } |
763 | } | 761 | } |
764 | - core.finishPay = function() { | 762 | + core.finishZf = function() { |
765 | - var pay_url = "sdk://exit?action=pay"; | 763 | + var zf_url = "sdk://exit?action=zf"; |
766 | core.clearFrame() | 764 | core.clearFrame() |
767 | if(Core.Data.game_url && Core.Data.game_url != ''){ | 765 | if(Core.Data.game_url && Core.Data.game_url != ''){ |
768 | if(Core.Data.back_url){ | 766 | if(Core.Data.back_url){ |
769 | - pay_url = Core.Data.back_url; | 767 | + zf_url = Core.Data.back_url; |
770 | }else{ | 768 | }else{ |
771 | - pay_url = Core.Data.game_url; | 769 | + zf_url = Core.Data.game_url; |
772 | } | 770 | } |
773 | }else{ | 771 | }else{ |
774 | if(Core.Data.trade_id && Core.Data.trade_id != ''){ | 772 | if(Core.Data.trade_id && Core.Data.trade_id != ''){ |
775 | - pay_url = "sdk://pay?order_id=" + Core.Data.trade_id; | 773 | + zf_url = "sdk://zf?order_id=" + Core.Data.trade_id; |
776 | - pay_url += Core.Data.current_pay_channel ? '&paytype=' + Core.Data.current_pay_channel.name : '' | 774 | + zf_url += Core.Data.current_zf_channel ? '&zftype=' + Core.Data.current_zf_channel.name : '' |
777 | } | 775 | } |
778 | } | 776 | } |
779 | try{ | 777 | try{ |
780 | - location.href = pay_url; | 778 | + location.href = zf_url; |
781 | }catch(e){} | 779 | }catch(e){} |
782 | } | 780 | } |
783 | core.finishLogin = function() { | 781 | core.finishLogin = function() { |
782 | + if(Core.Data.compellation_name == "" && Core.Data.identity_card == "" && Core.Data.force_auth == 1){ | ||
783 | + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
784 | + Core.updateMod('identityCard'); | ||
785 | + return false; | ||
786 | + } | ||
784 | var login_url = 'sdk://exit?action=login'; | 787 | var login_url = 'sdk://exit?action=login'; |
785 | var login_params = "open_id=" + Core.Data.open_id + "&token=" + Core.Data.token + "×tamp=" + Core.Data.timestamp ; | 788 | var login_params = "open_id=" + Core.Data.open_id + "&token=" + Core.Data.token + "×tamp=" + Core.Data.timestamp ; |
786 | login_params += Core.Data.login_count ? '&login_count=' + Core.Data.login_count : '' ; | 789 | login_params += Core.Data.login_count ? '&login_count=' + Core.Data.login_count : '' ; | ... | ... |
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|"; | 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 | 2 | ||
3 | +function IsIdCard2(code) | ||
4 | +{ | ||
5 | + var city={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外 "}; | ||
6 | + var tip = ""; | ||
7 | + var pass= true; | ||
8 | + | ||
9 | + if(!code || !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(code)){ | ||
10 | + tip = "身份证号格式错误"; | ||
11 | + pass = false; | ||
12 | + } | ||
13 | + | ||
14 | + else if(!city[code.substr(0,2)]){ | ||
15 | + tip = "地址编码错误"; | ||
16 | + pass = false; | ||
17 | + } | ||
18 | + else{ | ||
19 | + //18位身份证需要验证最后一位校验位 | ||
20 | + if(code.length == 18){ | ||
21 | + code = code.split(''); | ||
22 | + //∑(ai×Wi)(mod 11) | ||
23 | + //加权因子 | ||
24 | + var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ]; | ||
25 | + //校验位 | ||
26 | + var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ]; | ||
27 | + var sum = 0; | ||
28 | + var ai = 0; | ||
29 | + var wi = 0; | ||
30 | + for (var i = 0; i < 17; i++) | ||
31 | + { | ||
32 | + ai = code[i]; | ||
33 | + wi = factor[i]; | ||
34 | + sum += ai * wi; | ||
35 | + } | ||
36 | + var last = parity[sum % 11]; | ||
37 | + if(parity[sum % 11] != code[17]){ | ||
38 | + tip = "校验位错误"; | ||
39 | + pass =false; | ||
40 | + } | ||
41 | + } | ||
42 | + } | ||
43 | + return pass; | ||
44 | +} | ||
45 | + | ||
3 | function IsIdCard(idcard) | 46 | function IsIdCard(idcard) |
4 | { | 47 | { |
5 | idcard = idcard.toUpperCase(); | 48 | idcard = idcard.toUpperCase(); | ... | ... |
1 | -(function() { | 1 | +(function () { |
2 | // iframe下更新数据,并跳转到页面 | 2 | // iframe下更新数据,并跳转到页面 |
3 | if (window.top != window.self) { | 3 | if (window.top != window.self) { |
4 | try { | 4 | try { |
... | @@ -22,23 +22,23 @@ | ... | @@ -22,23 +22,23 @@ |
22 | $(response).appendTo($('body .mask')); | 22 | $(response).appendTo($('body .mask')); |
23 | } | 23 | } |
24 | // Home模块 | 24 | // Home模块 |
25 | - var Home = function(modId) { | 25 | + var Home = function (modId) { |
26 | Module.call(this, modId); | 26 | Module.call(this, modId); |
27 | } | 27 | } |
28 | // 继承基础模块 | 28 | // 继承基础模块 |
29 | Core.inherit(Home, Module); | 29 | Core.inherit(Home, Module); |
30 | 30 | ||
31 | - Home.prototype.bind = function() { | 31 | + Home.prototype.bind = function () { |
32 | // 绑定模块事件到section | 32 | // 绑定模块事件到section |
33 | var that = this; | 33 | var that = this; |
34 | - that.$c.on('click', '.op-logout', function(e) { | 34 | + that.$c.on('click', '.op-logout', function (e) { |
35 | e.preventDefault(); | 35 | e.preventDefault(); |
36 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, | 36 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, |
37 | // that); | 37 | // that); |
38 | that.logout_cb(); | 38 | that.logout_cb(); |
39 | return false; | 39 | return false; |
40 | }); | 40 | }); |
41 | - that.$c.on('click', 'label.help', function(e) { | 41 | + that.$c.on('click', 'label.help', function (e) { |
42 | e.preventDefault(); | 42 | e.preventDefault(); |
43 | e.stopPropagation(); | 43 | e.stopPropagation(); |
44 | /* | 44 | /* |
... | @@ -49,54 +49,54 @@ | ... | @@ -49,54 +49,54 @@ |
49 | Core.showMod('help'); | 49 | Core.showMod('help'); |
50 | return false; | 50 | return false; |
51 | }); | 51 | }); |
52 | - that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面 | 52 | + that.$c.on("click", ".js-enter-game", function (e) {//强制进入实名认证界面 |
53 | e.stopPropagation(); | 53 | e.stopPropagation(); |
54 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | 54 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); |
55 | }); | 55 | }); |
56 | } | 56 | } |
57 | 57 | ||
58 | - Home.prototype.logout_cb = function(data) { | 58 | + Home.prototype.logout_cb = function (data) { |
59 | Core.updateData(); | 59 | Core.updateData(); |
60 | Core.clearMods(); | 60 | Core.clearMods(); |
61 | Core.showMod('login'); | 61 | Core.showMod('login'); |
62 | 62 | ||
63 | } | 63 | } |
64 | - Home.prototype.show_after = function(){ | 64 | + Home.prototype.show_after = function () { |
65 | $('#login').hide(); | 65 | $('#login').hide(); |
66 | } | 66 | } |
67 | Core.registerMod('home', Home); | 67 | Core.registerMod('home', Home); |
68 | 68 | ||
69 | // 帮助信息模块 | 69 | // 帮助信息模块 |
70 | - var Help = function(modId) { | 70 | + var Help = function (modId) { |
71 | Module.call(this, modId); | 71 | Module.call(this, modId); |
72 | } | 72 | } |
73 | Core.inherit(Help, Module); | 73 | Core.inherit(Help, Module); |
74 | Core.registerMod('help', Help); | 74 | Core.registerMod('help', Help); |
75 | 75 | ||
76 | // 注册协议 | 76 | // 注册协议 |
77 | - var Agreement = function(modId) { | 77 | + var Agreement = function (modId) { |
78 | Module.call(this, modId); | 78 | Module.call(this, modId); |
79 | } | 79 | } |
80 | Core.inherit(Agreement, Module); | 80 | Core.inherit(Agreement, Module); |
81 | - Agreement.prototype.bind = function() { | 81 | + Agreement.prototype.bind = function () { |
82 | var that = this; | 82 | var that = this; |
83 | var checkbox = that.$c.find(".checkbox"); | 83 | var checkbox = that.$c.find(".checkbox"); |
84 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); | 84 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); |
85 | 85 | ||
86 | - that.$c.on("click",checkbox,function(e){ | 86 | + that.$c.on("click", checkbox, function (e) { |
87 | - if(checkbox.hasClass('checkbox-2')){ | 87 | + if (checkbox.hasClass('checkbox-2')) { |
88 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | 88 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); |
89 | checkbox_type.addClass("checkbx"); | 89 | checkbox_type.addClass("checkbx"); |
90 | - }else{ | 90 | + } else { |
91 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); | 91 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); |
92 | checkbox_type.removeClass("checkbx"); | 92 | checkbox_type.removeClass("checkbx"); |
93 | } | 93 | } |
94 | }); | 94 | }); |
95 | 95 | ||
96 | 96 | ||
97 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 97 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
98 | - if (that.$c.find('.checkbox-2').length<=0 ){ | 98 | + if (that.$c.find('.checkbox-2').length <= 0) { |
99 | - Core.showTips('已阅读请打勾',1); | 99 | + Core.showTips('已阅读请打勾', 1); |
100 | return false; | 100 | return false; |
101 | } | 101 | } |
102 | 102 | ||
... | @@ -106,16 +106,16 @@ | ... | @@ -106,16 +106,16 @@ |
106 | 106 | ||
107 | 107 | ||
108 | // Login模块 | 108 | // Login模块 |
109 | - var Login = function(modId) { | 109 | + var Login = function (modId) { |
110 | this.other_login = true; | 110 | this.other_login = true; |
111 | Module.call(this, modId); | 111 | Module.call(this, modId); |
112 | } | 112 | } |
113 | // 继承基础模块 | 113 | // 继承基础模块 |
114 | Core.inherit(Login, Module); | 114 | Core.inherit(Login, Module); |
115 | 115 | ||
116 | - Login.prototype.bind = function() { | 116 | + Login.prototype.bind = function () { |
117 | var that = this; | 117 | var that = this; |
118 | - that.$c.on('click', 'input[type=submit],.submit', function(e) { | 118 | + that.$c.on('click', 'input[type=submit],.submit', function (e) { |
119 | e.preventDefault(); | 119 | e.preventDefault(); |
120 | if (that.$c.find('.eg')[0].checked == false) { | 120 | if (that.$c.find('.eg')[0].checked == false) { |
121 | // 直接进入游戏 | 121 | // 直接进入游戏 |
... | @@ -127,12 +127,12 @@ | ... | @@ -127,12 +127,12 @@ |
127 | } | 127 | } |
128 | return false; | 128 | return false; |
129 | }); | 129 | }); |
130 | - that.$c.on('click', '.drop-down', function(e) { | 130 | + that.$c.on('click', '.drop-down', function (e) { |
131 | e.preventDefault(); | 131 | e.preventDefault(); |
132 | that.$c.find('.pull-box').toggle(); | 132 | that.$c.find('.pull-box').toggle(); |
133 | return false; | 133 | return false; |
134 | }); | 134 | }); |
135 | - that.$c.on('click', 'ul.drop-ul li a', function(e) { | 135 | + that.$c.on('click', 'ul.drop-ul li a', function (e) { |
136 | e.preventDefault(); | 136 | e.preventDefault(); |
137 | that.$c.find('input[name=username]').val( | 137 | that.$c.find('input[name=username]').val( |
138 | $(e.target).html()); | 138 | $(e.target).html()); |
... | @@ -141,7 +141,7 @@ | ... | @@ -141,7 +141,7 @@ |
141 | 141 | ||
142 | return false; | 142 | return false; |
143 | }) | 143 | }) |
144 | - that.$c.on('click', '.op-guest', function(e) { | 144 | + that.$c.on('click', '.op-guest', function (e) { |
145 | e.preventDefault(); | 145 | e.preventDefault(); |
146 | var _name = localStorage.getItem('guest_n'); | 146 | var _name = localStorage.getItem('guest_n'); |
147 | var _pwd = localStorage.getItem('guest_p'); | 147 | var _pwd = localStorage.getItem('guest_p'); |
... | @@ -158,7 +158,7 @@ | ... | @@ -158,7 +158,7 @@ |
158 | } | 158 | } |
159 | return false; | 159 | return false; |
160 | }); | 160 | }); |
161 | - that.$c.on('click', '.iframe', function(e) { | 161 | + that.$c.on('click', '.iframe', function (e) { |
162 | e.preventDefault(); | 162 | e.preventDefault(); |
163 | var src = $(this).attr('href'); | 163 | var src = $(this).attr('href'); |
164 | var title = $(this).attr('title'); | 164 | var title = $(this).attr('title'); |
... | @@ -173,10 +173,10 @@ | ... | @@ -173,10 +173,10 @@ |
173 | 173 | ||
174 | } | 174 | } |
175 | 175 | ||
176 | - Login.prototype.cache = function(n, p) { | 176 | + Login.prototype.cache = function (n, p) { |
177 | var name = n ? n : this.$c.find('input[name=username]').val(), | 177 | var name = n ? n : this.$c.find('input[name=username]').val(), |
178 | password = p ? p : this.$c.find('input[name=password]').val(), | 178 | password = p ? p : this.$c.find('input[name=password]').val(), |
179 | - name_ary,index_ary,firstUser; | 179 | + name_ary, index_ary, firstUser; |
180 | var _d = localStorage.getItem('user_names'); | 180 | var _d = localStorage.getItem('user_names'); |
181 | if (_d) { | 181 | if (_d) { |
182 | name_ary = JSON.parse(_d); | 182 | name_ary = JSON.parse(_d); |
... | @@ -186,12 +186,12 @@ | ... | @@ -186,12 +186,12 @@ |
186 | index_ary = JSON.parse(_i); | 186 | index_ary = JSON.parse(_i); |
187 | } | 187 | } |
188 | 188 | ||
189 | - if(index_ary == null){ | 189 | + if (index_ary == null) { |
190 | index_ary = []; | 190 | index_ary = []; |
191 | index_ary.unshift(name); | 191 | index_ary.unshift(name); |
192 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 192 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
193 | - }else{ | 193 | + } else { |
194 | - if($.inArray(name,index_ary) == -1){ | 194 | + if ($.inArray(name, index_ary) == -1) { |
195 | index_ary.unshift(name); | 195 | index_ary.unshift(name); |
196 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 196 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
197 | } | 197 | } |
... | @@ -218,25 +218,25 @@ | ... | @@ -218,25 +218,25 @@ |
218 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); | 218 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); |
219 | 219 | ||
220 | } | 220 | } |
221 | - Login.prototype.login_cb = function(result) { | 221 | + Login.prototype.login_cb = function (result) { |
222 | Core.updateData(result.msg); | 222 | Core.updateData(result.msg); |
223 | // 显示一个登录成功信息,并跳转到home | 223 | // 显示一个登录成功信息,并跳转到home |
224 | Core.first_user = this.$c.find('[name="username"]').val() | 224 | Core.first_user = this.$c.find('[name="username"]').val() |
225 | Core.first_password = this.$c.find('[name="password"]').val() | 225 | Core.first_password = this.$c.find('[name="password"]').val() |
226 | this.cache(); | 226 | this.cache(); |
227 | - Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); | 227 | + Core.showTips('成功登录,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); |
228 | Core.updateMod('home'); | 228 | Core.updateMod('home'); |
229 | } | 229 | } |
230 | - Login.prototype.login_eg_cb = function(result) { | 230 | + Login.prototype.login_eg_cb = function (result) { |
231 | Core.updateData(result.msg); | 231 | Core.updateData(result.msg); |
232 | // 跳转进入游戏 | 232 | // 跳转进入游戏 |
233 | this.cache(); | 233 | this.cache(); |
234 | - Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏'); | 234 | + Core.showTips('成功登录,欢迎使用' + Core.PLATFORM_NAME + '游戏平台, 正在进入游戏'); |
235 | - setTimeout(function() { | 235 | + setTimeout(function () { |
236 | Core.finishLogin(); | 236 | Core.finishLogin(); |
237 | }, 1000); | 237 | }, 1000); |
238 | } | 238 | } |
239 | - Login.prototype.guest_cb = function(data) { | 239 | + Login.prototype.guest_cb = function (data) { |
240 | Core.updateData(data.msg); | 240 | Core.updateData(data.msg); |
241 | //保存游客用户名和密码到localstorage | 241 | //保存游客用户名和密码到localstorage |
242 | localStorage.setItem('guest_n', data.msg.username); | 242 | localStorage.setItem('guest_n', data.msg.username); |
... | @@ -247,15 +247,15 @@ | ... | @@ -247,15 +247,15 @@ |
247 | Core.showTips("游客登录成功,请及时修改帐号和密码。", true); | 247 | Core.showTips("游客登录成功,请及时修改帐号和密码。", true); |
248 | } | 248 | } |
249 | 249 | ||
250 | - Login.prototype.show_after = function() { | 250 | + Login.prototype.show_after = function () { |
251 | var user_indexs = localStorage.getItem('user_indexs'), | 251 | var user_indexs = localStorage.getItem('user_indexs'), |
252 | names = localStorage.getItem('user_names'); | 252 | names = localStorage.getItem('user_names'); |
253 | var loginUserName = $("input[name='loginUserName']").val(), | 253 | var loginUserName = $("input[name='loginUserName']").val(), |
254 | loginPassword = $("input[name='loginPassword']").val(), | 254 | loginPassword = $("input[name='loginPassword']").val(), |
255 | initUserName = $("input[name='initUserName']").val(); | 255 | initUserName = $("input[name='initUserName']").val(); |
256 | - this.$c.find(".forgetpsw").click(function(){ | 256 | + this.$c.find(".forgetpsw").click(function () { |
257 | - $(".pwd_box").children(".step-tab").css("display","block"); | 257 | + $(".pwd_box").children(".step-tab").css("display", "block"); |
258 | - $(".pwd_box").children(".step-box").css("display","none"); | 258 | + $(".pwd_box").children(".step-box").css("display", "none"); |
259 | }); | 259 | }); |
260 | var names = JSON.parse(names); | 260 | var names = JSON.parse(names); |
261 | var userIdx = JSON.parse(user_indexs); | 261 | var userIdx = JSON.parse(user_indexs); |
... | @@ -266,25 +266,25 @@ | ... | @@ -266,25 +266,25 @@ |
266 | this.$c.find('.drop-down').show(); | 266 | this.$c.find('.drop-down').show(); |
267 | var lis = ''; | 267 | var lis = ''; |
268 | 268 | ||
269 | - for(var ele = 0,l = userIdx.length;ele<l;ele++){ | 269 | + for (var ele = 0, l = userIdx.length; ele < l; ele++) { |
270 | lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>'; | 270 | lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>'; |
271 | } | 271 | } |
272 | 272 | ||
273 | this.$c.find('.drop-ul').html(lis); | 273 | this.$c.find('.drop-ul').html(lis); |
274 | 274 | ||
275 | - if(loginUserName != ""){ | 275 | + if (loginUserName != "") { |
276 | this.$c.find("input#js_login_username").val(loginUserName); | 276 | this.$c.find("input#js_login_username").val(loginUserName); |
277 | - }else if(initUserName != ""){ | 277 | + } else if (initUserName != "") { |
278 | this.$c.find("input#js_login_username").val(initUserName); | 278 | this.$c.find("input#js_login_username").val(initUserName); |
279 | this.$c.find("input#js_login_password").val(Core.user_names[initUserName]); | 279 | this.$c.find("input#js_login_password").val(Core.user_names[initUserName]); |
280 | } | 280 | } |
281 | 281 | ||
282 | - }else{ | 282 | + } else { |
283 | this.$c.find("input#js_login_username").val(Core.first_user); | 283 | this.$c.find("input#js_login_username").val(Core.first_user); |
284 | this.$c.find("input#js_login_password").val(Core.first_password); | 284 | this.$c.find("input#js_login_password").val(Core.first_password); |
285 | } | 285 | } |
286 | if (Core.Data.other_login && this.other_login) { | 286 | if (Core.Data.other_login && this.other_login) { |
287 | - if(Core.Data.other_login.length > 0){ | 287 | + if (Core.Data.other_login.length > 0) { |
288 | this.$c.find(".other-login-bx").removeClass("hide"); | 288 | this.$c.find(".other-login-bx").removeClass("hide"); |
289 | } | 289 | } |
290 | //设置第三方登录显示 | 290 | //设置第三方登录显示 |
... | @@ -294,12 +294,12 @@ | ... | @@ -294,12 +294,12 @@ |
294 | this.other_login = false; | 294 | this.other_login = false; |
295 | } | 295 | } |
296 | 296 | ||
297 | - if(loginPassword != ""){ | 297 | + if (loginPassword != "") { |
298 | this.$c.find("input#js_login_password").val(loginPassword); | 298 | this.$c.find("input#js_login_password").val(loginPassword); |
299 | } | 299 | } |
300 | 300 | ||
301 | var old_pwd = localStorage.getItem('old_pwd'); | 301 | var old_pwd = localStorage.getItem('old_pwd'); |
302 | - if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){ | 302 | + if (Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null) { |
303 | this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]); | 303 | this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]); |
304 | console.log($("input#js_login_password").val()); | 304 | console.log($("input#js_login_password").val()); |
305 | } | 305 | } |
... | @@ -311,22 +311,22 @@ | ... | @@ -311,22 +311,22 @@ |
311 | Core.registerMod('login', Login); | 311 | Core.registerMod('login', Login); |
312 | 312 | ||
313 | // Login_before模块 | 313 | // Login_before模块 |
314 | - var Login_before = function(modId) { | 314 | + var Login_before = function (modId) { |
315 | this.other_login = true; | 315 | this.other_login = true; |
316 | Module.call(this, modId); | 316 | Module.call(this, modId); |
317 | } | 317 | } |
318 | // 继承基础模块 | 318 | // 继承基础模块 |
319 | Core.inherit(Login_before, Module); | 319 | Core.inherit(Login_before, Module); |
320 | 320 | ||
321 | - Login_before.prototype.bind = function() { | 321 | + Login_before.prototype.bind = function () { |
322 | var that = this; | 322 | var that = this; |
323 | - that.$c.on('click', '.login_case2', function(e) { | 323 | + that.$c.on('click', '.login_case2', function (e) { |
324 | e.preventDefault(); | 324 | e.preventDefault(); |
325 | Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that); | 325 | Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that); |
326 | return false; | 326 | return false; |
327 | }); | 327 | }); |
328 | 328 | ||
329 | - that.$c.on('click', '.login_case_qq', function(e){ | 329 | + that.$c.on('click', '.login_case_qq', function (e) { |
330 | e.preventDefault(); | 330 | e.preventDefault(); |
331 | 331 | ||
332 | var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id; | 332 | var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id; |
... | @@ -342,13 +342,13 @@ | ... | @@ -342,13 +342,13 @@ |
342 | //使用Login模块的业务逻辑 | 342 | //使用Login模块的业务逻辑 |
343 | Login_before.prototype.cache = Login.prototype.cache; | 343 | Login_before.prototype.cache = Login.prototype.cache; |
344 | Login_before.prototype.guest_cb = Login.prototype.guest_cb; | 344 | Login_before.prototype.guest_cb = Login.prototype.guest_cb; |
345 | - Login_before.prototype.show_after = function() { | 345 | + Login_before.prototype.show_after = function () { |
346 | if (Core.Data.other_login && this.other_login) { | 346 | if (Core.Data.other_login && this.other_login) { |
347 | //设置第三方登录显示 | 347 | //设置第三方登录显示 |
348 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { | 348 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { |
349 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); | 349 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); |
350 | } | 350 | } |
351 | - if(Core.Data.other_login.length == 0){ | 351 | + if (Core.Data.other_login.length == 0) { |
352 | //没有可用的第三方登录,直接跳转到home界面 | 352 | //没有可用的第三方登录,直接跳转到home界面 |
353 | Core.updateMod('home'); | 353 | Core.updateMod('home'); |
354 | } | 354 | } |
... | @@ -359,67 +359,67 @@ | ... | @@ -359,67 +359,67 @@ |
359 | Core.registerMod('login_before', Login_before); | 359 | Core.registerMod('login_before', Login_before); |
360 | 360 | ||
361 | // Register模块 | 361 | // Register模块 |
362 | - var Register = function(modId) { | 362 | + var Register = function (modId) { |
363 | this._username = null | 363 | this._username = null |
364 | this._pwd = null | 364 | this._pwd = null |
365 | Module.call(this, modId); | 365 | Module.call(this, modId); |
366 | } | 366 | } |
367 | // 继承基础模块 | 367 | // 继承基础模块 |
368 | Core.inherit(Register, Module); | 368 | Core.inherit(Register, Module); |
369 | - Register.prototype.bind = function() { | 369 | + Register.prototype.bind = function () { |
370 | var that = this; | 370 | var that = this; |
371 | var checkbox = that.$c.find(".checkbox"); | 371 | var checkbox = that.$c.find(".checkbox"); |
372 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); | 372 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); |
373 | 373 | ||
374 | - that.$c.on("click",checkbox,function(e){ | 374 | + that.$c.on("click", checkbox, function (e) { |
375 | - if(checkbox.hasClass('checkbox-2')){ | 375 | + if (checkbox.hasClass('checkbox-2')) { |
376 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | 376 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); |
377 | checkbox_type.addClass("checkbx"); | 377 | checkbox_type.addClass("checkbx"); |
378 | - }else{ | 378 | + } else { |
379 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); | 379 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); |
380 | checkbox_type.removeClass("checkbx"); | 380 | checkbox_type.removeClass("checkbx"); |
381 | } | 381 | } |
382 | }); | 382 | }); |
383 | 383 | ||
384 | 384 | ||
385 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 385 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
386 | var passWordReg = /^[0-9a-zA-Z]+$/; | 386 | var passWordReg = /^[0-9a-zA-Z]+$/; |
387 | e.preventDefault(); | 387 | e.preventDefault(); |
388 | - if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | 388 | + if (/[A-Z]/.test(that.$c.find("input[name='username']").val())) { |
389 | Core.showTips("账号不能有大写字母!"); | 389 | Core.showTips("账号不能有大写字母!"); |
390 | - }else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){ | 390 | + } else if (/[A-Z]/.test(that.$c.find("input[name='password']").val())) { |
391 | Core.showTips("密码不能有大写字母!"); | 391 | Core.showTips("密码不能有大写字母!"); |
392 | - }else if(that.$c.find("input[name='password']").val().length<6 || that.$c.find("input[name='password']").val().length>16){ | 392 | + } else if (that.$c.find("input[name='password']").val().length < 6 || that.$c.find("input[name='password']").val().length > 16) { |
393 | Core.showTips("密码长度为6-16位字符!"); | 393 | Core.showTips("密码长度为6-16位字符!"); |
394 | - }else if(!that.$c.find('.checkbox-2').length>0){ | 394 | + } else if (!that.$c.find('.checkbox-2').length > 0) { |
395 | - Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1); | 395 | + Core.showTips('请同意' + Core.PLATFORM_NAME + '网络协议', 1); |
396 | - }else if(!passWordReg.test(that.$c.find("input[name='password']").val())){ | 396 | + } else if (!passWordReg.test(that.$c.find("input[name='password']").val())) { |
397 | Core.showTips('请输入数字字母组成的密码!', true); | 397 | Core.showTips('请输入数字字母组成的密码!', true); |
398 | return false; | 398 | return false; |
399 | - }else{ | 399 | + } else { |
400 | //如果是游客的话则调用安卓截屏方法 | 400 | //如果是游客的话则调用安卓截屏方法 |
401 | - if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ | 401 | + if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined) { |
402 | window.android.screenShot(); | 402 | window.android.screenShot(); |
403 | } | 403 | } |
404 | - $(this).attr("disabled",true); | 404 | + $(this).attr("disabled", true); |
405 | - $(this).css({"background":"#999"}); | 405 | + $(this).css({"background": "#999"}); |
406 | - $(this).parent("li").css({"background":"#999"}); | 406 | + $(this).parent("li").css({"background": "#999"}); |
407 | 407 | ||
408 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); | 408 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); |
409 | } | 409 | } |
410 | return false; | 410 | return false; |
411 | }); | 411 | }); |
412 | 412 | ||
413 | - that.$c.on('change','[name="username"]',function(e){ | 413 | + that.$c.on('change', '[name="username"]', function (e) { |
414 | - if (this.value == that.$c.find('[name="old_usernmae"]').val()){ | 414 | + if (this.value == that.$c.find('[name="old_usernmae"]').val()) { |
415 | that.$c.find('[name="type"]').val(-1) | 415 | that.$c.find('[name="type"]').val(-1) |
416 | - } else{ | 416 | + } else { |
417 | that.$c.find('[name="type"]').val(0) | 417 | that.$c.find('[name="type"]').val(0) |
418 | } | 418 | } |
419 | }) | 419 | }) |
420 | 420 | ||
421 | } | 421 | } |
422 | - Register.prototype.set_random = function(){ | 422 | + Register.prototype.set_random = function () { |
423 | var that = this; | 423 | var that = this; |
424 | var random_name = 'yy' + Math.random().toString(36).substr(-2) + new Date().getTime().toString(36).substr(-4) | 424 | var random_name = 'yy' + Math.random().toString(36).substr(-2) + new Date().getTime().toString(36).substr(-4) |
425 | var random_passwd = Math.random().toString(36).substr(-6) | 425 | var random_passwd = Math.random().toString(36).substr(-6) |
... | @@ -428,49 +428,56 @@ | ... | @@ -428,49 +428,56 @@ |
428 | that.$c.find('[name="password"]').val(random_passwd) | 428 | that.$c.find('[name="password"]').val(random_passwd) |
429 | that.$c.find('[name="type"]').val(-1) | 429 | that.$c.find('[name="type"]').val(-1) |
430 | that.$c.find("input#btn-regist").attr('disabled', null); | 430 | that.$c.find("input#btn-regist").attr('disabled', null); |
431 | - that.$c.find('.submit').css({"background":"#00beef"}); | 431 | + that.$c.find('.submit').css({"background": "#00beef"}); |
432 | - that.$c.find('.submit').parent("li").css({"background":"#00beef"}); | 432 | + that.$c.find('.submit').parent("li").css({"background": "#00beef"}); |
433 | 433 | ||
434 | } | 434 | } |
435 | Register.prototype.cache = Login.prototype.cache; | 435 | Register.prototype.cache = Login.prototype.cache; |
436 | 436 | ||
437 | - Register.prototype.register_cb = function(result) { | 437 | + Register.prototype.register_cb = function (result) { |
438 | Core.updateData(result.msg); | 438 | Core.updateData(result.msg); |
439 | Core.first_user = this.$c.find('[name="username"]').val() | 439 | Core.first_user = this.$c.find('[name="username"]').val() |
440 | Core.first_password = this.$c.find('[name="password"]').val() | 440 | Core.first_password = this.$c.find('[name="password"]').val() |
441 | // 显示一个注册成功信息,并跳转到home | 441 | // 显示一个注册成功信息,并跳转到home |
442 | this.cache(); | 442 | this.cache(); |
443 | - if (Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == "") { | 443 | + if (Core.Data.compellation_name == "" && Core.Data.identity_card == "" && Core.Data.force_auth == 1) { |
444 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | 444 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); |
445 | Core.updateMod('identityCard'); | 445 | Core.updateMod('identityCard'); |
446 | - }else{ | 446 | + } else { |
447 | - Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | 447 | + Core.showTips('成功登录,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); |
448 | Core.updateMod('home'); | 448 | Core.updateMod('home'); |
449 | } | 449 | } |
450 | + // if (Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == "") { | ||
451 | + // Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
452 | + // Core.updateMod('identityCard'); | ||
453 | + // }else{ | ||
454 | + // Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | ||
455 | + // Core.updateMod('home'); | ||
456 | + // } | ||
450 | this.$c.find("input#btn-regist").attr('disabled', null); | 457 | this.$c.find("input#btn-regist").attr('disabled', null); |
451 | - this.$c.find('.submit').css({"background":"#00beef"}); | 458 | + this.$c.find('.submit').css({"background": "#00beef"}); |
452 | - this.$c.find('.submit').parent("li").css({"background":"#00beef"}); | 459 | + this.$c.find('.submit').parent("li").css({"background": "#00beef"}); |
453 | } | 460 | } |
454 | - Register.prototype.show_after = function() { | 461 | + Register.prototype.show_after = function () { |
455 | this.set_random(); | 462 | this.set_random(); |
456 | } | 463 | } |
457 | Core.registerMod('register', Register); | 464 | Core.registerMod('register', Register); |
458 | 465 | ||
459 | // Mibao模块 | 466 | // Mibao模块 |
460 | - var Mibao = function(modId) { | 467 | + var Mibao = function (modId) { |
461 | Module.call(this, modId); | 468 | Module.call(this, modId); |
462 | } | 469 | } |
463 | // 继承基础模块 | 470 | // 继承基础模块 |
464 | Core.inherit(Mibao, Module); | 471 | Core.inherit(Mibao, Module); |
465 | - Mibao.prototype.bind = function() { | 472 | + Mibao.prototype.bind = function () { |
466 | var that = this; | 473 | var that = this; |
467 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 474 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
468 | e.preventDefault(); | 475 | e.preventDefault(); |
469 | Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that); | 476 | Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that); |
470 | return false; | 477 | return false; |
471 | }); | 478 | }); |
472 | } | 479 | } |
473 | - Mibao.prototype.mibao_cb = function(data) { | 480 | + Mibao.prototype.mibao_cb = function (data) { |
474 | var status_code = data.code; | 481 | var status_code = data.code; |
475 | var msg = data.msg; | 482 | var msg = data.msg; |
476 | if (0 == status_code) { | 483 | if (0 == status_code) { |
... | @@ -485,19 +492,19 @@ | ... | @@ -485,19 +492,19 @@ |
485 | Core.registerMod('mibao', Mibao); | 492 | Core.registerMod('mibao', Mibao); |
486 | 493 | ||
487 | // 找回密码模块 | 494 | // 找回密码模块 |
488 | - var Find_pwd = function(modId) { | 495 | + var Find_pwd = function (modId) { |
489 | Module.call(this, modId); | 496 | Module.call(this, modId); |
490 | } | 497 | } |
491 | Core.inherit(Find_pwd, Module); | 498 | Core.inherit(Find_pwd, Module); |
492 | - Find_pwd.prototype.bind = function() { | 499 | + Find_pwd.prototype.bind = function () { |
493 | var that = this; | 500 | var that = this; |
494 | - var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"]; | 501 | + var pwd_header = ["手机找回密码", "密保找回密码", "联系客服", "重置密码", "找回密码"]; |
495 | var pwd_header_back = { | 502 | var pwd_header_back = { |
496 | - 0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>', | 503 | + 0: '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>', |
497 | - 1 : '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>' | 504 | + 1: '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>' |
498 | }; | 505 | }; |
499 | var browser = { | 506 | var browser = { |
500 | - versions: function() { | 507 | + versions: function () { |
501 | var u = navigator.userAgent, | 508 | var u = navigator.userAgent, |
502 | app = navigator.appVersion; | 509 | app = navigator.appVersion; |
503 | return { //移动终端浏览器版本信息 | 510 | return { //移动终端浏览器版本信息 |
... | @@ -532,62 +539,62 @@ | ... | @@ -532,62 +539,62 @@ |
532 | $("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes"; | 539 | $("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes"; |
533 | $("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes"; | 540 | $("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes"; |
534 | } | 541 | } |
535 | - that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码 | 542 | + that.$c.on("click", "#js_findPSW_getcode", function () {//找回密码获取验证码 |
536 | var $self = $(this) | 543 | var $self = $(this) |
537 | phone = $("#js_findPSW_mobile").val(); | 544 | phone = $("#js_findPSW_mobile").val(); |
538 | Core.ajax({ | 545 | Core.ajax({ |
539 | - type:"post", | 546 | + type: "post", |
540 | - url:"/sms_validate_code/?mobile="+phone, | 547 | + url: "/sms_validate_code/?mobile=" + phone, |
541 | - success:function(msg){ | 548 | + success: function (msg) { |
542 | - if(msg.length == 0){//为空(已经发送) | 549 | + if (msg.length == 0) {//为空(已经发送) |
543 | Core.showTips('验证码发送成功,请注意查收', true); | 550 | Core.showTips('验证码发送成功,请注意查收', true); |
544 | $self.addClass("disabled"); | 551 | $self.addClass("disabled"); |
545 | var counter = 60; | 552 | var counter = 60; |
546 | - var timer = setInterval(function(){ | 553 | + var timer = setInterval(function () { |
547 | - if(counter > 0){ | 554 | + if (counter > 0) { |
548 | $self.text(counter + "秒再获取"); | 555 | $self.text(counter + "秒再获取"); |
549 | - counter --; | 556 | + counter--; |
550 | - }else{ | 557 | + } else { |
551 | clearInterval(timer); | 558 | clearInterval(timer); |
552 | $self.text("获取验证码"); | 559 | $self.text("获取验证码"); |
553 | $self.removeClass("disabled"); | 560 | $self.removeClass("disabled"); |
554 | } | 561 | } |
555 | - },1000); | 562 | + }, 1000); |
556 | - }else{ | 563 | + } else { |
557 | Core.showTips(msg, true); | 564 | Core.showTips(msg, true); |
558 | } | 565 | } |
559 | } | 566 | } |
560 | }); | 567 | }); |
561 | }); | 568 | }); |
562 | - that.$c.on("click","#js_findPSW_confirm",function(){ | 569 | + that.$c.on("click", "#js_findPSW_confirm", function () { |
563 | var code = that.$c.find("#js_findPSW_ranks").val(), | 570 | var code = that.$c.find("#js_findPSW_ranks").val(), |
564 | accout = $("#js_findPSW_accout").val(), | 571 | accout = $("#js_findPSW_accout").val(), |
565 | phoneTest = $("#js_findPSW_mobile").val(), | 572 | phoneTest = $("#js_findPSW_mobile").val(), |
566 | //iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; | 573 | //iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; |
567 | iphoneReg = /^1(3|4|5|7|8)\d{9}$/; | 574 | iphoneReg = /^1(3|4|5|7|8)\d{9}$/; |
568 | - if($.trim(accout) == ""){ | 575 | + if ($.trim(accout) == "") { |
569 | Core.showTips('请输入账号!', false); | 576 | Core.showTips('请输入账号!', false); |
570 | return false; | 577 | return false; |
571 | } | 578 | } |
572 | - if($.trim(phoneTest) == ""){ | 579 | + if ($.trim(phoneTest) == "") { |
573 | Core.showTips('请输入手机号码!', false); | 580 | Core.showTips('请输入手机号码!', false); |
574 | return false; | 581 | return false; |
575 | } | 582 | } |
576 | - if(!iphoneReg.test(phoneTest)){ | 583 | + if (!iphoneReg.test(phoneTest)) { |
577 | Core.showTips('请输入11位手机号码!', false); | 584 | Core.showTips('请输入11位手机号码!', false); |
578 | return false; | 585 | return false; |
579 | } | 586 | } |
580 | - if($.trim(code) == ""){ | 587 | + if ($.trim(code) == "") { |
581 | Core.showTips('请输入验证码!', true); | 588 | Core.showTips('请输入验证码!', true); |
582 | return false; | 589 | return false; |
583 | } | 590 | } |
584 | Core.ajax({ | 591 | Core.ajax({ |
585 | - type:"post", | 592 | + type: "post", |
586 | - url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code, | 593 | + url: "/user/password_by_mobile?mobile=" + phoneTest + "&username=" + accout + "&vcode=" + code, |
587 | - data:{format:"json"}, | 594 | + data: {format: "json"}, |
588 | - dataType:"json", | 595 | + dataType: "json", |
589 | - success:function(res){ | 596 | + success: function (res) { |
590 | - if(res.code === 0){ | 597 | + if (res.code === 0) { |
591 | var message = JSON.parse(res.msg); | 598 | var message = JSON.parse(res.msg); |
592 | Core.showTips('验证成功!请设置新密码', true); | 599 | Core.showTips('验证成功!请设置新密码', true); |
593 | that.$c.find("input[name='pwd_code']").val(message.pwd_code); | 600 | that.$c.find("input[name='pwd_code']").val(message.pwd_code); |
... | @@ -595,43 +602,43 @@ | ... | @@ -595,43 +602,43 @@ |
595 | that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(3).removeClass("hide").siblings("div").addClass("hide"); | 602 | that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(3).removeClass("hide").siblings("div").addClass("hide"); |
596 | that.$c.find("#js_UserName").text(message.username); | 603 | that.$c.find("#js_UserName").text(message.username); |
597 | $("input[name='loginUserName']").val(message.username); | 604 | $("input[name='loginUserName']").val(message.username); |
598 | - }else{ | 605 | + } else { |
599 | Core.showTips(res.msg, true); | 606 | Core.showTips(res.msg, true); |
600 | } | 607 | } |
601 | } | 608 | } |
602 | }); | 609 | }); |
603 | }); | 610 | }); |
604 | - that.$c.on("click","#returnhome",function(){ | 611 | + that.$c.on("click", "#returnhome", function () { |
605 | that.$c.find(".user-center span").html("找回密码"); | 612 | that.$c.find(".user-center span").html("找回密码"); |
606 | }); | 613 | }); |
607 | - that.$c.on("click","#js_confirm_resetnewpsw",function(){ | 614 | + that.$c.on("click", "#js_confirm_resetnewpsw", function () { |
608 | var NewPsw = that.$c.find("#js_reset_newpsw").val(), | 615 | var NewPsw = that.$c.find("#js_reset_newpsw").val(), |
609 | NewKey = that.$c.find("input[name='pwd_code']").val(), | 616 | NewKey = that.$c.find("input[name='pwd_code']").val(), |
610 | passWordReg = /^[0-9a-zA-Z]+$/, | 617 | passWordReg = /^[0-9a-zA-Z]+$/, |
611 | account = $("input[name='loginUserName']").val(); | 618 | account = $("input[name='loginUserName']").val(); |
612 | var names = localStorage.getItem('user_names'); | 619 | var names = localStorage.getItem('user_names'); |
613 | names = JSON.parse(names); | 620 | names = JSON.parse(names); |
614 | - if(!passWordReg.test(NewPsw)){ | 621 | + if (!passWordReg.test(NewPsw)) { |
615 | Core.showTips('请输入数字字母组成的密码!', true); | 622 | Core.showTips('请输入数字字母组成的密码!', true); |
616 | return false; | 623 | return false; |
617 | } | 624 | } |
618 | Core.ajax({ | 625 | Core.ajax({ |
619 | - type:"post", | 626 | + type: "post", |
620 | - url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw, | 627 | + url: "/user/reset_passwd?pwd_code=" + NewKey + "&password=" + NewPsw, |
621 | - data:{format:"json"}, | 628 | + data: {format: "json"}, |
622 | - dataType:"json", | 629 | + dataType: "json", |
623 | - success:function(res){ | 630 | + success: function (res) { |
624 | - if(res.code === 0){ | 631 | + if (res.code === 0) { |
625 | Core.showTips('重置密码成功!', true); | 632 | Core.showTips('重置密码成功!', true); |
626 | $("input[name='loginPassword']").val(NewPsw); | 633 | $("input[name='loginPassword']").val(NewPsw); |
627 | names[account] = NewPsw; | 634 | names[account] = NewPsw; |
628 | - localStorage.setItem('user_names',JSON.stringify(names)); | 635 | + localStorage.setItem('user_names', JSON.stringify(names)); |
629 | Core.user_names = names; | 636 | Core.user_names = names; |
630 | $("#js_reset_newpsw").val(""); | 637 | $("#js_reset_newpsw").val(""); |
631 | - setTimeout(function() { | 638 | + setTimeout(function () { |
632 | Core.updateMod('login'); | 639 | Core.updateMod('login'); |
633 | }, 500); | 640 | }, 500); |
634 | - }else{ | 641 | + } else { |
635 | Core.showTips(res.msg, true); | 642 | Core.showTips(res.msg, true); |
636 | } | 643 | } |
637 | } | 644 | } |
... | @@ -642,19 +649,19 @@ | ... | @@ -642,19 +649,19 @@ |
642 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); | 649 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); |
643 | var checkboxInput = that.$c.find("input#js_reset_newpsw"); | 650 | var checkboxInput = that.$c.find("input#js_reset_newpsw"); |
644 | 651 | ||
645 | - that.$c.on("click",checkbox,function(e){ | 652 | + that.$c.on("click", checkbox, function (e) { |
646 | - if(checkbox.hasClass('checkbox-2')){ | 653 | + if (checkbox.hasClass('checkbox-2')) { |
647 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | 654 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); |
648 | checkbox_type.addClass("checkbx"); | 655 | checkbox_type.addClass("checkbx"); |
649 | - checkboxInput.attr("type","password"); | 656 | + checkboxInput.attr("type", "password"); |
650 | - }else{ | 657 | + } else { |
651 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); | 658 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); |
652 | checkbox_type.removeClass("checkbx"); | 659 | checkbox_type.removeClass("checkbx"); |
653 | - checkboxInput.attr("type","text"); | 660 | + checkboxInput.attr("type", "text"); |
654 | } | 661 | } |
655 | }); | 662 | }); |
656 | 663 | ||
657 | - that.$c.on('click', '.pwd_box .step-tab li a', function(e) { | 664 | + that.$c.on('click', '.pwd_box .step-tab li a', function (e) { |
658 | var ipar = $(this).parent("li"), | 665 | var ipar = $(this).parent("li"), |
659 | iIndex = ipar.index(); | 666 | iIndex = ipar.index(); |
660 | 667 | ||
... | @@ -667,20 +674,20 @@ | ... | @@ -667,20 +674,20 @@ |
667 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); | 674 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); |
668 | }); | 675 | }); |
669 | 676 | ||
670 | - that.$c.on('click', '.user-center a.back-btn', function(e) { | 677 | + that.$c.on('click', '.user-center a.back-btn', function (e) { |
671 | $(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show(); | 678 | $(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show(); |
672 | that.$c.find(".user-center span").html(pwd_header[4]); | 679 | that.$c.find(".user-center span").html(pwd_header[4]); |
673 | that.$c.find(".user-center a").replaceWith(pwd_header_back[0]); | 680 | that.$c.find(".user-center a").replaceWith(pwd_header_back[0]); |
674 | }); | 681 | }); |
675 | 682 | ||
676 | - that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) { | 683 | + that.$c.on('click', '.pwd_box a.kefu_subbtn', function (e) { |
677 | $(this).parents(".step-box").hide().siblings(".step-tab").show(); | 684 | $(this).parents(".step-box").hide().siblings(".step-tab").show(); |
678 | that.$c.find(".user-center span").html(pwd_header[4]); | 685 | that.$c.find(".user-center span").html(pwd_header[4]); |
679 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); | 686 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); |
680 | }); | 687 | }); |
681 | 688 | ||
682 | 689 | ||
683 | - that.$c.on('click', '.op-primary', function(e) { | 690 | + that.$c.on('click', '.op-primary', function (e) { |
684 | 691 | ||
685 | var $form = that.$c.find('.fn-icon-2'); | 692 | var $form = that.$c.find('.fn-icon-2'); |
686 | e.preventDefault(); | 693 | e.preventDefault(); |
... | @@ -690,7 +697,7 @@ | ... | @@ -690,7 +697,7 @@ |
690 | }); | 697 | }); |
691 | 698 | ||
692 | 699 | ||
693 | - that.$c.on('click', '.step-tab .function-list-title', function(e) { | 700 | + that.$c.on('click', '.step-tab .function-list-title', function (e) { |
694 | 701 | ||
695 | that.$c.find('.step-tab .function-list-content').hide(); | 702 | that.$c.find('.step-tab .function-list-content').hide(); |
696 | $(e.target).parent().next().show(); | 703 | $(e.target).parent().next().show(); |
... | @@ -703,7 +710,7 @@ | ... | @@ -703,7 +710,7 @@ |
703 | } | 710 | } |
704 | }); | 711 | }); |
705 | } | 712 | } |
706 | - Find_pwd.prototype.findpwd_cb = function(data) { | 713 | + Find_pwd.prototype.findpwd_cb = function (data) { |
707 | var code = data.code; | 714 | var code = data.code; |
708 | var msg = data.msg; | 715 | var msg = data.msg; |
709 | 716 | ||
... | @@ -715,7 +722,7 @@ | ... | @@ -715,7 +722,7 @@ |
715 | // 回答密保 | 722 | // 回答密保 |
716 | Core.Data.ans_temp = msg; | 723 | Core.Data.ans_temp = msg; |
717 | Core.updateMod('answer_question'); | 724 | Core.updateMod('answer_question'); |
718 | - Core.showTips('加载成功.', true,100); | 725 | + Core.showTips('加载成功.', true, 100); |
719 | } else { | 726 | } else { |
720 | // 通过邮箱 | 727 | // 通过邮箱 |
721 | Core.showTips(msg, true); | 728 | Core.showTips(msg, true); |
... | @@ -723,42 +730,42 @@ | ... | @@ -723,42 +730,42 @@ |
723 | } | 730 | } |
724 | 731 | ||
725 | } | 732 | } |
726 | - Find_pwd.prototype.show_after = function() { | 733 | + Find_pwd.prototype.show_after = function () { |
727 | var that = this; | 734 | var that = this; |
728 | this.$c.find('input[name="username"]').val($('#login input[name="username"]').val()); | 735 | this.$c.find('input[name="username"]').val($('#login input[name="username"]').val()); |
729 | this.$c.find('.sms').html(Core.Data.mobile_helper_number); | 736 | this.$c.find('.sms').html(Core.Data.mobile_helper_number); |
730 | 737 | ||
731 | var kefu = Core.Data.kefu_info, | 738 | var kefu = Core.Data.kefu_info, |
732 | kefuInfo = JSON.stringify(kefu); | 739 | kefuInfo = JSON.stringify(kefu); |
733 | - if(typeof(kefuInfo) !== "undefined"){ | 740 | + if (typeof(kefuInfo) !== "undefined") { |
734 | - localStorage.setItem("kefuInfo",kefuInfo); | 741 | + localStorage.setItem("kefuInfo", kefuInfo); |
735 | - }else{ | 742 | + } else { |
736 | - that.$c.find(".pwd_txt .default_text").css("display","block"); | 743 | + that.$c.find(".pwd_txt .default_text").css("display", "block"); |
737 | - that.$c.find(".pwd_txt .get_text").html("").css("display","none"); | 744 | + that.$c.find(".pwd_txt .get_text").html("").css("display", "none"); |
738 | } | 745 | } |
739 | var getItem = localStorage.getItem("kefuInfo"), | 746 | var getItem = localStorage.getItem("kefuInfo"), |
740 | kefu_info = JSON.parse(getItem), | 747 | kefu_info = JSON.parse(getItem), |
741 | isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/, | 748 | isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/, |
742 | - 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})$/; | 749 | + 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})$/; |
743 | - | 750 | + |
744 | - if(kefu_info == ""){ | 751 | + if (kefu_info == "") { |
745 | - that.$c.find(".pwd_txt .default_text").css("display","block"); | 752 | + that.$c.find(".pwd_txt .default_text").css("display", "block"); |
746 | - that.$c.find(".pwd_txt .get_text").html("").css("display","none"); | 753 | + that.$c.find(".pwd_txt .get_text").html("").css("display", "none"); |
747 | - }else{ | 754 | + } else { |
748 | - that.$c.find(".pwd_txt .default_text").css("display","none"); | 755 | + that.$c.find(".pwd_txt .default_text").css("display", "none"); |
749 | - that.$c.find(".pwd_txt .get_text").html("").css("display","block"); | 756 | + that.$c.find(".pwd_txt .get_text").html("").css("display", "block"); |
750 | - for(var key in kefu_info){ | 757 | + for (var key in kefu_info) { |
751 | var reg = /\d+/g, | 758 | var reg = /\d+/g, |
752 | str = kefu_info[key], | 759 | str = kefu_info[key], |
753 | ms = str.match(reg), | 760 | ms = str.match(reg), |
754 | result = ms.join("-"); | 761 | result = ms.join("-"); |
755 | 762 | ||
756 | - if( isMob.test(result) || isPhone.test(result) ){ | 763 | + if (isMob.test(result) || isPhone.test(result)) { |
757 | - var hrefTel = '<a href="tel:'+result+'">'+result+'</a>', | 764 | + var hrefTel = '<a href="tel:' + result + '">' + result + '</a>', |
758 | stringTel = str.split(":")[0]; | 765 | stringTel = str.split(":")[0]; |
759 | - that.$c.find(".pwd_txt .get_text").append('<p>'+stringTel+':'+hrefTel+'</p>'); | 766 | + that.$c.find(".pwd_txt .get_text").append('<p>' + stringTel + ':' + hrefTel + '</p>'); |
760 | - }else{ | 767 | + } else { |
761 | - that.$c.find(".pwd_txt .get_text").append('<p>'+kefu_info[key]+'</p>'); | 768 | + that.$c.find(".pwd_txt .get_text").append('<p>' + kefu_info[key] + '</p>'); |
762 | } | 769 | } |
763 | } | 770 | } |
764 | } | 771 | } |
... | @@ -766,30 +773,30 @@ | ... | @@ -766,30 +773,30 @@ |
766 | Core.registerMod('find_pwd', Find_pwd); | 773 | Core.registerMod('find_pwd', Find_pwd); |
767 | 774 | ||
768 | // Mibao模块 | 775 | // Mibao模块 |
769 | - var Bind = function(modId) { | 776 | + var Bind = function (modId) { |
770 | Module.call(this, modId); | 777 | Module.call(this, modId); |
771 | } | 778 | } |
772 | // 继承基础模块 | 779 | // 继承基础模块 |
773 | Core.inherit(Bind, Module); | 780 | Core.inherit(Bind, Module); |
774 | - Bind.prototype.bind = function() { | 781 | + Bind.prototype.bind = function () { |
775 | var that = this; | 782 | var that = this; |
776 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 783 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
777 | e.preventDefault(); | 784 | e.preventDefault(); |
778 | Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that); | 785 | Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that); |
779 | return false; | 786 | return false; |
780 | }); | 787 | }); |
781 | - that.$c.on('click', '#bind-mobile', function(e) { | 788 | + that.$c.on('click', '#bind-mobile', function (e) { |
782 | e.preventDefault(); | 789 | e.preventDefault(); |
783 | that.$c.find('#bind_phone_form').show(); | 790 | that.$c.find('#bind_phone_form').show(); |
784 | return false; | 791 | return false; |
785 | }); | 792 | }); |
786 | - that.$c.on('click', '#bind-check', function(e) { | 793 | + that.$c.on('click', '#bind-check', function (e) { |
787 | e.preventDefault(); | 794 | e.preventDefault(); |
788 | Core.ajax_do($(e.target), that.bind_ch, that); | 795 | Core.ajax_do($(e.target), that.bind_ch, that); |
789 | return false; | 796 | return false; |
790 | }); | 797 | }); |
791 | } | 798 | } |
792 | - Bind.prototype.bind_ch = function(data) { | 799 | + Bind.prototype.bind_ch = function (data) { |
793 | var code = data.code; | 800 | var code = data.code; |
794 | Core.Data.bind_statu = data.msg.bind_statu; | 801 | Core.Data.bind_statu = data.msg.bind_statu; |
795 | if (data.msg.bind_statu == 1) { | 802 | if (data.msg.bind_statu == 1) { |
... | @@ -797,7 +804,7 @@ | ... | @@ -797,7 +804,7 @@ |
797 | } | 804 | } |
798 | Core.updateMod('bind'); | 805 | Core.updateMod('bind'); |
799 | } | 806 | } |
800 | - Bind.prototype.bind_cb = function(data) { | 807 | + Bind.prototype.bind_cb = function (data) { |
801 | 808 | ||
802 | var code = data.code; | 809 | var code = data.code; |
803 | if (code != 0) | 810 | if (code != 0) |
... | @@ -810,87 +817,87 @@ | ... | @@ -810,87 +817,87 @@ |
810 | 817 | ||
811 | this.$c.find('#bind_phone_form').hide(); | 818 | this.$c.find('#bind_phone_form').hide(); |
812 | this.isValid = false; | 819 | this.isValid = false; |
813 | - setTimeout(function() { | 820 | + setTimeout(function () { |
814 | Core.updateMod('bind'); | 821 | Core.updateMod('bind'); |
815 | }, 1000); | 822 | }, 1000); |
816 | } | 823 | } |
817 | Core.registerMod('bind', Bind); | 824 | Core.registerMod('bind', Bind); |
818 | 825 | ||
819 | //绑定手机模块 | 826 | //绑定手机模块 |
820 | - var BindMobile = function(modId){ | 827 | + var BindMobile = function (modId) { |
821 | Module.call(this, modId); | 828 | Module.call(this, modId); |
822 | } | 829 | } |
823 | Core.inherit(BindMobile, Module); | 830 | Core.inherit(BindMobile, Module); |
824 | - BindMobile.prototype.bind = function(){ | 831 | + BindMobile.prototype.bind = function () { |
825 | var that = this; | 832 | var that = this; |
826 | var SendMsg = { | 833 | var SendMsg = { |
827 | - mobileReg : function(iphone){ | 834 | + mobileReg: function (iphone) { |
828 | var iphoneReg = /^1(3|4|5|7|8)\d{9}$/, | 835 | var iphoneReg = /^1(3|4|5|7|8)\d{9}$/, |
829 | phoneTest = $(iphone).val(); | 836 | phoneTest = $(iphone).val(); |
830 | - if($.trim(phoneTest) == ""){ | 837 | + if ($.trim(phoneTest) == "") { |
831 | Core.showTips('请输入手机号码!', false); | 838 | Core.showTips('请输入手机号码!', false); |
832 | return false; | 839 | return false; |
833 | } | 840 | } |
834 | - if(!iphoneReg.test(phoneTest)){ | 841 | + if (!iphoneReg.test(phoneTest)) { |
835 | Core.showTips('请输入11位手机号码!', false); | 842 | Core.showTips('请输入11位手机号码!', false); |
836 | return false; | 843 | return false; |
837 | } | 844 | } |
838 | }, | 845 | }, |
839 | - send : function(element,iphone){ | 846 | + send: function (element, iphone) { |
840 | var self = this, | 847 | var self = this, |
841 | ele = that.$c; | 848 | ele = that.$c; |
842 | - ele.on("click",element,function(){ | 849 | + ele.on("click", element, function () { |
843 | var phoneTest = $(iphone).val(); | 850 | var phoneTest = $(iphone).val(); |
844 | - if(self.mobileReg(iphone) == false) return false; | 851 | + if (self.mobileReg(iphone) == false) return false; |
845 | Core.ajax({ | 852 | Core.ajax({ |
846 | - type:"post", | 853 | + type: "post", |
847 | - url:"/sms_validate_code/?mobile="+phoneTest, | 854 | + url: "/sms_validate_code/?mobile=" + phoneTest, |
848 | - success:function(msg){ | 855 | + success: function (msg) { |
849 | - if(msg.length == 0){//为空(已经发送) | 856 | + if (msg.length == 0) {//为空(已经发送) |
850 | Core.showTips('验证码发送成功,请注意查收', true); | 857 | Core.showTips('验证码发送成功,请注意查收', true); |
851 | $(element).addClass("disabled"); | 858 | $(element).addClass("disabled"); |
852 | var counter = 60; | 859 | var counter = 60; |
853 | - var timer = setInterval(function(){ | 860 | + var timer = setInterval(function () { |
854 | - if(counter > 0){ | 861 | + if (counter > 0) { |
855 | $(element).text(counter + "秒再获取"); | 862 | $(element).text(counter + "秒再获取"); |
856 | - counter --; | 863 | + counter--; |
857 | - }else{ | 864 | + } else { |
858 | clearInterval(timer); | 865 | clearInterval(timer); |
859 | $(element).text("获取验证码"); | 866 | $(element).text("获取验证码"); |
860 | $(element).removeClass("disabled"); | 867 | $(element).removeClass("disabled"); |
861 | } | 868 | } |
862 | - },1000); | 869 | + }, 1000); |
863 | - }else{ | 870 | + } else { |
864 | Core.showTips(msg, true); | 871 | Core.showTips(msg, true); |
865 | } | 872 | } |
866 | } | 873 | } |
867 | }); | 874 | }); |
868 | }); | 875 | }); |
869 | }, | 876 | }, |
870 | - bind : function(element,iphone,rank){ | 877 | + bind: function (element, iphone, rank) { |
871 | var self = this, | 878 | var self = this, |
872 | ele = that.$c; | 879 | ele = that.$c; |
873 | - ele.on("click",element,function(){ | 880 | + ele.on("click", element, function () { |
874 | var code = $(rank).val(), | 881 | var code = $(rank).val(), |
875 | phoneTest = $(iphone).val(); | 882 | phoneTest = $(iphone).val(); |
876 | - if(self.mobileReg(iphone) == false) return false; | 883 | + if (self.mobileReg(iphone) == false) return false; |
877 | - if($.trim(code) == ""){ | 884 | + if ($.trim(code) == "") { |
878 | Core.showTips('请输入验证码!', true); | 885 | Core.showTips('请输入验证码!', true); |
879 | return false; | 886 | return false; |
880 | } | 887 | } |
881 | Core.ajax({ | 888 | Core.ajax({ |
882 | - type:"post", | 889 | + type: "post", |
883 | - url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code, | 890 | + url: "/user/bind_mobile?mobile=" + phoneTest + "&vcode=" + code, |
884 | - data:{format:"json"}, | 891 | + data: {format: "json"}, |
885 | - dataType:"json", | 892 | + dataType: "json", |
886 | - success:function(res){ | 893 | + success: function (res) { |
887 | - if(res.code === 0){ | 894 | + if (res.code === 0) { |
888 | Core.showTips('绑定成功!', true); | 895 | Core.showTips('绑定成功!', true); |
889 | Core.Data.bind_phone = phoneTest; | 896 | Core.Data.bind_phone = phoneTest; |
890 | - setTimeout(function() { | 897 | + setTimeout(function () { |
891 | Core.updateMod('home'); | 898 | Core.updateMod('home'); |
892 | }, 500); | 899 | }, 500); |
893 | - }else{ | 900 | + } else { |
894 | Core.showTips(res.msg, true); | 901 | Core.showTips(res.msg, true); |
895 | } | 902 | } |
896 | } | 903 | } |
... | @@ -898,203 +905,282 @@ | ... | @@ -898,203 +905,282 @@ |
898 | }); | 905 | }); |
899 | } | 906 | } |
900 | }; | 907 | }; |
901 | - SendMsg.send("#js_getcode","#js_iphone"); | 908 | + SendMsg.send("#js_getcode", "#js_iphone"); |
902 | - SendMsg.bind("#js_conform","#js_iphone","#js_ranks"); | 909 | + SendMsg.bind("#js_conform", "#js_iphone", "#js_ranks"); |
903 | } | 910 | } |
904 | - BindMobile.prototype.show_after = function(){ | 911 | + BindMobile.prototype.show_after = function () { |
905 | 912 | ||
906 | } | 913 | } |
907 | Core.registerMod('bindMobile', BindMobile); | 914 | Core.registerMod('bindMobile', BindMobile); |
908 | 915 | ||
916 | + //绑定QQ号码模块 | ||
917 | + var BindQQ = function (modId) { | ||
918 | + Module.call(this, modId); | ||
919 | + } | ||
920 | + Core.inherit(BindQQ, Module); | ||
921 | + BindQQ.prototype.bind = function () { | ||
922 | + var that = this; | ||
923 | + var bindQQ = { | ||
924 | + qqValid: function (qqNum) { | ||
925 | + if ($.trim(qqNum) == "") { | ||
926 | + Core.showTips('请输入QQ号码!', false); | ||
927 | + return false; | ||
928 | + } | ||
929 | + // 首位不能是0 && 必须是 [5, 11] 位的数字 | ||
930 | + var regExp = /^[1-9][0-9]{4,9}$/gim; | ||
931 | + if (regExp.test(qqNum)) { | ||
932 | + return true; | ||
933 | + } | ||
934 | + Core.showTips('请输入正确格式的QQ号码!', false); | ||
935 | + return false; | ||
936 | + }, | ||
937 | + bind: function (element, qq) { | ||
938 | + var self = this, | ||
939 | + ele = that.$c; | ||
940 | + ele.on("click", element, function () { | ||
941 | + qqNum = $(qq).val(); | ||
942 | + if (self.qqValid(qqNum) == false) return false; | ||
943 | + | ||
944 | + Core.ajax({ | ||
945 | + type: "post", | ||
946 | + url: "/user/bind_qq?qq=" + qqNum, | ||
947 | + data: {format: "json"}, | ||
948 | + dataType: "json", | ||
949 | + success: function (res) { | ||
950 | + if (res.code === 0) { | ||
951 | + // Core.showTips('绑定成功!', true); | ||
952 | + Core.Data.bind_qq = qqNum; | ||
953 | + setTimeout(function () { | ||
954 | + Core.updateMod('home'); | ||
955 | + }, 500); | ||
956 | + } else { | ||
957 | + Core.showTips(res.msg, true); | ||
958 | + } | ||
959 | + } | ||
960 | + }); | ||
961 | + }); | ||
962 | + } | ||
963 | + }; | ||
964 | + bindQQ.bind("#js_qq_bind_conform", "#js_qq"); | ||
965 | + } | ||
966 | + BindQQ.prototype.show_after = function () { | ||
967 | + | ||
968 | + } | ||
969 | + Core.registerMod('bindQQ', BindQQ); | ||
970 | + | ||
909 | //解绑手机模块 | 971 | //解绑手机模块 |
910 | - var UnBindMobile = function(modId){ | 972 | + var UnBindMobile = function (modId) { |
911 | Module.call(this, modId); | 973 | Module.call(this, modId); |
912 | } | 974 | } |
913 | Core.inherit(UnBindMobile, Module); | 975 | Core.inherit(UnBindMobile, Module); |
914 | - UnBindMobile.prototype.bind = function(){ | 976 | + UnBindMobile.prototype.bind = function () { |
915 | var that = this; | 977 | var that = this; |
916 | - that.$c.on("click","#js_unbind_getcode",function(){ | 978 | + that.$c.on("click", "#js_unbind_getcode", function () { |
917 | var $self = $(this), | 979 | var $self = $(this), |
918 | phone = Core.Data.bind_phone; | 980 | phone = Core.Data.bind_phone; |
919 | Core.ajax({ | 981 | Core.ajax({ |
920 | - type:"post", | 982 | + type: "post", |
921 | - url:"/sms_validate_code/?mobile="+phone, | 983 | + url: "/sms_validate_code/?mobile=" + phone, |
922 | - success:function(msg){ | 984 | + success: function (msg) { |
923 | - if(msg.length == 0){//为空(已经发送) | 985 | + if (msg.length == 0) {//为空(已经发送) |
924 | Core.showTips('验证码发送成功,请注意查收', true); | 986 | Core.showTips('验证码发送成功,请注意查收', true); |
925 | $self.addClass("disabled"); | 987 | $self.addClass("disabled"); |
926 | var counter = 60; | 988 | var counter = 60; |
927 | - var timer = setInterval(function(){ | 989 | + var timer = setInterval(function () { |
928 | - if(counter > 0){ | 990 | + if (counter > 0) { |
929 | $self.text(counter + "秒再获取"); | 991 | $self.text(counter + "秒再获取"); |
930 | - counter --; | 992 | + counter--; |
931 | - }else{ | 993 | + } else { |
932 | clearInterval(timer); | 994 | clearInterval(timer); |
933 | $self.text("获取验证码"); | 995 | $self.text("获取验证码"); |
934 | $self.removeClass("disabled"); | 996 | $self.removeClass("disabled"); |
935 | } | 997 | } |
936 | - },1000); | 998 | + }, 1000); |
937 | - }else{ | 999 | + } else { |
938 | Core.showTips(msg, true); | 1000 | Core.showTips(msg, true); |
939 | } | 1001 | } |
940 | } | 1002 | } |
941 | }); | 1003 | }); |
942 | }); | 1004 | }); |
943 | - that.$c.on("click","#js_unbind",function(){ | 1005 | + that.$c.on("click", "#js_unbind", function () { |
944 | var code = $("#js_unbind_ranks").val(), | 1006 | var code = $("#js_unbind_ranks").val(), |
945 | phoneTest = Core.Data.bind_phone; | 1007 | phoneTest = Core.Data.bind_phone; |
946 | - if($.trim(code) == ""){ | 1008 | + if ($.trim(code) == "") { |
947 | Core.showTips('请输入验证码!', true); | 1009 | Core.showTips('请输入验证码!', true); |
948 | return false; | 1010 | return false; |
949 | } | 1011 | } |
950 | Core.ajax({ | 1012 | Core.ajax({ |
951 | - type:"post", | 1013 | + type: "post", |
952 | - url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code, | 1014 | + url: "/user/unbind_mobile?mobile=" + phoneTest + "&vcode=" + code, |
953 | - data:{format:"json"}, | 1015 | + data: {format: "json"}, |
954 | - dataType:"json", | 1016 | + dataType: "json", |
955 | - success:function(res){ | 1017 | + success: function (res) { |
956 | - if(res.code === 0){ | 1018 | + if (res.code === 0) { |
957 | Core.showTips('解绑成功!', true); | 1019 | Core.showTips('解绑成功!', true); |
958 | Core.Data.bind_phone = ""; | 1020 | Core.Data.bind_phone = ""; |
959 | $("#js_iphone").val(""); | 1021 | $("#js_iphone").val(""); |
960 | $("#js_ranks").val(""); | 1022 | $("#js_ranks").val(""); |
961 | - setTimeout(function() { | 1023 | + setTimeout(function () { |
962 | Core.updateMod('home'); | 1024 | Core.updateMod('home'); |
963 | }, 500); | 1025 | }, 500); |
964 | - }else{ | 1026 | + } else { |
965 | Core.showTips(res.msg, true); | 1027 | Core.showTips(res.msg, true); |
966 | } | 1028 | } |
967 | } | 1029 | } |
968 | }); | 1030 | }); |
969 | }); | 1031 | }); |
970 | } | 1032 | } |
971 | - UnBindMobile.prototype.show_after = function(){ | 1033 | + UnBindMobile.prototype.show_after = function () { |
972 | var phoneMobile = Core.Data.bind_phone, | 1034 | var phoneMobile = Core.Data.bind_phone, |
973 | - getBefore = phoneMobile.substring(0,3), | 1035 | + getBefore = phoneMobile.substring(0, 3), |
974 | - getAfter = phoneMobile.substring(8,11), | 1036 | + getAfter = phoneMobile.substring(8, 11), |
975 | - phoneHtml = getBefore+"****"+getAfter; | 1037 | + phoneHtml = getBefore + "****" + getAfter; |
976 | this.$c.find(".phoneMobile").html(phoneHtml); | 1038 | this.$c.find(".phoneMobile").html(phoneHtml); |
977 | } | 1039 | } |
978 | Core.registerMod('unbindMobile', UnBindMobile); | 1040 | Core.registerMod('unbindMobile', UnBindMobile); |
979 | 1041 | ||
980 | //实名认证 | 1042 | //实名认证 |
981 | - var IdentityCard = function(modId) { | 1043 | + var IdentityCard = function (modId) { |
982 | Module.call(this, modId); | 1044 | Module.call(this, modId); |
983 | } | 1045 | } |
984 | // 继承基础模块 | 1046 | // 继承基础模块 |
985 | Core.inherit(IdentityCard, Module); | 1047 | Core.inherit(IdentityCard, Module); |
986 | - IdentityCard.prototype.bind = function() { | 1048 | + IdentityCard.prototype.bind = function () { |
987 | var that = this; | 1049 | var that = this; |
988 | - this.$c.on('click', '.submit', function() { | 1050 | + this.$c.on('click', '.submit', function () { |
989 | var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 | 1051 | var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 |
990 | compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 | 1052 | compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 |
991 | compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 | 1053 | compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 |
992 | - if($.trim(identityCard) == ""){ | 1054 | + if ($.trim(identityCard) == "") { |
993 | - Core.showTips("请输入身份证号码",false); | 1055 | + Core.showTips("请输入身份证号码", false); |
994 | return false; | 1056 | return false; |
995 | - }else if(IsIdCard(identityCard) == false){ | 1057 | + } else if (IsIdCard(identityCard) == false) { |
996 | - Core.showTips("身份证号码有误,请检查输入是否正确",false,5000); | 1058 | + Core.showTips("身份证号码有误,请检查输入是否正确", false, 5000); |
997 | return false; | 1059 | return false; |
998 | - }else if($.trim(compellationName) == ""){ | 1060 | + } else if ($.trim(compellationName) == "") { |
999 | - Core.showTips("请输入身份证姓名",false); | 1061 | + Core.showTips("请输入身份证姓名", false); |
1000 | return false; | 1062 | return false; |
1001 | - }else if(!compellationNameReg.test(compellationName)){ | 1063 | + } else if (!compellationNameReg.test(compellationName)) { |
1002 | - Core.showTips("请输入正确的中文姓名",false); | 1064 | + Core.showTips("请输入正确的中文姓名", false); |
1003 | return false; | 1065 | return false; |
1004 | } | 1066 | } |
1005 | Core.ajax({ | 1067 | Core.ajax({ |
1006 | - type:"post", | 1068 | + type: "post", |
1007 | - url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName, | 1069 | + url: "/user/bind_identity_card?identity_card=" + identityCard + "&compellation_name=" + compellationName, |
1008 | - data:{format:"json"}, | 1070 | + data: {format: "json"}, |
1009 | - dataType:"json", | 1071 | + dataType: "json", |
1010 | - success:function(res){ | 1072 | + success: function (res) { |
1011 | - if(res.code === 0){ | 1073 | + if (res.code === 0) { |
1012 | Core.showTips('认证成功!', true); | 1074 | Core.showTips('认证成功!', true); |
1013 | Core.Data.compellation_name = compellationName; | 1075 | Core.Data.compellation_name = compellationName; |
1014 | Core.Data.identity_card = identityCard; | 1076 | Core.Data.identity_card = identityCard; |
1015 | - setTimeout(function() { | 1077 | + setTimeout(function () { |
1016 | Core.updateMod('home'); | 1078 | Core.updateMod('home'); |
1017 | }, 500); | 1079 | }, 500); |
1018 | - }else{ | 1080 | + } else { |
1019 | Core.showTips(res.msg, true); | 1081 | Core.showTips(res.msg, true); |
1020 | } | 1082 | } |
1021 | } | 1083 | } |
1022 | }); | 1084 | }); |
1023 | }); | 1085 | }); |
1024 | } | 1086 | } |
1025 | - IdentityCard.prototype.show_after = function(){ | 1087 | + IdentityCard.prototype.show_after = function () { |
1026 | 1088 | ||
1027 | } | 1089 | } |
1028 | Core.registerMod('identityCard', IdentityCard); | 1090 | Core.registerMod('identityCard', IdentityCard); |
1029 | 1091 | ||
1030 | //已认证 | 1092 | //已认证 |
1031 | - var IdentityCardOk = function(modId) { | 1093 | + var IdentityCardOk = function (modId) { |
1032 | Module.call(this, modId); | 1094 | Module.call(this, modId); |
1033 | } | 1095 | } |
1034 | // 继承基础模块 | 1096 | // 继承基础模块 |
1035 | Core.inherit(IdentityCardOk, Module); | 1097 | Core.inherit(IdentityCardOk, Module); |
1036 | - IdentityCardOk.prototype.show_after = function(){ | 1098 | + IdentityCardOk.prototype.show_after = function () { |
1037 | var compellation_name = Core.Data.compellation_name,//姓名 | 1099 | var compellation_name = Core.Data.compellation_name,//姓名 |
1038 | identity_card = Core.Data.identity_card;//身份证 | 1100 | identity_card = Core.Data.identity_card;//身份证 |
1039 | - if(compellation_name.length == 2){ | 1101 | + if (compellation_name.length == 2) { |
1040 | - var getBefore = compellation_name.substring(0,1), | 1102 | + var getBefore = compellation_name.substring(0, 1), |
1041 | - nameHtml = getBefore+"*"; | 1103 | + nameHtml = getBefore + "*"; |
1042 | - }else if(compellation_name.length == 3){ | 1104 | + } else if (compellation_name.length == 3) { |
1043 | - var getBefore = compellation_name.substring(0,1), | 1105 | + var getBefore = compellation_name.substring(0, 1), |
1044 | - nameHtml = getBefore+"**"; | 1106 | + nameHtml = getBefore + "**"; |
1045 | - }else if(compellation_name.length == 4){ | 1107 | + } else if (compellation_name.length == 4) { |
1046 | - var getBefore = compellation_name.substring(0,2), | 1108 | + var getBefore = compellation_name.substring(0, 2), |
1047 | - nameHtml = getBefore+"**"; | 1109 | + nameHtml = getBefore + "**"; |
1048 | - }else if(compellation_name.length > 4){ | 1110 | + } else if (compellation_name.length > 4) { |
1049 | - var getBefore = compellation_name.substring(0,2), | 1111 | + var getBefore = compellation_name.substring(0, 2), |
1050 | starNum = compellation_name.length, | 1112 | starNum = compellation_name.length, |
1051 | star = ""; | 1113 | star = ""; |
1052 | - for(var i = 0;i<starNum - 2;i++){ | 1114 | + for (var i = 0; i < starNum - 2; i++) { |
1053 | star += "*"; | 1115 | star += "*"; |
1054 | } | 1116 | } |
1055 | - nameHtml = getBefore+star; | 1117 | + nameHtml = getBefore + star; |
1056 | - }; | 1118 | + } |
1057 | - if(identity_card.length == 15){ | 1119 | + ; |
1058 | - var getBefore = identity_card.substring(0,1), | 1120 | + if (identity_card.length == 15) { |
1059 | - getAfter = identity_card.substring(14,15), | 1121 | + var getBefore = identity_card.substring(0, 1), |
1060 | - cardHtml = getBefore+"*************"+getAfter; | 1122 | + getAfter = identity_card.substring(14, 15), |
1061 | - }else if(identity_card.length == 18){ | 1123 | + cardHtml = getBefore + "*************" + getAfter; |
1062 | - var getBefore = identity_card.substring(0,1), | 1124 | + } else if (identity_card.length == 18) { |
1063 | - getAfter = identity_card.substring(17,18), | 1125 | + var getBefore = identity_card.substring(0, 1), |
1064 | - cardHtml = getBefore+"****************"+getAfter; | 1126 | + getAfter = identity_card.substring(17, 18), |
1065 | - }; | 1127 | + cardHtml = getBefore + "****************" + getAfter; |
1128 | + } | ||
1129 | + ; | ||
1066 | this.$c.find(".compellation_name").html(nameHtml); | 1130 | this.$c.find(".compellation_name").html(nameHtml); |
1067 | this.$c.find(".identity_card").html(cardHtml); | 1131 | this.$c.find(".identity_card").html(cardHtml); |
1068 | }; | 1132 | }; |
1069 | Core.registerMod('identityCard_ok', IdentityCardOk); | 1133 | Core.registerMod('identityCard_ok', IdentityCardOk); |
1070 | 1134 | ||
1135 | + //已认证 | ||
1136 | + var BindQQOk = function (modId) { | ||
1137 | + Module.call(this, modId); | ||
1138 | + } | ||
1139 | + // 继承基础模块 | ||
1140 | + Core.inherit(BindQQOk, Module); | ||
1141 | + BindQQOk.prototype.show_after = function () { | ||
1142 | + var qqNum = Core.Data.bind_qq; | ||
1143 | + var len_qq = qqNum.length; | ||
1144 | + if(len_qq>4 && qqNum != undefined){ | ||
1145 | + var start = qqNum.substring(0,2); | ||
1146 | + var end = qqNum.substring(len_qq-2,len_qq); | ||
1147 | + var star = ""; | ||
1148 | + for(var i=0;i<len_qq-4;i++) { | ||
1149 | + star+="*"; | ||
1150 | + } | ||
1151 | + qqNum = start+star+end; | ||
1152 | + } | ||
1153 | + this.$c.find(".bind_qq").html(qqNum); | ||
1154 | + }; | ||
1155 | + Core.registerMod('bindQQ_ok', BindQQOk); | ||
1156 | + | ||
1071 | // Mail模块 | 1157 | // Mail模块 |
1072 | - var Mail = function(modId) { | 1158 | + var Mail = function (modId) { |
1073 | Module.call(this, modId); | 1159 | Module.call(this, modId); |
1074 | } | 1160 | } |
1075 | // 继承基础模块 | 1161 | // 继承基础模块 |
1076 | Core.inherit(Mail, Module); | 1162 | Core.inherit(Mail, Module); |
1077 | - Mail.prototype.bind = function() { | 1163 | + Mail.prototype.bind = function () { |
1078 | var that = this; | 1164 | var that = this; |
1079 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 1165 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
1080 | e.preventDefault(); | 1166 | e.preventDefault(); |
1081 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); | 1167 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); |
1082 | return false; | 1168 | return false; |
1083 | }); | 1169 | }); |
1084 | - that.$c.on('click', '#change-mail-btn', function(e) { | 1170 | + that.$c.on('click', '#change-mail-btn', function (e) { |
1085 | e.preventDefault(); | 1171 | e.preventDefault(); |
1086 | that.$c.find('#bind_mail_form').show(); | 1172 | that.$c.find('#bind_mail_form').show(); |
1087 | that.$c.find('#bind-mail-btn').show(); | 1173 | that.$c.find('#bind-mail-btn').show(); |
1088 | $(this).hide() | 1174 | $(this).hide() |
1089 | return false; | 1175 | return false; |
1090 | }); | 1176 | }); |
1091 | - that.$c.on('click', '.op-primary', function(e) { | 1177 | + that.$c.on('click', '.op-primary', function (e) { |
1092 | e.preventDefault(); | 1178 | e.preventDefault(); |
1093 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); | 1179 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); |
1094 | return false; | 1180 | return false; |
1095 | }); | 1181 | }); |
1096 | } | 1182 | } |
1097 | - Mail.prototype.mail_cb = function(data) { | 1183 | + Mail.prototype.mail_cb = function (data) { |
1098 | var code = data.code; | 1184 | var code = data.code; |
1099 | Core.Data.bind_mail_statu = 1; | 1185 | Core.Data.bind_mail_statu = 1; |
1100 | Core.Data.mail = this.$c.find('input[name=email]').val(); | 1186 | Core.Data.mail = this.$c.find('input[name=email]').val(); |
... | @@ -1102,42 +1188,42 @@ | ... | @@ -1102,42 +1188,42 @@ |
1102 | Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true); | 1188 | Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true); |
1103 | this.$c.find('#bind_mail_form').hide(); | 1189 | this.$c.find('#bind_mail_form').hide(); |
1104 | this.isValid = false; | 1190 | this.isValid = false; |
1105 | - setTimeout(function() { | 1191 | + setTimeout(function () { |
1106 | Core.updateMod('mail'); | 1192 | Core.updateMod('mail'); |
1107 | }, 1000); | 1193 | }, 1000); |
1108 | } | 1194 | } |
1109 | Core.registerMod('mail', Mail); | 1195 | Core.registerMod('mail', Mail); |
1110 | 1196 | ||
1111 | // 重置密码模块 | 1197 | // 重置密码模块 |
1112 | - var Reset_pwd = function(modId) { | 1198 | + var Reset_pwd = function (modId) { |
1113 | Module.call(this, modId); | 1199 | Module.call(this, modId); |
1114 | } | 1200 | } |
1115 | // 继承基础模块 | 1201 | // 继承基础模块 |
1116 | Core.inherit(Reset_pwd, Module); | 1202 | Core.inherit(Reset_pwd, Module); |
1117 | 1203 | ||
1118 | - Reset_pwd.prototype.bind = function() { | 1204 | + Reset_pwd.prototype.bind = function () { |
1119 | - this.$c.on('click', '.op-primary', function() { | 1205 | + this.$c.on('click', '.op-primary', function () { |
1120 | Core.updateMod("modify_pwd"); | 1206 | Core.updateMod("modify_pwd"); |
1121 | }); | 1207 | }); |
1122 | } | 1208 | } |
1123 | Core.registerMod('reset_pwd', Reset_pwd); | 1209 | Core.registerMod('reset_pwd', Reset_pwd); |
1124 | 1210 | ||
1125 | // 回答密保模块 | 1211 | // 回答密保模块 |
1126 | - var Answer_question = function(modId) { | 1212 | + var Answer_question = function (modId) { |
1127 | Module.call(this, modId); | 1213 | Module.call(this, modId); |
1128 | } | 1214 | } |
1129 | Core.inherit(Answer_question, Module); | 1215 | Core.inherit(Answer_question, Module); |
1130 | 1216 | ||
1131 | - Answer_question.prototype.bind = function() { | 1217 | + Answer_question.prototype.bind = function () { |
1132 | var that = this; | 1218 | var that = this; |
1133 | - that.$c.on('click', '.op-primary', function(e) { | 1219 | + that.$c.on('click', '.op-primary', function (e) { |
1134 | e.preventDefault(); | 1220 | e.preventDefault(); |
1135 | 1221 | ||
1136 | Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that); | 1222 | Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that); |
1137 | return false; | 1223 | return false; |
1138 | }); | 1224 | }); |
1139 | } | 1225 | } |
1140 | - Answer_question.prototype.aq_cb = function(data) { | 1226 | + Answer_question.prototype.aq_cb = function (data) { |
1141 | console.log(data); | 1227 | console.log(data); |
1142 | var code = data.code; | 1228 | var code = data.code; |
1143 | var msg = data.msg; | 1229 | var msg = data.msg; |
... | @@ -1146,42 +1232,42 @@ | ... | @@ -1146,42 +1232,42 @@ |
1146 | Core.Data.new_pwd = msg.password; | 1232 | Core.Data.new_pwd = msg.password; |
1147 | 1233 | ||
1148 | name = JSON.parse(name); | 1234 | name = JSON.parse(name); |
1149 | - if(name == null){ | 1235 | + if (name == null) { |
1150 | name = null; | 1236 | name = null; |
1151 | - }else{ | 1237 | + } else { |
1152 | name[msg.nickname] = msg.password; | 1238 | name[msg.nickname] = msg.password; |
1153 | } | 1239 | } |
1154 | 1240 | ||
1155 | - localStorage.setItem('user_names',JSON.stringify(name)); | 1241 | + localStorage.setItem('user_names', JSON.stringify(name)); |
1156 | Core.user_names = name; | 1242 | Core.user_names = name; |
1157 | 1243 | ||
1158 | // 强制更新显示重置密码模块 | 1244 | // 强制更新显示重置密码模块 |
1159 | Core.updateMod('reset_pwd'); | 1245 | Core.updateMod('reset_pwd'); |
1160 | - Core.showTips('重置成功.',true,1000); | 1246 | + Core.showTips('重置成功.', true, 1000); |
1161 | - localStorage.setItem('old_pwd',Core.Data.new_pwd); | 1247 | + localStorage.setItem('old_pwd', Core.Data.new_pwd); |
1162 | } | 1248 | } |
1163 | Core.registerMod('answer_question', Answer_question); | 1249 | Core.registerMod('answer_question', Answer_question); |
1164 | 1250 | ||
1165 | - var Modify_pwd = function(modId) { | 1251 | + var Modify_pwd = function (modId) { |
1166 | Module.call(this, modId); | 1252 | Module.call(this, modId); |
1167 | } | 1253 | } |
1168 | Core.inherit(Modify_pwd, Module); | 1254 | Core.inherit(Modify_pwd, Module); |
1169 | 1255 | ||
1170 | - Modify_pwd.prototype.bind = function() { | 1256 | + Modify_pwd.prototype.bind = function () { |
1171 | var that = this; | 1257 | var that = this; |
1172 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 1258 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
1173 | e.preventDefault(); | 1259 | e.preventDefault(); |
1174 | - if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | 1260 | + if (/[A-Z]/.test(that.$c.find("input[name='username']").val())) { |
1175 | Core.showTips("账号不能有大写字母!"); | 1261 | Core.showTips("账号不能有大写字母!"); |
1176 | - }else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){ | 1262 | + } else if (/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())) { |
1177 | Core.showTips("密码不能有大写字母!"); | 1263 | Core.showTips("密码不能有大写字母!"); |
1178 | - }else{ | 1264 | + } else { |
1179 | Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that); | 1265 | Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that); |
1180 | } | 1266 | } |
1181 | 1267 | ||
1182 | return false; | 1268 | return false; |
1183 | }); | 1269 | }); |
1184 | - that.$c.on('click', '.op-logout', function(e) { | 1270 | + that.$c.on('click', '.op-logout', function (e) { |
1185 | e.preventDefault(); | 1271 | e.preventDefault(); |
1186 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, | 1272 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, |
1187 | // that); | 1273 | // that); |
... | @@ -1190,12 +1276,12 @@ | ... | @@ -1190,12 +1276,12 @@ |
1190 | }); | 1276 | }); |
1191 | } | 1277 | } |
1192 | Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb; | 1278 | Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb; |
1193 | - Modify_pwd.prototype.modify_cb = function(data) { | 1279 | + Modify_pwd.prototype.modify_cb = function (data) { |
1194 | var status_code = data.code; | 1280 | var status_code = data.code; |
1195 | var msg = data.msg, | 1281 | var msg = data.msg, |
1196 | name = this.$c.find('input[name=username]').val(), | 1282 | name = this.$c.find('input[name=username]').val(), |
1197 | password = this.$c.find('input[name=newpwd]').val(), | 1283 | password = this.$c.find('input[name=newpwd]').val(), |
1198 | - name_ary,index_ary; | 1284 | + name_ary, index_ary; |
1199 | 1285 | ||
1200 | var _d = localStorage.getItem('user_names'), | 1286 | var _d = localStorage.getItem('user_names'), |
1201 | _i = localStorage.getItem('user_indexs'); | 1287 | _i = localStorage.getItem('user_indexs'); |
... | @@ -1207,31 +1293,31 @@ | ... | @@ -1207,31 +1293,31 @@ |
1207 | } | 1293 | } |
1208 | 1294 | ||
1209 | if (status_code == 0) { | 1295 | if (status_code == 0) { |
1210 | - if(Core.Data.is_guest == 1){ | 1296 | + if (Core.Data.is_guest == 1) { |
1211 | //游客帐号转正 | 1297 | //游客帐号转正 |
1212 | localStorage.removeItem('guest_n'); | 1298 | localStorage.removeItem('guest_n'); |
1213 | Core.showTips('升级账号成功!请妥善保管正式账号!', true); | 1299 | Core.showTips('升级账号成功!请妥善保管正式账号!', true); |
1214 | delete name_ary[Core.Data.nickname]; | 1300 | delete name_ary[Core.Data.nickname]; |
1215 | localStorage.setItem('user_names', JSON.stringify(name_ary)); | 1301 | localStorage.setItem('user_names', JSON.stringify(name_ary)); |
1216 | - }else{ | 1302 | + } else { |
1217 | Core.showTips('成功修改密码, 请记住新密码。', true); | 1303 | Core.showTips('成功修改密码, 请记住新密码。', true); |
1218 | name_ary[msg.username] = password; | 1304 | name_ary[msg.username] = password; |
1219 | localStorage.setItem('user_names', JSON.stringify(name_ary)); | 1305 | localStorage.setItem('user_names', JSON.stringify(name_ary)); |
1220 | } | 1306 | } |
1221 | 1307 | ||
1222 | var getAcc = Core.Data.nickname;//升级前账号 | 1308 | var getAcc = Core.Data.nickname;//升级前账号 |
1223 | - var getIndex = $.inArray(getAcc,index_ary); | 1309 | + var getIndex = $.inArray(getAcc, index_ary); |
1224 | 1310 | ||
1225 | - if(index_ary == null){ | 1311 | + if (index_ary == null) { |
1226 | index_ary = []; | 1312 | index_ary = []; |
1227 | index_ary.unshift(name); | 1313 | index_ary.unshift(name); |
1228 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 1314 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
1229 | - }else{ | 1315 | + } else { |
1230 | - if(getIndex == -1){ | 1316 | + if (getIndex == -1) { |
1231 | index_ary.unshift(name); | 1317 | index_ary.unshift(name); |
1232 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 1318 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
1233 | - }else{ | 1319 | + } else { |
1234 | - index_ary.splice(getIndex,1); | 1320 | + index_ary.splice(getIndex, 1); |
1235 | index_ary.unshift(msg.username); | 1321 | index_ary.unshift(msg.username); |
1236 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 1322 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
1237 | } | 1323 | } |
... | @@ -1267,13 +1353,13 @@ | ... | @@ -1267,13 +1353,13 @@ |
1267 | } | 1353 | } |
1268 | Core.registerMod('modify_pwd', Modify_pwd); | 1354 | Core.registerMod('modify_pwd', Modify_pwd); |
1269 | 1355 | ||
1270 | - var Frame = function(modId) { | 1356 | + var Frame = function (modId) { |
1271 | Module.call(this, modId); | 1357 | Module.call(this, modId); |
1272 | } | 1358 | } |
1273 | Core.inherit(Frame, Module); | 1359 | Core.inherit(Frame, Module); |
1274 | - Frame.prototype.bind = function() { | 1360 | + Frame.prototype.bind = function () { |
1275 | var that = this; | 1361 | var that = this; |
1276 | - that.$c.on('click', '.scroll-btn', function(e) { | 1362 | + that.$c.on('click', '.scroll-btn', function (e) { |
1277 | e.preventDefault(); | 1363 | e.preventDefault(); |
1278 | e.stopPropagation(); | 1364 | e.stopPropagation(); |
1279 | var $frame = that.$c.find('iframe'); | 1365 | var $frame = that.$c.find('iframe'); |
... | @@ -1289,14 +1375,14 @@ | ... | @@ -1289,14 +1375,14 @@ |
1289 | } | 1375 | } |
1290 | }); | 1376 | }); |
1291 | } | 1377 | } |
1292 | - Frame.prototype.show_after = function() { | 1378 | + Frame.prototype.show_after = function () { |
1293 | var that = this; | 1379 | var that = this; |
1294 | var _des = Core.last_mod ? Core.last_mod : 'home'; | 1380 | var _des = Core.last_mod ? Core.last_mod : 'home'; |
1295 | var $frame = that.$c.find('iframe'); | 1381 | var $frame = that.$c.find('iframe'); |
1296 | var $div = that.$c.find('.ios_scroll'); | 1382 | var $div = that.$c.find('.ios_scroll'); |
1297 | var isFix = that.$c.is('.fix, .nofix'); | 1383 | var isFix = that.$c.is('.fix, .nofix'); |
1298 | this.$c.find('a.btn.pull-left').attr('href', '#' + _des); | 1384 | this.$c.find('a.btn.pull-left').attr('href', '#' + _des); |
1299 | - $frame[0].onload = function() { | 1385 | + $frame[0].onload = function () { |
1300 | that.$c.find('#loading_frame').hide(); | 1386 | that.$c.find('#loading_frame').hide(); |
1301 | if (Core.isAndroid && !isFix) { | 1387 | if (Core.isAndroid && !isFix) { |
1302 | var h1 = $frame.height(); | 1388 | var h1 = $frame.height(); |
... | @@ -1315,15 +1401,15 @@ | ... | @@ -1315,15 +1401,15 @@ |
1315 | /** | 1401 | /** |
1316 | * 公告活动记录模块 | 1402 | * 公告活动记录模块 |
1317 | */ | 1403 | */ |
1318 | - var Activity = function(modId) { | 1404 | + var Activity = function (modId) { |
1319 | this.myScroll = null; | 1405 | this.myScroll = null; |
1320 | this.cur_id = null; | 1406 | this.cur_id = null; |
1321 | Module.call(this, modId); | 1407 | Module.call(this, modId); |
1322 | } | 1408 | } |
1323 | Core.inherit(Activity, Module); | 1409 | Core.inherit(Activity, Module); |
1324 | - Activity.prototype.bind = function() { | 1410 | + Activity.prototype.bind = function () { |
1325 | var that = this; | 1411 | var that = this; |
1326 | - that.$c.on('click', 'li>a.item', function(e) { | 1412 | + that.$c.on('click', 'li>a.item', function (e) { |
1327 | e.preventDefault(); | 1413 | e.preventDefault(); |
1328 | /* | 1414 | /* |
1329 | * @todo-list bug fixed in android,the click event fired twice! | 1415 | * @todo-list bug fixed in android,the click event fired twice! |
... | @@ -1343,7 +1429,7 @@ | ... | @@ -1343,7 +1429,7 @@ |
1343 | Core.Data.activity_update = true; | 1429 | Core.Data.activity_update = true; |
1344 | Core.showTips('加载中...', true, 2000); | 1430 | Core.showTips('加载中...', true, 2000); |
1345 | $e.data('path', '/sdk/notice/view/?id=' + id); | 1431 | $e.data('path', '/sdk/notice/view/?id=' + id); |
1346 | - Core.load_json($e, function(data) { | 1432 | + Core.load_json($e, function (data) { |
1347 | Core.Data.activity_detail = data; | 1433 | Core.Data.activity_detail = data; |
1348 | Core.showTips('加载完成!', true, 2000); | 1434 | Core.showTips('加载完成!', true, 2000); |
1349 | Core.updateMod('activity_detail'); | 1435 | Core.updateMod('activity_detail'); |
... | @@ -1355,16 +1441,16 @@ | ... | @@ -1355,16 +1441,16 @@ |
1355 | // }); | 1441 | // }); |
1356 | return false; | 1442 | return false; |
1357 | }); | 1443 | }); |
1358 | - that.$c.on('click', 'li.more a', function(e) { | 1444 | + that.$c.on('click', 'li.more a', function (e) { |
1359 | e.preventDefault(); | 1445 | e.preventDefault(); |
1360 | Core.load_html($(e.target), that.refresh, that); | 1446 | Core.load_html($(e.target), that.refresh, that); |
1361 | return false; | 1447 | return false; |
1362 | }); | 1448 | }); |
1363 | } | 1449 | } |
1364 | - Activity.prototype.refresh = function() { | 1450 | + Activity.prototype.refresh = function () { |
1365 | this.myScroll.refresh(); | 1451 | this.myScroll.refresh(); |
1366 | } | 1452 | } |
1367 | - Activity.prototype.show_after = function() { | 1453 | + Activity.prototype.show_after = function () { |
1368 | if (this.$c.find('.activity-list').children().length == 0) { | 1454 | if (this.$c.find('.activity-list').children().length == 0) { |
1369 | Core.load_html(this.$c.find('.activity-list'), | 1455 | Core.load_html(this.$c.find('.activity-list'), |
1370 | this.act_cb, this); | 1456 | this.act_cb, this); |
... | @@ -1377,7 +1463,7 @@ | ... | @@ -1377,7 +1463,7 @@ |
1377 | } | 1463 | } |
1378 | } | 1464 | } |
1379 | } | 1465 | } |
1380 | - Activity.prototype.act_cb = function(data) { | 1466 | + Activity.prototype.act_cb = function (data) { |
1381 | this.myScroll = new iScroll('activity_wrapper'); | 1467 | this.myScroll = new iScroll('activity_wrapper'); |
1382 | } | 1468 | } |
1383 | Core.registerMod('activity', Activity); | 1469 | Core.registerMod('activity', Activity); |
... | @@ -1385,21 +1471,21 @@ | ... | @@ -1385,21 +1471,21 @@ |
1385 | /** | 1471 | /** |
1386 | * 公告活动详细模块 | 1472 | * 公告活动详细模块 |
1387 | */ | 1473 | */ |
1388 | - var Activity_detail = function(modId) { | 1474 | + var Activity_detail = function (modId) { |
1389 | this.myScroll = null; | 1475 | this.myScroll = null; |
1390 | Module.call(this, modId); | 1476 | Module.call(this, modId); |
1391 | } | 1477 | } |
1392 | Core.inherit(Activity_detail, Module); | 1478 | Core.inherit(Activity_detail, Module); |
1393 | - Activity_detail.prototype.bind = function() { | 1479 | + Activity_detail.prototype.bind = function () { |
1394 | var that = this; | 1480 | var that = this; |
1395 | } | 1481 | } |
1396 | - Activity_detail.prototype.show_after = function() { | 1482 | + Activity_detail.prototype.show_after = function () { |
1397 | var that = this; | 1483 | var that = this; |
1398 | if (Core.Data.activity_update) { | 1484 | if (Core.Data.activity_update) { |
1399 | console.log('new scroller'); | 1485 | console.log('new scroller'); |
1400 | this.myScroll = new iScroll('detail_scroller'); | 1486 | this.myScroll = new iScroll('detail_scroller'); |
1401 | that.myScroll.refresh(); | 1487 | that.myScroll.refresh(); |
1402 | - this.$c.find('.scroll img').on('load', function(e) { | 1488 | + this.$c.find('.scroll img').on('load', function (e) { |
1403 | console.log('img loaded in scroll'); | 1489 | console.log('img loaded in scroll'); |
1404 | that.myScroll.refresh(); | 1490 | that.myScroll.refresh(); |
1405 | }); | 1491 | }); |
... | @@ -1410,15 +1496,15 @@ | ... | @@ -1410,15 +1496,15 @@ |
1410 | /** | 1496 | /** |
1411 | * 消息列表模块 | 1497 | * 消息列表模块 |
1412 | */ | 1498 | */ |
1413 | - var Message = function(modId) { | 1499 | + var Message = function (modId) { |
1414 | this.myScroll = null; | 1500 | this.myScroll = null; |
1415 | this.cur_id = null; | 1501 | this.cur_id = null; |
1416 | Module.call(this, modId); | 1502 | Module.call(this, modId); |
1417 | } | 1503 | } |
1418 | Core.inherit(Message, Module); | 1504 | Core.inherit(Message, Module); |
1419 | - Message.prototype.bind = function() { | 1505 | + Message.prototype.bind = function () { |
1420 | var that = this; | 1506 | var that = this; |
1421 | - that.$c.on('click', 'li>a.item', function(e) { | 1507 | + that.$c.on('click', 'li>a.item', function (e) { |
1422 | e.preventDefault(); | 1508 | e.preventDefault(); |
1423 | e.stopPropagation(); | 1509 | e.stopPropagation(); |
1424 | /* | 1510 | /* |
... | @@ -1434,29 +1520,29 @@ | ... | @@ -1434,29 +1520,29 @@ |
1434 | } | 1520 | } |
1435 | that.cur_id = id; | 1521 | that.cur_id = id; |
1436 | $e.data('path', '/message/' + id + '.html?format=json'); | 1522 | $e.data('path', '/message/' + id + '.html?format=json'); |
1437 | - Core.load_json($e, function(data) { | 1523 | + Core.load_json($e, function (data) { |
1438 | Core.Data.message_detail = data; | 1524 | Core.Data.message_detail = data; |
1439 | Core.showTips('加载完成!', true, 2000); | 1525 | Core.showTips('加载完成!', true, 2000); |
1440 | Core.updateMod('message_detail'); | 1526 | Core.updateMod('message_detail'); |
1441 | }, that); | 1527 | }, that); |
1442 | return false; | 1528 | return false; |
1443 | }); | 1529 | }); |
1444 | - that.$c.on('click', 'li.more a', function(e) { | 1530 | + that.$c.on('click', 'li.more a', function (e) { |
1445 | e.preventDefault(); | 1531 | e.preventDefault(); |
1446 | Core.load_html($(e.target), that.refresh, that); | 1532 | Core.load_html($(e.target), that.refresh, that); |
1447 | return false; | 1533 | return false; |
1448 | }); | 1534 | }); |
1449 | } | 1535 | } |
1450 | - Message.prototype.refresh = function() { | 1536 | + Message.prototype.refresh = function () { |
1451 | this.myScroll.refresh(); | 1537 | this.myScroll.refresh(); |
1452 | } | 1538 | } |
1453 | - Message.prototype.show_after = function() { | 1539 | + Message.prototype.show_after = function () { |
1454 | if (this.$c.find('.message-list').children().length == 0) { | 1540 | if (this.$c.find('.message-list').children().length == 0) { |
1455 | Core.load_html(this.$c.find('.message-list'), this.act_cb, | 1541 | Core.load_html(this.$c.find('.message-list'), this.act_cb, |
1456 | this); | 1542 | this); |
1457 | } | 1543 | } |
1458 | } | 1544 | } |
1459 | - Message.prototype.act_cb = function(data) { | 1545 | + Message.prototype.act_cb = function (data) { |
1460 | this.myScroll = new iScroll('message_wrapper'); | 1546 | this.myScroll = new iScroll('message_wrapper'); |
1461 | } | 1547 | } |
1462 | Core.registerMod('message', Message); | 1548 | Core.registerMod('message', Message); |
... | @@ -1464,7 +1550,7 @@ | ... | @@ -1464,7 +1550,7 @@ |
1464 | /** | 1550 | /** |
1465 | * 消息内容详细模块 | 1551 | * 消息内容详细模块 |
1466 | */ | 1552 | */ |
1467 | - var Message_detail = function(modId) { | 1553 | + var Message_detail = function (modId) { |
1468 | Module.call(this, modId); | 1554 | Module.call(this, modId); |
1469 | } | 1555 | } |
1470 | Core.inherit(Message_detail, Module); | 1556 | Core.inherit(Message_detail, Module); |
... | @@ -1477,14 +1563,14 @@ | ... | @@ -1477,14 +1563,14 @@ |
1477 | var names = localStorage.getItem("user_names"), | 1563 | var names = localStorage.getItem("user_names"), |
1478 | userIndexs = localStorage.getItem("user_indexs"); | 1564 | userIndexs = localStorage.getItem("user_indexs"); |
1479 | names = JSON.parse(names); | 1565 | names = JSON.parse(names); |
1480 | - if (names == null){ | 1566 | + if (names == null) { |
1481 | names = null | 1567 | names = null |
1482 | } | 1568 | } |
1483 | else { | 1569 | else { |
1484 | delete names["undefined"]; | 1570 | delete names["undefined"]; |
1485 | var user_indexs = []; | 1571 | var user_indexs = []; |
1486 | - for (var item in names){//遍历对象,排序 | 1572 | + for (var item in names) {//遍历对象,排序 |
1487 | - if($.inArray(item,user_indexs) == -1){ | 1573 | + if ($.inArray(item, user_indexs) == -1) { |
1488 | user_indexs.unshift(item); | 1574 | user_indexs.unshift(item); |
1489 | } | 1575 | } |
1490 | } | 1576 | } |
... | @@ -1514,6 +1600,7 @@ | ... | @@ -1514,6 +1600,7 @@ |
1514 | $("input#js_login_username").val(Core.first_user); | 1600 | $("input#js_login_username").val(Core.first_user); |
1515 | $("input#js_login_password").val(Core.first_password); | 1601 | $("input#js_login_password").val(Core.first_password); |
1516 | } | 1602 | } |
1603 | + | ||
1517 | login_init(); | 1604 | login_init(); |
1518 | if (window.isGetData == 1) { | 1605 | if (window.isGetData == 1) { |
1519 | // 兼容旧版本sdk | 1606 | // 兼容旧版本sdk |
... | @@ -1525,8 +1612,8 @@ | ... | @@ -1525,8 +1612,8 @@ |
1525 | } | 1612 | } |
1526 | })(); | 1613 | })(); |
1527 | 1614 | ||
1528 | -$(document).on("click", ".mask", function(){ | 1615 | +$(document).on("click", ".mask", function () { |
1529 | - $("input[type=password]").bind('cut copy paste', function(e){ | 1616 | + $("input[type=password]").bind('cut copy paste', function (e) { |
1530 | return false; | 1617 | return false; |
1531 | }); | 1618 | }); |
1532 | }); | 1619 | }); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -22,18 +22,18 @@ | ... | @@ -22,18 +22,18 @@ |
22 | that.$c.on('click', 'input[type=button]', function(e) { | 22 | that.$c.on('click', 'input[type=button]', function(e) { |
23 | // 更新要兑换的元宝 | 23 | // 更新要兑换的元宝 |
24 | e.preventDefault(); | 24 | e.preventDefault(); |
25 | - Core.Data.current_pay_channel = null; | 25 | + Core.Data.current_zf_channel = null; |
26 | Core.Data.game_amount = parseInt($(e.target).attr('data')); | 26 | Core.Data.game_amount = parseInt($(e.target).attr('data')); |
27 | - var youai_star_need = Core.Data.game_amount / Core.Data.exchange_rate; | 27 | + var ya_star_need = Core.Data.game_amount / Core.Data.exchange_rate; |
28 | - if (Core.Data.total_amount >= youai_star_need) { | 28 | + if (Core.Data.total_amount >= ya_star_need) { |
29 | // 用户游爱星足够兑换,进入兑换模块 | 29 | // 用户游爱星足够兑换,进入兑换模块 |
30 | - Core.Data.youai_star = youai_star_need; | 30 | + Core.Data.ya_star = ya_star_need; |
31 | - Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 31 | + Core.Data.money = Core.Data.ya_star / Core.Data.rate; |
32 | Core.updateMod('exchange'); | 32 | Core.updateMod('exchange'); |
33 | } else { | 33 | } else { |
34 | // 用户游爱星不足够兑换,进入充值渠道列表 | 34 | // 用户游爱星不足够兑换,进入充值渠道列表 |
35 | - Core.Data.money = youai_star_need / Core.Data.rate; | 35 | + Core.Data.money = ya_star_need / Core.Data.rate; |
36 | - Core.Data.youai_star = youai_star_need; | 36 | + Core.Data.ya_star = ya_star_need; |
37 | Core.updateMod('channel_list'); | 37 | Core.updateMod('channel_list'); |
38 | } | 38 | } |
39 | return false; | 39 | return false; |
... | @@ -50,7 +50,7 @@ | ... | @@ -50,7 +50,7 @@ |
50 | /** | 50 | /** |
51 | * 兑换和发起代付的回调方法 | 51 | * 兑换和发起代付的回调方法 |
52 | */ | 52 | */ |
53 | - var payconfirm_cb = function(data) { | 53 | + var zfconfirm_cb = function(data) { |
54 | var code = data.code; | 54 | var code = data.code; |
55 | var msg = data.msg; | 55 | var msg = data.msg; |
56 | if ('object' != typeof (msg)) { | 56 | if ('object' != typeof (msg)) { |
... | @@ -58,17 +58,17 @@ | ... | @@ -58,17 +58,17 @@ |
58 | return; | 58 | return; |
59 | } | 59 | } |
60 | var $cur_mod = $('#' + Core.cur_mod); | 60 | var $cur_mod = $('#' + Core.cur_mod); |
61 | - var ele_pay_user = $cur_mod.find('input[name="pay_user"]'); | 61 | + var ele_zf_user = $cur_mod.find('input[name="zf_user"]'); |
62 | - if (ele_pay_user.length == 0) { | 62 | + if (ele_zf_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}}将会很快充入您的账户,请留意游戏提示.'; | 63 | + tpl = '成功使用<span class="text-info">{{=it.ya_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}},{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; |
64 | } else { | 64 | } else { |
65 | tpl = '已向<span class="text-info">' | 65 | tpl = '已向<span class="text-info">' |
66 | - + ele_pay_user.val() | 66 | + + ele_zf_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}}.'; | 67 | + + '</span>发送代付<span class="text-info">{{=it.ya_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}}.'; |
68 | } | 68 | } |
69 | var doTpl = doT.template(tpl); | 69 | var doTpl = doT.template(tpl); |
70 | var success_msg = doTpl({ | 70 | var success_msg = doTpl({ |
71 | - "youai_star" : msg.youai_star, | 71 | + "ya_star" : msg.ya_star, |
72 | "amount" : msg.amount, | 72 | "amount" : msg.amount, |
73 | "game_unit_name" : Core.Data.game_unit_name, | 73 | "game_unit_name" : Core.Data.game_unit_name, |
74 | "game_amount" : msg.game_amount, | 74 | "game_amount" : msg.game_amount, |
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | Core.Data.success_msg = success_msg; | 77 | Core.Data.success_msg = success_msg; |
78 | Core.Data.trade_id = msg.trade_id; | 78 | Core.Data.trade_id = msg.trade_id; |
79 | Core.showTips('成功提交!', true, 2000); | 79 | Core.showTips('成功提交!', true, 2000); |
80 | - Core.updateMod('pay_result'); | 80 | + Core.updateMod('zf_result'); |
81 | } | 81 | } |
82 | 82 | ||
83 | /** | 83 | /** |
... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
91 | var that = this; | 91 | var that = this; |
92 | that.$c.on('click', 'input[type=submit]', function(e) { | 92 | that.$c.on('click', 'input[type=submit]', function(e) { |
93 | e.preventDefault(); | 93 | e.preventDefault(); |
94 | - Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that); | 94 | + Core.ajax_do(that.$c.find('.ajax'), zfconfirm_cb, that); |
95 | return false; | 95 | return false; |
96 | }); | 96 | }); |
97 | // that.$c.on('click', '#change_vc1', function(e) { | 97 | // that.$c.on('click', '#change_vc1', function(e) { |
... | @@ -110,28 +110,28 @@ | ... | @@ -110,28 +110,28 @@ |
110 | /** | 110 | /** |
111 | * 发起代付模块 | 111 | * 发起代付模块 |
112 | */ | 112 | */ |
113 | - var Pay_for = function(modId) { | 113 | + var Zf_for = function(modId) { |
114 | Module.call(this, modId); | 114 | Module.call(this, modId); |
115 | } | 115 | } |
116 | - Core.inherit(Pay_for, Module); | 116 | + Core.inherit(Zf_for, Module); |
117 | - Pay_for.prototype.bind = function() { | 117 | + Zf_for.prototype.bind = function() { |
118 | var that = this; | 118 | var that = this; |
119 | that.$c.on('click', 'input[type=submit]', function(e) { | 119 | that.$c.on('click', 'input[type=submit]', function(e) { |
120 | e.preventDefault(); | 120 | e.preventDefault(); |
121 | - Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that); | 121 | + Core.ajax_do(that.$c.find('.ajax'), zfconfirm_cb, that); |
122 | return false; | 122 | return false; |
123 | }); | 123 | }); |
124 | } | 124 | } |
125 | - Core.registerMod('pay_for', Pay_for); | 125 | + Core.registerMod('zf_for', Zf_for); |
126 | 126 | ||
127 | /** | 127 | /** |
128 | * 显示结果模块 | 128 | * 显示结果模块 |
129 | */ | 129 | */ |
130 | - var Pay_result = function(modId) { | 130 | + var Zf_result = function(modId) { |
131 | Module.call(this, modId); | 131 | Module.call(this, modId); |
132 | } | 132 | } |
133 | - Core.inherit(Pay_result, Module); | 133 | + Core.inherit(Zf_result, Module); |
134 | - Core.registerMod('pay_result', Pay_result); | 134 | + Core.registerMod('zf_result', Zf_result); |
135 | 135 | ||
136 | /** | 136 | /** |
137 | * 充值方式列表模块 | 137 | * 充值方式列表模块 |
... | @@ -147,25 +147,25 @@ | ... | @@ -147,25 +147,25 @@ |
147 | 147 | ||
148 | e.preventDefault(); | 148 | e.preventDefault(); |
149 | var reload = false; | 149 | var reload = false; |
150 | - var list = Core.Data.game_pay_channel_list; | 150 | + var list = Core.Data.game_zf_channel_list; |
151 | var $c = $(e.target); | 151 | var $c = $(e.target); |
152 | var id = $(this).attr('data-id'); | 152 | var id = $(this).attr('data-id'); |
153 | for ( var index in list) { | 153 | for ( var index in list) { |
154 | var item = list[index]; | 154 | var item = list[index]; |
155 | if (id == item.id) { | 155 | if (id == item.id) { |
156 | - if (Core.Data.current_pay_channel != item) { | 156 | + if (Core.Data.current_zf_channel != item) { |
157 | reload = true; | 157 | reload = true; |
158 | } | 158 | } |
159 | - Core.Data.current_pay_channel = item; | 159 | + Core.Data.current_zf_channel = item; |
160 | // Core.Data.game_amount = | 160 | // Core.Data.game_amount = |
161 | // null; | 161 | // null; |
162 | break; | 162 | break; |
163 | } | 163 | } |
164 | } | 164 | } |
165 | if (reload) { | 165 | if (reload) { |
166 | - Core.updateMod('pay'); | 166 | + Core.updateMod('zf'); |
167 | } else { | 167 | } else { |
168 | - Core.showMod('pay'); | 168 | + Core.showMod('zf'); |
169 | } | 169 | } |
170 | 170 | ||
171 | return false; | 171 | return false; |
... | @@ -189,22 +189,22 @@ | ... | @@ -189,22 +189,22 @@ |
189 | /** | 189 | /** |
190 | * 充值模块 | 190 | * 充值模块 |
191 | */ | 191 | */ |
192 | - var Pay = function(modId) { | 192 | + var Zf = function(modId) { |
193 | this.myScroll = null; | 193 | this.myScroll = null; |
194 | Module.call(this, modId); | 194 | Module.call(this, modId); |
195 | } | 195 | } |
196 | - Core.inherit(Pay, Module); | 196 | + Core.inherit(Zf, Module); |
197 | - Pay.prototype.bind = function() { | 197 | + Zf.prototype.bind = function() { |
198 | var that = this; | 198 | var that = this; |
199 | that.$c.on('click', 'input[type=submit]', function(e) { | 199 | that.$c.on('click', 'input[type=submit]', function(e) { |
200 | e.preventDefault(); | 200 | e.preventDefault(); |
201 | var isText = that.$c.find('.require_input input[type=text]').length > 0; | 201 | var isText = that.$c.find('.require_input input[type=text]').length > 0; |
202 | if (isText && that.check()) { | 202 | if (isText && that.check()) { |
203 | Core.ajax_do(that.$c.find('.ajax'), | 203 | Core.ajax_do(that.$c.find('.ajax'), |
204 | - that.paycomfirm_cb, that); | 204 | + that.zfcomfirm_cb, that); |
205 | } else if (!isText) { | 205 | } else if (!isText) { |
206 | Core.ajax_do(that.$c.find('.ajax'), | 206 | Core.ajax_do(that.$c.find('.ajax'), |
207 | - that.paycomfirm_cb, that); | 207 | + that.zfcomfirm_cb, that); |
208 | } | 208 | } |
209 | return false; | 209 | return false; |
210 | }); | 210 | }); |
... | @@ -217,7 +217,7 @@ | ... | @@ -217,7 +217,7 @@ |
217 | } | 217 | } |
218 | }); | 218 | }); |
219 | } | 219 | } |
220 | - Pay.prototype.show_after = function(){ | 220 | + Zf.prototype.show_after = function(){ |
221 | var that = this; | 221 | var that = this; |
222 | if (Core.auto_click){ | 222 | if (Core.auto_click){ |
223 | that.$c.find("input[type='submit'].zhifubaoBtn").click(); | 223 | that.$c.find("input[type='submit'].zhifubaoBtn").click(); |
... | @@ -226,10 +226,10 @@ | ... | @@ -226,10 +226,10 @@ |
226 | $('#alert').hide(); | 226 | $('#alert').hide(); |
227 | 227 | ||
228 | if (!this.myScroll){ | 228 | if (!this.myScroll){ |
229 | - this.myScroll = new iScroll('pay_panel_wrapper'); | 229 | + this.myScroll = new iScroll('zf_panel_wrapper'); |
230 | } | 230 | } |
231 | } | 231 | } |
232 | - Pay.prototype.check = function() { | 232 | + Zf.prototype.check = function() { |
233 | var check = true, that = this; | 233 | var check = true, that = this; |
234 | that.$c.find(".require_input input").each( | 234 | that.$c.find(".require_input input").each( |
235 | function() { | 235 | function() { |
... | @@ -273,16 +273,16 @@ | ... | @@ -273,16 +273,16 @@ |
273 | }); | 273 | }); |
274 | // 更新当前金钱状态 | 274 | // 更新当前金钱状态 |
275 | Core.Data.money = money; | 275 | Core.Data.money = money; |
276 | - $("#pay_form input[name=money]").val(money); | 276 | + $("#zf_form input[name=money]").val(money); |
277 | console.log(Core.Data.post_data); | 277 | console.log(Core.Data.post_data); |
278 | return true; | 278 | return true; |
279 | } | 279 | } |
280 | 280 | ||
281 | - Pay.prototype.refresh = function() { | 281 | + Zf.prototype.refresh = function() { |
282 | this.myScroll.refresh(); | 282 | this.myScroll.refresh(); |
283 | } | 283 | } |
284 | 284 | ||
285 | - Pay.prototype.paycomfirm_cb = function(data) { | 285 | + Zf.prototype.zfcomfirm_cb = function(data) { |
286 | var code = data.code; | 286 | var code = data.code; |
287 | var msg = data.msg; | 287 | var msg = data.msg; |
288 | if ('object' != typeof (msg)) { | 288 | if ('object' != typeof (msg)) { |
... | @@ -290,19 +290,19 @@ | ... | @@ -290,19 +290,19 @@ |
290 | return; | 290 | return; |
291 | } | 291 | } |
292 | 292 | ||
293 | - var pay_param = msg.pay_param; | 293 | + var zf_param = msg.zf_param; |
294 | 294 | ||
295 | - if (pay_param) { | 295 | + if (zf_param) { |
296 | - if (pay_param.next_url && pay_param.next_url != "") { | 296 | + if (zf_param.next_url && zf_param.next_url != "") { |
297 | Core.showTips('正在跳转请稍等...', true, 1000); | 297 | Core.showTips('正在跳转请稍等...', true, 1000); |
298 | Core.Data.frame_title = "充值"; | 298 | Core.Data.frame_title = "充值"; |
299 | - Core.Data.frame_src = pay_param.next_url; | 299 | + Core.Data.frame_src = zf_param.next_url; |
300 | Core.updateMod('frame'); | 300 | Core.updateMod('frame'); |
301 | return; | 301 | return; |
302 | - } else if (pay_param.action_url && pay_param.action_url != "") { | 302 | + } else if (zf_param.action_url && zf_param.action_url != "") { |
303 | 303 | ||
304 | - var action_url = pay_param.action_url; | 304 | + var action_url = zf_param.action_url; |
305 | - var method = pay_param.method; | 305 | + var method = zf_param.method; |
306 | var params = ""; | 306 | var params = ""; |
307 | if (action_url.indexOf("?") != -1) { | 307 | if (action_url.indexOf("?") != -1) { |
308 | params = action_url.split("?")[1]; | 308 | params = action_url.split("?")[1]; |
... | @@ -328,24 +328,24 @@ | ... | @@ -328,24 +328,24 @@ |
328 | return; | 328 | return; |
329 | } | 329 | } |
330 | } | 330 | } |
331 | - var pay_channel_name = '', tpl = ""; | 331 | + var zf_channel_name = '', tpl = ""; |
332 | - if (Core.Data.current_pay_channel) { | 332 | + if (Core.Data.current_zf_channel) { |
333 | - tpl = Core.Data.current_pay_channel.success_msg; | 333 | + tpl = Core.Data.current_zf_channel.success_msg; |
334 | - pay_channel_name = Core.Data.current_pay_channel.name | 334 | + zf_channel_name = Core.Data.current_zf_channel.name |
335 | } else { | 335 | } else { |
336 | - var ele_pay_user = $('input[name="pay_user"]'); | 336 | + var ele_zf_user = $('input[name="zf_user"]'); |
337 | - if (ele_pay_user.length == 0) { | 337 | + if (ele_zf_user.length == 0) { |
338 | - tpl = '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; | 338 | + tpl = '使用{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; |
339 | } else { | 339 | } else { |
340 | tpl = '已向' | 340 | tpl = '已向' |
341 | - + ele_pay_user.val() | 341 | + + ele_zf_user.val() |
342 | - + '发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; | 342 | + + '发送代付{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; |
343 | } | 343 | } |
344 | } | 344 | } |
345 | var doTpl = doT.template(tpl); | 345 | var doTpl = doT.template(tpl); |
346 | var success_msg = doTpl({ | 346 | var success_msg = doTpl({ |
347 | - "pay_channel_name" : pay_channel_name, | 347 | + "zf_channel_name" : zf_channel_name, |
348 | - "youai_star" : msg.youai_star, | 348 | + "ya_star" : msg.ya_star, |
349 | "amount" : msg.amount, | 349 | "amount" : msg.amount, |
350 | "game_unit_name" : Core.Data.game_unit_name, | 350 | "game_unit_name" : Core.Data.game_unit_name, |
351 | "game_amount" : msg.game_amount, | 351 | "game_amount" : msg.game_amount, |
... | @@ -354,23 +354,23 @@ | ... | @@ -354,23 +354,23 @@ |
354 | Core.Data.success_msg = success_msg; | 354 | Core.Data.success_msg = success_msg; |
355 | Core.Data.trade_id = msg.trade_id; | 355 | Core.Data.trade_id = msg.trade_id; |
356 | Core.showTips('成功提交!', true, 2000); | 356 | Core.showTips('成功提交!', true, 2000); |
357 | - Core.updateMod('pay_result'); | 357 | + Core.updateMod('zf_result'); |
358 | } | 358 | } |
359 | - Core.registerMod('pay', Pay); | 359 | + Core.registerMod('zf', Zf); |
360 | 360 | ||
361 | // /** | 361 | // /** |
362 | // * 确认付款(提交表单)模块 | 362 | // * 确认付款(提交表单)模块 |
363 | // */ | 363 | // */ |
364 | - // var Pay_confirm = function(modId){ | 364 | + // var Zf_confirm = function(modId){ |
365 | // Module.call(this, modId); | 365 | // Module.call(this, modId); |
366 | // } | 366 | // } |
367 | - // Core.inherit(Pay_confirm, Module); | 367 | + // Core.inherit(Zf_confirm, Module); |
368 | - // Pay_confirm.prototype.bind = function(){ | 368 | + // Zf_confirm.prototype.bind = function(){ |
369 | // var that = this; | 369 | // var that = this; |
370 | // that.$c.on('click', '[type=submit]', function(e) { | 370 | // that.$c.on('click', '[type=submit]', function(e) { |
371 | // e.preventDefault(); | 371 | // e.preventDefault(); |
372 | // Core.ajax_do(that.$c.find('.ajax'), | 372 | // Core.ajax_do(that.$c.find('.ajax'), |
373 | - // that.paycomfirm_cb, that); | 373 | + // that.zfcomfirm_cb, that); |
374 | // return false; | 374 | // return false; |
375 | // }); | 375 | // }); |
376 | // that.$c.on('click', '#change_vc', function(e){ | 376 | // that.$c.on('click', '#change_vc', function(e){ |
... | @@ -385,22 +385,22 @@ | ... | @@ -385,22 +385,22 @@ |
385 | // }); | 385 | // }); |
386 | // that.$c.on('click', '.checkbox', function(e){ | 386 | // that.$c.on('click', '.checkbox', function(e){ |
387 | // var chked = e.target.checked; | 387 | // var chked = e.target.checked; |
388 | - // var proxy_pay = that.$c.find("div.proxy_pay"); | 388 | + // var proxy_zf = that.$c.find("div.proxy_zf"); |
389 | - // var txt_pay_user = | 389 | + // var txt_zf_user = |
390 | - // that.$c.find("input[data-key='pay_user']"); | 390 | + // that.$c.find("input[data-key='zf_user']"); |
391 | // if (chked){ | 391 | // if (chked){ |
392 | - // txt_pay_user.attr('name', 'pay_user'); | 392 | + // txt_zf_user.attr('name', 'zf_user'); |
393 | - // txt_pay_user.attr('required', 'required'); | 393 | + // txt_zf_user.attr('required', 'required'); |
394 | - // proxy_pay.show(); | 394 | + // proxy_zf.show(); |
395 | // }else{ | 395 | // }else{ |
396 | - // txt_pay_user.removeAttr('name'); | 396 | + // txt_zf_user.removeAttr('name'); |
397 | - // txt_pay_user.removeAttr('required'); | 397 | + // txt_zf_user.removeAttr('required'); |
398 | - // proxy_pay.hide(); | 398 | + // proxy_zf.hide(); |
399 | // } | 399 | // } |
400 | // }); | 400 | // }); |
401 | // } | 401 | // } |
402 | // | 402 | // |
403 | - // Pay_confirm.prototype.paycomfirm_cb = function(data){ | 403 | + // Zf_confirm.prototype.zfcomfirm_cb = function(data){ |
404 | // var code = data.code; | 404 | // var code = data.code; |
405 | // var msg = data.msg; | 405 | // var msg = data.msg; |
406 | // if ('object' != typeof(msg)){ | 406 | // if ('object' != typeof(msg)){ |
... | @@ -408,16 +408,16 @@ | ... | @@ -408,16 +408,16 @@ |
408 | // return; | 408 | // return; |
409 | // } | 409 | // } |
410 | // | 410 | // |
411 | - // var pay_param = msg.pay_param; | 411 | + // var zf_param = msg.zf_param; |
412 | - // if (pay_param){ | 412 | + // if (zf_param){ |
413 | - // if (pay_param.next_url && pay_param.next_url!=""){ | 413 | + // if (zf_param.next_url && zf_param.next_url!=""){ |
414 | // Core.showTips('<h3>正在跳转请稍等...</h3>'); | 414 | // Core.showTips('<h3>正在跳转请稍等...</h3>'); |
415 | - // document.location = pay_param.next_url; | 415 | + // document.location = zf_param.next_url; |
416 | // return; | 416 | // return; |
417 | - // }else if(pay_param.action_url && | 417 | + // }else if(zf_param.action_url && |
418 | - // pay_param.action_url!=""){ | 418 | + // zf_param.action_url!=""){ |
419 | - // var action_url = pay_param.action_url; | 419 | + // var action_url = zf_param.action_url; |
420 | - // var method = pay_param.method; | 420 | + // var method = zf_param.method; |
421 | // var params = ""; | 421 | // var params = ""; |
422 | // if(action_url.indexOf("?")!=-1){ | 422 | // if(action_url.indexOf("?")!=-1){ |
423 | // params = action_url.split("?")[1]; | 423 | // params = action_url.split("?")[1]; |
... | @@ -441,57 +441,57 @@ | ... | @@ -441,57 +441,57 @@ |
441 | // return; | 441 | // return; |
442 | // } | 442 | // } |
443 | // } | 443 | // } |
444 | - // var pay_channel_name = '', tpl = ""; | 444 | + // var zf_channel_name = '', tpl = ""; |
445 | - // if (Core.Data.current_pay_channel){ | 445 | + // if (Core.Data.current_zf_channel){ |
446 | - // tpl = Core.Data.current_pay_channel.success_msg; | 446 | + // tpl = Core.Data.current_zf_channel.success_msg; |
447 | - // pay_channel_name = current_pay_channel.name | 447 | + // zf_channel_name = current_zf_channel.name |
448 | // }else{ | 448 | // }else{ |
449 | - // var ele_pay_user = $('input[name="pay_user"]'); | 449 | + // var ele_zf_user = $('input[name="zf_user"]'); |
450 | - // if(ele_pay_user.length == 0){ | 450 | + // if(ele_zf_user.length == 0){ |
451 | // tpl = | 451 | // tpl = |
452 | - // '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; | 452 | + // '使用{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; |
453 | // }else{ | 453 | // }else{ |
454 | // tpl = | 454 | // tpl = |
455 | - // '已向'+ele_pay_user.val()+'发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; | 455 | + // '已向'+ele_zf_user.val()+'发送代付{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; |
456 | // } | 456 | // } |
457 | // } | 457 | // } |
458 | // var doTpl = doT.template(tpl); | 458 | // var doTpl = doT.template(tpl); |
459 | // var success_msg = | 459 | // var success_msg = |
460 | - // doTpl({"pay_channel_name":pay_channel_name, | 460 | + // doTpl({"zf_channel_name":zf_channel_name, |
461 | - // "youai_star":msg.youai_star, "amount":msg.amount, | 461 | + // "ya_star":msg.ya_star, "amount":msg.amount, |
462 | // "game_unit_name":Core.Data.game_unit_name, | 462 | // "game_unit_name":Core.Data.game_unit_name, |
463 | // "game_amount":msg.game_amount, | 463 | // "game_amount":msg.game_amount, |
464 | // "game_unit":Core.Data.game_unit}); | 464 | // "game_unit":Core.Data.game_unit}); |
465 | // Core.Data.success_msg = success_msg; | 465 | // Core.Data.success_msg = success_msg; |
466 | // Core.Data.trade_id = msg.trade_id; | 466 | // Core.Data.trade_id = msg.trade_id; |
467 | // Core.showTips('成功提交!', true, 2000); | 467 | // Core.showTips('成功提交!', true, 2000); |
468 | - // Core.updateMod('pay_result'); | 468 | + // Core.updateMod('zf_result'); |
469 | // } | 469 | // } |
470 | - // Core.registerMod('pay_confirm', Pay_confirm); | 470 | + // Core.registerMod('zf_confirm', Zf_confirm); |
471 | 471 | ||
472 | /** | 472 | /** |
473 | * 代付操作模块 | 473 | * 代付操作模块 |
474 | */ | 474 | */ |
475 | - var Pay_proxy = function(modId) { | 475 | + var Zf_proxy = function(modId) { |
476 | Module.call(this, modId); | 476 | Module.call(this, modId); |
477 | } | 477 | } |
478 | - Core.inherit(Pay_proxy, Module); | 478 | + Core.inherit(Zf_proxy, Module); |
479 | - Pay_proxy.prototype.bind = function() { | 479 | + Zf_proxy.prototype.bind = function() { |
480 | var that = this; | 480 | var that = this; |
481 | - that.$c.on('click', '.btn-payfor', function(e) { | 481 | + that.$c.on('click', '.btn-zffor', function(e) { |
482 | e.preventDefault(); | 482 | e.preventDefault(); |
483 | - Core.ajax_do(that.$c.find('form.ajax'), that.payproxy_cb, | 483 | + Core.ajax_do(that.$c.find('form.ajax'), that.zfproxy_cb, |
484 | that); | 484 | that); |
485 | return false; | 485 | return false; |
486 | }); | 486 | }); |
487 | that.$c.on('click', '.btn-undo', function(e) { | 487 | that.$c.on('click', '.btn-undo', function(e) { |
488 | e.preventDefault(); | 488 | e.preventDefault(); |
489 | - Core.ajax_do(that.$c.find('a.ajax'), that.payproxy_cb, | 489 | + Core.ajax_do(that.$c.find('a.ajax'), that.zfproxy_cb, |
490 | that); | 490 | that); |
491 | return false; | 491 | return false; |
492 | }); | 492 | }); |
493 | } | 493 | } |
494 | - Pay_proxy.prototype.payproxy_cb = function(data) { | 494 | + Zf_proxy.prototype.zfproxy_cb = function(data) { |
495 | var code = data.code; | 495 | var code = data.code; |
496 | var msg = data.msg; | 496 | var msg = data.msg; |
497 | Core.showTips(msg, true, 3000); | 497 | Core.showTips(msg, true, 3000); |
... | @@ -503,13 +503,13 @@ | ... | @@ -503,13 +503,13 @@ |
503 | }, 2000); | 503 | }, 2000); |
504 | } | 504 | } |
505 | } | 505 | } |
506 | - Core.registerMod('pay_proxy', Pay_proxy); | 506 | + Core.registerMod('zf_proxy', Zf_proxy); |
507 | 507 | ||
508 | - var Pay_feedback = function(modId){ | 508 | + var Zf_feedback = function(modId){ |
509 | Module.call(this, modId); | 509 | Module.call(this, modId); |
510 | } | 510 | } |
511 | - Core.inherit(Pay_feedback, Module); | 511 | + Core.inherit(Zf_feedback, Module); |
512 | - Pay_feedback.prototype.bind = function(){ | 512 | + Zf_feedback.prototype.bind = function(){ |
513 | var that = this; | 513 | var that = this; |
514 | that.$c.on('click', '.submit', function(e){ | 514 | that.$c.on('click', '.submit', function(e){ |
515 | e.preventDefault(); | 515 | e.preventDefault(); |
... | @@ -521,13 +521,13 @@ | ... | @@ -521,13 +521,13 @@ |
521 | return false; | 521 | return false; |
522 | }) | 522 | }) |
523 | } | 523 | } |
524 | - Pay_feedback.prototype.sq_cb = function(data) { | 524 | + Zf_feedback.prototype.sq_cb = function(data) { |
525 | Core.showTips(data.msg, true, 2000); | 525 | Core.showTips(data.msg, true, 2000); |
526 | this.isValid = false; | 526 | this.isValid = false; |
527 | this.$c.find('textarea').val(''); | 527 | this.$c.find('textarea').val(''); |
528 | - Core.showMod('pay'); | 528 | + Core.showMod('zf'); |
529 | } | 529 | } |
530 | - Core.registerMod('pay_feedback', Pay_feedback); | 530 | + Core.registerMod('zf_feedback', Zf_feedback); |
531 | /** | 531 | /** |
532 | * 兑换记录模块 | 532 | * 兑换记录模块 |
533 | */ | 533 | */ |
... | @@ -573,15 +573,15 @@ | ... | @@ -573,15 +573,15 @@ |
573 | Core.inherit(Proxy_record, Module); | 573 | Core.inherit(Proxy_record, Module); |
574 | Proxy_record.prototype.bind = function() { | 574 | Proxy_record.prototype.bind = function() { |
575 | var that = this; | 575 | var that = this; |
576 | - that.$c.on('click', '.op-payfor', function(e) { | 576 | + that.$c.on('click', '.op-zffor', function(e) { |
577 | e.preventDefault(); | 577 | e.preventDefault(); |
578 | var $e = $(e.target); | 578 | var $e = $(e.target); |
579 | var id = $e.attr('data-id'); | 579 | var id = $e.attr('data-id'); |
580 | - $e.data('path', '/pay/proxy/pay/?id=' + id + '&format=json'); | 580 | + $e.data('path', '/zf/proxy/zf/?id=' + id + '&format=json'); |
581 | Core.load_json($e, function(data){ | 581 | Core.load_json($e, function(data){ |
582 | Core.Data.temp = data; | 582 | Core.Data.temp = data; |
583 | Core.showTips('加载完成!', true, 2000); | 583 | Core.showTips('加载完成!', true, 2000); |
584 | - Core.updateMod('pay_proxy'); | 584 | + Core.updateMod('zf_proxy'); |
585 | }, that); | 585 | }, that); |
586 | return false; | 586 | return false; |
587 | }); | 587 | }); |
... | @@ -599,7 +599,7 @@ | ... | @@ -599,7 +599,7 @@ |
599 | Core.load_html(this.$c.find('.trade-list'), this.pr_cb, | 599 | Core.load_html(this.$c.find('.trade-list'), this.pr_cb, |
600 | this); | 600 | this); |
601 | } | 601 | } |
602 | - if(Core.last_mod == 'pay_proxy') return; | 602 | + if(Core.last_mod == 'zf_proxy') return; |
603 | var _des = Core.last_mod ? Core.last_mod : 'home'; | 603 | var _des = Core.last_mod ? Core.last_mod : 'home'; |
604 | this.$c.find('a.btn.pull-left').attr('href', '#'+_des); | 604 | this.$c.find('a.btn.pull-left').attr('href', '#'+_des); |
605 | } | 605 | } |
... | @@ -660,11 +660,11 @@ | ... | @@ -660,11 +660,11 @@ |
660 | } | 660 | } |
661 | Invite_friend.prototype.show_after = function(){ | 661 | Invite_friend.prototype.show_after = function(){ |
662 | var that = this; | 662 | var that = this; |
663 | - if(Core.isWeixin){ | 663 | + if(Core.isWx){ |
664 | - that.$c.find('#share_weixin').show(); | 664 | + that.$c.find('#share_wx').show(); |
665 | that.$c.find('#share').hide(); | 665 | that.$c.find('#share').hide(); |
666 | }else{ | 666 | }else{ |
667 | - that.$c.find('#share_weixin').hide(); | 667 | + that.$c.find('#share_wx').hide(); |
668 | that.$c.find('#share').show(); | 668 | that.$c.find('#share').show(); |
669 | } | 669 | } |
670 | 670 | ||
... | @@ -681,7 +681,7 @@ | ... | @@ -681,7 +681,7 @@ |
681 | Core.inherit(Other, Module); | 681 | Core.inherit(Other, Module); |
682 | Other.prototype.bind = function() { | 682 | Other.prototype.bind = function() { |
683 | var that = this; | 683 | var that = this; |
684 | - that.$c.on('click', 'ol.other-pay li a', function(e) { | 684 | + that.$c.on('click', 'ol.other-zf li a', function(e) { |
685 | e.preventDefault(); | 685 | e.preventDefault(); |
686 | var $e = $(e.target); | 686 | var $e = $(e.target); |
687 | while (!$e.is('a')) | 687 | while (!$e.is('a')) |
... | @@ -906,28 +906,29 @@ | ... | @@ -906,28 +906,29 @@ |
906 | * enter_amount 进入sdk要购买的游戏币转为平台币数量(换算) | 906 | * enter_amount 进入sdk要购买的游戏币转为平台币数量(换算) |
907 | * total_amount 用户所拥有的平台币 | 907 | * total_amount 用户所拥有的平台币 |
908 | * game_amount 本次支付需要购买的游戏币 | 908 | * game_amount 本次支付需要购买的游戏币 |
909 | - * youai_star 本次支付需要支付的平台币(换算) | 909 | + * ya_star 本次支付需要支付的平台币(换算) |
910 | * money 本次支付需要支付的人民币(换算) | 910 | * money 本次支付需要支付的人民币(换算) |
911 | */ | 911 | */ |
912 | - function pay_init() { | 912 | + function zf_init() { |
913 | if (Core.Data.enter_game_amount > 0) { | 913 | if (Core.Data.enter_game_amount > 0) { |
914 | Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate; | 914 | Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate; |
915 | - Core.Data.pay_again = 0; | 915 | + Core.Data.zf_again = 0; |
916 | } | 916 | } |
917 | //if (Core.Data.enter_game_amount > 0 | 917 | //if (Core.Data.enter_game_amount > 0 |
918 | // && Core.Data.enter_amount <= Core.Data.total_amount) { | 918 | // && Core.Data.enter_amount <= Core.Data.total_amount) { |
919 | // // 需要进入兑换页面 | 919 | // // 需要进入兑换页面 |
920 | // Core.start_page = "exchange"; | 920 | // Core.start_page = "exchange"; |
921 | // Core.Data.game_amount = Core.Data.enter_game_amount; | 921 | // Core.Data.game_amount = Core.Data.enter_game_amount; |
922 | - // Core.Data.youai_star = Core.Data.enter_amount; | 922 | + // Core.Data.ya_star = Core.Data.enter_amount; |
923 | - // Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 923 | + // Core.Data.money = Core.Data.ya_star / Core.Data.rate; |
924 | //} else | 924 | //} else |
925 | //if (Core.Data.enter_game_amount > 0) { | 925 | //if (Core.Data.enter_game_amount > 0) { |
926 | // 需要进入渠道充值页面 | 926 | // 需要进入渠道充值页面 |
927 | Core.start_page = "channel_list"; | 927 | Core.start_page = "channel_list"; |
928 | Core.Data.game_amount = Core.Data.enter_game_amount; | 928 | Core.Data.game_amount = Core.Data.enter_game_amount; |
929 | - Core.Data.youai_star = Core.Data.enter_amount; | 929 | + Core.Data.ya_star = Core.Data.enter_amount; |
930 | - Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 930 | + Core.Data.money = Core.Data.ya_star / Core.Data.rate; |
931 | + Core.Data.current_money = (Core.Data.dct*Core.Data.money).toFixed(2) | ||
931 | //} else { | 932 | //} else { |
932 | // // 没有输入充值数量,进入选择数量的界面 | 933 | // // 没有输入充值数量,进入选择数量的界面 |
933 | //} | 934 | //} |
... | @@ -939,7 +940,7 @@ function onBridgeReady() { | ... | @@ -939,7 +940,7 @@ function onBridgeReady() { |
939 | var mainTitle= '一起玩' + Core.Data.game_name; | 940 | var mainTitle= '一起玩' + Core.Data.game_name; |
940 | var mainDesc = '我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!'; | 941 | var mainDesc = '我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!'; |
941 | try{ | 942 | try{ |
942 | - WeixinJSBridge.on("menu:share:timeline", function(e) { | 943 | + WxJSBridge.on("menu:share:timeline", function(e) { |
943 | var data = { | 944 | var data = { |
944 | appid:'wx1d2b5cd6b11aaf3d', | 945 | appid:'wx1d2b5cd6b11aaf3d', |
945 | img_url:mainImgUrl, | 946 | img_url:mainImgUrl, |
... | @@ -950,21 +951,21 @@ function onBridgeReady() { | ... | @@ -950,21 +951,21 @@ function onBridgeReady() { |
950 | title: mainTitle | 951 | title: mainTitle |
951 | }; | 952 | }; |
952 | alert('shareTimeline'); | 953 | alert('shareTimeline'); |
953 | - WeixinJSBridge.invoke("shareTimeline", data, function(res) { | 954 | + WxJSBridge.invoke("shareTimeline", data, function(res) { |
954 | - WeixinJSBridge.log(res.err_msg); | 955 | + WxJSBridge.log(res.err_msg); |
955 | }); | 956 | }); |
956 | }); | 957 | }); |
957 | - WeixinJSBridge.on("menu:share:weibo", function() { | 958 | + WxJSBridge.on("menu:share:weibo", function() { |
958 | - WeixinJSBridge.invoke("shareWeibo", { | 959 | + WxJSBridge.invoke("shareWeibo", { |
959 | "content": mainDesc, | 960 | "content": mainDesc, |
960 | "url": mainURL | 961 | "url": mainURL |
961 | }, function(res) { | 962 | }, function(res) { |
962 | //alert(res.err_msg); | 963 | //alert(res.err_msg); |
963 | - //WeixinJSBridge.log(res.err_msg); | 964 | + //WxJSBridge.log(res.err_msg); |
964 | }); | 965 | }); |
965 | }); | 966 | }); |
966 | - WeixinJSBridge.on('menu:share:appmessage', function(argv) { | 967 | + WxJSBridge.on('menu:share:appmessage', function(argv) { |
967 | - WeixinJSBridge.invoke("sendAppMessage", { | 968 | + WxJSBridge.invoke("sendAppMessage", { |
968 | appid:'wx1d2b5cd6b11aaf3d', | 969 | appid:'wx1d2b5cd6b11aaf3d', |
969 | img_url: mainImgUrl, | 970 | img_url: mainImgUrl, |
970 | img_width: "120", | 971 | img_width: "120", |
... | @@ -974,18 +975,18 @@ function onBridgeReady() { | ... | @@ -974,18 +975,18 @@ function onBridgeReady() { |
974 | title: mainTitle | 975 | title: mainTitle |
975 | }, function(res) { | 976 | }, function(res) { |
976 | //alert(res.err_msg); | 977 | //alert(res.err_msg); |
977 | - //WeixinJSBridge.log(res.err_msg) | 978 | + //WxJSBridge.log(res.err_msg) |
978 | }); | 979 | }); |
979 | }); | 980 | }); |
980 | 981 | ||
981 | } catch(error){alert(error);} | 982 | } catch(error){alert(error);} |
982 | }; | 983 | }; |
983 | - if (typeof WeixinJSBridge == "undefined"){ | 984 | + if (typeof WxJSBridge == "undefined"){ |
984 | if( document.addEventListener ){ | 985 | if( document.addEventListener ){ |
985 | - document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false); | 986 | + document.addEventListener('WxJSBridgeReady', onBridgeReady, false); |
986 | }else if (document.attachEvent){ | 987 | }else if (document.attachEvent){ |
987 | - document.attachEvent('WeixinJSBridgeReady', onBridgeReady); | 988 | + document.attachEvent('WxJSBridgeReady', onBridgeReady); |
988 | - document.attachEvent('onWeixinJSBridgeReady', onBridgeReady); | 989 | + document.attachEvent('onWxJSBridgeReady', onBridgeReady); |
989 | } | 990 | } |
990 | }else{ | 991 | }else{ |
991 | onBridgeReady(); | 992 | onBridgeReady(); |
... | @@ -993,12 +994,12 @@ function onBridgeReady() { | ... | @@ -993,12 +994,12 @@ function onBridgeReady() { |
993 | 994 | ||
994 | if (window.isGetData == 1) { | 995 | if (window.isGetData == 1) { |
995 | // 兼容旧版本sdk | 996 | // 兼容旧版本sdk |
996 | - pay_init(); | 997 | + zf_init(); |
997 | $('#loading').hide(); | 998 | $('#loading').hide(); |
998 | Core.init(); | 999 | Core.init(); |
999 | } else { | 1000 | } else { |
1000 | window.isGetData = 1; | 1001 | window.isGetData = 1; |
1001 | - window.initFunc = pay_init; | 1002 | + window.initFunc = zf_init; |
1002 | } | 1003 | } |
1003 | } | 1004 | } |
1004 | })(); | 1005 | })(); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -36,8 +36,11 @@ | ... | @@ -36,8 +36,11 @@ |
36 | <div class="new-sdk-container"> | 36 | <div class="new-sdk-container"> |
37 | <div class="new-container-box"> | 37 | <div class="new-container-box"> |
38 | <div class="SDK-titlebox"></div> | 38 | <div class="SDK-titlebox"></div> |
39 | - <form action="/sdk/login" method="post" class="ajax align-left clearfix"> | 39 | + <form action="/sdk/login2" method="post" class="ajax align-left clearfix"> |
40 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 40 | + <div class="new-sdk-logo"> |
41 | + <a href="#"> | ||
42 | + <img src="images/new-sdk-logo.png"> | ||
43 | + </a></div> | ||
41 | <div class="new-sdk-main"> | 44 | <div class="new-sdk-main"> |
42 | <div class="inputbox clearfix" style="position: relative;"> | 45 | <div class="inputbox clearfix" style="position: relative;"> |
43 | <div class="ileft">账号:</div> | 46 | <div class="ileft">账号:</div> |
... | @@ -64,10 +67,10 @@ | ... | @@ -64,10 +67,10 @@ |
64 | <i class=" iconfont icon-unie61d"></i> | 67 | <i class=" iconfont icon-unie61d"></i> |
65 | </a> | 68 | </a> |
66 | 69 | ||
67 | - <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_6/login.html%3Fapp_id={app_id}" class="qq iframe hide"> | 70 | + <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide"> |
68 | </a> | 71 | </a> |
69 | 72 | ||
70 | - <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide"> | 73 | + <a title="微信登录" data-replace="href" href="sdk://wxlogin?app_id={app_id}&next=/static/sdk/login.html" class="wx hide"> |
71 | </a> | 74 | </a> |
72 | </p> | 75 | </p> |
73 | 76 | ||
... | @@ -86,7 +89,7 @@ | ... | @@ -86,7 +89,7 @@ |
86 | 89 | ||
87 | </li> | 90 | </li> |
88 | <li> | 91 | <li> |
89 | -<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> --> | 92 | +<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register2?type=-1&app_id={app_id}">一键注册</a> --> |
90 | 93 | ||
91 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> | 94 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> |
92 | </li> | 95 | </li> |
... | @@ -102,7 +105,9 @@ | ... | @@ -102,7 +105,9 @@ |
102 | <div class="new-sdk-container"> | 105 | <div class="new-sdk-container"> |
103 | <div class="new-container-box"> | 106 | <div class="new-container-box"> |
104 | <div class="SDK-titlebox"></div> | 107 | <div class="SDK-titlebox"></div> |
105 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 108 | + <div class="new-sdk-logo"> |
109 | + <a href="#"><img src="images/new-sdk-logo.png"></a> | ||
110 | + </div> | ||
106 | <div class="login-third-list"> | 111 | <div class="login-third-list"> |
107 | <div class="title">请选择快速登录</div> | 112 | <div class="title">请选择快速登录</div> |
108 | <div class="third-list"> | 113 | <div class="third-list"> |
... | @@ -127,8 +132,10 @@ | ... | @@ -127,8 +132,10 @@ |
127 | 132 | ||
128 | <div class="new-sdk-container"> | 133 | <div class="new-sdk-container"> |
129 | <div class="SDK-titlebox"></div> | 134 | <div class="SDK-titlebox"></div> |
130 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 135 | + <div class="new-sdk-logo"> |
131 | - <form action="/sdk/register" class="ajax clearfix"> | 136 | + <a href="#"><img src="images/new-sdk-logo.png"></a> |
137 | + </div> | ||
138 | + <form action="/sdk/register2" class="ajax clearfix"> | ||
132 | <div class="new-sdk-main"> | 139 | <div class="new-sdk-main"> |
133 | <div class="inputbox clearfix"> | 140 | <div class="inputbox clearfix"> |
134 | <div class="ileft">账号:</div> | 141 | <div class="ileft">账号:</div> |
... | @@ -168,7 +175,9 @@ | ... | @@ -168,7 +175,9 @@ |
168 | <section id="agreement" class="hide"> | 175 | <section id="agreement" class="hide"> |
169 | <div class="new-sdk-container"> | 176 | <div class="new-sdk-container"> |
170 | <div class="SDK-titlebox"></div> | 177 | <div class="SDK-titlebox"></div> |
171 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 178 | + <div class="new-sdk-logo"> |
179 | + <a href="#"><img src="images/new-sdk-logo.png"></a> | ||
180 | + </div> | ||
172 | <div class="new-sdk-content" style="overflow: hidden;"> | 181 | <div class="new-sdk-content" style="overflow: hidden;"> |
173 | <h3>网络服务协议</h3> | 182 | <h3>网络服务协议</h3> |
174 | <div class="content-main" style="height: 220px;"> | 183 | <div class="content-main" style="height: 220px;"> |
... | @@ -252,6 +261,8 @@ | ... | @@ -252,6 +261,8 @@ |
252 | </section> | 261 | </section> |
253 | <section id="identityCard_ok" class="hide" data-attr="dot"> | 262 | <section id="identityCard_ok" class="hide" data-attr="dot"> |
254 | </section> | 263 | </section> |
264 | +<section id="bindQQ_ok" class="hide" data-attr="dot"> | ||
265 | +</section> | ||
255 | <!-- 找回密码模块 --> | 266 | <!-- 找回密码模块 --> |
256 | <section id="find_pwd" class="hide" data-replace="1"> | 267 | <section id="find_pwd" class="hide" data-replace="1"> |
257 | <input type="hidden" name="pwd_code" value=""> | 268 | <input type="hidden" name="pwd_code" value=""> |
... | @@ -265,33 +276,33 @@ | ... | @@ -265,33 +276,33 @@ |
265 | </div> | 276 | </div> |
266 | <div class="pwd_box"> | 277 | <div class="pwd_box"> |
267 | <ul class="step-tab"> | 278 | <ul class="step-tab"> |
268 | - <li><a href="javascript:;">通过手机找回</a></li> | 279 | + <!--<li><a href="javascript:;">通过手机找回</a></li>--> |
269 | <li><a href="javascript:;">通过密保找回</a></li> | 280 | <li><a href="javascript:;">通过密保找回</a></li> |
270 | <!--<li><a href="javascript:;">通过邮箱找回</a></li>--> | 281 | <!--<li><a href="javascript:;">通过邮箱找回</a></li>--> |
271 | <li><a href="javascript:;">联系客服</a></li> | 282 | <li><a href="javascript:;">联系客服</a></li> |
272 | </ul> | 283 | </ul> |
273 | 284 | ||
274 | <div class="step-box"> | 285 | <div class="step-box"> |
275 | - <div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;"> | 286 | + <!--<div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;">--> |
276 | - <div class="new-sdk-box"> | 287 | + <!--<div class="new-sdk-box">--> |
277 | - <div class="input" style="padding: 15px 0;"> | 288 | + <!--<div class="input" style="padding: 15px 0;">--> |
278 | - <input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;"> | 289 | + <!--<input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;">--> |
279 | - </div> | 290 | + <!--</div>--> |
280 | - <div class="input" style="padding: 15px 0;"> | 291 | + <!--<div class="input" style="padding: 15px 0;">--> |
281 | - <input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;"> | 292 | + <!--<input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;">--> |
282 | - </div> | 293 | + <!--</div> --> |
283 | - <div class="inputCode clearfix"> | 294 | + <!--<div class="inputCode clearfix">--> |
284 | - <div class="input fl" style="padding: 15px 0;"> | 295 | + <!--<div class="input fl" style="padding: 15px 0;">--> |
285 | - <input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;"> | 296 | + <!--<input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;">--> |
286 | - </div> | 297 | + <!--</div>--> |
287 | - <a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a> | 298 | + <!--<a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a>--> |
288 | - </div> | 299 | + <!--</div>--> |
289 | - <ul class="inline-btn" style="margin-top: 15px;"> | 300 | + <!--<ul class="inline-btn" style="margin-top: 15px;">--> |
290 | - <li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li> | 301 | + <!--<li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>--> |
291 | - <li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li> | 302 | + <!--<li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li>--> |
292 | - </ul> | 303 | + <!--</ul> --> |
293 | - </div> | 304 | + <!--</div>--> |
294 | - </div> | 305 | + <!--</div>--> |
295 | <div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form"> | 306 | <div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form"> |
296 | <div class="question-input-box clearfix"> | 307 | <div class="question-input-box clearfix"> |
297 | <div class="pull-left qib-txt"> | 308 | <div class="pull-left qib-txt"> |
... | @@ -373,6 +384,8 @@ | ... | @@ -373,6 +384,8 @@ |
373 | <section id="answer_question" data-attr="dot" class="hide"></section> | 384 | <section id="answer_question" data-attr="dot" class="hide"></section> |
374 | <!-- 绑定模块 --> | 385 | <!-- 绑定模块 --> |
375 | <section id="bind" data-attr="dot" class="hide" data-auth="1"></section> | 386 | <section id="bind" data-attr="dot" class="hide" data-auth="1"></section> |
387 | +<!-- 绑定QQ --> | ||
388 | +<section id="bindQQ" data-attr="dot" class="hide" data-auth="1"></section> | ||
376 | <!-- 绑定手机 --> | 389 | <!-- 绑定手机 --> |
377 | <section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section> | 390 | <section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section> |
378 | <!-- 解绑手机模块 --> | 391 | <!-- 解绑手机模块 --> |
... | @@ -488,7 +501,7 @@ | ... | @@ -488,7 +501,7 @@ |
488 | </div> | 501 | </div> |
489 | 502 | ||
490 | {{? Core.Data.force_auth == 1}} | 503 | {{? Core.Data.force_auth == 1}} |
491 | - <ul class="list-item clearfix"> | 504 | + <ul class="list-item clearfix" style="border-top:none;"> |
492 | {{? Core.Data.bind_phone === ""}} | 505 | {{? Core.Data.bind_phone === ""}} |
493 | <li style="position: relative;width:50%;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | 506 | <li style="position: relative;width:50%;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> |
494 | {{??}} | 507 | {{??}} |
... | @@ -506,11 +519,21 @@ | ... | @@ -506,11 +519,21 @@ |
506 | </a></li> | 519 | </a></li> |
507 | {{?}} | 520 | {{?}} |
508 | </ul> | 521 | </ul> |
522 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
523 | + {{? Core.Data.bind_qq === "" || Core.Data.bind_qq === undefined}} | ||
524 | + <li style="width:50%;"><a href="#bindQQ">绑定QQ</a></li> | ||
525 | + {{??}} | ||
526 | + <li style="width:50%;position:relative;"><a href="#bindQQ_ok">绑定QQ | ||
527 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已绑定</span> | ||
528 | + </a></li> | ||
529 | + {{?}} | ||
530 | + <li style="width:50%;"><a href="" style="visibility:hidden">占位置</a></li> | ||
531 | + </ul> | ||
509 | {{? Core.Data.kefu_info != ""}} | 532 | {{? Core.Data.kefu_info != ""}} |
510 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 533 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
511 | {{?}} {{??}} | 534 | {{?}} {{??}} |
512 | {{? Core.Data.bind_phone === ""}} | 535 | {{? Core.Data.bind_phone === ""}} |
513 | - <ul class="list-item clearfix"> | 536 | + <ul class="list-item clearfix" style="border-top:none;"> |
514 | <li style="width:50%;"><a href="#bindMobile">绑定手机</a></li> | 537 | <li style="width:50%;"><a href="#bindMobile">绑定手机</a></li> |
515 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> | 538 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> |
516 | </ul> | 539 | </ul> |
... | @@ -524,11 +547,21 @@ | ... | @@ -524,11 +547,21 @@ |
524 | </a></li> | 547 | </a></li> |
525 | {{?}} | 548 | {{?}} |
526 | </ul> | 549 | </ul> |
550 | + <ul class="list-item clearfix" style="border-top:none;border-bottom:none;"> | ||
551 | + {{? Core.Data.bind_qq === "" || Core.Data.bind_qq === undefined}} | ||
552 | + <li style="width:50%;"><a href="#bindQQ">绑定QQ</a></li> | ||
553 | + {{??}} | ||
554 | + <li style="width:50%;position:relative;"><a href="#bindQQ_ok">绑定QQ | ||
555 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已绑定</span> | ||
556 | + </a></li> | ||
557 | + {{?}} | ||
558 | + <li style="width:50%;"><a href="" style="visibility:hidden">占位置</a></li> | ||
559 | + </ul> | ||
527 | {{? Core.Data.kefu_info != ""}} | 560 | {{? Core.Data.kefu_info != ""}} |
528 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 561 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
529 | {{?}} | 562 | {{?}} |
530 | {{??}} | 563 | {{??}} |
531 | - <ul class="list-item clearfix"> | 564 | + <ul class="list-item clearfix" style="border-top:none;"> |
532 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | 565 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> |
533 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> | 566 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> |
534 | </ul> | 567 | </ul> |
... | @@ -542,6 +575,16 @@ | ... | @@ -542,6 +575,16 @@ |
542 | </a></li> | 575 | </a></li> |
543 | {{?}} | 576 | {{?}} |
544 | </ul> | 577 | </ul> |
578 | + <ul class="list-item clearfix" style="border-top:none;border-bottom:none;"> | ||
579 | + {{? Core.Data.bind_qq === "" || Core.Data.bind_qq === undefined}} | ||
580 | + <li style="width:50%;"><a href="#bindQQ">绑定QQ</a></li> | ||
581 | + {{??}} | ||
582 | + <li style="width:50%;position:relative;"><a href="#bindQQ_ok">绑定QQ | ||
583 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已绑定</span> | ||
584 | + </a></li> | ||
585 | + {{?}} | ||
586 | + <li style="width:50%;"><a href="" style="visibility:hidden">占位置</a></li> | ||
587 | + </ul> | ||
545 | {{? Core.Data.kefu_info != ""}} | 588 | {{? Core.Data.kefu_info != ""}} |
546 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 589 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
547 | {{?}} {{?}} | 590 | {{?}} {{?}} |
... | @@ -899,6 +942,33 @@ | ... | @@ -899,6 +942,33 @@ |
899 | </div> | 942 | </div> |
900 | </div> | 943 | </div> |
901 | </script> | 944 | </script> |
945 | + | ||
946 | +<script id="bindQQ_template" type="text/x-jquery-tmpl"> | ||
947 | + <div class="new-sdk-container"> | ||
948 | + <div class="SDK-titlebox"></div> | ||
949 | + <div class="user-center"> | ||
950 | + <a href="#home" class="lefticon"> | ||
951 | + <i class="iconfont icon-fanhui"></i> | ||
952 | + </a> | ||
953 | + 绑定QQ号码 | ||
954 | + </div> | ||
955 | + <div class="new-sdk-box"> | ||
956 | + <div class="acount-name"> | ||
957 | + 账号:{{=Core.Data.username}} | ||
958 | + </div> | ||
959 | + <form id="bind_qq_form" action="/user/bind_qq"> | ||
960 | + <div class="input" style="padding: 0;"> | ||
961 | + <input id="js_qq" type="text" required placeholder="请输入您要绑定的QQ号码"> | ||
962 | + </div> | ||
963 | + <ul class="inline-btn"> | ||
964 | + <li><a class="larg btn btn-orange" id="js_qq_bind_conform" value="" >确定</a></li> | ||
965 | + <li><a class="btn" href="#home">返回</a></li> | ||
966 | + </ul> | ||
967 | + </form> | ||
968 | + </div> | ||
969 | + </div> | ||
970 | +</script> | ||
971 | + | ||
902 | <script id="unbindMobile_template" type="text/x-jquery-tmpl"> | 972 | <script id="unbindMobile_template" type="text/x-jquery-tmpl"> |
903 | <div class="new-sdk-container"> | 973 | <div class="new-sdk-container"> |
904 | <div class="SDK-titlebox"></div> | 974 | <div class="SDK-titlebox"></div> |
... | @@ -945,6 +1015,22 @@ | ... | @@ -945,6 +1015,22 @@ |
945 | </div> | 1015 | </div> |
946 | </div> | 1016 | </div> |
947 | </script> | 1017 | </script> |
1018 | +<script id="bindQQ_ok_template" type="text/x-jquery-tmpl"> | ||
1019 | + <div class="new-sdk-container"> | ||
1020 | + <div class="SDK-titlebox"></div> | ||
1021 | + <div class="user-center"> | ||
1022 | + <a href="#home" class="lefticon"> | ||
1023 | + <i class="iconfont icon-fanhui"></i> | ||
1024 | + </a> | ||
1025 | + 绑定QQ | ||
1026 | + </div> | ||
1027 | + <div class="new-sdk-box"> | ||
1028 | + <div class="bind-qq"> | ||
1029 | + <p style="margin-top: 0;">已绑定的QQ号码:<span class="bind_qq"></span></p> | ||
1030 | + </div> | ||
1031 | + </div> | ||
1032 | + </div> | ||
1033 | +</script> | ||
948 | <script id="message_detail_template" type="text/x-jquery-tmpl"> | 1034 | <script id="message_detail_template" type="text/x-jquery-tmpl"> |
949 | <div class="header"> | 1035 | <div class="header"> |
950 | <a class="btn pull-left op-back" href="#message">返回</a> | 1036 | <a class="btn pull-left op-back" href="#message">返回</a> |
... | @@ -1063,7 +1149,7 @@ FastClick.attach(document.body); | ... | @@ -1063,7 +1149,7 @@ FastClick.attach(document.body); |
1063 | <script type="text/javascript"> | 1149 | <script type="text/javascript"> |
1064 | window.onload = window.onresize = initMatching; | 1150 | window.onload = window.onresize = initMatching; |
1065 | (function(){ | 1151 | (function(){ |
1066 | - getData('/sdk/login/json'); | 1152 | + getData('/sdk/login2/json'); |
1067 | })(); | 1153 | })(); |
1068 | simpScroller(document.querySelector(".horizontall"), {}); | 1154 | simpScroller(document.querySelector(".horizontall"), {}); |
1069 | // $(document).ready(function(){ | 1155 | // $(document).ready(function(){ | ... | ... |
... | @@ -55,7 +55,7 @@ for (i = 0, l = base_js.length; i < l; i++) { | ... | @@ -55,7 +55,7 @@ for (i = 0, l = base_js.length; i < l; i++) { |
55 | if (PATH.existsSync(path)) { | 55 | if (PATH.existsSync(path)) { |
56 | mtime = formatTime(fs.statSync(path).mtime); | 56 | mtime = formatTime(fs.statSync(path).mtime); |
57 | content.push('/static/sdk/' + path + '?' + mtime); | 57 | content.push('/static/sdk/' + path + '?' + mtime); |
58 | - //更新login.html, center.html, pay.html的引用信息的版本号 | 58 | + //更新login.html, center.html, zf.html的引用信息的版本号 |
59 | for (var j = 0, k = html_content.length; j < k; j++) { | 59 | for (var j = 0, k = html_content.length; j < k; j++) { |
60 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') | 60 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') |
61 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); | 61 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); |
... | @@ -70,7 +70,7 @@ for (i = 0, l = concat_with_mtime.length; i < l; i++) { | ... | @@ -70,7 +70,7 @@ for (i = 0, l = concat_with_mtime.length; i < l; i++) { |
70 | if (PATH.existsSync(path)) { | 70 | if (PATH.existsSync(path)) { |
71 | mtime = formatTime(fs.statSync(path).mtime); | 71 | mtime = formatTime(fs.statSync(path).mtime); |
72 | content.push('/static/sdk/' + path + '?' + mtime); | 72 | content.push('/static/sdk/' + path + '?' + mtime); |
73 | - //更新login.html, center.html, pay.html的引用信息的版本号 | 73 | + //更新login.html, center.html, zf.html的引用信息的版本号 |
74 | for (j = 0, k = html_content.length; j < k; j++) { | 74 | for (j = 0, k = html_content.length; j < k; j++) { |
75 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') | 75 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') |
76 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); | 76 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); |
... | @@ -107,7 +107,7 @@ for (i = 0, l = target.length; i < l; i++) { | ... | @@ -107,7 +107,7 @@ for (i = 0, l = target.length; i < l; i++) { |
107 | /* | 107 | /* |
108 | skin_content.push('/static/sdk/' + path + '/skin.css' + '?' + skin_mtime); | 108 | skin_content.push('/static/sdk/' + path + '/skin.css' + '?' + skin_mtime); |
109 | */ | 109 | */ |
110 | - //更新login.html, center.html, pay.html的引用信息的版本号 | 110 | + //更新login.html, center.html, zf.html的引用信息的版本号 |
111 | for (j = 0, k = html_content.length; j < k; j++) { | 111 | for (j = 0, k = html_content.length; j < k; j++) { |
112 | reg = new RegExp('data-v="\\d+"'); | 112 | reg = new RegExp('data-v="\\d+"'); |
113 | html_content[j] = html_content[j].replace(reg, 'data-v="' + skin_mtime + '"'); | 113 | html_content[j] = html_content[j].replace(reg, 'data-v="' + skin_mtime + '"'); | ... | ... |
... | @@ -51,18 +51,18 @@ select{ | ... | @@ -51,18 +51,18 @@ select{ |
51 | -moz-osx-font-smoothing: grayscale; | 51 | -moz-osx-font-smoothing: grayscale; |
52 | } | 52 | } |
53 | 53 | ||
54 | -.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} | 54 | +.icon-wx:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} |
55 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #00beef;} | 55 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #00beef;} |
56 | .icon-iconfontcha:before { content: "\e609"; } | 56 | .icon-iconfontcha:before { content: "\e609"; } |
57 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #00beef;} | 57 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #00beef;} |
58 | -.icon-weixin1:before { content: "\e603"; } | 58 | +.icon-wx1:before { content: "\e603"; } |
59 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #00beef;} | 59 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #00beef;} |
60 | .icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 1.6em;} | 60 | .icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 1.6em;} |
61 | .icon-iconfontcolor19:before { content: "\e60b"; } | 61 | .icon-iconfontcolor19:before { content: "\e60b"; } |
62 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} | 62 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} |
63 | .icon-triangle-l:before { content: "\e605"; } | 63 | .icon-triangle-l:before { content: "\e605"; } |
64 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} | 64 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} |
65 | -.icon-weixin2:before { content: "\e606"; } | 65 | +.icon-wx2:before { content: "\e606"; } |
66 | .icon-xiangyou:before { content: "\e60e"; } | 66 | .icon-xiangyou:before { content: "\e60e"; } |
67 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } | 67 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } |
68 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 30px;} | 68 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 30px;} |
... | @@ -599,7 +599,7 @@ body{ | ... | @@ -599,7 +599,7 @@ body{ |
599 | .new-sdk-container .new-sdk-main .other-login p a.qq{ | 599 | .new-sdk-container .new-sdk-main .other-login p a.qq{ |
600 | background: url(../images/login_icon.png) no-repeat 0 0; | 600 | background: url(../images/login_icon.png) no-repeat 0 0; |
601 | } | 601 | } |
602 | -.new-sdk-container .new-sdk-main .other-login p a.weixin{ | 602 | +.new-sdk-container .new-sdk-main .other-login p a.wx{ |
603 | background: url(../images/login_icon.png) no-repeat 0 -45px; | 603 | background: url(../images/login_icon.png) no-repeat 0 -45px; |
604 | } | 604 | } |
605 | .new-sdk-container .new-sdk-main .other-login label{ | 605 | .new-sdk-container .new-sdk-main .other-login label{ | ... | ... |
... | @@ -3,19 +3,19 @@ CACHE MANIFEST | ... | @@ -3,19 +3,19 @@ CACHE MANIFEST |
3 | #version=20151112001 | 3 | #version=20151112001 |
4 | /static/sdk_3/login.html?20151112001 | 4 | /static/sdk_3/login.html?20151112001 |
5 | /static/sdk_3/center.html?20151112001 | 5 | /static/sdk_3/center.html?20151112001 |
6 | -/static/sdk_3/pay.html?20151112001 | 6 | +/static/sdk_3/zf.html?20151112001 |
7 | /static/sdk_3/share.html?20151112001 | 7 | /static/sdk_3/share.html?20151112001 |
8 | /static/sdk_3/js/fastclick.min.1.0.js?20151112001 | 8 | /static/sdk_3/js/fastclick.min.1.0.js?20151112001 |
9 | /static/sdk_3/js/zepto.min.js?20151112001 | 9 | /static/sdk_3/js/zepto.min.js?20151112001 |
10 | /static/sdk_3/js/doT.min.js?20151112001 | 10 | /static/sdk_3/js/doT.min.js?20151112001 |
11 | /static/sdk_3/js/iscroll.min.1.0.js?20151112001 | 11 | /static/sdk_3/js/iscroll.min.1.0.js?20151112001 |
12 | /static/sdk_3/skin/login.css?20151112001 | 12 | /static/sdk_3/skin/login.css?20151112001 |
13 | -/static/sdk_3/skin/pay.css?20151112001 | 13 | +/static/sdk_3/skin/zf.css?20151112001 |
14 | 14 | ||
15 | /static/sdk_3/js/core.min.js?20151112001 | 15 | /static/sdk_3/js/core.min.js?20151112001 |
16 | /static/sdk_3/js/loader.min.js?20151112001 | 16 | /static/sdk_3/js/loader.min.js?20151112001 |
17 | /static/sdk_3/js/center.min.js?20151112001 | 17 | /static/sdk_3/js/center.min.js?20151112001 |
18 | -/static/sdk_3/js/pay.min.js?20151112001 | 18 | +/static/sdk_3/js/zf.min.js?20151112001 |
19 | /static/sdk_3/js/login.min.js?20151112001 | 19 | /static/sdk_3/js/login.min.js?20151112001 |
20 | /static/sdk_3/images/login_icon.png?20151112001 | 20 | /static/sdk_3/images/login_icon.png?20151112001 |
21 | /static/sdk_3/images/new-sdk-logo.png?20151112001 | 21 | /static/sdk_3/images/new-sdk-logo.png?20151112001 | ... | ... |
... | @@ -176,7 +176,7 @@ p.text-muted{color: #999999; } | ... | @@ -176,7 +176,7 @@ p.text-muted{color: #999999; } |
176 | right: 5px; | 176 | right: 5px; |
177 | top: 13px; | 177 | top: 13px; |
178 | } | 178 | } |
179 | -.badge.pay{ | 179 | +.badge.zf{ |
180 | position: absolute; | 180 | position: absolute; |
181 | right: -8px; | 181 | right: -8px; |
182 | top: -6px; | 182 | top: -6px; |
... | @@ -265,18 +265,18 @@ label.enter_game{ | ... | @@ -265,18 +265,18 @@ label.enter_game{ |
265 | -moz-osx-font-smoothing: grayscale; | 265 | -moz-osx-font-smoothing: grayscale; |
266 | } | 266 | } |
267 | 267 | ||
268 | -.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} | 268 | +.icon-wx:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} |
269 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #0f9fcf;} | 269 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #0f9fcf;} |
270 | .icon-iconfontcha:before { content: "\e609"; } | 270 | .icon-iconfontcha:before { content: "\e609"; } |
271 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #0f9fcf;} | 271 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #0f9fcf;} |
272 | -.icon-weixin1:before { content: "\e603"; } | 272 | +.icon-wx1:before { content: "\e603"; } |
273 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #0f9fcf;} | 273 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #0f9fcf;} |
274 | .icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 32px;} | 274 | .icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 32px;} |
275 | .icon-iconfontcolor19:before { content: "\e60b"; } | 275 | .icon-iconfontcolor19:before { content: "\e60b"; } |
276 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} | 276 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} |
277 | .icon-triangle-l:before { content: "\e605"; } | 277 | .icon-triangle-l:before { content: "\e605"; } |
278 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} | 278 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} |
279 | -.icon-weixin2:before { content: "\e606"; } | 279 | +.icon-wx2:before { content: "\e606"; } |
280 | .icon-xiangyou:before { content: "\e60e"; } | 280 | .icon-xiangyou:before { content: "\e60e"; } |
281 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } | 281 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } |
282 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 1.8em;} | 282 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 1.8em;} |
... | @@ -498,22 +498,22 @@ ul.step-tab{ | ... | @@ -498,22 +498,22 @@ ul.step-tab{ |
498 | /* 支付类型列表 END */ | 498 | /* 支付类型列表 END */ |
499 | 499 | ||
500 | /* 确认代付 */ | 500 | /* 确认代付 */ |
501 | -.pay-proxy-info{ | 501 | +.zf-proxy-info{ |
502 | font-size:14px; | 502 | font-size:14px; |
503 | margin:auto; | 503 | margin:auto; |
504 | text-align: left; | 504 | text-align: left; |
505 | height: 100px; | 505 | height: 100px; |
506 | } | 506 | } |
507 | -.pay-proxy-info .desc{ | 507 | +.zf-proxy-info .desc{ |
508 | margin-left:0px; | 508 | margin-left:0px; |
509 | } | 509 | } |
510 | -.pay-proxy-info .desc p{ | 510 | +.zf-proxy-info .desc p{ |
511 | font-size: 14px; | 511 | font-size: 14px; |
512 | line-height: 16px; | 512 | line-height: 16px; |
513 | margin: 5px 0; | 513 | margin: 5px 0; |
514 | padding: 0; | 514 | padding: 0; |
515 | } | 515 | } |
516 | -.pay-proxy-info .btn-group{ | 516 | +.zf-proxy-info .btn-group{ |
517 | margin-left:10px; | 517 | margin-left:10px; |
518 | float:right;} | 518 | float:right;} |
519 | /* 确认代付 END */ | 519 | /* 确认代付 END */ |
... | @@ -884,24 +884,24 @@ div.head span.num{ | ... | @@ -884,24 +884,24 @@ div.head span.num{ |
884 | div.sec{ | 884 | div.sec{ |
885 | margin-top: 16px; | 885 | margin-top: 16px; |
886 | } | 886 | } |
887 | -ol.other-pay{ | 887 | +ol.other-zf{ |
888 | padding-left: 5px; | 888 | padding-left: 5px; |
889 | } | 889 | } |
890 | -ol.other-pay li{ | 890 | +ol.other-zf li{ |
891 | display:inline-block; | 891 | display:inline-block; |
892 | } | 892 | } |
893 | 893 | ||
894 | -ol.other-pay li a{ | 894 | +ol.other-zf li a{ |
895 | display:inline-block; | 895 | display:inline-block; |
896 | text-align: center; | 896 | text-align: center; |
897 | margin:5px 10px 5px 0; | 897 | margin:5px 10px 5px 0; |
898 | padding: 0 5px; | 898 | padding: 0 5px; |
899 | cursor: pointer; | 899 | cursor: pointer; |
900 | } | 900 | } |
901 | -ol.other-pay li a:last-of-type{ | 901 | +ol.other-zf li a:last-of-type{ |
902 | margin: 5px 0px 5px 0; | 902 | margin: 5px 0px 5px 0; |
903 | } | 903 | } |
904 | -ol.other-pay li a img{ | 904 | +ol.other-zf li a img{ |
905 | width: 70px; | 905 | width: 70px; |
906 | height: 70px; | 906 | height: 70px; |
907 | 907 | ||
... | @@ -949,7 +949,7 @@ ol.other-pay li a img{ | ... | @@ -949,7 +949,7 @@ ol.other-pay li a img{ |
949 | .level{ color:#F60; float:right; font-size:14px;} | 949 | .level{ color:#F60; float:right; font-size:14px;} |
950 | .gz-zhanghao{ text-align:left; padding:5px; margin-bottom:10px;} | 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; } | 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} | 952 | +.gz-zhanghao .wx{ background:url(http://cdn.i9133.com/static/sdk/skin/img/wx.png) left bottom no-repeat; padding:5px 0px 5px 35px} |
953 | 953 | ||
954 | .fs_box{ text-align:left; font-size:16px; } | 954 | .fs_box{ text-align:left; font-size:16px; } |
955 | 955 | ||
... | @@ -1151,19 +1151,19 @@ li.more .btn{ display:block;} | ... | @@ -1151,19 +1151,19 @@ li.more .btn{ display:block;} |
1151 | height: auto; | 1151 | height: auto; |
1152 | min-height: 73px; | 1152 | min-height: 73px; |
1153 | } | 1153 | } |
1154 | -.pay-info-cont{ | 1154 | +.zf-info-cont{ |
1155 | padding: 10px 37px; | 1155 | padding: 10px 37px; |
1156 | position: relative; | 1156 | position: relative; |
1157 | } | 1157 | } |
1158 | -.pay-info-cont .player-info-cont{ | 1158 | +.zf-info-cont .player-info-cont{ |
1159 | border-right:1px solid black; | 1159 | border-right:1px solid black; |
1160 | 1160 | ||
1161 | } | 1161 | } |
1162 | -.pay-info-cont .player-info-cont .head-ico{ | 1162 | +.zf-info-cont .player-info-cont .head-ico{ |
1163 | max-height: 50px; | 1163 | max-height: 50px; |
1164 | max-width: 50px; | 1164 | max-width: 50px; |
1165 | } | 1165 | } |
1166 | -.pay-info-cont .player-info-cont span{ | 1166 | +.zf-info-cont .player-info-cont span{ |
1167 | display: inline-block; | 1167 | display: inline-block; |
1168 | 1168 | ||
1169 | } | 1169 | } |
... | @@ -1247,10 +1247,10 @@ position:absolute; left:0; right:0; top:0; bottom:0; width:auto; height:auto; ma | ... | @@ -1247,10 +1247,10 @@ position:absolute; left:0; right:0; top:0; bottom:0; width:auto; height:auto; ma |
1247 | .warm-prompt h2 { color: #ff0000; font-size: 20px; font-weight: normal; font-family: "Microsoft YaHei","微软雅黑"; } | 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;} | 1248 | .warm-prompt p { color: #535353; font-family: "Microsoft YaHei","微软雅黑"; font-size: 16px; margin: 0;} |
1249 | .warm-prompt p a { color: #f39700; } | 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);} | 1250 | +.zf-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; } | 1251 | +.zf-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;} | 1252 | +.zf-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; } | 1253 | +.zf-info-cont .user-msg p span { color: #f39700; } |
1254 | 1254 | ||
1255 | /*充值记录*/ | 1255 | /*充值记录*/ |
1256 | .integral .box{ border-left:2px solid #089b55; margin-left:100px; height:100%; padding:0 10px 20px;;} | 1256 | .integral .box{ border-left:2px solid #089b55; margin-left:100px; height:100%; padding:0 10px 20px;;} | ... | ... |
assets/sdk_11/version.txt
0 → 100644
1 | +20180925 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | <meta name="full-screen" content="yes"> | 10 | <meta name="full-screen" content="yes"> |
11 | <meta http-equiv="x-ua-compatible" content="IE=edge" /> | 11 | <meta http-equiv="x-ua-compatible" content="IE=edge" /> |
12 | 12 | ||
13 | -<link href="skin/pay.css?v=20150318002" type="text/css" rel="stylesheet" /> | 13 | +<link href="skin/zf.css?v=20150318002" type="text/css" rel="stylesheet" /> |
14 | <link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" /> | 14 | <link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" /> |
15 | <style> | 15 | <style> |
16 | .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;} | 16 | .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;} |
... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
41 | <section id="channel_list" class="hide" data-attr="dot" data-auth="1"></section> | 41 | <section id="channel_list" class="hide" data-attr="dot" data-auth="1"></section> |
42 | <!-- end --> | 42 | <!-- end --> |
43 | <!-- 充值操作模块 --> | 43 | <!-- 充值操作模块 --> |
44 | -<section id="pay" class="hide" data-attr="dot" data-auth="1"></section> | 44 | +<section id="zf" class="hide" data-attr="dot" data-auth="1"></section> |
45 | <!-- end --> | 45 | <!-- end --> |
46 | <!-- 客服问题列表模块 --> | 46 | <!-- 客服问题列表模块 --> |
47 | <section id="kefu_list" class="hide" data-auth="1" data-attr="dot"></section> | 47 | <section id="kefu_list" class="hide" data-auth="1" data-attr="dot"></section> |
... | @@ -89,10 +89,10 @@ | ... | @@ -89,10 +89,10 @@ |
89 | </div> | 89 | </div> |
90 | </div> | 90 | </div> |
91 | </section> | 91 | </section> |
92 | -<section id="pay_feedback" class="hide" data-replace="1"> | 92 | +<section id="zf_feedback" class="hide" data-replace="1"> |
93 | <div class="header"> | 93 | <div class="header"> |
94 | <span class="title">充值问题</span> | 94 | <span class="title">充值问题</span> |
95 | - <a class="iconfont icon-iconfontxiangyou poslft" href="#pay"></a> | 95 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#zf"></a> |
96 | <a class="btn-link posrgt" href="#kefu_list">在线客服</a> | 96 | <a class="btn-link posrgt" href="#kefu_list">在线客服</a> |
97 | </div> | 97 | </div> |
98 | <div class="container"> | 98 | <div class="container"> |
... | @@ -109,13 +109,13 @@ | ... | @@ -109,13 +109,13 @@ |
109 | </div> | 109 | </div> |
110 | </section> | 110 | </section> |
111 | <!-- 代付模块 --> | 111 | <!-- 代付模块 --> |
112 | -<section id="pay_proxy" data-attr="dot" class="hide" data-auth="1"></section> | 112 | +<section id="zf_proxy" data-attr="dot" class="hide" data-auth="1"></section> |
113 | <!-- end --> | 113 | <!-- end --> |
114 | <!-- 充值结果模块 --> | 114 | <!-- 充值结果模块 --> |
115 | -<section id="pay_result" data-attr="dot" class="hide" data-auth="1"></section> | 115 | +<section id="zf_result" data-attr="dot" class="hide" data-auth="1"></section> |
116 | <!-- end --> | 116 | <!-- end --> |
117 | <!-- 确认付款 模块 --> | 117 | <!-- 确认付款 模块 --> |
118 | -<!-- <section id="pay_confirm" data-attr="dot" class="hide" data-auth="1"></section> --> | 118 | +<!-- <section id="zf_confirm" data-attr="dot" class="hide" data-auth="1"></section> --> |
119 | <!-- end --> | 119 | <!-- end --> |
120 | <!-- 其他充值方式模块 --> | 120 | <!-- 其他充值方式模块 --> |
121 | <section id="other" data-attr="dot" class="hide" data-auth="1"></section> | 121 | <section id="other" data-attr="dot" class="hide" data-auth="1"></section> |
... | @@ -126,12 +126,12 @@ | ... | @@ -126,12 +126,12 @@ |
126 | <!-- 验证码模块 --> | 126 | <!-- 验证码模块 --> |
127 | <section id="verify" data-attr="dot" class="hide" data-auth="1"></section> | 127 | <section id="verify" data-attr="dot" class="hide" data-auth="1"></section> |
128 | <!-- end --> | 128 | <!-- end --> |
129 | -<section id="pay_for" data-attr="dot" class="hide" data-auth="1"></section> | 129 | +<section id="zf_for" data-attr="dot" class="hide" data-auth="1"></section> |
130 | <section id="frame" 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" > | 131 | <script id="frame_template" type="text/x-jquery-tmpl" > |
132 | <div class="header"> | 132 | <div class="header"> |
133 | <span class="title">{{=Core.Data.frame_title}}</span> | 133 | <span class="title">{{=Core.Data.frame_title}}</span> |
134 | - <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | 134 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishZf()"></a> |
135 | </div> | 135 | </div> |
136 | <div class="container" style=""> | 136 | <div class="container" style=""> |
137 | <div class="container_load in_frame" id="loading_frame" onclick="$(this).hide()"> | 137 | <div class="container_load in_frame" id="loading_frame" onclick="$(this).hide()"> |
... | @@ -150,8 +150,8 @@ | ... | @@ -150,8 +150,8 @@ |
150 | <script id='home_template' type='text/x-jquery-tmpl'> | 150 | <script id='home_template' type='text/x-jquery-tmpl'> |
151 | <div class="header"> | 151 | <div class="header"> |
152 | <span class="title">充值中心</span> | 152 | <span class="title">充值中心</span> |
153 | - <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | 153 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishZf()"></a> |
154 | - {{? Core.Data.pay_only != 1 }} | 154 | + {{? Core.Data.zf_only != 1 }} |
155 | 155 | ||
156 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> | 156 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> |
157 | 157 | ||
... | @@ -167,7 +167,7 @@ | ... | @@ -167,7 +167,7 @@ |
167 | </p> | 167 | </p> |
168 | <br> | 168 | <br> |
169 | <p class="align-left text-success tips9133"> | 169 | <p class="align-left text-success tips9133"> |
170 | - {{? Core.Data.pay_only != 1 }} | 170 | + {{? Core.Data.zf_only != 1 }} |
171 | {{? Core.Data.is_guest == 1}} | 171 | {{? Core.Data.is_guest == 1}} |
172 | 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。 | 172 | 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。 |
173 | {{??}} | 173 | {{??}} |
... | @@ -178,7 +178,7 @@ | ... | @@ -178,7 +178,7 @@ |
178 | 178 | ||
179 | <br> | 179 | <br> |
180 | <div class="amount_level align-left" > | 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> | 181 | + <a href="javascript:Core.finishZf()" id="back-btn" class="btn larg conBtn " style="text-align: center;display:none">请返回游戏</a> |
182 | <br> | 182 | <br> |
183 | </div> | 183 | </div> |
184 | 184 | ||
... | @@ -207,7 +207,7 @@ | ... | @@ -207,7 +207,7 @@ |
207 | </div> | 207 | </div> |
208 | </script> | 208 | </script> |
209 | 209 | ||
210 | -<script id="pay_for_template" type="text/x-jquery-tmpl" > | 210 | +<script id="zf_for_template" type="text/x-jquery-tmpl" > |
211 | <div class="header"> | 211 | <div class="header"> |
212 | <span class="title">找他人代付</span> | 212 | <span class="title">找他人代付</span> |
213 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | 213 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> |
... | @@ -215,7 +215,7 @@ | ... | @@ -215,7 +215,7 @@ |
215 | </div> | 215 | </div> |
216 | <div class="container"> | 216 | <div class="container"> |
217 | <div class="box_info_center"> | 217 | <div class="box_info_center"> |
218 | - <form id="pay_for_form" action="/sdk/pay" method="post" class="ajax" > | 218 | + <form id="zf_for_form" action="/sdk/zf" method="post" class="ajax" > |
219 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | 219 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> |
220 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | 220 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> |
221 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | 221 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> |
... | @@ -226,12 +226,12 @@ | ... | @@ -226,12 +226,12 @@ |
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>元 | 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> | 227 | </p> |
228 | 228 | ||
229 | - <div class="proxy_pay"> | 229 | + <div class="proxy_zf"> |
230 | <p> | 230 | <p> |
231 | - <input class="larg" type="text" data-key="pay_user" required="required" name="pay_user" placeholder="请输入代付人手游平台帐号" /> | 231 | + <input class="larg" type="text" data-key="zf_user" required="required" name="zf_user" placeholder="请输入代付人手游平台帐号" /> |
232 | </p> | 232 | </p> |
233 | <p> | 233 | <p> |
234 | - <input class="larg" type="text" name="pay_message" placeholder="给他留言···" /> | 234 | + <input class="larg" type="text" name="zf_message" placeholder="给他留言···" /> |
235 | </p> | 235 | </p> |
236 | 236 | ||
237 | <p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p> | 237 | <p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p> |
... | @@ -243,7 +243,7 @@ | ... | @@ -243,7 +243,7 @@ |
243 | <div class="header"> | 243 | <div class="header"> |
244 | <span class="title">兑换{{=Core.Data.game_unit_name}}</span> | 244 | <span class="title">兑换{{=Core.Data.game_unit_name}}</span> |
245 | {{? Core.Data.enter_amount && Core.Data.enter_amount >0}} | 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> | 246 | + <a class="btn pull-left op-back op-primary" href="javascript:Core.finishZf()">返回游戏</a> |
247 | {{??}} | 247 | {{??}} |
248 | <a class="btn pull-left op-back op-primary" href="#home">修改数量</a> | 248 | <a class="btn pull-left op-back op-primary" href="#home">修改数量</a> |
249 | {{?}} | 249 | {{?}} |
... | @@ -251,7 +251,7 @@ | ... | @@ -251,7 +251,7 @@ |
251 | </div> | 251 | </div> |
252 | <div class="container"> | 252 | <div class="container"> |
253 | <div class="box_info_center"> | 253 | <div class="box_info_center"> |
254 | - <form id="exchange_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" > | 254 | + <form id="exchange_form" action="/sdk/zf" method="post" class="ajax" todo="feedback" > |
255 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | 255 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> |
256 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | 256 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> |
257 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | 257 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> |
... | @@ -259,7 +259,7 @@ | ... | @@ -259,7 +259,7 @@ |
259 | <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | 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}}" /> | 260 | <input type="hidden" name="money" value="{{=Core.Data.money}}" /> |
261 | <p class="align-left" > | 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>个游爱星 | 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.ya_star}}</span>个游爱星 |
263 | </p> | 263 | </p> |
264 | <p class="align-left text-muted"> | 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}} | 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}} |
... | @@ -282,11 +282,11 @@ | ... | @@ -282,11 +282,11 @@ |
282 | <div class="header"> | 282 | <div class="header"> |
283 | <span class="title">充值中心</span> | 283 | <span class="title">充值中心</span> |
284 | {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }} | 284 | {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }} |
285 | - <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | 285 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishZf()"></a> |
286 | {{??}} | 286 | {{??}} |
287 | <a class="btn-link poslft" href="#home">修改数量</a> | 287 | <a class="btn-link poslft" href="#home">修改数量</a> |
288 | {{?}} | 288 | {{?}} |
289 | - {{? Core.Data.pay_only != 1 }} | 289 | + {{? Core.Data.zf_only != 1 }} |
290 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> | 290 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> |
291 | {{?}} | 291 | {{?}} |
292 | </div> | 292 | </div> |
... | @@ -296,12 +296,18 @@ | ... | @@ -296,12 +296,18 @@ |
296 | 296 | ||
297 | <div id="channel_list_wrapper" style="position:relative" class="scroll"> | 297 | <div id="channel_list_wrapper" style="position:relative" class="scroll"> |
298 | <div id="channel_list_scroller"> | 298 | <div id="channel_list_scroller"> |
299 | - <div class="pay-info-cont clearfix"> | 299 | + <div class="zf-info-cont clearfix"> |
300 | <div class="iconfont icon-yonghutouxiang pull-left"></div> | 300 | <div class="iconfont icon-yonghutouxiang pull-left"></div> |
301 | <div class="user-msg pull-left align-left"> | 301 | <div class="user-msg pull-left align-left"> |
302 | <h2>玩家:{{=Core.Data.username}}</h2> | 302 | <h2>玩家:{{=Core.Data.username}}</h2> |
303 | <h2>ID:{{=Core.Data.user_id}}</h2> | 303 | <h2>ID:{{=Core.Data.user_id}}</h2> |
304 | + {{? Core.Data.zfType != 2 }} | ||
305 | + {{? Core.Data.dct ==1 }} | ||
304 | <p>充值金额:<span>{{=Core.Data.money}}元</span></p> | 306 | <p>充值金额:<span>{{=Core.Data.money}}元</span></p> |
307 | + {{??}} | ||
308 | + <p>充值金额<br>原价:<span style="text-decoration:line-through">{{=Core.Data.money}}</span><span>元</span> <br>现价:<span>{{=Core.Data.current_money}}元</span></p> | ||
309 | + {{?}} | ||
310 | + {{?}} | ||
305 | </div> | 311 | </div> |
306 | </div> | 312 | </div> |
307 | 313 | ||
... | @@ -310,10 +316,11 @@ | ... | @@ -310,10 +316,11 @@ |
310 | <div class="box_info_center"> | 316 | <div class="box_info_center"> |
311 | 317 | ||
312 | <div class="channel_list align-left" > | 318 | <div class="channel_list align-left" > |
313 | - {{? Core.Data.youai_star <= Core.Data.total_amount }} | 319 | + {{? Core.Data.ya_star <= Core.Data.total_amount }} |
314 | <!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>--> | 320 | <!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>--> |
315 | {{?}} | 321 | {{?}} |
316 | - {{~Core.Data.game_pay_channel_list :item:index }} | 322 | + {{? Core.Data.zfType != 2 }} |
323 | + {{~Core.Data.game_zf_channel_list :item:index }} | ||
317 | {{?item.name}} | 324 | {{?item.name}} |
318 | 325 | ||
319 | <a href="#" data-id="{{=item.id}}" class="btn channel btn-block clearfix"> | 326 | <a href="#" data-id="{{=item.id}}" class="btn channel btn-block clearfix"> |
... | @@ -322,11 +329,17 @@ | ... | @@ -322,11 +329,17 @@ |
322 | 329 | ||
323 | {{?}} | 330 | {{?}} |
324 | {{~}} | 331 | {{~}} |
325 | - {{? Core.Data.pay_only != 1 }} | 332 | + {{? Core.Data.zf_only != 1 }} |
326 | {{? Core.Data.ad_game.length >= 1}} | 333 | {{? Core.Data.ad_game.length >= 1}} |
327 | {{??}} | 334 | {{??}} |
328 | {{?}} | 335 | {{?}} |
329 | {{?}} | 336 | {{?}} |
337 | + {{??}} | ||
338 | + <a href="#" data-id="" class="btn channel btn-block clearfix"> | ||
339 | + <div class="image pull-left"><img src=""/></div> | ||
340 | + 苹果支付<i class="iconfont icon-xiangyou pull-right" style="color:#b5b5b6;font-size:24px;"></i></a> | ||
341 | + {{?}} | ||
342 | + | ||
330 | 343 | ||
331 | </div> | 344 | </div> |
332 | 345 | ||
... | @@ -341,7 +354,7 @@ | ... | @@ -341,7 +354,7 @@ |
341 | </div> | 354 | </div> |
342 | 355 | ||
343 | 356 | ||
344 | - {{? Core.Data.pay_only != 1 }} | 357 | + {{? Core.Data.zf_only != 1 }} |
345 | <p class="align-left text-muted tips9133"> | 358 | <p class="align-left text-muted tips9133"> |
346 | {{? Core.Data.vip > 0}} | 359 | {{? Core.Data.vip > 0}} |
347 | {{??}} | 360 | {{??}} |
... | @@ -356,17 +369,17 @@ | ... | @@ -356,17 +369,17 @@ |
356 | </script> | 369 | </script> |
357 | 370 | ||
358 | 371 | ||
359 | -<script id='pay_template' type='text/x-jquery-tmpl'> | 372 | +<script id='zf_template' type='text/x-jquery-tmpl'> |
360 | <div class="header"> | 373 | <div class="header"> |
361 | - <span class="title">{{=Core.Data.current_pay_channel.name}}充值</span> | 374 | + <span class="title">{{=Core.Data.current_zf_channel.name}}充值</span> |
362 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | 375 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> |
363 | - <a class="btn-link posrgt" href="#pay_feedback">无法充值?</a> | 376 | + <a class="btn-link posrgt" href="#zf_feedback">无法充值?</a> |
364 | </div> | 377 | </div> |
365 | <div class="container"> | 378 | <div class="container"> |
366 | 379 | ||
367 | - <div id="pay_panel_wrapper"> | 380 | + <div id="zf_panel_wrapper"> |
368 | 381 | ||
369 | - <div class="pay-info-cont clearfix"> | 382 | + <div class="zf-info-cont clearfix"> |
370 | <div class="iconfont icon-yonghutouxiang pull-left"></div> | 383 | <div class="iconfont icon-yonghutouxiang pull-left"></div> |
371 | <div class="user-msg pull-left align-left"> | 384 | <div class="user-msg pull-left align-left"> |
372 | <h2>玩家:{{=Core.Data.username}}</h2> | 385 | <h2>玩家:{{=Core.Data.username}}</h2> |
... | @@ -375,33 +388,33 @@ | ... | @@ -375,33 +388,33 @@ |
375 | </div> | 388 | </div> |
376 | </div> | 389 | </div> |
377 | <div class="box_info_center"> | 390 | <div class="box_info_center"> |
378 | - <form id="pay_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" > | 391 | + <form id="zf_form" action="/sdk/zf" method="post" class="ajax" todo="feedback" > |
379 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | 392 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> |
380 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | 393 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> |
381 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | 394 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> |
382 | <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> | 395 | <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> |
383 | - {{? Core.Data.current_pay_channel }} | 396 | + {{? Core.Data.current_zf_channel }} |
384 | - <input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" /> | 397 | + <input type="hidden" name="zf_channel_id" value="{{=Core.Data.current_zf_channel.id}}" /> |
385 | 398 | ||
386 | <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | 399 | <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}}" /> | 400 | <input type="hidden" name="money" value="{{=Core.Data.money}}" /> |
388 | <div class="require_input "> | 401 | <div class="require_input "> |
389 | - {{? Core.Data.current_pay_channel.config['input_item'] }} | 402 | + {{? Core.Data.current_zf_channel.config['input_item'] }} |
390 | <p class="align-left"> | 403 | <p class="align-left"> |
391 | - <label>您选择了<span>{{=Core.Data.current_pay_channel.name}}</span>充值方式</label> | 404 | + <label>您选择了<span>{{=Core.Data.current_zf_channel.name}}</span>充值方式</label> |
392 | </p> | 405 | </p> |
393 | <p class="clearfix" style="margin:15px 0 20px"> | 406 | <p class="clearfix" style="margin:15px 0 20px"> |
394 | <label class="pull-left">充值卡面额:</label> | 407 | <label class="pull-left">充值卡面额:</label> |
395 | <select class="card_amount larg pull-left" name="amount" > | 408 | <select class="card_amount larg pull-left" name="amount" > |
396 | <option value='选择金额' >选择金额</option> | 409 | <option value='选择金额' >选择金额</option> |
397 | - {{~ Core.Data.current_pay_channel.config['amount_level'] :amount}} | 410 | + {{~ Core.Data.current_zf_channel.config['amount_level'] :amount}} |
398 | {{? amount >= Core.Data.money }} | 411 | {{? amount >= Core.Data.money }} |
399 | <option value="{{=amount}}" >{{=amount}}</option> | 412 | <option value="{{=amount}}" >{{=amount}}</option> |
400 | {{?}} | 413 | {{?}} |
401 | {{~}} | 414 | {{~}} |
402 | </select> | 415 | </select> |
403 | </p> | 416 | </p> |
404 | - {{~ Core.Data.current_pay_channel.config['input_item'] :item:index }} | 417 | + {{~ Core.Data.current_zf_channel.config['input_item'] :item:index }} |
405 | {{? item.name === 'card_num' }} | 418 | {{? item.name === 'card_num' }} |
406 | <p class="clearfix"> | 419 | <p class="clearfix"> |
407 | <label class="pull-left">充值卡号:</label> | 420 | <label class="pull-left">充值卡号:</label> |
... | @@ -442,7 +455,7 @@ | ... | @@ -442,7 +455,7 @@ |
442 | </div> | 455 | </div> |
443 | </script> | 456 | </script> |
444 | 457 | ||
445 | -<script id="pay_proxy_template" type="text/x-jquery-tmpl"> | 458 | +<script id="zf_proxy_template" type="text/x-jquery-tmpl"> |
446 | <div class="header"> | 459 | <div class="header"> |
447 | <span class="title">确认代付</span> | 460 | <span class="title">确认代付</span> |
448 | <a class="iconfont icon-iconfontxiangyou poslft" href="#proxy_record"></a> | 461 | <a class="iconfont icon-iconfontxiangyou poslft" href="#proxy_record"></a> |
... | @@ -460,25 +473,25 @@ | ... | @@ -460,25 +473,25 @@ |
460 | {{=Core.Data.temp.game_amount_unit_name}} | 473 | {{=Core.Data.temp.game_amount_unit_name}} |
461 | </span> | 474 | </span> |
462 | </h4> | 475 | </h4> |
463 | - <form action="/pay/proxy/pay" method="post" class="ajax" data-todo="pay_proxy_callback" > | 476 | + <form action="/zf/proxy/zf" method="post" class="ajax" data-todo="zf_proxy_callback" > |
464 | - <div class="pay-proxy-info clearfix"> | 477 | + <div class="zf-proxy-info clearfix"> |
465 | <div class="btn-group clearfix" > | 478 | <div class="btn-group clearfix" > |
466 | <input type="hidden" name="id" value="{{=Core.Data.temp.trade_id}}" /> | 479 | <input type="hidden" name="id" value="{{=Core.Data.temp.trade_id}}" /> |
467 | - <button class="btn btn-payfor" type="submit">确认为他付款</button><br/> | 480 | + <button class="btn btn-zffor" type="submit">确认为他付款</button><br/> |
468 | or<br/> | 481 | or<br/> |
469 | - <a class="ajax btn-undo" href="/pay/proxy/undo?id={{=Core.Data.temp.trade_id}}">拒绝付款</a> | 482 | + <a class="ajax btn-undo" href="/zf/proxy/undo?id={{=Core.Data.temp.trade_id}}">拒绝付款</a> |
470 | </div> | 483 | </div> |
471 | <div class="desc"> | 484 | <div class="desc"> |
472 | <p> | 485 | <p> |
473 | 可用游爱星:<span class="text-warning">{{=Core.Data.temp.amount}}颗</span> | 486 | 可用游爱星:<span class="text-warning">{{=Core.Data.temp.amount}}颗</span> |
474 | </p> | 487 | </p> |
475 | <p> | 488 | <p> |
476 | - 应付游爱星:<span class="text-warning">{{=Core.Data.temp.youai_star}}颗</span> | 489 | + 应付游爱星:<span class="text-warning">{{=Core.Data.temp.ya_star}}颗</span> |
477 | <small>(1:{{=Core.Data.temp.exchange_rate}})</small> | 490 | <small>(1:{{=Core.Data.temp.exchange_rate}})</small> |
478 | </p> | 491 | </p> |
479 | - {{?Core.Data.temp.pay_message != ''}} | 492 | + {{?Core.Data.temp.zf_message != ''}} |
480 | - <p class="pay-message"> | 493 | + <p class="zf-message"> |
481 | - <small>他说:{{=Core.Data.temp.pay_message}}</small> | 494 | + <small>他说:{{=Core.Data.temp.zf_message}}</small> |
482 | </p> | 495 | </p> |
483 | {{?}} | 496 | {{?}} |
484 | </div> | 497 | </div> |
... | @@ -496,7 +509,7 @@ | ... | @@ -496,7 +509,7 @@ |
496 | </div> | 509 | </div> |
497 | </script> | 510 | </script> |
498 | 511 | ||
499 | -<script id='pay_result_template' type='text/x-jquery-tmpl'> | 512 | +<script id='zf_result_template' type='text/x-jquery-tmpl'> |
500 | <div class="header"> | 513 | <div class="header"> |
501 | <span class="title">支付结果</span> | 514 | <span class="title">支付结果</span> |
502 | 515 | ||
... | @@ -506,7 +519,7 @@ | ... | @@ -506,7 +519,7 @@ |
506 | {{=Core.Data.success_msg}} | 519 | {{=Core.Data.success_msg}} |
507 | </p> | 520 | </p> |
508 | 521 | ||
509 | - <a href="javascript:Core.finishPay()" class="btn larg conBtn">继续游戏</a> | 522 | + <a href="javascript:Core.finishZf()" class="btn larg conBtn">继续游戏</a> |
510 | </div> | 523 | </div> |
511 | </script> | 524 | </script> |
512 | <script id="invite_friend_template" type="text/x-jquery-tmpl"> | 525 | <script id="invite_friend_template" type="text/x-jquery-tmpl"> |
... | @@ -533,7 +546,7 @@ | ... | @@ -533,7 +546,7 @@ |
533 | {{? Core.Data.ad_game.length >= 1}} | 546 | {{? Core.Data.ad_game.length >= 1}} |
534 | <div class="sec sec_invtite"> | 547 | <div class="sec sec_invtite"> |
535 | <p class="title-fs">方式一:下载指定游戏可获得{{=Core.Data.game_unit_name}}</p> | 548 | <p class="title-fs">方式一:下载指定游戏可获得{{=Core.Data.game_unit_name}}</p> |
536 | - <ol class="other-pay"> | 549 | + <ol class="other-zf"> |
537 | {{~ Core.Data.ad_game :item:index}} | 550 | {{~ Core.Data.ad_game :item:index}} |
538 | {{? item.id}} | 551 | {{? item.id}} |
539 | <li> | 552 | <li> |
... | @@ -563,7 +576,7 @@ | ... | @@ -563,7 +576,7 @@ |
563 | {{? Core.start_page == 'kefu_list'}} | 576 | {{? Core.start_page == 'kefu_list'}} |
564 | <a class="btn-link poslft" href="sdk://exit?action=center">返回游戏</a> | 577 | <a class="btn-link poslft" href="sdk://exit?action=center">返回游戏</a> |
565 | {{??}} | 578 | {{??}} |
566 | - <a class="iconfont icon-iconfontxiangyou poslft" href="#pay_feedback"></a> | 579 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#zf_feedback"></a> |
567 | {{?}} | 580 | {{?}} |
568 | </div> | 581 | </div> |
569 | <div class="container"> | 582 | <div class="container"> |
... | @@ -690,7 +703,7 @@ | ... | @@ -690,7 +703,7 @@ |
690 | <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> | 703 | <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> |
691 | {{??}} | 704 | {{??}} |
692 | {{? it.page_num == 1}} | 705 | {{? it.page_num == 1}} |
693 | - <div class="pay-info-cont clearfix"> | 706 | + <div class="zf-info-cont clearfix"> |
694 | <div class="iconfont icon-yonghutouxiang pull-left"></div> | 707 | <div class="iconfont icon-yonghutouxiang pull-left"></div> |
695 | <div class="user-msg pull-left align-left"> | 708 | <div class="user-msg pull-left align-left"> |
696 | <h2>玩家:{{=Core.Data.username}}</h2> | 709 | <h2>玩家:{{=Core.Data.username}}</h2> |
... | @@ -747,14 +760,14 @@ | ... | @@ -747,14 +760,14 @@ |
747 | <p class="detail"> | 760 | <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{{?}}"> | 761 | <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 }} | 762 | [{{? item.status == 1 }} |
750 | - <a class="btn op-payfor" href="#pay_proxy&id={{=item.id}}" data-id="{{=item.id}}">支付</a> | 763 | + <a class="btn op-zffor" href="#zf_proxy&id={{=item.id}}" data-id="{{=item.id}}">支付</a> |
751 | {{??}} | 764 | {{??}} |
752 | {{=item.get_status}}] | 765 | {{=item.get_status}}] |
753 | {{?}} | 766 | {{?}} |
754 | </span> | 767 | </span> |
755 | <strong>{{=item.game_name}}</strong><small>{{=item.server_name}}<{{=item.role_name}}></small> | 768 | <strong>{{=item.game_name}}</strong><small>{{=item.server_name}}<{{=item.role_name}}></small> |
756 | </p> | 769 | </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> | 770 | + <p class="muted">消费游爱星<strong>{{=item.ya_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> | 771 | <p class="info"><small class="pull-right muted time_p">{{=item.last_firendlyTime}}</small> |
759 | 772 | ||
760 | <span class="order-text">订单:{{=item.id}}</span> | 773 | <span class="order-text">订单:{{=item.id}}</span> |
... | @@ -782,12 +795,12 @@ FastClick.attach(document.body); | ... | @@ -782,12 +795,12 @@ FastClick.attach(document.body); |
782 | }); | 795 | }); |
783 | </script> | 796 | </script> |
784 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> | 797 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> |
785 | -<script type="text/javascript" src="js/pay.min.js?201504218001" ></script> | 798 | +<script type="text/javascript" src="js/zf.min.js?201504218001" ></script> |
786 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> | 799 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> |
787 | 800 | ||
788 | <script type="text/javascript"> | 801 | <script type="text/javascript"> |
789 | (function(){ | 802 | (function(){ |
790 | - getData('/sdk/pay/json'); | 803 | + getData('/sdk/zf/json'); |
791 | })(); | 804 | })(); |
792 | $(function(){ | 805 | $(function(){ |
793 | if (Core.isIos) { | 806 | if (Core.isIos) { | ... | ... |
1 | -SERVER_URL=http://sdk.i9133.com | ||
2 | -CDN_SERVER_URL=http://cdn.i9133.com | ||
3 | -SDK_TYPE=.sys_config_9133 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +SERVER_URL=https://sdk.i9133.com | ||
2 | +CDN_SERVER_URL=https://cdn.i9133.com | ||
3 | +SDK_TYPE=.sys_config_9133_n | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project version="4"> | 2 | <project version="4"> |
3 | - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | 3 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK"> |
4 | <output url="file://$PROJECT_DIR$/build/classes" /> | 4 | <output url="file://$PROJECT_DIR$/build/classes" /> |
5 | </component> | 5 | </component> |
6 | <component name="ProjectType"> | 6 | <component name="ProjectType"> | ... | ... |
... | @@ -2,11 +2,11 @@ apply plugin: 'com.android.application' | ... | @@ -2,11 +2,11 @@ apply plugin: 'com.android.application' |
2 | 2 | ||
3 | android { | 3 | android { |
4 | compileSdkVersion 29 | 4 | compileSdkVersion 29 |
5 | - buildToolsVersion "29.0.2" | 5 | + buildToolsVersion '29.0.2' |
6 | defaultConfig { | 6 | defaultConfig { |
7 | applicationId "com.youai.demo.poolsdk" | 7 | applicationId "com.youai.demo.poolsdk" |
8 | minSdkVersion 19 | 8 | minSdkVersion 19 |
9 | - targetSdkVersion 29 | 9 | + targetSdkVersion 19 |
10 | versionCode 1 | 10 | versionCode 1 |
11 | versionName "1.0" | 11 | versionName "1.0" |
12 | } | 12 | } | ... | ... |
No preview for this file type
demo/app/libs/YouYuSDK_190516.jar
deleted
100644 → 0
No preview for this file type
demo/app/libs/youyu190617.jar
0 → 100644
No preview for this file type
... | @@ -2,18 +2,19 @@ | ... | @@ -2,18 +2,19 @@ |
2 | <config> | 2 | <config> |
3 | 3 | ||
4 | <sdkconfig | 4 | <sdkconfig |
5 | - YA_APPID="58fd78a9834e7246b8dc0eac" | 5 | + YA_APPID="5b6bf23e665fff5f47475e56" |
6 | - YA_APPKEY="b06b86b79c25774ec758657a7203bae6" | 6 | + YA_APPKEY="a6050ea63e9b3c4cfedbe6d8c629240f" |
7 | + styleName="sdk_11" | ||
7 | gamesimplename="fytx_test" | 8 | gamesimplename="fytx_test" |
8 | - sdksimplename="youyu" | 9 | + sdksimplename="i9133" |
9 | sdkversioncode="V1_0" | 10 | sdkversioncode="V1_0" |
10 | channelparameter1="" | 11 | channelparameter1="" |
11 | channelparameter2="" | 12 | channelparameter2="" |
12 | custom="" | 13 | custom="" |
13 | gamechannelid="" | 14 | gamechannelid="" |
14 | - logincheckurl="http://183.136.223.85:9010/logincheck/check/" | 15 | + logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" |
15 | - payorderurl="http://183.136.223.85:9020/paycheck/create" | 16 | + paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" |
16 | - paycheckurl="http://183.136.223.85:9020/paycheck/confirm" | 17 | + payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" |
17 | usertype="gssaXIIEiL0=" /> | 18 | usertype="gssaXIIEiL0=" /> |
18 | 19 | ||
19 | </config> | 20 | </config> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
demo/app/src/main/assets/sdk.zip
deleted
100644 → 0
No preview for this file type
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 |

10.4 KB
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 |
1 | -20170511 |
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 |
... | @@ -37,7 +37,7 @@ | ... | @@ -37,7 +37,7 @@ |
37 | <div class="new-sdk-container"> | 37 | <div class="new-sdk-container"> |
38 | <div class="new-container-box"> | 38 | <div class="new-container-box"> |
39 | <div class="SDK-titlebox"></div> | 39 | <div class="SDK-titlebox"></div> |
40 | - <form action="/sdk/login" method="post" class="ajax align-left clearfix"> | 40 | + <form action="/sdk/login2" method="post" class="ajax align-left clearfix"> |
41 | <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 41 | <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> |
42 | <div class="new-sdk-main"> | 42 | <div class="new-sdk-main"> |
43 | <div class="inputbox clearfix" style="position: relative;"> | 43 | <div class="inputbox clearfix" style="position: relative;"> |
... | @@ -68,7 +68,7 @@ | ... | @@ -68,7 +68,7 @@ |
68 | <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide"> | 68 | <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide"> |
69 | </a> | 69 | </a> |
70 | 70 | ||
71 | - <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide"> | 71 | + <a title="微信登录" data-replace="href" href="sdk://wxlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="wx hide"> |
72 | </a> | 72 | </a> |
73 | </p>--> | 73 | </p>--> |
74 | 74 | ||
... | @@ -87,7 +87,7 @@ | ... | @@ -87,7 +87,7 @@ |
87 | 87 | ||
88 | </li> | 88 | </li> |
89 | <li> | 89 | <li> |
90 | -<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> --> | 90 | +<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register2?type=-1&app_id={app_id}">一键注册</a> --> |
91 | 91 | ||
92 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> | 92 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> |
93 | </li> | 93 | </li> |
... | @@ -130,7 +130,7 @@ | ... | @@ -130,7 +130,7 @@ |
130 | <div class="new-sdk-container"> | 130 | <div class="new-sdk-container"> |
131 | <div class="SDK-titlebox"></div> | 131 | <div class="SDK-titlebox"></div> |
132 | <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></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"> | 133 | + <form action="/sdk/register2" class="ajax clearfix"> |
134 | <div class="new-sdk-main"> | 134 | <div class="new-sdk-main"> |
135 | <div class="inputbox clearfix"> | 135 | <div class="inputbox clearfix"> |
136 | <div class="ileft">账号:</div> | 136 | <div class="ileft">账号:</div> | ... | ... |
... | @@ -13,14 +13,14 @@ var concat_with_mtime = [ | ... | @@ -13,14 +13,14 @@ var concat_with_mtime = [ |
13 | 'js/core.min.js', | 13 | 'js/core.min.js', |
14 | 'js/loader.min.js', | 14 | 'js/loader.min.js', |
15 | 'js/center.min.js', | 15 | 'js/center.min.js', |
16 | - 'js/pay.min.js', | 16 | + 'js/zf.min.js', |
17 | 'js/login.min.js' | 17 | 'js/login.min.js' |
18 | ] | 18 | ] |
19 | 19 | ||
20 | var htmls = [ | 20 | var htmls = [ |
21 | 'login.html', | 21 | 'login.html', |
22 | 'center.html', | 22 | 'center.html', |
23 | - 'pay.html', | 23 | + 'zf.html', |
24 | 'share.html' | 24 | 'share.html' |
25 | ] | 25 | ] |
26 | 26 | ... | ... |
No preview for this file type
File moved
No preview for this file type
demo/app/src/main/assets/sdk/font/iconfont.woff
→
demo/app/src/main/assets/sdk_11/font/iconfont.woff
No preview for this file type

7.55 KB
File moved
... | @@ -31,7 +31,7 @@ function initMatching(){ | ... | @@ -31,7 +31,7 @@ function initMatching(){ |
31 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; | 31 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; |
32 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; | 32 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; |
33 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 | 33 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 |
34 | - Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; | 34 | + Core.isWx = userAgent.indexOf('MicroMessenger') != -1; |
35 | var ratio = window.devicePixelRatio; | 35 | var ratio = window.devicePixelRatio; |
36 | Core.ratio = ratio; | 36 | Core.ratio = ratio; |
37 | 37 | ||
... | @@ -110,6 +110,7 @@ function initMatching(){ | ... | @@ -110,6 +110,7 @@ function initMatching(){ |
110 | 110 | ||
111 | Core.ios_w = _w; | 111 | Core.ios_w = _w; |
112 | 112 | ||
113 | + | ||
113 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); | 114 | $('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="maximum-scale=' + _scale + '"/>').appendTo(_head); |
115 | //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); | 116 | //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); |
... | @@ -139,14 +140,17 @@ function initMatching(){ | ... | @@ -139,14 +140,17 @@ function initMatching(){ |
139 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; | 140 | Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null; |
140 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; | 141 | Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1; |
141 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 | 142 | Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议 |
142 | - Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; | 143 | + Core.isWx = userAgent.indexOf('MicroMessenger') != -1; |
143 | var ratio = window.devicePixelRatio; | 144 | var ratio = window.devicePixelRatio; |
144 | Core.ratio = ratio; | 145 | Core.ratio = ratio; |
145 | 146 | ||
146 | - Core.PLATFORM_NAME = '游娱'; | 147 | + Core.PLATFORM_NAME = ''; |
147 | - | ||
148 | 148 | ||
149 | - Core.server = 'https://sdk.uuufish.com'; | 149 | + if(Core.isIos){ |
150 | + Core.server = 'https://sdk.9133.com'; | ||
151 | + }else{ | ||
152 | + Core.server = 'http://sdk.9133.com'; | ||
153 | + } | ||
150 | 154 | ||
151 | var lastServer = localStorage.getItem('last_server'); | 155 | var lastServer = localStorage.getItem('last_server'); |
152 | if(lastServer && lastServer.indexOf('http:')==0){ | 156 | if(lastServer && lastServer.indexOf('http:')==0){ |
... | @@ -217,6 +221,7 @@ function initMatching(){ | ... | @@ -217,6 +221,7 @@ function initMatching(){ |
217 | 221 | ||
218 | Core.ios_w = _w; | 222 | Core.ios_w = _w; |
219 | 223 | ||
224 | + | ||
220 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); | 225 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); |
221 | //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); | 226 | //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); |
222 | //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); | 227 | //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); |
... | @@ -513,8 +518,6 @@ function initMatching(){ | ... | @@ -513,8 +518,6 @@ function initMatching(){ |
513 | } else { | 518 | } else { |
514 | post_url += '?format=json'; | 519 | post_url += '?format=json'; |
515 | } | 520 | } |
516 | - | ||
517 | - | ||
518 | var options = { | 521 | var options = { |
519 | type: action_method, | 522 | type: action_method, |
520 | url: post_url, | 523 | url: post_url, |
... | @@ -547,7 +550,8 @@ function initMatching(){ | ... | @@ -547,7 +550,8 @@ function initMatching(){ |
547 | } | 550 | } |
548 | if ($obj[0].tagName == "FORM") { | 551 | if ($obj[0].tagName == "FORM") { |
549 | $obj[0].disabled = false; | 552 | $obj[0].disabled = false; |
550 | - $obj.find("input, button").attr('disabled', null); | 553 | + $obj.find("input[type='text'],input[type='password'],input[name='password'], button").attr('disabled', null); |
554 | + | ||
551 | var $but_input = $obj.find('[type=submit]'); | 555 | var $but_input = $obj.find('[type=submit]'); |
552 | if ($but_input.is('button')) { | 556 | if ($but_input.is('button')) { |
553 | $but_input.html(temp); | 557 | $but_input.html(temp); |
... | @@ -755,26 +759,31 @@ function initMatching(){ | ... | @@ -755,26 +759,31 @@ function initMatching(){ |
755 | console.log('not wbkit browser!'); | 759 | console.log('not wbkit browser!'); |
756 | } | 760 | } |
757 | } | 761 | } |
758 | - core.finishPay = function() { | 762 | + core.finishZf = function() { |
759 | - var pay_url = "sdk://exit?action=pay"; | 763 | + var zf_url = "sdk://exit?action=zf"; |
760 | core.clearFrame() | 764 | core.clearFrame() |
761 | if(Core.Data.game_url && Core.Data.game_url != ''){ | 765 | if(Core.Data.game_url && Core.Data.game_url != ''){ |
762 | if(Core.Data.back_url){ | 766 | if(Core.Data.back_url){ |
763 | - pay_url = Core.Data.back_url; | 767 | + zf_url = Core.Data.back_url; |
764 | }else{ | 768 | }else{ |
765 | - pay_url = Core.Data.game_url; | 769 | + zf_url = Core.Data.game_url; |
766 | } | 770 | } |
767 | }else{ | 771 | }else{ |
768 | if(Core.Data.trade_id && Core.Data.trade_id != ''){ | 772 | if(Core.Data.trade_id && Core.Data.trade_id != ''){ |
769 | - pay_url = "sdk://pay?order_id=" + Core.Data.trade_id; | 773 | + zf_url = "sdk://zf?order_id=" + Core.Data.trade_id; |
770 | - pay_url += Core.Data.current_pay_channel ? '&paytype=' + Core.Data.current_pay_channel.name : '' | 774 | + zf_url += Core.Data.current_zf_channel ? '&zftype=' + Core.Data.current_zf_channel.name : '' |
771 | } | 775 | } |
772 | } | 776 | } |
773 | try{ | 777 | try{ |
774 | - location.href = pay_url; | 778 | + location.href = zf_url; |
775 | }catch(e){} | 779 | }catch(e){} |
776 | } | 780 | } |
777 | core.finishLogin = function() { | 781 | core.finishLogin = function() { |
782 | + if(Core.Data.compellation_name == "" && Core.Data.identity_card == "" && Core.Data.force_auth == 1){ | ||
783 | + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
784 | + Core.updateMod('identityCard'); | ||
785 | + return false; | ||
786 | + } | ||
778 | var login_url = 'sdk://exit?action=login'; | 787 | 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 ; | 788 | 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 : '' ; | 789 | login_params += Core.Data.login_count ? '&login_count=' + Core.Data.login_count : '' ; | ... | ... |
File moved
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|"; | 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 | 2 | ||
3 | +function IsIdCard2(code) | ||
4 | +{ | ||
5 | + var city={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外 "}; | ||
6 | + var tip = ""; | ||
7 | + var pass= true; | ||
8 | + | ||
9 | + if(!code || !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(code)){ | ||
10 | + tip = "身份证号格式错误"; | ||
11 | + pass = false; | ||
12 | + } | ||
13 | + | ||
14 | + else if(!city[code.substr(0,2)]){ | ||
15 | + tip = "地址编码错误"; | ||
16 | + pass = false; | ||
17 | + } | ||
18 | + else{ | ||
19 | + //18位身份证需要验证最后一位校验位 | ||
20 | + if(code.length == 18){ | ||
21 | + code = code.split(''); | ||
22 | + //∑(ai×Wi)(mod 11) | ||
23 | + //加权因子 | ||
24 | + var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ]; | ||
25 | + //校验位 | ||
26 | + var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ]; | ||
27 | + var sum = 0; | ||
28 | + var ai = 0; | ||
29 | + var wi = 0; | ||
30 | + for (var i = 0; i < 17; i++) | ||
31 | + { | ||
32 | + ai = code[i]; | ||
33 | + wi = factor[i]; | ||
34 | + sum += ai * wi; | ||
35 | + } | ||
36 | + var last = parity[sum % 11]; | ||
37 | + if(parity[sum % 11] != code[17]){ | ||
38 | + tip = "校验位错误"; | ||
39 | + pass =false; | ||
40 | + } | ||
41 | + } | ||
42 | + } | ||
43 | + return pass; | ||
44 | +} | ||
45 | + | ||
3 | function IsIdCard(idcard) | 46 | function IsIdCard(idcard) |
4 | { | 47 | { |
5 | idcard = idcard.toUpperCase(); | 48 | idcard = idcard.toUpperCase(); | ... | ... |
File moved
1 | -(function() { | 1 | +(function () { |
2 | // iframe下更新数据,并跳转到页面 | 2 | // iframe下更新数据,并跳转到页面 |
3 | if (window.top != window.self) { | 3 | if (window.top != window.self) { |
4 | try { | 4 | try { |
... | @@ -22,23 +22,23 @@ | ... | @@ -22,23 +22,23 @@ |
22 | $(response).appendTo($('body .mask')); | 22 | $(response).appendTo($('body .mask')); |
23 | } | 23 | } |
24 | // Home模块 | 24 | // Home模块 |
25 | - var Home = function(modId) { | 25 | + var Home = function (modId) { |
26 | Module.call(this, modId); | 26 | Module.call(this, modId); |
27 | } | 27 | } |
28 | // 继承基础模块 | 28 | // 继承基础模块 |
29 | Core.inherit(Home, Module); | 29 | Core.inherit(Home, Module); |
30 | 30 | ||
31 | - Home.prototype.bind = function() { | 31 | + Home.prototype.bind = function () { |
32 | // 绑定模块事件到section | 32 | // 绑定模块事件到section |
33 | var that = this; | 33 | var that = this; |
34 | - that.$c.on('click', '.op-logout', function(e) { | 34 | + that.$c.on('click', '.op-logout', function (e) { |
35 | e.preventDefault(); | 35 | e.preventDefault(); |
36 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, | 36 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, |
37 | // that); | 37 | // that); |
38 | that.logout_cb(); | 38 | that.logout_cb(); |
39 | return false; | 39 | return false; |
40 | }); | 40 | }); |
41 | - that.$c.on('click', 'label.help', function(e) { | 41 | + that.$c.on('click', 'label.help', function (e) { |
42 | e.preventDefault(); | 42 | e.preventDefault(); |
43 | e.stopPropagation(); | 43 | e.stopPropagation(); |
44 | /* | 44 | /* |
... | @@ -49,50 +49,54 @@ | ... | @@ -49,50 +49,54 @@ |
49 | Core.showMod('help'); | 49 | Core.showMod('help'); |
50 | return false; | 50 | return false; |
51 | }); | 51 | }); |
52 | + that.$c.on("click", ".js-enter-game", function (e) {//强制进入实名认证界面 | ||
53 | + e.stopPropagation(); | ||
54 | + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
55 | + }); | ||
52 | } | 56 | } |
53 | 57 | ||
54 | - Home.prototype.logout_cb = function(data) { | 58 | + Home.prototype.logout_cb = function (data) { |
55 | Core.updateData(); | 59 | Core.updateData(); |
56 | Core.clearMods(); | 60 | Core.clearMods(); |
57 | Core.showMod('login'); | 61 | Core.showMod('login'); |
58 | 62 | ||
59 | } | 63 | } |
60 | - Home.prototype.show_after = function(){ | 64 | + Home.prototype.show_after = function () { |
61 | - $('#login').hide() | 65 | + $('#login').hide(); |
62 | } | 66 | } |
63 | Core.registerMod('home', Home); | 67 | Core.registerMod('home', Home); |
64 | 68 | ||
65 | // 帮助信息模块 | 69 | // 帮助信息模块 |
66 | - var Help = function(modId) { | 70 | + var Help = function (modId) { |
67 | Module.call(this, modId); | 71 | Module.call(this, modId); |
68 | } | 72 | } |
69 | Core.inherit(Help, Module); | 73 | Core.inherit(Help, Module); |
70 | Core.registerMod('help', Help); | 74 | Core.registerMod('help', Help); |
71 | 75 | ||
72 | // 注册协议 | 76 | // 注册协议 |
73 | - var Agreement = function(modId) { | 77 | + var Agreement = function (modId) { |
74 | Module.call(this, modId); | 78 | Module.call(this, modId); |
75 | } | 79 | } |
76 | Core.inherit(Agreement, Module); | 80 | Core.inherit(Agreement, Module); |
77 | - Agreement.prototype.bind = function() { | 81 | + Agreement.prototype.bind = function () { |
78 | var that = this; | 82 | var that = this; |
79 | var checkbox = that.$c.find(".checkbox"); | 83 | var checkbox = that.$c.find(".checkbox"); |
80 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); | 84 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); |
81 | 85 | ||
82 | - that.$c.on("click",checkbox,function(e){ | 86 | + that.$c.on("click", checkbox, function (e) { |
83 | - if(checkbox.hasClass('checkbox-2')){ | 87 | + if (checkbox.hasClass('checkbox-2')) { |
84 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | 88 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); |
85 | checkbox_type.addClass("checkbx"); | 89 | checkbox_type.addClass("checkbx"); |
86 | - }else{ | 90 | + } else { |
87 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); | 91 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); |
88 | checkbox_type.removeClass("checkbx"); | 92 | checkbox_type.removeClass("checkbx"); |
89 | } | 93 | } |
90 | }); | 94 | }); |
91 | 95 | ||
92 | 96 | ||
93 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 97 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
94 | - if (that.$c.find('.checkbox-2').length<=0 ){ | 98 | + if (that.$c.find('.checkbox-2').length <= 0) { |
95 | - Core.showTips('已阅读请打勾',1); | 99 | + Core.showTips('已阅读请打勾', 1); |
96 | return false; | 100 | return false; |
97 | } | 101 | } |
98 | 102 | ||
... | @@ -102,16 +106,16 @@ | ... | @@ -102,16 +106,16 @@ |
102 | 106 | ||
103 | 107 | ||
104 | // Login模块 | 108 | // Login模块 |
105 | - var Login = function(modId) { | 109 | + var Login = function (modId) { |
106 | this.other_login = true; | 110 | this.other_login = true; |
107 | Module.call(this, modId); | 111 | Module.call(this, modId); |
108 | } | 112 | } |
109 | // 继承基础模块 | 113 | // 继承基础模块 |
110 | Core.inherit(Login, Module); | 114 | Core.inherit(Login, Module); |
111 | 115 | ||
112 | - Login.prototype.bind = function() { | 116 | + Login.prototype.bind = function () { |
113 | var that = this; | 117 | var that = this; |
114 | - that.$c.on('click', 'input[type=submit],.submit', function(e) { | 118 | + that.$c.on('click', 'input[type=submit],.submit', function (e) { |
115 | e.preventDefault(); | 119 | e.preventDefault(); |
116 | if (that.$c.find('.eg')[0].checked == false) { | 120 | if (that.$c.find('.eg')[0].checked == false) { |
117 | // 直接进入游戏 | 121 | // 直接进入游戏 |
... | @@ -123,12 +127,12 @@ | ... | @@ -123,12 +127,12 @@ |
123 | } | 127 | } |
124 | return false; | 128 | return false; |
125 | }); | 129 | }); |
126 | - that.$c.on('click', '.drop-down', function(e) { | 130 | + that.$c.on('click', '.drop-down', function (e) { |
127 | e.preventDefault(); | 131 | e.preventDefault(); |
128 | that.$c.find('.pull-box').toggle(); | 132 | that.$c.find('.pull-box').toggle(); |
129 | return false; | 133 | return false; |
130 | }); | 134 | }); |
131 | - that.$c.on('click', 'ul.drop-ul li a', function(e) { | 135 | + that.$c.on('click', 'ul.drop-ul li a', function (e) { |
132 | e.preventDefault(); | 136 | e.preventDefault(); |
133 | that.$c.find('input[name=username]').val( | 137 | that.$c.find('input[name=username]').val( |
134 | $(e.target).html()); | 138 | $(e.target).html()); |
... | @@ -137,7 +141,7 @@ | ... | @@ -137,7 +141,7 @@ |
137 | 141 | ||
138 | return false; | 142 | return false; |
139 | }) | 143 | }) |
140 | - that.$c.on('click', '.op-guest', function(e) { | 144 | + that.$c.on('click', '.op-guest', function (e) { |
141 | e.preventDefault(); | 145 | e.preventDefault(); |
142 | var _name = localStorage.getItem('guest_n'); | 146 | var _name = localStorage.getItem('guest_n'); |
143 | var _pwd = localStorage.getItem('guest_p'); | 147 | var _pwd = localStorage.getItem('guest_p'); |
... | @@ -154,7 +158,7 @@ | ... | @@ -154,7 +158,7 @@ |
154 | } | 158 | } |
155 | return false; | 159 | return false; |
156 | }); | 160 | }); |
157 | - that.$c.on('click', '.iframe', function(e) { | 161 | + that.$c.on('click', '.iframe', function (e) { |
158 | e.preventDefault(); | 162 | e.preventDefault(); |
159 | var src = $(this).attr('href'); | 163 | var src = $(this).attr('href'); |
160 | var title = $(this).attr('title'); | 164 | var title = $(this).attr('title'); |
... | @@ -169,10 +173,10 @@ | ... | @@ -169,10 +173,10 @@ |
169 | 173 | ||
170 | } | 174 | } |
171 | 175 | ||
172 | - Login.prototype.cache = function(n, p) { | 176 | + Login.prototype.cache = function (n, p) { |
173 | var name = n ? n : this.$c.find('input[name=username]').val(), | 177 | var name = n ? n : this.$c.find('input[name=username]').val(), |
174 | password = p ? p : this.$c.find('input[name=password]').val(), | 178 | password = p ? p : this.$c.find('input[name=password]').val(), |
175 | - name_ary,index_ary,firstUser; | 179 | + name_ary, index_ary, firstUser; |
176 | var _d = localStorage.getItem('user_names'); | 180 | var _d = localStorage.getItem('user_names'); |
177 | if (_d) { | 181 | if (_d) { |
178 | name_ary = JSON.parse(_d); | 182 | name_ary = JSON.parse(_d); |
... | @@ -182,12 +186,12 @@ | ... | @@ -182,12 +186,12 @@ |
182 | index_ary = JSON.parse(_i); | 186 | index_ary = JSON.parse(_i); |
183 | } | 187 | } |
184 | 188 | ||
185 | - if(index_ary == null){ | 189 | + if (index_ary == null) { |
186 | index_ary = []; | 190 | index_ary = []; |
187 | index_ary.unshift(name); | 191 | index_ary.unshift(name); |
188 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 192 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
189 | - }else{ | 193 | + } else { |
190 | - if($.inArray(name,index_ary) == -1){ | 194 | + if ($.inArray(name, index_ary) == -1) { |
191 | index_ary.unshift(name); | 195 | index_ary.unshift(name); |
192 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 196 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
193 | } | 197 | } |
... | @@ -214,26 +218,25 @@ | ... | @@ -214,26 +218,25 @@ |
214 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); | 218 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); |
215 | 219 | ||
216 | } | 220 | } |
217 | - Login.prototype.login_cb = function(result) { | 221 | + Login.prototype.login_cb = function (result) { |
218 | Core.updateData(result.msg); | 222 | Core.updateData(result.msg); |
219 | // 显示一个登录成功信息,并跳转到home | 223 | // 显示一个登录成功信息,并跳转到home |
220 | Core.first_user = this.$c.find('[name="username"]').val() | 224 | Core.first_user = this.$c.find('[name="username"]').val() |
221 | Core.first_password = this.$c.find('[name="password"]').val() | 225 | Core.first_password = this.$c.find('[name="password"]').val() |
222 | this.cache(); | 226 | this.cache(); |
223 | - Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); | 227 | + Core.showTips('成功登录,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); |
224 | - | ||
225 | Core.updateMod('home'); | 228 | Core.updateMod('home'); |
226 | } | 229 | } |
227 | - Login.prototype.login_eg_cb = function(result) { | 230 | + Login.prototype.login_eg_cb = function (result) { |
228 | Core.updateData(result.msg); | 231 | Core.updateData(result.msg); |
229 | // 跳转进入游戏 | 232 | // 跳转进入游戏 |
230 | this.cache(); | 233 | this.cache(); |
231 | - Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏'); | 234 | + Core.showTips('成功登录,欢迎使用' + Core.PLATFORM_NAME + '游戏平台, 正在进入游戏'); |
232 | - setTimeout(function() { | 235 | + setTimeout(function () { |
233 | Core.finishLogin(); | 236 | Core.finishLogin(); |
234 | }, 1000); | 237 | }, 1000); |
235 | } | 238 | } |
236 | - Login.prototype.guest_cb = function(data) { | 239 | + Login.prototype.guest_cb = function (data) { |
237 | Core.updateData(data.msg); | 240 | Core.updateData(data.msg); |
238 | //保存游客用户名和密码到localstorage | 241 | //保存游客用户名和密码到localstorage |
239 | localStorage.setItem('guest_n', data.msg.username); | 242 | localStorage.setItem('guest_n', data.msg.username); |
... | @@ -244,15 +247,15 @@ | ... | @@ -244,15 +247,15 @@ |
244 | Core.showTips("游客登录成功,请及时修改帐号和密码。", true); | 247 | Core.showTips("游客登录成功,请及时修改帐号和密码。", true); |
245 | } | 248 | } |
246 | 249 | ||
247 | - Login.prototype.show_after = function() { | 250 | + Login.prototype.show_after = function () { |
248 | var user_indexs = localStorage.getItem('user_indexs'), | 251 | var user_indexs = localStorage.getItem('user_indexs'), |
249 | names = localStorage.getItem('user_names'); | 252 | names = localStorage.getItem('user_names'); |
250 | var loginUserName = $("input[name='loginUserName']").val(), | 253 | var loginUserName = $("input[name='loginUserName']").val(), |
251 | loginPassword = $("input[name='loginPassword']").val(), | 254 | loginPassword = $("input[name='loginPassword']").val(), |
252 | initUserName = $("input[name='initUserName']").val(); | 255 | initUserName = $("input[name='initUserName']").val(); |
253 | - this.$c.find(".forgetpsw").click(function(){ | 256 | + this.$c.find(".forgetpsw").click(function () { |
254 | - $(".pwd_box").children(".step-tab").css("display","block"); | 257 | + $(".pwd_box").children(".step-tab").css("display", "block"); |
255 | - $(".pwd_box").children(".step-box").css("display","none"); | 258 | + $(".pwd_box").children(".step-box").css("display", "none"); |
256 | }); | 259 | }); |
257 | var names = JSON.parse(names); | 260 | var names = JSON.parse(names); |
258 | var userIdx = JSON.parse(user_indexs); | 261 | var userIdx = JSON.parse(user_indexs); |
... | @@ -263,28 +266,27 @@ | ... | @@ -263,28 +266,27 @@ |
263 | this.$c.find('.drop-down').show(); | 266 | this.$c.find('.drop-down').show(); |
264 | var lis = ''; | 267 | var lis = ''; |
265 | 268 | ||
266 | - for(var ele = 0,l = userIdx.length;ele<l;ele++){ | 269 | + for (var ele = 0, l = userIdx.length; ele < l; ele++) { |
267 | lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>'; | 270 | lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>'; |
268 | } | 271 | } |
269 | 272 | ||
270 | this.$c.find('.drop-ul').html(lis); | 273 | this.$c.find('.drop-ul').html(lis); |
271 | 274 | ||
272 | - if(loginUserName != ""){ | 275 | + if (loginUserName != "") { |
273 | this.$c.find("input#js_login_username").val(loginUserName); | 276 | this.$c.find("input#js_login_username").val(loginUserName); |
274 | - }else if(initUserName != ""){ | 277 | + } else if (initUserName != "") { |
275 | this.$c.find("input#js_login_username").val(initUserName); | 278 | this.$c.find("input#js_login_username").val(initUserName); |
276 | this.$c.find("input#js_login_password").val(Core.user_names[initUserName]); | 279 | this.$c.find("input#js_login_password").val(Core.user_names[initUserName]); |
277 | } | 280 | } |
278 | 281 | ||
279 | - }else{ | 282 | + } else { |
280 | this.$c.find("input#js_login_username").val(Core.first_user); | 283 | this.$c.find("input#js_login_username").val(Core.first_user); |
281 | this.$c.find("input#js_login_password").val(Core.first_password); | 284 | this.$c.find("input#js_login_password").val(Core.first_password); |
282 | } | 285 | } |
283 | if (Core.Data.other_login && this.other_login) { | 286 | if (Core.Data.other_login && this.other_login) { |
284 | - if(Core.Data.other_login.length > 0){ | 287 | + if (Core.Data.other_login.length > 0) { |
285 | this.$c.find(".other-login-bx").removeClass("hide"); | 288 | this.$c.find(".other-login-bx").removeClass("hide"); |
286 | } | 289 | } |
287 | - | ||
288 | //设置第三方登录显示 | 290 | //设置第三方登录显示 |
289 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { | 291 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { |
290 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); | 292 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); |
... | @@ -292,12 +294,12 @@ | ... | @@ -292,12 +294,12 @@ |
292 | this.other_login = false; | 294 | this.other_login = false; |
293 | } | 295 | } |
294 | 296 | ||
295 | - if(loginPassword != ""){ | 297 | + if (loginPassword != "") { |
296 | this.$c.find("input#js_login_password").val(loginPassword); | 298 | this.$c.find("input#js_login_password").val(loginPassword); |
297 | } | 299 | } |
298 | 300 | ||
299 | var old_pwd = localStorage.getItem('old_pwd'); | 301 | var old_pwd = localStorage.getItem('old_pwd'); |
300 | - if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){ | 302 | + 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()]); | 303 | 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()); | 304 | console.log($("input#js_login_password").val()); |
303 | } | 305 | } |
... | @@ -309,22 +311,22 @@ | ... | @@ -309,22 +311,22 @@ |
309 | Core.registerMod('login', Login); | 311 | Core.registerMod('login', Login); |
310 | 312 | ||
311 | // Login_before模块 | 313 | // Login_before模块 |
312 | - var Login_before = function(modId) { | 314 | + var Login_before = function (modId) { |
313 | this.other_login = true; | 315 | this.other_login = true; |
314 | Module.call(this, modId); | 316 | Module.call(this, modId); |
315 | } | 317 | } |
316 | // 继承基础模块 | 318 | // 继承基础模块 |
317 | Core.inherit(Login_before, Module); | 319 | Core.inherit(Login_before, Module); |
318 | 320 | ||
319 | - Login_before.prototype.bind = function() { | 321 | + Login_before.prototype.bind = function () { |
320 | var that = this; | 322 | var that = this; |
321 | - that.$c.on('click', '.login_case2', function(e) { | 323 | + that.$c.on('click', '.login_case2', function (e) { |
322 | e.preventDefault(); | 324 | e.preventDefault(); |
323 | Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that); | 325 | Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that); |
324 | return false; | 326 | return false; |
325 | }); | 327 | }); |
326 | 328 | ||
327 | - that.$c.on('click', '.login_case_qq', function(e){ | 329 | + that.$c.on('click', '.login_case_qq', function (e) { |
328 | e.preventDefault(); | 330 | e.preventDefault(); |
329 | 331 | ||
330 | var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id; | 332 | var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id; |
... | @@ -340,13 +342,13 @@ | ... | @@ -340,13 +342,13 @@ |
340 | //使用Login模块的业务逻辑 | 342 | //使用Login模块的业务逻辑 |
341 | Login_before.prototype.cache = Login.prototype.cache; | 343 | Login_before.prototype.cache = Login.prototype.cache; |
342 | Login_before.prototype.guest_cb = Login.prototype.guest_cb; | 344 | Login_before.prototype.guest_cb = Login.prototype.guest_cb; |
343 | - Login_before.prototype.show_after = function() { | 345 | + Login_before.prototype.show_after = function () { |
344 | if (Core.Data.other_login && this.other_login) { | 346 | if (Core.Data.other_login && this.other_login) { |
345 | //设置第三方登录显示 | 347 | //设置第三方登录显示 |
346 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { | 348 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { |
347 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); | 349 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); |
348 | } | 350 | } |
349 | - if(Core.Data.other_login.length == 0){ | 351 | + if (Core.Data.other_login.length == 0) { |
350 | //没有可用的第三方登录,直接跳转到home界面 | 352 | //没有可用的第三方登录,直接跳转到home界面 |
351 | Core.updateMod('home'); | 353 | Core.updateMod('home'); |
352 | } | 354 | } |
... | @@ -357,57 +359,67 @@ | ... | @@ -357,57 +359,67 @@ |
357 | Core.registerMod('login_before', Login_before); | 359 | Core.registerMod('login_before', Login_before); |
358 | 360 | ||
359 | // Register模块 | 361 | // Register模块 |
360 | - var Register = function(modId) { | 362 | + var Register = function (modId) { |
361 | this._username = null | 363 | this._username = null |
362 | this._pwd = null | 364 | this._pwd = null |
363 | Module.call(this, modId); | 365 | Module.call(this, modId); |
364 | } | 366 | } |
365 | // 继承基础模块 | 367 | // 继承基础模块 |
366 | Core.inherit(Register, Module); | 368 | Core.inherit(Register, Module); |
367 | - Register.prototype.bind = function() { | 369 | + Register.prototype.bind = function () { |
368 | var that = this; | 370 | var that = this; |
369 | var checkbox = that.$c.find(".checkbox"); | 371 | var checkbox = that.$c.find(".checkbox"); |
370 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); | 372 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); |
371 | 373 | ||
372 | - that.$c.on("click",checkbox,function(e){ | 374 | + that.$c.on("click", checkbox, function (e) { |
373 | - if(checkbox.hasClass('checkbox-2')){ | 375 | + if (checkbox.hasClass('checkbox-2')) { |
374 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | 376 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); |
375 | checkbox_type.addClass("checkbx"); | 377 | checkbox_type.addClass("checkbx"); |
376 | - }else{ | 378 | + } else { |
377 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); | 379 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); |
378 | checkbox_type.removeClass("checkbx"); | 380 | checkbox_type.removeClass("checkbx"); |
379 | } | 381 | } |
380 | }); | 382 | }); |
381 | 383 | ||
382 | 384 | ||
383 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 385 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
386 | + var passWordReg = /^[0-9a-zA-Z]+$/; | ||
384 | e.preventDefault(); | 387 | e.preventDefault(); |
385 | - if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | 388 | + if (/[A-Z]/.test(that.$c.find("input[name='username']").val())) { |
386 | Core.showTips("账号不能有大写字母!"); | 389 | Core.showTips("账号不能有大写字母!"); |
387 | - }else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){ | 390 | + } else if (/[A-Z]/.test(that.$c.find("input[name='password']").val())) { |
388 | Core.showTips("密码不能有大写字母!"); | 391 | Core.showTips("密码不能有大写字母!"); |
389 | - }else if(!that.$c.find('.checkbox-2').length>0){ | 392 | + } else if (that.$c.find("input[name='password']").val().length < 6 || that.$c.find("input[name='password']").val().length > 16) { |
390 | - Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1); | 393 | + Core.showTips("密码长度为6-16位字符!"); |
391 | - }else{ | 394 | + } else if (!that.$c.find('.checkbox-2').length > 0) { |
395 | + Core.showTips('请同意' + Core.PLATFORM_NAME + '网络协议', 1); | ||
396 | + } else if (!passWordReg.test(that.$c.find("input[name='password']").val())) { | ||
397 | + Core.showTips('请输入数字字母组成的密码!', true); | ||
398 | + return false; | ||
399 | + } else { | ||
392 | //如果是游客的话则调用安卓截屏方法 | 400 | //如果是游客的话则调用安卓截屏方法 |
393 | - if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ | 401 | + 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(); | 402 | window.android.screenShot(); |
395 | } | 403 | } |
404 | + $(this).attr("disabled", true); | ||
405 | + $(this).css({"background": "#999"}); | ||
406 | + $(this).parent("li").css({"background": "#999"}); | ||
407 | + | ||
396 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); | 408 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); |
397 | } | 409 | } |
398 | return false; | 410 | return false; |
399 | }); | 411 | }); |
400 | 412 | ||
401 | - that.$c.on('change','[name="username"]',function(e){ | 413 | + that.$c.on('change', '[name="username"]', function (e) { |
402 | - if (this.value == that.$c.find('[name="old_usernmae"]').val()){ | 414 | + if (this.value == that.$c.find('[name="old_usernmae"]').val()) { |
403 | that.$c.find('[name="type"]').val(-1) | 415 | that.$c.find('[name="type"]').val(-1) |
404 | - } else{ | 416 | + } else { |
405 | that.$c.find('[name="type"]').val(0) | 417 | that.$c.find('[name="type"]').val(0) |
406 | } | 418 | } |
407 | }) | 419 | }) |
408 | 420 | ||
409 | } | 421 | } |
410 | - Register.prototype.set_random = function(){ | 422 | + Register.prototype.set_random = function () { |
411 | var that = this; | 423 | var that = this; |
412 | var random_name = 'yy' + Math.random().toString(36).substr(-2) + new Date().getTime().toString(36).substr(-4) | 424 | 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) | 425 | var random_passwd = Math.random().toString(36).substr(-6) |
... | @@ -415,39 +427,57 @@ | ... | @@ -415,39 +427,57 @@ |
415 | that.$c.find('[name="old_usernmae"]').val(random_name) | 427 | that.$c.find('[name="old_usernmae"]').val(random_name) |
416 | that.$c.find('[name="password"]').val(random_passwd) | 428 | that.$c.find('[name="password"]').val(random_passwd) |
417 | that.$c.find('[name="type"]').val(-1) | 429 | that.$c.find('[name="type"]').val(-1) |
430 | + that.$c.find("input#btn-regist").attr('disabled', null); | ||
431 | + that.$c.find('.submit').css({"background": "#00beef"}); | ||
432 | + that.$c.find('.submit').parent("li").css({"background": "#00beef"}); | ||
418 | 433 | ||
419 | } | 434 | } |
420 | Register.prototype.cache = Login.prototype.cache; | 435 | Register.prototype.cache = Login.prototype.cache; |
421 | 436 | ||
422 | - Register.prototype.register_cb = function(result) { | 437 | + Register.prototype.register_cb = function (result) { |
423 | Core.updateData(result.msg); | 438 | Core.updateData(result.msg); |
424 | Core.first_user = this.$c.find('[name="username"]').val() | 439 | Core.first_user = this.$c.find('[name="username"]').val() |
425 | Core.first_password = this.$c.find('[name="password"]').val() | 440 | Core.first_password = this.$c.find('[name="password"]').val() |
426 | // 显示一个注册成功信息,并跳转到home | 441 | // 显示一个注册成功信息,并跳转到home |
427 | this.cache(); | 442 | this.cache(); |
428 | - Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | 443 | + if (Core.Data.compellation_name == "" && Core.Data.identity_card == "" && Core.Data.force_auth == 1) { |
444 | + Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
445 | + Core.updateMod('identityCard'); | ||
446 | + } else { | ||
447 | + Core.showTips('成功登录,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | ||
429 | Core.updateMod('home'); | 448 | Core.updateMod('home'); |
430 | } | 449 | } |
431 | - Register.prototype.show_after = function() { | 450 | + // if (Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == "") { |
451 | + // Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
452 | + // Core.updateMod('identityCard'); | ||
453 | + // }else{ | ||
454 | + // Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | ||
455 | + // Core.updateMod('home'); | ||
456 | + // } | ||
457 | + this.$c.find("input#btn-regist").attr('disabled', null); | ||
458 | + this.$c.find('.submit').css({"background": "#00beef"}); | ||
459 | + this.$c.find('.submit').parent("li").css({"background": "#00beef"}); | ||
460 | + } | ||
461 | + Register.prototype.show_after = function () { | ||
432 | this.set_random(); | 462 | this.set_random(); |
433 | } | 463 | } |
434 | Core.registerMod('register', Register); | 464 | Core.registerMod('register', Register); |
435 | 465 | ||
436 | // Mibao模块 | 466 | // Mibao模块 |
437 | - var Mibao = function(modId) { | 467 | + var Mibao = function (modId) { |
438 | Module.call(this, modId); | 468 | Module.call(this, modId); |
439 | } | 469 | } |
440 | // 继承基础模块 | 470 | // 继承基础模块 |
441 | Core.inherit(Mibao, Module); | 471 | Core.inherit(Mibao, Module); |
442 | - Mibao.prototype.bind = function() { | 472 | + Mibao.prototype.bind = function () { |
443 | var that = this; | 473 | var that = this; |
444 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 474 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
445 | e.preventDefault(); | 475 | e.preventDefault(); |
446 | Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that); | 476 | Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that); |
447 | return false; | 477 | return false; |
448 | }); | 478 | }); |
449 | } | 479 | } |
450 | - Mibao.prototype.mibao_cb = function(data) { | 480 | + Mibao.prototype.mibao_cb = function (data) { |
451 | var status_code = data.code; | 481 | var status_code = data.code; |
452 | var msg = data.msg; | 482 | var msg = data.msg; |
453 | if (0 == status_code) { | 483 | if (0 == status_code) { |
... | @@ -462,19 +492,19 @@ | ... | @@ -462,19 +492,19 @@ |
462 | Core.registerMod('mibao', Mibao); | 492 | Core.registerMod('mibao', Mibao); |
463 | 493 | ||
464 | // 找回密码模块 | 494 | // 找回密码模块 |
465 | - var Find_pwd = function(modId) { | 495 | + var Find_pwd = function (modId) { |
466 | Module.call(this, modId); | 496 | Module.call(this, modId); |
467 | } | 497 | } |
468 | Core.inherit(Find_pwd, Module); | 498 | Core.inherit(Find_pwd, Module); |
469 | - Find_pwd.prototype.bind = function() { | 499 | + Find_pwd.prototype.bind = function () { |
470 | var that = this; | 500 | var that = this; |
471 | - var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"]; | 501 | + var pwd_header = ["手机找回密码", "密保找回密码", "联系客服", "重置密码", "找回密码"]; |
472 | var pwd_header_back = { | 502 | var pwd_header_back = { |
473 | - 0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>', | 503 | + 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>' | 504 | + 1: '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>' |
475 | }; | 505 | }; |
476 | var browser = { | 506 | var browser = { |
477 | - versions: function() { | 507 | + versions: function () { |
478 | var u = navigator.userAgent, | 508 | var u = navigator.userAgent, |
479 | app = navigator.appVersion; | 509 | app = navigator.appVersion; |
480 | return { //移动终端浏览器版本信息 | 510 | return { //移动终端浏览器版本信息 |
... | @@ -509,62 +539,62 @@ | ... | @@ -509,62 +539,62 @@ |
509 | $("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes"; | 539 | $("#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"; | 540 | $("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes"; |
511 | } | 541 | } |
512 | - that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码 | 542 | + that.$c.on("click", "#js_findPSW_getcode", function () {//找回密码获取验证码 |
513 | var $self = $(this) | 543 | var $self = $(this) |
514 | phone = $("#js_findPSW_mobile").val(); | 544 | phone = $("#js_findPSW_mobile").val(); |
515 | Core.ajax({ | 545 | Core.ajax({ |
516 | - type:"post", | 546 | + type: "post", |
517 | - url:"/sms_validate_code/?mobile="+phone, | 547 | + url: "/sms_validate_code/?mobile=" + phone, |
518 | - success:function(msg){ | 548 | + success: function (msg) { |
519 | - if(msg.length == 0){//为空(已经发送) | 549 | + if (msg.length == 0) {//为空(已经发送) |
520 | Core.showTips('验证码发送成功,请注意查收', true); | 550 | Core.showTips('验证码发送成功,请注意查收', true); |
521 | $self.addClass("disabled"); | 551 | $self.addClass("disabled"); |
522 | var counter = 60; | 552 | var counter = 60; |
523 | - var timer = setInterval(function(){ | 553 | + var timer = setInterval(function () { |
524 | - if(counter > 0){ | 554 | + if (counter > 0) { |
525 | $self.text(counter + "秒再获取"); | 555 | $self.text(counter + "秒再获取"); |
526 | - counter --; | 556 | + counter--; |
527 | - }else{ | 557 | + } else { |
528 | clearInterval(timer); | 558 | clearInterval(timer); |
529 | $self.text("获取验证码"); | 559 | $self.text("获取验证码"); |
530 | $self.removeClass("disabled"); | 560 | $self.removeClass("disabled"); |
531 | } | 561 | } |
532 | - },1000); | 562 | + }, 1000); |
533 | - }else{ | 563 | + } else { |
534 | Core.showTips(msg, true); | 564 | Core.showTips(msg, true); |
535 | } | 565 | } |
536 | } | 566 | } |
537 | }); | 567 | }); |
538 | }); | 568 | }); |
539 | - that.$c.on("click","#js_findPSW_confirm",function(){ | 569 | + that.$c.on("click", "#js_findPSW_confirm", function () { |
540 | var code = that.$c.find("#js_findPSW_ranks").val(), | 570 | var code = that.$c.find("#js_findPSW_ranks").val(), |
541 | accout = $("#js_findPSW_accout").val(), | 571 | accout = $("#js_findPSW_accout").val(), |
542 | phoneTest = $("#js_findPSW_mobile").val(), | 572 | phoneTest = $("#js_findPSW_mobile").val(), |
543 | //iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; | 573 | //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}$/; | 574 | iphoneReg = /^1(3|4|5|7|8)\d{9}$/; |
545 | - if($.trim(accout) == ""){ | 575 | + if ($.trim(accout) == "") { |
546 | Core.showTips('请输入账号!', false); | 576 | Core.showTips('请输入账号!', false); |
547 | return false; | 577 | return false; |
548 | } | 578 | } |
549 | - if($.trim(phoneTest) == ""){ | 579 | + if ($.trim(phoneTest) == "") { |
550 | Core.showTips('请输入手机号码!', false); | 580 | Core.showTips('请输入手机号码!', false); |
551 | return false; | 581 | return false; |
552 | } | 582 | } |
553 | - if(!iphoneReg.test(phoneTest)){ | 583 | + if (!iphoneReg.test(phoneTest)) { |
554 | Core.showTips('请输入11位手机号码!', false); | 584 | Core.showTips('请输入11位手机号码!', false); |
555 | return false; | 585 | return false; |
556 | } | 586 | } |
557 | - if($.trim(code) == ""){ | 587 | + if ($.trim(code) == "") { |
558 | Core.showTips('请输入验证码!', true); | 588 | Core.showTips('请输入验证码!', true); |
559 | return false; | 589 | return false; |
560 | } | 590 | } |
561 | Core.ajax({ | 591 | Core.ajax({ |
562 | - type:"post", | 592 | + type: "post", |
563 | - url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code, | 593 | + url: "/user/password_by_mobile?mobile=" + phoneTest + "&username=" + accout + "&vcode=" + code, |
564 | - data:{format:"json"}, | 594 | + data: {format: "json"}, |
565 | - dataType:"json", | 595 | + dataType: "json", |
566 | - success:function(res){ | 596 | + success: function (res) { |
567 | - if(res.code === 0){ | 597 | + if (res.code === 0) { |
568 | var message = JSON.parse(res.msg); | 598 | var message = JSON.parse(res.msg); |
569 | Core.showTips('验证成功!请设置新密码', true); | 599 | Core.showTips('验证成功!请设置新密码', true); |
570 | that.$c.find("input[name='pwd_code']").val(message.pwd_code); | 600 | that.$c.find("input[name='pwd_code']").val(message.pwd_code); |
... | @@ -572,38 +602,43 @@ | ... | @@ -572,38 +602,43 @@ |
572 | that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(3).removeClass("hide").siblings("div").addClass("hide"); | 602 | 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); | 603 | that.$c.find("#js_UserName").text(message.username); |
574 | $("input[name='loginUserName']").val(message.username); | 604 | $("input[name='loginUserName']").val(message.username); |
575 | - }else{ | 605 | + } else { |
576 | Core.showTips(res.msg, true); | 606 | Core.showTips(res.msg, true); |
577 | } | 607 | } |
578 | } | 608 | } |
579 | }); | 609 | }); |
580 | }); | 610 | }); |
581 | - that.$c.on("click","#returnhome",function(){ | 611 | + that.$c.on("click", "#returnhome", function () { |
582 | that.$c.find(".user-center span").html("找回密码"); | 612 | that.$c.find(".user-center span").html("找回密码"); |
583 | }); | 613 | }); |
584 | - that.$c.on("click","#js_confirm_resetnewpsw",function(){ | 614 | + that.$c.on("click", "#js_confirm_resetnewpsw", function () { |
585 | var NewPsw = that.$c.find("#js_reset_newpsw").val(), | 615 | var NewPsw = that.$c.find("#js_reset_newpsw").val(), |
586 | NewKey = that.$c.find("input[name='pwd_code']").val(), | 616 | NewKey = that.$c.find("input[name='pwd_code']").val(), |
617 | + passWordReg = /^[0-9a-zA-Z]+$/, | ||
587 | account = $("input[name='loginUserName']").val(); | 618 | account = $("input[name='loginUserName']").val(); |
588 | var names = localStorage.getItem('user_names'); | 619 | var names = localStorage.getItem('user_names'); |
589 | names = JSON.parse(names); | 620 | names = JSON.parse(names); |
621 | + if (!passWordReg.test(NewPsw)) { | ||
622 | + Core.showTips('请输入数字字母组成的密码!', true); | ||
623 | + return false; | ||
624 | + } | ||
590 | Core.ajax({ | 625 | Core.ajax({ |
591 | - type:"post", | 626 | + type: "post", |
592 | - url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw, | 627 | + url: "/user/reset_passwd?pwd_code=" + NewKey + "&password=" + NewPsw, |
593 | - data:{format:"json"}, | 628 | + data: {format: "json"}, |
594 | - dataType:"json", | 629 | + dataType: "json", |
595 | - success:function(res){ | 630 | + success: function (res) { |
596 | - if(res.code === 0){ | 631 | + if (res.code === 0) { |
597 | Core.showTips('重置密码成功!', true); | 632 | Core.showTips('重置密码成功!', true); |
598 | $("input[name='loginPassword']").val(NewPsw); | 633 | $("input[name='loginPassword']").val(NewPsw); |
599 | names[account] = NewPsw; | 634 | names[account] = NewPsw; |
600 | - localStorage.setItem('user_names',JSON.stringify(names)); | 635 | + localStorage.setItem('user_names', JSON.stringify(names)); |
601 | Core.user_names = names; | 636 | Core.user_names = names; |
602 | $("#js_reset_newpsw").val(""); | 637 | $("#js_reset_newpsw").val(""); |
603 | - setTimeout(function() { | 638 | + setTimeout(function () { |
604 | Core.updateMod('login'); | 639 | Core.updateMod('login'); |
605 | }, 500); | 640 | }, 500); |
606 | - }else{ | 641 | + } else { |
607 | Core.showTips(res.msg, true); | 642 | Core.showTips(res.msg, true); |
608 | } | 643 | } |
609 | } | 644 | } |
... | @@ -614,19 +649,19 @@ | ... | @@ -614,19 +649,19 @@ |
614 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); | 649 | var checkbox_type = that.$c.find("i.icon-xuanzhong"); |
615 | var checkboxInput = that.$c.find("input#js_reset_newpsw"); | 650 | var checkboxInput = that.$c.find("input#js_reset_newpsw"); |
616 | 651 | ||
617 | - that.$c.on("click",checkbox,function(e){ | 652 | + that.$c.on("click", checkbox, function (e) { |
618 | - if(checkbox.hasClass('checkbox-2')){ | 653 | + if (checkbox.hasClass('checkbox-2')) { |
619 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); | 654 | checkbox_type.parents(".checkbox").removeClass("checkbox-2"); |
620 | checkbox_type.addClass("checkbx"); | 655 | checkbox_type.addClass("checkbx"); |
621 | - checkboxInput.attr("type","password"); | 656 | + checkboxInput.attr("type", "password"); |
622 | - }else{ | 657 | + } else { |
623 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); | 658 | checkbox_type.parents(".checkbox").addClass("checkbox-2"); |
624 | checkbox_type.removeClass("checkbx"); | 659 | checkbox_type.removeClass("checkbx"); |
625 | - checkboxInput.attr("type","text"); | 660 | + checkboxInput.attr("type", "text"); |
626 | } | 661 | } |
627 | }); | 662 | }); |
628 | 663 | ||
629 | - that.$c.on('click', '.pwd_box .step-tab li a', function(e) { | 664 | + that.$c.on('click', '.pwd_box .step-tab li a', function (e) { |
630 | var ipar = $(this).parent("li"), | 665 | var ipar = $(this).parent("li"), |
631 | iIndex = ipar.index(); | 666 | iIndex = ipar.index(); |
632 | 667 | ||
... | @@ -639,20 +674,20 @@ | ... | @@ -639,20 +674,20 @@ |
639 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); | 674 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); |
640 | }); | 675 | }); |
641 | 676 | ||
642 | - that.$c.on('click', '.user-center a.back-btn', function(e) { | 677 | + 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(); | 678 | $(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show(); |
644 | that.$c.find(".user-center span").html(pwd_header[4]); | 679 | that.$c.find(".user-center span").html(pwd_header[4]); |
645 | that.$c.find(".user-center a").replaceWith(pwd_header_back[0]); | 680 | that.$c.find(".user-center a").replaceWith(pwd_header_back[0]); |
646 | }); | 681 | }); |
647 | 682 | ||
648 | - that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) { | 683 | + that.$c.on('click', '.pwd_box a.kefu_subbtn', function (e) { |
649 | $(this).parents(".step-box").hide().siblings(".step-tab").show(); | 684 | $(this).parents(".step-box").hide().siblings(".step-tab").show(); |
650 | that.$c.find(".user-center span").html(pwd_header[4]); | 685 | that.$c.find(".user-center span").html(pwd_header[4]); |
651 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); | 686 | that.$c.find(".user-center a").replaceWith(pwd_header_back[1]); |
652 | }); | 687 | }); |
653 | 688 | ||
654 | 689 | ||
655 | - that.$c.on('click', '.op-primary', function(e) { | 690 | + that.$c.on('click', '.op-primary', function (e) { |
656 | 691 | ||
657 | var $form = that.$c.find('.fn-icon-2'); | 692 | var $form = that.$c.find('.fn-icon-2'); |
658 | e.preventDefault(); | 693 | e.preventDefault(); |
... | @@ -662,7 +697,7 @@ | ... | @@ -662,7 +697,7 @@ |
662 | }); | 697 | }); |
663 | 698 | ||
664 | 699 | ||
665 | - that.$c.on('click', '.step-tab .function-list-title', function(e) { | 700 | + that.$c.on('click', '.step-tab .function-list-title', function (e) { |
666 | 701 | ||
667 | that.$c.find('.step-tab .function-list-content').hide(); | 702 | that.$c.find('.step-tab .function-list-content').hide(); |
668 | $(e.target).parent().next().show(); | 703 | $(e.target).parent().next().show(); |
... | @@ -675,7 +710,7 @@ | ... | @@ -675,7 +710,7 @@ |
675 | } | 710 | } |
676 | }); | 711 | }); |
677 | } | 712 | } |
678 | - Find_pwd.prototype.findpwd_cb = function(data) { | 713 | + Find_pwd.prototype.findpwd_cb = function (data) { |
679 | var code = data.code; | 714 | var code = data.code; |
680 | var msg = data.msg; | 715 | var msg = data.msg; |
681 | 716 | ||
... | @@ -687,7 +722,7 @@ | ... | @@ -687,7 +722,7 @@ |
687 | // 回答密保 | 722 | // 回答密保 |
688 | Core.Data.ans_temp = msg; | 723 | Core.Data.ans_temp = msg; |
689 | Core.updateMod('answer_question'); | 724 | Core.updateMod('answer_question'); |
690 | - Core.showTips('加载成功.', true,100); | 725 | + Core.showTips('加载成功.', true, 100); |
691 | } else { | 726 | } else { |
692 | // 通过邮箱 | 727 | // 通过邮箱 |
693 | Core.showTips(msg, true); | 728 | Core.showTips(msg, true); |
... | @@ -695,42 +730,42 @@ | ... | @@ -695,42 +730,42 @@ |
695 | } | 730 | } |
696 | 731 | ||
697 | } | 732 | } |
698 | - Find_pwd.prototype.show_after = function() { | 733 | + Find_pwd.prototype.show_after = function () { |
699 | var that = this; | 734 | var that = this; |
700 | this.$c.find('input[name="username"]').val($('#login input[name="username"]').val()); | 735 | this.$c.find('input[name="username"]').val($('#login input[name="username"]').val()); |
701 | this.$c.find('.sms').html(Core.Data.mobile_helper_number); | 736 | this.$c.find('.sms').html(Core.Data.mobile_helper_number); |
702 | 737 | ||
703 | var kefu = Core.Data.kefu_info, | 738 | var kefu = Core.Data.kefu_info, |
704 | kefuInfo = JSON.stringify(kefu); | 739 | kefuInfo = JSON.stringify(kefu); |
705 | - if(typeof(kefuInfo) !== "undefined"){ | 740 | + if (typeof(kefuInfo) !== "undefined") { |
706 | - localStorage.setItem("kefuInfo",kefuInfo); | 741 | + localStorage.setItem("kefuInfo", kefuInfo); |
707 | - }else{ | 742 | + } else { |
708 | - that.$c.find(".pwd_txt .default_text").css("display","block"); | 743 | + that.$c.find(".pwd_txt .default_text").css("display", "block"); |
709 | - that.$c.find(".pwd_txt .get_text").html("").css("display","none"); | 744 | + that.$c.find(".pwd_txt .get_text").html("").css("display", "none"); |
710 | } | 745 | } |
711 | var getItem = localStorage.getItem("kefuInfo"), | 746 | var getItem = localStorage.getItem("kefuInfo"), |
712 | kefu_info = JSON.parse(getItem), | 747 | kefu_info = JSON.parse(getItem), |
713 | isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/, | 748 | 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})$/; | 749 | + 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 | - | 750 | + |
716 | - if(kefu_info == ""){ | 751 | + if (kefu_info == "") { |
717 | - that.$c.find(".pwd_txt .default_text").css("display","block"); | 752 | + that.$c.find(".pwd_txt .default_text").css("display", "block"); |
718 | - that.$c.find(".pwd_txt .get_text").html("").css("display","none"); | 753 | + that.$c.find(".pwd_txt .get_text").html("").css("display", "none"); |
719 | - }else{ | 754 | + } else { |
720 | - that.$c.find(".pwd_txt .default_text").css("display","none"); | 755 | + that.$c.find(".pwd_txt .default_text").css("display", "none"); |
721 | - that.$c.find(".pwd_txt .get_text").html("").css("display","block"); | 756 | + that.$c.find(".pwd_txt .get_text").html("").css("display", "block"); |
722 | - for(var key in kefu_info){ | 757 | + for (var key in kefu_info) { |
723 | var reg = /\d+/g, | 758 | var reg = /\d+/g, |
724 | str = kefu_info[key], | 759 | str = kefu_info[key], |
725 | ms = str.match(reg), | 760 | ms = str.match(reg), |
726 | result = ms.join("-"); | 761 | result = ms.join("-"); |
727 | 762 | ||
728 | - if( isMob.test(result) || isPhone.test(result) ){ | 763 | + if (isMob.test(result) || isPhone.test(result)) { |
729 | - var hrefTel = '<a href="tel:'+result+'">'+result+'</a>', | 764 | + var hrefTel = '<a href="tel:' + result + '">' + result + '</a>', |
730 | stringTel = str.split(":")[0]; | 765 | stringTel = str.split(":")[0]; |
731 | - that.$c.find(".pwd_txt .get_text").append('<p>'+stringTel+':'+hrefTel+'</p>'); | 766 | + that.$c.find(".pwd_txt .get_text").append('<p>' + stringTel + ':' + hrefTel + '</p>'); |
732 | - }else{ | 767 | + } else { |
733 | - that.$c.find(".pwd_txt .get_text").append('<p>'+kefu_info[key]+'</p>'); | 768 | + that.$c.find(".pwd_txt .get_text").append('<p>' + kefu_info[key] + '</p>'); |
734 | } | 769 | } |
735 | } | 770 | } |
736 | } | 771 | } |
... | @@ -738,30 +773,30 @@ | ... | @@ -738,30 +773,30 @@ |
738 | Core.registerMod('find_pwd', Find_pwd); | 773 | Core.registerMod('find_pwd', Find_pwd); |
739 | 774 | ||
740 | // Mibao模块 | 775 | // Mibao模块 |
741 | - var Bind = function(modId) { | 776 | + var Bind = function (modId) { |
742 | Module.call(this, modId); | 777 | Module.call(this, modId); |
743 | } | 778 | } |
744 | // 继承基础模块 | 779 | // 继承基础模块 |
745 | Core.inherit(Bind, Module); | 780 | Core.inherit(Bind, Module); |
746 | - Bind.prototype.bind = function() { | 781 | + Bind.prototype.bind = function () { |
747 | var that = this; | 782 | var that = this; |
748 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 783 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
749 | e.preventDefault(); | 784 | e.preventDefault(); |
750 | Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that); | 785 | Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that); |
751 | return false; | 786 | return false; |
752 | }); | 787 | }); |
753 | - that.$c.on('click', '#bind-mobile', function(e) { | 788 | + that.$c.on('click', '#bind-mobile', function (e) { |
754 | e.preventDefault(); | 789 | e.preventDefault(); |
755 | that.$c.find('#bind_phone_form').show(); | 790 | that.$c.find('#bind_phone_form').show(); |
756 | return false; | 791 | return false; |
757 | }); | 792 | }); |
758 | - that.$c.on('click', '#bind-check', function(e) { | 793 | + that.$c.on('click', '#bind-check', function (e) { |
759 | e.preventDefault(); | 794 | e.preventDefault(); |
760 | Core.ajax_do($(e.target), that.bind_ch, that); | 795 | Core.ajax_do($(e.target), that.bind_ch, that); |
761 | return false; | 796 | return false; |
762 | }); | 797 | }); |
763 | } | 798 | } |
764 | - Bind.prototype.bind_ch = function(data) { | 799 | + Bind.prototype.bind_ch = function (data) { |
765 | var code = data.code; | 800 | var code = data.code; |
766 | Core.Data.bind_statu = data.msg.bind_statu; | 801 | Core.Data.bind_statu = data.msg.bind_statu; |
767 | if (data.msg.bind_statu == 1) { | 802 | if (data.msg.bind_statu == 1) { |
... | @@ -769,7 +804,7 @@ | ... | @@ -769,7 +804,7 @@ |
769 | } | 804 | } |
770 | Core.updateMod('bind'); | 805 | Core.updateMod('bind'); |
771 | } | 806 | } |
772 | - Bind.prototype.bind_cb = function(data) { | 807 | + Bind.prototype.bind_cb = function (data) { |
773 | 808 | ||
774 | var code = data.code; | 809 | var code = data.code; |
775 | if (code != 0) | 810 | if (code != 0) |
... | @@ -782,87 +817,87 @@ | ... | @@ -782,87 +817,87 @@ |
782 | 817 | ||
783 | this.$c.find('#bind_phone_form').hide(); | 818 | this.$c.find('#bind_phone_form').hide(); |
784 | this.isValid = false; | 819 | this.isValid = false; |
785 | - setTimeout(function() { | 820 | + setTimeout(function () { |
786 | Core.updateMod('bind'); | 821 | Core.updateMod('bind'); |
787 | }, 1000); | 822 | }, 1000); |
788 | } | 823 | } |
789 | Core.registerMod('bind', Bind); | 824 | Core.registerMod('bind', Bind); |
790 | 825 | ||
791 | //绑定手机模块 | 826 | //绑定手机模块 |
792 | - var BindMobile = function(modId){ | 827 | + var BindMobile = function (modId) { |
793 | Module.call(this, modId); | 828 | Module.call(this, modId); |
794 | } | 829 | } |
795 | Core.inherit(BindMobile, Module); | 830 | Core.inherit(BindMobile, Module); |
796 | - BindMobile.prototype.bind = function(){ | 831 | + BindMobile.prototype.bind = function () { |
797 | var that = this; | 832 | var that = this; |
798 | var SendMsg = { | 833 | var SendMsg = { |
799 | - mobileReg : function(iphone){ | 834 | + mobileReg: function (iphone) { |
800 | var iphoneReg = /^1(3|4|5|7|8)\d{9}$/, | 835 | var iphoneReg = /^1(3|4|5|7|8)\d{9}$/, |
801 | phoneTest = $(iphone).val(); | 836 | phoneTest = $(iphone).val(); |
802 | - if($.trim(phoneTest) == ""){ | 837 | + if ($.trim(phoneTest) == "") { |
803 | Core.showTips('请输入手机号码!', false); | 838 | Core.showTips('请输入手机号码!', false); |
804 | return false; | 839 | return false; |
805 | } | 840 | } |
806 | - if(!iphoneReg.test(phoneTest)){ | 841 | + if (!iphoneReg.test(phoneTest)) { |
807 | Core.showTips('请输入11位手机号码!', false); | 842 | Core.showTips('请输入11位手机号码!', false); |
808 | return false; | 843 | return false; |
809 | } | 844 | } |
810 | }, | 845 | }, |
811 | - send : function(element,iphone){ | 846 | + send: function (element, iphone) { |
812 | var self = this, | 847 | var self = this, |
813 | ele = that.$c; | 848 | ele = that.$c; |
814 | - ele.on("click",element,function(){ | 849 | + ele.on("click", element, function () { |
815 | var phoneTest = $(iphone).val(); | 850 | var phoneTest = $(iphone).val(); |
816 | - if(self.mobileReg(iphone) == false) return false; | 851 | + if (self.mobileReg(iphone) == false) return false; |
817 | Core.ajax({ | 852 | Core.ajax({ |
818 | - type:"post", | 853 | + type: "post", |
819 | - url:"/sms_validate_code/?mobile="+phoneTest, | 854 | + url: "/sms_validate_code/?mobile=" + phoneTest, |
820 | - success:function(msg){ | 855 | + success: function (msg) { |
821 | - if(msg.length == 0){//为空(已经发送) | 856 | + if (msg.length == 0) {//为空(已经发送) |
822 | Core.showTips('验证码发送成功,请注意查收', true); | 857 | Core.showTips('验证码发送成功,请注意查收', true); |
823 | $(element).addClass("disabled"); | 858 | $(element).addClass("disabled"); |
824 | var counter = 60; | 859 | var counter = 60; |
825 | - var timer = setInterval(function(){ | 860 | + var timer = setInterval(function () { |
826 | - if(counter > 0){ | 861 | + if (counter > 0) { |
827 | $(element).text(counter + "秒再获取"); | 862 | $(element).text(counter + "秒再获取"); |
828 | - counter --; | 863 | + counter--; |
829 | - }else{ | 864 | + } else { |
830 | clearInterval(timer); | 865 | clearInterval(timer); |
831 | $(element).text("获取验证码"); | 866 | $(element).text("获取验证码"); |
832 | $(element).removeClass("disabled"); | 867 | $(element).removeClass("disabled"); |
833 | } | 868 | } |
834 | - },1000); | 869 | + }, 1000); |
835 | - }else{ | 870 | + } else { |
836 | Core.showTips(msg, true); | 871 | Core.showTips(msg, true); |
837 | } | 872 | } |
838 | } | 873 | } |
839 | }); | 874 | }); |
840 | }); | 875 | }); |
841 | }, | 876 | }, |
842 | - bind : function(element,iphone,rank){ | 877 | + bind: function (element, iphone, rank) { |
843 | var self = this, | 878 | var self = this, |
844 | ele = that.$c; | 879 | ele = that.$c; |
845 | - ele.on("click",element,function(){ | 880 | + ele.on("click", element, function () { |
846 | var code = $(rank).val(), | 881 | var code = $(rank).val(), |
847 | phoneTest = $(iphone).val(); | 882 | phoneTest = $(iphone).val(); |
848 | - if(self.mobileReg(iphone) == false) return false; | 883 | + if (self.mobileReg(iphone) == false) return false; |
849 | - if($.trim(code) == ""){ | 884 | + if ($.trim(code) == "") { |
850 | Core.showTips('请输入验证码!', true); | 885 | Core.showTips('请输入验证码!', true); |
851 | return false; | 886 | return false; |
852 | } | 887 | } |
853 | Core.ajax({ | 888 | Core.ajax({ |
854 | - type:"post", | 889 | + type: "post", |
855 | - url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code, | 890 | + url: "/user/bind_mobile?mobile=" + phoneTest + "&vcode=" + code, |
856 | - data:{format:"json"}, | 891 | + data: {format: "json"}, |
857 | - dataType:"json", | 892 | + dataType: "json", |
858 | - success:function(res){ | 893 | + success: function (res) { |
859 | - if(res.code === 0){ | 894 | + if (res.code === 0) { |
860 | Core.showTips('绑定成功!', true); | 895 | Core.showTips('绑定成功!', true); |
861 | Core.Data.bind_phone = phoneTest; | 896 | Core.Data.bind_phone = phoneTest; |
862 | - setTimeout(function() { | 897 | + setTimeout(function () { |
863 | Core.updateMod('home'); | 898 | Core.updateMod('home'); |
864 | }, 500); | 899 | }, 500); |
865 | - }else{ | 900 | + } else { |
866 | Core.showTips(res.msg, true); | 901 | Core.showTips(res.msg, true); |
867 | } | 902 | } |
868 | } | 903 | } |
... | @@ -870,203 +905,282 @@ | ... | @@ -870,203 +905,282 @@ |
870 | }); | 905 | }); |
871 | } | 906 | } |
872 | }; | 907 | }; |
873 | - SendMsg.send("#js_getcode","#js_iphone"); | 908 | + SendMsg.send("#js_getcode", "#js_iphone"); |
874 | - SendMsg.bind("#js_conform","#js_iphone","#js_ranks"); | 909 | + SendMsg.bind("#js_conform", "#js_iphone", "#js_ranks"); |
875 | } | 910 | } |
876 | - BindMobile.prototype.show_after = function(){ | 911 | + BindMobile.prototype.show_after = function () { |
877 | 912 | ||
878 | } | 913 | } |
879 | Core.registerMod('bindMobile', BindMobile); | 914 | Core.registerMod('bindMobile', BindMobile); |
880 | 915 | ||
916 | + //绑定QQ号码模块 | ||
917 | + var BindQQ = function (modId) { | ||
918 | + Module.call(this, modId); | ||
919 | + } | ||
920 | + Core.inherit(BindQQ, Module); | ||
921 | + BindQQ.prototype.bind = function () { | ||
922 | + var that = this; | ||
923 | + var bindQQ = { | ||
924 | + qqValid: function (qqNum) { | ||
925 | + if ($.trim(qqNum) == "") { | ||
926 | + Core.showTips('请输入QQ号码!', false); | ||
927 | + return false; | ||
928 | + } | ||
929 | + // 首位不能是0 && 必须是 [5, 11] 位的数字 | ||
930 | + var regExp = /^[1-9][0-9]{4,9}$/gim; | ||
931 | + if (regExp.test(qqNum)) { | ||
932 | + return true; | ||
933 | + } | ||
934 | + Core.showTips('请输入正确格式的QQ号码!', false); | ||
935 | + return false; | ||
936 | + }, | ||
937 | + bind: function (element, qq) { | ||
938 | + var self = this, | ||
939 | + ele = that.$c; | ||
940 | + ele.on("click", element, function () { | ||
941 | + qqNum = $(qq).val(); | ||
942 | + if (self.qqValid(qqNum) == false) return false; | ||
943 | + | ||
944 | + Core.ajax({ | ||
945 | + type: "post", | ||
946 | + url: "/user/bind_qq?qq=" + qqNum, | ||
947 | + data: {format: "json"}, | ||
948 | + dataType: "json", | ||
949 | + success: function (res) { | ||
950 | + if (res.code === 0) { | ||
951 | + // Core.showTips('绑定成功!', true); | ||
952 | + Core.Data.bind_qq = qqNum; | ||
953 | + setTimeout(function () { | ||
954 | + Core.updateMod('home'); | ||
955 | + }, 500); | ||
956 | + } else { | ||
957 | + Core.showTips(res.msg, true); | ||
958 | + } | ||
959 | + } | ||
960 | + }); | ||
961 | + }); | ||
962 | + } | ||
963 | + }; | ||
964 | + bindQQ.bind("#js_qq_bind_conform", "#js_qq"); | ||
965 | + } | ||
966 | + BindQQ.prototype.show_after = function () { | ||
967 | + | ||
968 | + } | ||
969 | + Core.registerMod('bindQQ', BindQQ); | ||
970 | + | ||
881 | //解绑手机模块 | 971 | //解绑手机模块 |
882 | - var UnBindMobile = function(modId){ | 972 | + var UnBindMobile = function (modId) { |
883 | Module.call(this, modId); | 973 | Module.call(this, modId); |
884 | } | 974 | } |
885 | Core.inherit(UnBindMobile, Module); | 975 | Core.inherit(UnBindMobile, Module); |
886 | - UnBindMobile.prototype.bind = function(){ | 976 | + UnBindMobile.prototype.bind = function () { |
887 | var that = this; | 977 | var that = this; |
888 | - that.$c.on("click","#js_unbind_getcode",function(){ | 978 | + that.$c.on("click", "#js_unbind_getcode", function () { |
889 | var $self = $(this), | 979 | var $self = $(this), |
890 | phone = Core.Data.bind_phone; | 980 | phone = Core.Data.bind_phone; |
891 | Core.ajax({ | 981 | Core.ajax({ |
892 | - type:"post", | 982 | + type: "post", |
893 | - url:"/sms_validate_code/?mobile="+phone, | 983 | + url: "/sms_validate_code/?mobile=" + phone, |
894 | - success:function(msg){ | 984 | + success: function (msg) { |
895 | - if(msg.length == 0){//为空(已经发送) | 985 | + if (msg.length == 0) {//为空(已经发送) |
896 | Core.showTips('验证码发送成功,请注意查收', true); | 986 | Core.showTips('验证码发送成功,请注意查收', true); |
897 | $self.addClass("disabled"); | 987 | $self.addClass("disabled"); |
898 | var counter = 60; | 988 | var counter = 60; |
899 | - var timer = setInterval(function(){ | 989 | + var timer = setInterval(function () { |
900 | - if(counter > 0){ | 990 | + if (counter > 0) { |
901 | $self.text(counter + "秒再获取"); | 991 | $self.text(counter + "秒再获取"); |
902 | - counter --; | 992 | + counter--; |
903 | - }else{ | 993 | + } else { |
904 | clearInterval(timer); | 994 | clearInterval(timer); |
905 | $self.text("获取验证码"); | 995 | $self.text("获取验证码"); |
906 | $self.removeClass("disabled"); | 996 | $self.removeClass("disabled"); |
907 | } | 997 | } |
908 | - },1000); | 998 | + }, 1000); |
909 | - }else{ | 999 | + } else { |
910 | Core.showTips(msg, true); | 1000 | Core.showTips(msg, true); |
911 | } | 1001 | } |
912 | } | 1002 | } |
913 | }); | 1003 | }); |
914 | }); | 1004 | }); |
915 | - that.$c.on("click","#js_unbind",function(){ | 1005 | + that.$c.on("click", "#js_unbind", function () { |
916 | var code = $("#js_unbind_ranks").val(), | 1006 | var code = $("#js_unbind_ranks").val(), |
917 | phoneTest = Core.Data.bind_phone; | 1007 | phoneTest = Core.Data.bind_phone; |
918 | - if($.trim(code) == ""){ | 1008 | + if ($.trim(code) == "") { |
919 | Core.showTips('请输入验证码!', true); | 1009 | Core.showTips('请输入验证码!', true); |
920 | return false; | 1010 | return false; |
921 | } | 1011 | } |
922 | Core.ajax({ | 1012 | Core.ajax({ |
923 | - type:"post", | 1013 | + type: "post", |
924 | - url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code, | 1014 | + url: "/user/unbind_mobile?mobile=" + phoneTest + "&vcode=" + code, |
925 | - data:{format:"json"}, | 1015 | + data: {format: "json"}, |
926 | - dataType:"json", | 1016 | + dataType: "json", |
927 | - success:function(res){ | 1017 | + success: function (res) { |
928 | - if(res.code === 0){ | 1018 | + if (res.code === 0) { |
929 | Core.showTips('解绑成功!', true); | 1019 | Core.showTips('解绑成功!', true); |
930 | Core.Data.bind_phone = ""; | 1020 | Core.Data.bind_phone = ""; |
931 | $("#js_iphone").val(""); | 1021 | $("#js_iphone").val(""); |
932 | $("#js_ranks").val(""); | 1022 | $("#js_ranks").val(""); |
933 | - setTimeout(function() { | 1023 | + setTimeout(function () { |
934 | Core.updateMod('home'); | 1024 | Core.updateMod('home'); |
935 | }, 500); | 1025 | }, 500); |
936 | - }else{ | 1026 | + } else { |
937 | Core.showTips(res.msg, true); | 1027 | Core.showTips(res.msg, true); |
938 | } | 1028 | } |
939 | } | 1029 | } |
940 | }); | 1030 | }); |
941 | }); | 1031 | }); |
942 | } | 1032 | } |
943 | - UnBindMobile.prototype.show_after = function(){ | 1033 | + UnBindMobile.prototype.show_after = function () { |
944 | var phoneMobile = Core.Data.bind_phone, | 1034 | var phoneMobile = Core.Data.bind_phone, |
945 | - getBefore = phoneMobile.substring(0,3), | 1035 | + getBefore = phoneMobile.substring(0, 3), |
946 | - getAfter = phoneMobile.substring(8,11), | 1036 | + getAfter = phoneMobile.substring(8, 11), |
947 | - phoneHtml = getBefore+"****"+getAfter; | 1037 | + phoneHtml = getBefore + "****" + getAfter; |
948 | this.$c.find(".phoneMobile").html(phoneHtml); | 1038 | this.$c.find(".phoneMobile").html(phoneHtml); |
949 | } | 1039 | } |
950 | Core.registerMod('unbindMobile', UnBindMobile); | 1040 | Core.registerMod('unbindMobile', UnBindMobile); |
951 | 1041 | ||
952 | //实名认证 | 1042 | //实名认证 |
953 | - var IdentityCard = function(modId) { | 1043 | + var IdentityCard = function (modId) { |
954 | Module.call(this, modId); | 1044 | Module.call(this, modId); |
955 | } | 1045 | } |
956 | // 继承基础模块 | 1046 | // 继承基础模块 |
957 | Core.inherit(IdentityCard, Module); | 1047 | Core.inherit(IdentityCard, Module); |
958 | - IdentityCard.prototype.bind = function() { | 1048 | + IdentityCard.prototype.bind = function () { |
959 | var that = this; | 1049 | var that = this; |
960 | - this.$c.on('click', '.submit', function() { | 1050 | + this.$c.on('click', '.submit', function () { |
961 | var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 | 1051 | var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 |
962 | compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 | 1052 | compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 |
963 | compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 | 1053 | compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 |
964 | - if($.trim(identityCard) == ""){ | 1054 | + if ($.trim(identityCard) == "") { |
965 | - Core.showTips("请输入身份证号码",false); | 1055 | + Core.showTips("请输入身份证号码", false); |
966 | return false; | 1056 | return false; |
967 | - }else if(IsIdCard(identityCard) == false){ | 1057 | + } else if (IsIdCard(identityCard) == false) { |
968 | - Core.showTips("请输入正确的身份证信息",false); | 1058 | + Core.showTips("身份证号码有误,请检查输入是否正确", false, 5000); |
969 | return false; | 1059 | return false; |
970 | - }else if($.trim(compellationName) == ""){ | 1060 | + } else if ($.trim(compellationName) == "") { |
971 | - Core.showTips("请输入姓名",false); | 1061 | + Core.showTips("请输入身份证姓名", false); |
972 | return false; | 1062 | return false; |
973 | - }else if(!compellationNameReg.test(compellationName)){ | 1063 | + } else if (!compellationNameReg.test(compellationName)) { |
974 | - Core.showTips("请输入正确的中文姓名",false); | 1064 | + Core.showTips("请输入正确的中文姓名", false); |
975 | return false; | 1065 | return false; |
976 | } | 1066 | } |
977 | Core.ajax({ | 1067 | Core.ajax({ |
978 | - type:"post", | 1068 | + type: "post", |
979 | - url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName, | 1069 | + url: "/user/bind_identity_card?identity_card=" + identityCard + "&compellation_name=" + compellationName, |
980 | - data:{format:"json"}, | 1070 | + data: {format: "json"}, |
981 | - dataType:"json", | 1071 | + dataType: "json", |
982 | - success:function(res){ | 1072 | + success: function (res) { |
983 | - if(res.code === 0){ | 1073 | + if (res.code === 0) { |
984 | Core.showTips('认证成功!', true); | 1074 | Core.showTips('认证成功!', true); |
985 | Core.Data.compellation_name = compellationName; | 1075 | Core.Data.compellation_name = compellationName; |
986 | Core.Data.identity_card = identityCard; | 1076 | Core.Data.identity_card = identityCard; |
987 | - setTimeout(function() { | 1077 | + setTimeout(function () { |
988 | Core.updateMod('home'); | 1078 | Core.updateMod('home'); |
989 | }, 500); | 1079 | }, 500); |
990 | - }else{ | 1080 | + } else { |
991 | Core.showTips(res.msg, true); | 1081 | Core.showTips(res.msg, true); |
992 | } | 1082 | } |
993 | } | 1083 | } |
994 | }); | 1084 | }); |
995 | }); | 1085 | }); |
996 | } | 1086 | } |
997 | - IdentityCard.prototype.show_after = function(){ | 1087 | + IdentityCard.prototype.show_after = function () { |
998 | 1088 | ||
999 | } | 1089 | } |
1000 | Core.registerMod('identityCard', IdentityCard); | 1090 | Core.registerMod('identityCard', IdentityCard); |
1001 | 1091 | ||
1002 | //已认证 | 1092 | //已认证 |
1003 | - var IdentityCardOk = function(modId) { | 1093 | + var IdentityCardOk = function (modId) { |
1004 | Module.call(this, modId); | 1094 | Module.call(this, modId); |
1005 | } | 1095 | } |
1006 | // 继承基础模块 | 1096 | // 继承基础模块 |
1007 | Core.inherit(IdentityCardOk, Module); | 1097 | Core.inherit(IdentityCardOk, Module); |
1008 | - IdentityCardOk.prototype.show_after = function(){ | 1098 | + IdentityCardOk.prototype.show_after = function () { |
1009 | var compellation_name = Core.Data.compellation_name,//姓名 | 1099 | var compellation_name = Core.Data.compellation_name,//姓名 |
1010 | identity_card = Core.Data.identity_card;//身份证 | 1100 | identity_card = Core.Data.identity_card;//身份证 |
1011 | - if(compellation_name.length == 2){ | 1101 | + if (compellation_name.length == 2) { |
1012 | - var getBefore = compellation_name.substring(0,1), | 1102 | + var getBefore = compellation_name.substring(0, 1), |
1013 | - nameHtml = getBefore+"*"; | 1103 | + nameHtml = getBefore + "*"; |
1014 | - }else if(compellation_name.length == 3){ | 1104 | + } else if (compellation_name.length == 3) { |
1015 | - var getBefore = compellation_name.substring(0,1), | 1105 | + var getBefore = compellation_name.substring(0, 1), |
1016 | - nameHtml = getBefore+"**"; | 1106 | + nameHtml = getBefore + "**"; |
1017 | - }else if(compellation_name.length == 4){ | 1107 | + } else if (compellation_name.length == 4) { |
1018 | - var getBefore = compellation_name.substring(0,2), | 1108 | + var getBefore = compellation_name.substring(0, 2), |
1019 | - nameHtml = getBefore+"**"; | 1109 | + nameHtml = getBefore + "**"; |
1020 | - }else if(compellation_name.length > 4){ | 1110 | + } else if (compellation_name.length > 4) { |
1021 | - var getBefore = compellation_name.substring(0,2), | 1111 | + var getBefore = compellation_name.substring(0, 2), |
1022 | starNum = compellation_name.length, | 1112 | starNum = compellation_name.length, |
1023 | star = ""; | 1113 | star = ""; |
1024 | - for(var i = 0;i<starNum - 2;i++){ | 1114 | + for (var i = 0; i < starNum - 2; i++) { |
1025 | star += "*"; | 1115 | star += "*"; |
1026 | } | 1116 | } |
1027 | - nameHtml = getBefore+star; | 1117 | + nameHtml = getBefore + star; |
1028 | - }; | 1118 | + } |
1029 | - if(identity_card.length == 15){ | 1119 | + ; |
1030 | - var getBefore = identity_card.substring(0,1), | 1120 | + if (identity_card.length == 15) { |
1031 | - getAfter = identity_card.substring(14,15), | 1121 | + var getBefore = identity_card.substring(0, 1), |
1032 | - cardHtml = getBefore+"*************"+getAfter; | 1122 | + getAfter = identity_card.substring(14, 15), |
1033 | - }else if(identity_card.length == 18){ | 1123 | + cardHtml = getBefore + "*************" + getAfter; |
1034 | - var getBefore = identity_card.substring(0,1), | 1124 | + } else if (identity_card.length == 18) { |
1035 | - getAfter = identity_card.substring(17,18), | 1125 | + var getBefore = identity_card.substring(0, 1), |
1036 | - cardHtml = getBefore+"****************"+getAfter; | 1126 | + getAfter = identity_card.substring(17, 18), |
1037 | - }; | 1127 | + cardHtml = getBefore + "****************" + getAfter; |
1128 | + } | ||
1129 | + ; | ||
1038 | this.$c.find(".compellation_name").html(nameHtml); | 1130 | this.$c.find(".compellation_name").html(nameHtml); |
1039 | this.$c.find(".identity_card").html(cardHtml); | 1131 | this.$c.find(".identity_card").html(cardHtml); |
1040 | }; | 1132 | }; |
1041 | Core.registerMod('identityCard_ok', IdentityCardOk); | 1133 | Core.registerMod('identityCard_ok', IdentityCardOk); |
1042 | 1134 | ||
1135 | + //已认证 | ||
1136 | + var BindQQOk = function (modId) { | ||
1137 | + Module.call(this, modId); | ||
1138 | + } | ||
1139 | + // 继承基础模块 | ||
1140 | + Core.inherit(BindQQOk, Module); | ||
1141 | + BindQQOk.prototype.show_after = function () { | ||
1142 | + var qqNum = Core.Data.bind_qq; | ||
1143 | + var len_qq = qqNum.length; | ||
1144 | + if(len_qq>4 && qqNum != undefined){ | ||
1145 | + var start = qqNum.substring(0,2); | ||
1146 | + var end = qqNum.substring(len_qq-2,len_qq); | ||
1147 | + var star = ""; | ||
1148 | + for(var i=0;i<len_qq-4;i++) { | ||
1149 | + star+="*"; | ||
1150 | + } | ||
1151 | + qqNum = start+star+end; | ||
1152 | + } | ||
1153 | + this.$c.find(".bind_qq").html(qqNum); | ||
1154 | + }; | ||
1155 | + Core.registerMod('bindQQ_ok', BindQQOk); | ||
1156 | + | ||
1043 | // Mail模块 | 1157 | // Mail模块 |
1044 | - var Mail = function(modId) { | 1158 | + var Mail = function (modId) { |
1045 | Module.call(this, modId); | 1159 | Module.call(this, modId); |
1046 | } | 1160 | } |
1047 | // 继承基础模块 | 1161 | // 继承基础模块 |
1048 | Core.inherit(Mail, Module); | 1162 | Core.inherit(Mail, Module); |
1049 | - Mail.prototype.bind = function() { | 1163 | + Mail.prototype.bind = function () { |
1050 | var that = this; | 1164 | var that = this; |
1051 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 1165 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
1052 | e.preventDefault(); | 1166 | e.preventDefault(); |
1053 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); | 1167 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); |
1054 | return false; | 1168 | return false; |
1055 | }); | 1169 | }); |
1056 | - that.$c.on('click', '#change-mail-btn', function(e) { | 1170 | + that.$c.on('click', '#change-mail-btn', function (e) { |
1057 | e.preventDefault(); | 1171 | e.preventDefault(); |
1058 | that.$c.find('#bind_mail_form').show(); | 1172 | that.$c.find('#bind_mail_form').show(); |
1059 | that.$c.find('#bind-mail-btn').show(); | 1173 | that.$c.find('#bind-mail-btn').show(); |
1060 | $(this).hide() | 1174 | $(this).hide() |
1061 | return false; | 1175 | return false; |
1062 | }); | 1176 | }); |
1063 | - that.$c.on('click', '.op-primary', function(e) { | 1177 | + that.$c.on('click', '.op-primary', function (e) { |
1064 | e.preventDefault(); | 1178 | e.preventDefault(); |
1065 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); | 1179 | Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that); |
1066 | return false; | 1180 | return false; |
1067 | }); | 1181 | }); |
1068 | } | 1182 | } |
1069 | - Mail.prototype.mail_cb = function(data) { | 1183 | + Mail.prototype.mail_cb = function (data) { |
1070 | var code = data.code; | 1184 | var code = data.code; |
1071 | Core.Data.bind_mail_statu = 1; | 1185 | Core.Data.bind_mail_statu = 1; |
1072 | Core.Data.mail = this.$c.find('input[name=email]').val(); | 1186 | Core.Data.mail = this.$c.find('input[name=email]').val(); |
... | @@ -1074,42 +1188,42 @@ | ... | @@ -1074,42 +1188,42 @@ |
1074 | Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true); | 1188 | Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true); |
1075 | this.$c.find('#bind_mail_form').hide(); | 1189 | this.$c.find('#bind_mail_form').hide(); |
1076 | this.isValid = false; | 1190 | this.isValid = false; |
1077 | - setTimeout(function() { | 1191 | + setTimeout(function () { |
1078 | Core.updateMod('mail'); | 1192 | Core.updateMod('mail'); |
1079 | }, 1000); | 1193 | }, 1000); |
1080 | } | 1194 | } |
1081 | Core.registerMod('mail', Mail); | 1195 | Core.registerMod('mail', Mail); |
1082 | 1196 | ||
1083 | // 重置密码模块 | 1197 | // 重置密码模块 |
1084 | - var Reset_pwd = function(modId) { | 1198 | + var Reset_pwd = function (modId) { |
1085 | Module.call(this, modId); | 1199 | Module.call(this, modId); |
1086 | } | 1200 | } |
1087 | // 继承基础模块 | 1201 | // 继承基础模块 |
1088 | Core.inherit(Reset_pwd, Module); | 1202 | Core.inherit(Reset_pwd, Module); |
1089 | 1203 | ||
1090 | - Reset_pwd.prototype.bind = function() { | 1204 | + Reset_pwd.prototype.bind = function () { |
1091 | - this.$c.on('click', '.op-primary', function() { | 1205 | + this.$c.on('click', '.op-primary', function () { |
1092 | Core.updateMod("modify_pwd"); | 1206 | Core.updateMod("modify_pwd"); |
1093 | }); | 1207 | }); |
1094 | } | 1208 | } |
1095 | Core.registerMod('reset_pwd', Reset_pwd); | 1209 | Core.registerMod('reset_pwd', Reset_pwd); |
1096 | 1210 | ||
1097 | // 回答密保模块 | 1211 | // 回答密保模块 |
1098 | - var Answer_question = function(modId) { | 1212 | + var Answer_question = function (modId) { |
1099 | Module.call(this, modId); | 1213 | Module.call(this, modId); |
1100 | } | 1214 | } |
1101 | Core.inherit(Answer_question, Module); | 1215 | Core.inherit(Answer_question, Module); |
1102 | 1216 | ||
1103 | - Answer_question.prototype.bind = function() { | 1217 | + Answer_question.prototype.bind = function () { |
1104 | var that = this; | 1218 | var that = this; |
1105 | - that.$c.on('click', '.op-primary', function(e) { | 1219 | + that.$c.on('click', '.op-primary', function (e) { |
1106 | e.preventDefault(); | 1220 | e.preventDefault(); |
1107 | 1221 | ||
1108 | Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that); | 1222 | Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that); |
1109 | return false; | 1223 | return false; |
1110 | }); | 1224 | }); |
1111 | } | 1225 | } |
1112 | - Answer_question.prototype.aq_cb = function(data) { | 1226 | + Answer_question.prototype.aq_cb = function (data) { |
1113 | console.log(data); | 1227 | console.log(data); |
1114 | var code = data.code; | 1228 | var code = data.code; |
1115 | var msg = data.msg; | 1229 | var msg = data.msg; |
... | @@ -1118,42 +1232,42 @@ | ... | @@ -1118,42 +1232,42 @@ |
1118 | Core.Data.new_pwd = msg.password; | 1232 | Core.Data.new_pwd = msg.password; |
1119 | 1233 | ||
1120 | name = JSON.parse(name); | 1234 | name = JSON.parse(name); |
1121 | - if(name == null){ | 1235 | + if (name == null) { |
1122 | name = null; | 1236 | name = null; |
1123 | - }else{ | 1237 | + } else { |
1124 | name[msg.nickname] = msg.password; | 1238 | name[msg.nickname] = msg.password; |
1125 | } | 1239 | } |
1126 | 1240 | ||
1127 | - localStorage.setItem('user_names',JSON.stringify(name)); | 1241 | + localStorage.setItem('user_names', JSON.stringify(name)); |
1128 | Core.user_names = name; | 1242 | Core.user_names = name; |
1129 | 1243 | ||
1130 | // 强制更新显示重置密码模块 | 1244 | // 强制更新显示重置密码模块 |
1131 | Core.updateMod('reset_pwd'); | 1245 | Core.updateMod('reset_pwd'); |
1132 | - Core.showTips('重置成功.',true,1000); | 1246 | + Core.showTips('重置成功.', true, 1000); |
1133 | - localStorage.setItem('old_pwd',Core.Data.new_pwd); | 1247 | + localStorage.setItem('old_pwd', Core.Data.new_pwd); |
1134 | } | 1248 | } |
1135 | Core.registerMod('answer_question', Answer_question); | 1249 | Core.registerMod('answer_question', Answer_question); |
1136 | 1250 | ||
1137 | - var Modify_pwd = function(modId) { | 1251 | + var Modify_pwd = function (modId) { |
1138 | Module.call(this, modId); | 1252 | Module.call(this, modId); |
1139 | } | 1253 | } |
1140 | Core.inherit(Modify_pwd, Module); | 1254 | Core.inherit(Modify_pwd, Module); |
1141 | 1255 | ||
1142 | - Modify_pwd.prototype.bind = function() { | 1256 | + Modify_pwd.prototype.bind = function () { |
1143 | var that = this; | 1257 | var that = this; |
1144 | - that.$c.on('click', '[type=submit],.submit', function(e) { | 1258 | + that.$c.on('click', '[type=submit],.submit', function (e) { |
1145 | e.preventDefault(); | 1259 | e.preventDefault(); |
1146 | - if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | 1260 | + if (/[A-Z]/.test(that.$c.find("input[name='username']").val())) { |
1147 | Core.showTips("账号不能有大写字母!"); | 1261 | Core.showTips("账号不能有大写字母!"); |
1148 | - }else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){ | 1262 | + } else if (/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())) { |
1149 | Core.showTips("密码不能有大写字母!"); | 1263 | Core.showTips("密码不能有大写字母!"); |
1150 | - }else{ | 1264 | + } else { |
1151 | Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that); | 1265 | Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that); |
1152 | } | 1266 | } |
1153 | 1267 | ||
1154 | return false; | 1268 | return false; |
1155 | }); | 1269 | }); |
1156 | - that.$c.on('click', '.op-logout', function(e) { | 1270 | + that.$c.on('click', '.op-logout', function (e) { |
1157 | e.preventDefault(); | 1271 | e.preventDefault(); |
1158 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, | 1272 | // Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb, |
1159 | // that); | 1273 | // that); |
... | @@ -1162,12 +1276,12 @@ | ... | @@ -1162,12 +1276,12 @@ |
1162 | }); | 1276 | }); |
1163 | } | 1277 | } |
1164 | Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb; | 1278 | Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb; |
1165 | - Modify_pwd.prototype.modify_cb = function(data) { | 1279 | + Modify_pwd.prototype.modify_cb = function (data) { |
1166 | var status_code = data.code; | 1280 | var status_code = data.code; |
1167 | var msg = data.msg, | 1281 | var msg = data.msg, |
1168 | name = this.$c.find('input[name=username]').val(), | 1282 | name = this.$c.find('input[name=username]').val(), |
1169 | password = this.$c.find('input[name=newpwd]').val(), | 1283 | password = this.$c.find('input[name=newpwd]').val(), |
1170 | - name_ary,index_ary; | 1284 | + name_ary, index_ary; |
1171 | 1285 | ||
1172 | var _d = localStorage.getItem('user_names'), | 1286 | var _d = localStorage.getItem('user_names'), |
1173 | _i = localStorage.getItem('user_indexs'); | 1287 | _i = localStorage.getItem('user_indexs'); |
... | @@ -1179,31 +1293,31 @@ | ... | @@ -1179,31 +1293,31 @@ |
1179 | } | 1293 | } |
1180 | 1294 | ||
1181 | if (status_code == 0) { | 1295 | if (status_code == 0) { |
1182 | - if(Core.Data.is_guest == 1){ | 1296 | + if (Core.Data.is_guest == 1) { |
1183 | //游客帐号转正 | 1297 | //游客帐号转正 |
1184 | localStorage.removeItem('guest_n'); | 1298 | localStorage.removeItem('guest_n'); |
1185 | Core.showTips('升级账号成功!请妥善保管正式账号!', true); | 1299 | Core.showTips('升级账号成功!请妥善保管正式账号!', true); |
1186 | delete name_ary[Core.Data.nickname]; | 1300 | delete name_ary[Core.Data.nickname]; |
1187 | localStorage.setItem('user_names', JSON.stringify(name_ary)); | 1301 | localStorage.setItem('user_names', JSON.stringify(name_ary)); |
1188 | - }else{ | 1302 | + } else { |
1189 | Core.showTips('成功修改密码, 请记住新密码。', true); | 1303 | Core.showTips('成功修改密码, 请记住新密码。', true); |
1190 | name_ary[msg.username] = password; | 1304 | name_ary[msg.username] = password; |
1191 | localStorage.setItem('user_names', JSON.stringify(name_ary)); | 1305 | localStorage.setItem('user_names', JSON.stringify(name_ary)); |
1192 | } | 1306 | } |
1193 | 1307 | ||
1194 | var getAcc = Core.Data.nickname;//升级前账号 | 1308 | var getAcc = Core.Data.nickname;//升级前账号 |
1195 | - var getIndex = $.inArray(getAcc,index_ary); | 1309 | + var getIndex = $.inArray(getAcc, index_ary); |
1196 | 1310 | ||
1197 | - if(index_ary == null){ | 1311 | + if (index_ary == null) { |
1198 | index_ary = []; | 1312 | index_ary = []; |
1199 | index_ary.unshift(name); | 1313 | index_ary.unshift(name); |
1200 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 1314 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
1201 | - }else{ | 1315 | + } else { |
1202 | - if(getIndex == -1){ | 1316 | + if (getIndex == -1) { |
1203 | index_ary.unshift(name); | 1317 | index_ary.unshift(name); |
1204 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 1318 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
1205 | - }else{ | 1319 | + } else { |
1206 | - index_ary.splice(getIndex,1); | 1320 | + index_ary.splice(getIndex, 1); |
1207 | index_ary.unshift(msg.username); | 1321 | index_ary.unshift(msg.username); |
1208 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); | 1322 | localStorage.setItem('user_indexs', JSON.stringify(index_ary)); |
1209 | } | 1323 | } |
... | @@ -1239,13 +1353,13 @@ | ... | @@ -1239,13 +1353,13 @@ |
1239 | } | 1353 | } |
1240 | Core.registerMod('modify_pwd', Modify_pwd); | 1354 | Core.registerMod('modify_pwd', Modify_pwd); |
1241 | 1355 | ||
1242 | - var Frame = function(modId) { | 1356 | + var Frame = function (modId) { |
1243 | Module.call(this, modId); | 1357 | Module.call(this, modId); |
1244 | } | 1358 | } |
1245 | Core.inherit(Frame, Module); | 1359 | Core.inherit(Frame, Module); |
1246 | - Frame.prototype.bind = function() { | 1360 | + Frame.prototype.bind = function () { |
1247 | var that = this; | 1361 | var that = this; |
1248 | - that.$c.on('click', '.scroll-btn', function(e) { | 1362 | + that.$c.on('click', '.scroll-btn', function (e) { |
1249 | e.preventDefault(); | 1363 | e.preventDefault(); |
1250 | e.stopPropagation(); | 1364 | e.stopPropagation(); |
1251 | var $frame = that.$c.find('iframe'); | 1365 | var $frame = that.$c.find('iframe'); |
... | @@ -1261,14 +1375,14 @@ | ... | @@ -1261,14 +1375,14 @@ |
1261 | } | 1375 | } |
1262 | }); | 1376 | }); |
1263 | } | 1377 | } |
1264 | - Frame.prototype.show_after = function() { | 1378 | + Frame.prototype.show_after = function () { |
1265 | var that = this; | 1379 | var that = this; |
1266 | var _des = Core.last_mod ? Core.last_mod : 'home'; | 1380 | var _des = Core.last_mod ? Core.last_mod : 'home'; |
1267 | var $frame = that.$c.find('iframe'); | 1381 | var $frame = that.$c.find('iframe'); |
1268 | var $div = that.$c.find('.ios_scroll'); | 1382 | var $div = that.$c.find('.ios_scroll'); |
1269 | var isFix = that.$c.is('.fix, .nofix'); | 1383 | var isFix = that.$c.is('.fix, .nofix'); |
1270 | this.$c.find('a.btn.pull-left').attr('href', '#' + _des); | 1384 | this.$c.find('a.btn.pull-left').attr('href', '#' + _des); |
1271 | - $frame[0].onload = function() { | 1385 | + $frame[0].onload = function () { |
1272 | that.$c.find('#loading_frame').hide(); | 1386 | that.$c.find('#loading_frame').hide(); |
1273 | if (Core.isAndroid && !isFix) { | 1387 | if (Core.isAndroid && !isFix) { |
1274 | var h1 = $frame.height(); | 1388 | var h1 = $frame.height(); |
... | @@ -1287,15 +1401,15 @@ | ... | @@ -1287,15 +1401,15 @@ |
1287 | /** | 1401 | /** |
1288 | * 公告活动记录模块 | 1402 | * 公告活动记录模块 |
1289 | */ | 1403 | */ |
1290 | - var Activity = function(modId) { | 1404 | + var Activity = function (modId) { |
1291 | this.myScroll = null; | 1405 | this.myScroll = null; |
1292 | this.cur_id = null; | 1406 | this.cur_id = null; |
1293 | Module.call(this, modId); | 1407 | Module.call(this, modId); |
1294 | } | 1408 | } |
1295 | Core.inherit(Activity, Module); | 1409 | Core.inherit(Activity, Module); |
1296 | - Activity.prototype.bind = function() { | 1410 | + Activity.prototype.bind = function () { |
1297 | var that = this; | 1411 | var that = this; |
1298 | - that.$c.on('click', 'li>a.item', function(e) { | 1412 | + that.$c.on('click', 'li>a.item', function (e) { |
1299 | e.preventDefault(); | 1413 | e.preventDefault(); |
1300 | /* | 1414 | /* |
1301 | * @todo-list bug fixed in android,the click event fired twice! | 1415 | * @todo-list bug fixed in android,the click event fired twice! |
... | @@ -1315,7 +1429,7 @@ | ... | @@ -1315,7 +1429,7 @@ |
1315 | Core.Data.activity_update = true; | 1429 | Core.Data.activity_update = true; |
1316 | Core.showTips('加载中...', true, 2000); | 1430 | Core.showTips('加载中...', true, 2000); |
1317 | $e.data('path', '/sdk/notice/view/?id=' + id); | 1431 | $e.data('path', '/sdk/notice/view/?id=' + id); |
1318 | - Core.load_json($e, function(data) { | 1432 | + Core.load_json($e, function (data) { |
1319 | Core.Data.activity_detail = data; | 1433 | Core.Data.activity_detail = data; |
1320 | Core.showTips('加载完成!', true, 2000); | 1434 | Core.showTips('加载完成!', true, 2000); |
1321 | Core.updateMod('activity_detail'); | 1435 | Core.updateMod('activity_detail'); |
... | @@ -1327,16 +1441,16 @@ | ... | @@ -1327,16 +1441,16 @@ |
1327 | // }); | 1441 | // }); |
1328 | return false; | 1442 | return false; |
1329 | }); | 1443 | }); |
1330 | - that.$c.on('click', 'li.more a', function(e) { | 1444 | + that.$c.on('click', 'li.more a', function (e) { |
1331 | e.preventDefault(); | 1445 | e.preventDefault(); |
1332 | Core.load_html($(e.target), that.refresh, that); | 1446 | Core.load_html($(e.target), that.refresh, that); |
1333 | return false; | 1447 | return false; |
1334 | }); | 1448 | }); |
1335 | } | 1449 | } |
1336 | - Activity.prototype.refresh = function() { | 1450 | + Activity.prototype.refresh = function () { |
1337 | this.myScroll.refresh(); | 1451 | this.myScroll.refresh(); |
1338 | } | 1452 | } |
1339 | - Activity.prototype.show_after = function() { | 1453 | + Activity.prototype.show_after = function () { |
1340 | if (this.$c.find('.activity-list').children().length == 0) { | 1454 | if (this.$c.find('.activity-list').children().length == 0) { |
1341 | Core.load_html(this.$c.find('.activity-list'), | 1455 | Core.load_html(this.$c.find('.activity-list'), |
1342 | this.act_cb, this); | 1456 | this.act_cb, this); |
... | @@ -1349,7 +1463,7 @@ | ... | @@ -1349,7 +1463,7 @@ |
1349 | } | 1463 | } |
1350 | } | 1464 | } |
1351 | } | 1465 | } |
1352 | - Activity.prototype.act_cb = function(data) { | 1466 | + Activity.prototype.act_cb = function (data) { |
1353 | this.myScroll = new iScroll('activity_wrapper'); | 1467 | this.myScroll = new iScroll('activity_wrapper'); |
1354 | } | 1468 | } |
1355 | Core.registerMod('activity', Activity); | 1469 | Core.registerMod('activity', Activity); |
... | @@ -1357,21 +1471,21 @@ | ... | @@ -1357,21 +1471,21 @@ |
1357 | /** | 1471 | /** |
1358 | * 公告活动详细模块 | 1472 | * 公告活动详细模块 |
1359 | */ | 1473 | */ |
1360 | - var Activity_detail = function(modId) { | 1474 | + var Activity_detail = function (modId) { |
1361 | this.myScroll = null; | 1475 | this.myScroll = null; |
1362 | Module.call(this, modId); | 1476 | Module.call(this, modId); |
1363 | } | 1477 | } |
1364 | Core.inherit(Activity_detail, Module); | 1478 | Core.inherit(Activity_detail, Module); |
1365 | - Activity_detail.prototype.bind = function() { | 1479 | + Activity_detail.prototype.bind = function () { |
1366 | var that = this; | 1480 | var that = this; |
1367 | } | 1481 | } |
1368 | - Activity_detail.prototype.show_after = function() { | 1482 | + Activity_detail.prototype.show_after = function () { |
1369 | var that = this; | 1483 | var that = this; |
1370 | if (Core.Data.activity_update) { | 1484 | if (Core.Data.activity_update) { |
1371 | console.log('new scroller'); | 1485 | console.log('new scroller'); |
1372 | this.myScroll = new iScroll('detail_scroller'); | 1486 | this.myScroll = new iScroll('detail_scroller'); |
1373 | that.myScroll.refresh(); | 1487 | that.myScroll.refresh(); |
1374 | - this.$c.find('.scroll img').on('load', function(e) { | 1488 | + this.$c.find('.scroll img').on('load', function (e) { |
1375 | console.log('img loaded in scroll'); | 1489 | console.log('img loaded in scroll'); |
1376 | that.myScroll.refresh(); | 1490 | that.myScroll.refresh(); |
1377 | }); | 1491 | }); |
... | @@ -1382,15 +1496,15 @@ | ... | @@ -1382,15 +1496,15 @@ |
1382 | /** | 1496 | /** |
1383 | * 消息列表模块 | 1497 | * 消息列表模块 |
1384 | */ | 1498 | */ |
1385 | - var Message = function(modId) { | 1499 | + var Message = function (modId) { |
1386 | this.myScroll = null; | 1500 | this.myScroll = null; |
1387 | this.cur_id = null; | 1501 | this.cur_id = null; |
1388 | Module.call(this, modId); | 1502 | Module.call(this, modId); |
1389 | } | 1503 | } |
1390 | Core.inherit(Message, Module); | 1504 | Core.inherit(Message, Module); |
1391 | - Message.prototype.bind = function() { | 1505 | + Message.prototype.bind = function () { |
1392 | var that = this; | 1506 | var that = this; |
1393 | - that.$c.on('click', 'li>a.item', function(e) { | 1507 | + that.$c.on('click', 'li>a.item', function (e) { |
1394 | e.preventDefault(); | 1508 | e.preventDefault(); |
1395 | e.stopPropagation(); | 1509 | e.stopPropagation(); |
1396 | /* | 1510 | /* |
... | @@ -1406,29 +1520,29 @@ | ... | @@ -1406,29 +1520,29 @@ |
1406 | } | 1520 | } |
1407 | that.cur_id = id; | 1521 | that.cur_id = id; |
1408 | $e.data('path', '/message/' + id + '.html?format=json'); | 1522 | $e.data('path', '/message/' + id + '.html?format=json'); |
1409 | - Core.load_json($e, function(data) { | 1523 | + Core.load_json($e, function (data) { |
1410 | Core.Data.message_detail = data; | 1524 | Core.Data.message_detail = data; |
1411 | Core.showTips('加载完成!', true, 2000); | 1525 | Core.showTips('加载完成!', true, 2000); |
1412 | Core.updateMod('message_detail'); | 1526 | Core.updateMod('message_detail'); |
1413 | }, that); | 1527 | }, that); |
1414 | return false; | 1528 | return false; |
1415 | }); | 1529 | }); |
1416 | - that.$c.on('click', 'li.more a', function(e) { | 1530 | + that.$c.on('click', 'li.more a', function (e) { |
1417 | e.preventDefault(); | 1531 | e.preventDefault(); |
1418 | Core.load_html($(e.target), that.refresh, that); | 1532 | Core.load_html($(e.target), that.refresh, that); |
1419 | return false; | 1533 | return false; |
1420 | }); | 1534 | }); |
1421 | } | 1535 | } |
1422 | - Message.prototype.refresh = function() { | 1536 | + Message.prototype.refresh = function () { |
1423 | this.myScroll.refresh(); | 1537 | this.myScroll.refresh(); |
1424 | } | 1538 | } |
1425 | - Message.prototype.show_after = function() { | 1539 | + Message.prototype.show_after = function () { |
1426 | if (this.$c.find('.message-list').children().length == 0) { | 1540 | if (this.$c.find('.message-list').children().length == 0) { |
1427 | Core.load_html(this.$c.find('.message-list'), this.act_cb, | 1541 | Core.load_html(this.$c.find('.message-list'), this.act_cb, |
1428 | this); | 1542 | this); |
1429 | } | 1543 | } |
1430 | } | 1544 | } |
1431 | - Message.prototype.act_cb = function(data) { | 1545 | + Message.prototype.act_cb = function (data) { |
1432 | this.myScroll = new iScroll('message_wrapper'); | 1546 | this.myScroll = new iScroll('message_wrapper'); |
1433 | } | 1547 | } |
1434 | Core.registerMod('message', Message); | 1548 | Core.registerMod('message', Message); |
... | @@ -1436,7 +1550,7 @@ | ... | @@ -1436,7 +1550,7 @@ |
1436 | /** | 1550 | /** |
1437 | * 消息内容详细模块 | 1551 | * 消息内容详细模块 |
1438 | */ | 1552 | */ |
1439 | - var Message_detail = function(modId) { | 1553 | + var Message_detail = function (modId) { |
1440 | Module.call(this, modId); | 1554 | Module.call(this, modId); |
1441 | } | 1555 | } |
1442 | Core.inherit(Message_detail, Module); | 1556 | Core.inherit(Message_detail, Module); |
... | @@ -1449,14 +1563,14 @@ | ... | @@ -1449,14 +1563,14 @@ |
1449 | var names = localStorage.getItem("user_names"), | 1563 | var names = localStorage.getItem("user_names"), |
1450 | userIndexs = localStorage.getItem("user_indexs"); | 1564 | userIndexs = localStorage.getItem("user_indexs"); |
1451 | names = JSON.parse(names); | 1565 | names = JSON.parse(names); |
1452 | - if (names == null){ | 1566 | + if (names == null) { |
1453 | names = null | 1567 | names = null |
1454 | } | 1568 | } |
1455 | else { | 1569 | else { |
1456 | delete names["undefined"]; | 1570 | delete names["undefined"]; |
1457 | var user_indexs = []; | 1571 | var user_indexs = []; |
1458 | - for (var item in names){//遍历对象,排序 | 1572 | + for (var item in names) {//遍历对象,排序 |
1459 | - if($.inArray(item,user_indexs) == -1){ | 1573 | + if ($.inArray(item, user_indexs) == -1) { |
1460 | user_indexs.unshift(item); | 1574 | user_indexs.unshift(item); |
1461 | } | 1575 | } |
1462 | } | 1576 | } |
... | @@ -1486,6 +1600,7 @@ | ... | @@ -1486,6 +1600,7 @@ |
1486 | $("input#js_login_username").val(Core.first_user); | 1600 | $("input#js_login_username").val(Core.first_user); |
1487 | $("input#js_login_password").val(Core.first_password); | 1601 | $("input#js_login_password").val(Core.first_password); |
1488 | } | 1602 | } |
1603 | + | ||
1489 | login_init(); | 1604 | login_init(); |
1490 | if (window.isGetData == 1) { | 1605 | if (window.isGetData == 1) { |
1491 | // 兼容旧版本sdk | 1606 | // 兼容旧版本sdk |
... | @@ -1497,8 +1612,8 @@ | ... | @@ -1497,8 +1612,8 @@ |
1497 | } | 1612 | } |
1498 | })(); | 1613 | })(); |
1499 | 1614 | ||
1500 | -$(document).on("click", ".mask", function(){ | 1615 | +$(document).on("click", ".mask", function () { |
1501 | - $("input[type=password]").bind('cut copy paste', function(e){ | 1616 | + $("input[type=password]").bind('cut copy paste', function (e) { |
1502 | return false; | 1617 | return false; |
1503 | }); | 1618 | }); |
1504 | }); | 1619 | }); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
File moved
File moved
... | @@ -22,18 +22,18 @@ | ... | @@ -22,18 +22,18 @@ |
22 | that.$c.on('click', 'input[type=button]', function(e) { | 22 | that.$c.on('click', 'input[type=button]', function(e) { |
23 | // 更新要兑换的元宝 | 23 | // 更新要兑换的元宝 |
24 | e.preventDefault(); | 24 | e.preventDefault(); |
25 | - Core.Data.current_pay_channel = null; | 25 | + Core.Data.current_zf_channel = null; |
26 | Core.Data.game_amount = parseInt($(e.target).attr('data')); | 26 | Core.Data.game_amount = parseInt($(e.target).attr('data')); |
27 | - var youai_star_need = Core.Data.game_amount / Core.Data.exchange_rate; | 27 | + var ya_star_need = Core.Data.game_amount / Core.Data.exchange_rate; |
28 | - if (Core.Data.total_amount >= youai_star_need) { | 28 | + if (Core.Data.total_amount >= ya_star_need) { |
29 | // 用户游爱星足够兑换,进入兑换模块 | 29 | // 用户游爱星足够兑换,进入兑换模块 |
30 | - Core.Data.youai_star = youai_star_need; | 30 | + Core.Data.ya_star = ya_star_need; |
31 | - Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 31 | + Core.Data.money = Core.Data.ya_star / Core.Data.rate; |
32 | Core.updateMod('exchange'); | 32 | Core.updateMod('exchange'); |
33 | } else { | 33 | } else { |
34 | // 用户游爱星不足够兑换,进入充值渠道列表 | 34 | // 用户游爱星不足够兑换,进入充值渠道列表 |
35 | - Core.Data.money = youai_star_need / Core.Data.rate; | 35 | + Core.Data.money = ya_star_need / Core.Data.rate; |
36 | - Core.Data.youai_star = youai_star_need; | 36 | + Core.Data.ya_star = ya_star_need; |
37 | Core.updateMod('channel_list'); | 37 | Core.updateMod('channel_list'); |
38 | } | 38 | } |
39 | return false; | 39 | return false; |
... | @@ -50,7 +50,7 @@ | ... | @@ -50,7 +50,7 @@ |
50 | /** | 50 | /** |
51 | * 兑换和发起代付的回调方法 | 51 | * 兑换和发起代付的回调方法 |
52 | */ | 52 | */ |
53 | - var payconfirm_cb = function(data) { | 53 | + var zfconfirm_cb = function(data) { |
54 | var code = data.code; | 54 | var code = data.code; |
55 | var msg = data.msg; | 55 | var msg = data.msg; |
56 | if ('object' != typeof (msg)) { | 56 | if ('object' != typeof (msg)) { |
... | @@ -58,17 +58,17 @@ | ... | @@ -58,17 +58,17 @@ |
58 | return; | 58 | return; |
59 | } | 59 | } |
60 | var $cur_mod = $('#' + Core.cur_mod); | 60 | var $cur_mod = $('#' + Core.cur_mod); |
61 | - var ele_pay_user = $cur_mod.find('input[name="pay_user"]'); | 61 | + var ele_zf_user = $cur_mod.find('input[name="zf_user"]'); |
62 | - if (ele_pay_user.length == 0) { | 62 | + if (ele_zf_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}}将会很快充入您的账户,请留意游戏提示.'; | 63 | + tpl = '成功使用<span class="text-info">{{=it.ya_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}},{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; |
64 | } else { | 64 | } else { |
65 | tpl = '已向<span class="text-info">' | 65 | tpl = '已向<span class="text-info">' |
66 | - + ele_pay_user.val() | 66 | + + ele_zf_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}}.'; | 67 | + + '</span>发送代付<span class="text-info">{{=it.ya_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}}.'; |
68 | } | 68 | } |
69 | var doTpl = doT.template(tpl); | 69 | var doTpl = doT.template(tpl); |
70 | var success_msg = doTpl({ | 70 | var success_msg = doTpl({ |
71 | - "youai_star" : msg.youai_star, | 71 | + "ya_star" : msg.ya_star, |
72 | "amount" : msg.amount, | 72 | "amount" : msg.amount, |
73 | "game_unit_name" : Core.Data.game_unit_name, | 73 | "game_unit_name" : Core.Data.game_unit_name, |
74 | "game_amount" : msg.game_amount, | 74 | "game_amount" : msg.game_amount, |
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | Core.Data.success_msg = success_msg; | 77 | Core.Data.success_msg = success_msg; |
78 | Core.Data.trade_id = msg.trade_id; | 78 | Core.Data.trade_id = msg.trade_id; |
79 | Core.showTips('成功提交!', true, 2000); | 79 | Core.showTips('成功提交!', true, 2000); |
80 | - Core.updateMod('pay_result'); | 80 | + Core.updateMod('zf_result'); |
81 | } | 81 | } |
82 | 82 | ||
83 | /** | 83 | /** |
... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
91 | var that = this; | 91 | var that = this; |
92 | that.$c.on('click', 'input[type=submit]', function(e) { | 92 | that.$c.on('click', 'input[type=submit]', function(e) { |
93 | e.preventDefault(); | 93 | e.preventDefault(); |
94 | - Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that); | 94 | + Core.ajax_do(that.$c.find('.ajax'), zfconfirm_cb, that); |
95 | return false; | 95 | return false; |
96 | }); | 96 | }); |
97 | // that.$c.on('click', '#change_vc1', function(e) { | 97 | // that.$c.on('click', '#change_vc1', function(e) { |
... | @@ -110,28 +110,28 @@ | ... | @@ -110,28 +110,28 @@ |
110 | /** | 110 | /** |
111 | * 发起代付模块 | 111 | * 发起代付模块 |
112 | */ | 112 | */ |
113 | - var Pay_for = function(modId) { | 113 | + var Zf_for = function(modId) { |
114 | Module.call(this, modId); | 114 | Module.call(this, modId); |
115 | } | 115 | } |
116 | - Core.inherit(Pay_for, Module); | 116 | + Core.inherit(Zf_for, Module); |
117 | - Pay_for.prototype.bind = function() { | 117 | + Zf_for.prototype.bind = function() { |
118 | var that = this; | 118 | var that = this; |
119 | that.$c.on('click', 'input[type=submit]', function(e) { | 119 | that.$c.on('click', 'input[type=submit]', function(e) { |
120 | e.preventDefault(); | 120 | e.preventDefault(); |
121 | - Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that); | 121 | + Core.ajax_do(that.$c.find('.ajax'), zfconfirm_cb, that); |
122 | return false; | 122 | return false; |
123 | }); | 123 | }); |
124 | } | 124 | } |
125 | - Core.registerMod('pay_for', Pay_for); | 125 | + Core.registerMod('zf_for', Zf_for); |
126 | 126 | ||
127 | /** | 127 | /** |
128 | * 显示结果模块 | 128 | * 显示结果模块 |
129 | */ | 129 | */ |
130 | - var Pay_result = function(modId) { | 130 | + var Zf_result = function(modId) { |
131 | Module.call(this, modId); | 131 | Module.call(this, modId); |
132 | } | 132 | } |
133 | - Core.inherit(Pay_result, Module); | 133 | + Core.inherit(Zf_result, Module); |
134 | - Core.registerMod('pay_result', Pay_result); | 134 | + Core.registerMod('zf_result', Zf_result); |
135 | 135 | ||
136 | /** | 136 | /** |
137 | * 充值方式列表模块 | 137 | * 充值方式列表模块 |
... | @@ -147,25 +147,25 @@ | ... | @@ -147,25 +147,25 @@ |
147 | 147 | ||
148 | e.preventDefault(); | 148 | e.preventDefault(); |
149 | var reload = false; | 149 | var reload = false; |
150 | - var list = Core.Data.game_pay_channel_list; | 150 | + var list = Core.Data.game_zf_channel_list; |
151 | var $c = $(e.target); | 151 | var $c = $(e.target); |
152 | var id = $(this).attr('data-id'); | 152 | var id = $(this).attr('data-id'); |
153 | for ( var index in list) { | 153 | for ( var index in list) { |
154 | var item = list[index]; | 154 | var item = list[index]; |
155 | if (id == item.id) { | 155 | if (id == item.id) { |
156 | - if (Core.Data.current_pay_channel != item) { | 156 | + if (Core.Data.current_zf_channel != item) { |
157 | reload = true; | 157 | reload = true; |
158 | } | 158 | } |
159 | - Core.Data.current_pay_channel = item; | 159 | + Core.Data.current_zf_channel = item; |
160 | // Core.Data.game_amount = | 160 | // Core.Data.game_amount = |
161 | // null; | 161 | // null; |
162 | break; | 162 | break; |
163 | } | 163 | } |
164 | } | 164 | } |
165 | if (reload) { | 165 | if (reload) { |
166 | - Core.updateMod('pay'); | 166 | + Core.updateMod('zf'); |
167 | } else { | 167 | } else { |
168 | - Core.showMod('pay'); | 168 | + Core.showMod('zf'); |
169 | } | 169 | } |
170 | 170 | ||
171 | return false; | 171 | return false; |
... | @@ -189,22 +189,22 @@ | ... | @@ -189,22 +189,22 @@ |
189 | /** | 189 | /** |
190 | * 充值模块 | 190 | * 充值模块 |
191 | */ | 191 | */ |
192 | - var Pay = function(modId) { | 192 | + var Zf = function(modId) { |
193 | this.myScroll = null; | 193 | this.myScroll = null; |
194 | Module.call(this, modId); | 194 | Module.call(this, modId); |
195 | } | 195 | } |
196 | - Core.inherit(Pay, Module); | 196 | + Core.inherit(Zf, Module); |
197 | - Pay.prototype.bind = function() { | 197 | + Zf.prototype.bind = function() { |
198 | var that = this; | 198 | var that = this; |
199 | that.$c.on('click', 'input[type=submit]', function(e) { | 199 | that.$c.on('click', 'input[type=submit]', function(e) { |
200 | e.preventDefault(); | 200 | e.preventDefault(); |
201 | var isText = that.$c.find('.require_input input[type=text]').length > 0; | 201 | var isText = that.$c.find('.require_input input[type=text]').length > 0; |
202 | if (isText && that.check()) { | 202 | if (isText && that.check()) { |
203 | Core.ajax_do(that.$c.find('.ajax'), | 203 | Core.ajax_do(that.$c.find('.ajax'), |
204 | - that.paycomfirm_cb, that); | 204 | + that.zfcomfirm_cb, that); |
205 | } else if (!isText) { | 205 | } else if (!isText) { |
206 | Core.ajax_do(that.$c.find('.ajax'), | 206 | Core.ajax_do(that.$c.find('.ajax'), |
207 | - that.paycomfirm_cb, that); | 207 | + that.zfcomfirm_cb, that); |
208 | } | 208 | } |
209 | return false; | 209 | return false; |
210 | }); | 210 | }); |
... | @@ -217,7 +217,7 @@ | ... | @@ -217,7 +217,7 @@ |
217 | } | 217 | } |
218 | }); | 218 | }); |
219 | } | 219 | } |
220 | - Pay.prototype.show_after = function(){ | 220 | + Zf.prototype.show_after = function(){ |
221 | var that = this; | 221 | var that = this; |
222 | if (Core.auto_click){ | 222 | if (Core.auto_click){ |
223 | that.$c.find("input[type='submit'].zhifubaoBtn").click(); | 223 | that.$c.find("input[type='submit'].zhifubaoBtn").click(); |
... | @@ -226,10 +226,10 @@ | ... | @@ -226,10 +226,10 @@ |
226 | $('#alert').hide(); | 226 | $('#alert').hide(); |
227 | 227 | ||
228 | if (!this.myScroll){ | 228 | if (!this.myScroll){ |
229 | - this.myScroll = new iScroll('pay_panel_wrapper'); | 229 | + this.myScroll = new iScroll('zf_panel_wrapper'); |
230 | } | 230 | } |
231 | } | 231 | } |
232 | - Pay.prototype.check = function() { | 232 | + Zf.prototype.check = function() { |
233 | var check = true, that = this; | 233 | var check = true, that = this; |
234 | that.$c.find(".require_input input").each( | 234 | that.$c.find(".require_input input").each( |
235 | function() { | 235 | function() { |
... | @@ -273,16 +273,16 @@ | ... | @@ -273,16 +273,16 @@ |
273 | }); | 273 | }); |
274 | // 更新当前金钱状态 | 274 | // 更新当前金钱状态 |
275 | Core.Data.money = money; | 275 | Core.Data.money = money; |
276 | - $("#pay_form input[name=money]").val(money); | 276 | + $("#zf_form input[name=money]").val(money); |
277 | console.log(Core.Data.post_data); | 277 | console.log(Core.Data.post_data); |
278 | return true; | 278 | return true; |
279 | } | 279 | } |
280 | 280 | ||
281 | - Pay.prototype.refresh = function() { | 281 | + Zf.prototype.refresh = function() { |
282 | this.myScroll.refresh(); | 282 | this.myScroll.refresh(); |
283 | } | 283 | } |
284 | 284 | ||
285 | - Pay.prototype.paycomfirm_cb = function(data) { | 285 | + Zf.prototype.zfcomfirm_cb = function(data) { |
286 | var code = data.code; | 286 | var code = data.code; |
287 | var msg = data.msg; | 287 | var msg = data.msg; |
288 | if ('object' != typeof (msg)) { | 288 | if ('object' != typeof (msg)) { |
... | @@ -290,19 +290,19 @@ | ... | @@ -290,19 +290,19 @@ |
290 | return; | 290 | return; |
291 | } | 291 | } |
292 | 292 | ||
293 | - var pay_param = msg.pay_param; | 293 | + var zf_param = msg.zf_param; |
294 | 294 | ||
295 | - if (pay_param) { | 295 | + if (zf_param) { |
296 | - if (pay_param.next_url && pay_param.next_url != "") { | 296 | + if (zf_param.next_url && zf_param.next_url != "") { |
297 | Core.showTips('正在跳转请稍等...', true, 1000); | 297 | Core.showTips('正在跳转请稍等...', true, 1000); |
298 | Core.Data.frame_title = "充值"; | 298 | Core.Data.frame_title = "充值"; |
299 | - Core.Data.frame_src = pay_param.next_url; | 299 | + Core.Data.frame_src = zf_param.next_url; |
300 | Core.updateMod('frame'); | 300 | Core.updateMod('frame'); |
301 | return; | 301 | return; |
302 | - } else if (pay_param.action_url && pay_param.action_url != "") { | 302 | + } else if (zf_param.action_url && zf_param.action_url != "") { |
303 | 303 | ||
304 | - var action_url = pay_param.action_url; | 304 | + var action_url = zf_param.action_url; |
305 | - var method = pay_param.method; | 305 | + var method = zf_param.method; |
306 | var params = ""; | 306 | var params = ""; |
307 | if (action_url.indexOf("?") != -1) { | 307 | if (action_url.indexOf("?") != -1) { |
308 | params = action_url.split("?")[1]; | 308 | params = action_url.split("?")[1]; |
... | @@ -328,24 +328,24 @@ | ... | @@ -328,24 +328,24 @@ |
328 | return; | 328 | return; |
329 | } | 329 | } |
330 | } | 330 | } |
331 | - var pay_channel_name = '', tpl = ""; | 331 | + var zf_channel_name = '', tpl = ""; |
332 | - if (Core.Data.current_pay_channel) { | 332 | + if (Core.Data.current_zf_channel) { |
333 | - tpl = Core.Data.current_pay_channel.success_msg; | 333 | + tpl = Core.Data.current_zf_channel.success_msg; |
334 | - pay_channel_name = Core.Data.current_pay_channel.name | 334 | + zf_channel_name = Core.Data.current_zf_channel.name |
335 | } else { | 335 | } else { |
336 | - var ele_pay_user = $('input[name="pay_user"]'); | 336 | + var ele_zf_user = $('input[name="zf_user"]'); |
337 | - if (ele_pay_user.length == 0) { | 337 | + if (ele_zf_user.length == 0) { |
338 | - tpl = '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; | 338 | + tpl = '使用{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; |
339 | } else { | 339 | } else { |
340 | tpl = '已向' | 340 | tpl = '已向' |
341 | - + ele_pay_user.val() | 341 | + + ele_zf_user.val() |
342 | - + '发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; | 342 | + + '发送代付{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; |
343 | } | 343 | } |
344 | } | 344 | } |
345 | var doTpl = doT.template(tpl); | 345 | var doTpl = doT.template(tpl); |
346 | var success_msg = doTpl({ | 346 | var success_msg = doTpl({ |
347 | - "pay_channel_name" : pay_channel_name, | 347 | + "zf_channel_name" : zf_channel_name, |
348 | - "youai_star" : msg.youai_star, | 348 | + "ya_star" : msg.ya_star, |
349 | "amount" : msg.amount, | 349 | "amount" : msg.amount, |
350 | "game_unit_name" : Core.Data.game_unit_name, | 350 | "game_unit_name" : Core.Data.game_unit_name, |
351 | "game_amount" : msg.game_amount, | 351 | "game_amount" : msg.game_amount, |
... | @@ -354,23 +354,23 @@ | ... | @@ -354,23 +354,23 @@ |
354 | Core.Data.success_msg = success_msg; | 354 | Core.Data.success_msg = success_msg; |
355 | Core.Data.trade_id = msg.trade_id; | 355 | Core.Data.trade_id = msg.trade_id; |
356 | Core.showTips('成功提交!', true, 2000); | 356 | Core.showTips('成功提交!', true, 2000); |
357 | - Core.updateMod('pay_result'); | 357 | + Core.updateMod('zf_result'); |
358 | } | 358 | } |
359 | - Core.registerMod('pay', Pay); | 359 | + Core.registerMod('zf', Zf); |
360 | 360 | ||
361 | // /** | 361 | // /** |
362 | // * 确认付款(提交表单)模块 | 362 | // * 确认付款(提交表单)模块 |
363 | // */ | 363 | // */ |
364 | - // var Pay_confirm = function(modId){ | 364 | + // var Zf_confirm = function(modId){ |
365 | // Module.call(this, modId); | 365 | // Module.call(this, modId); |
366 | // } | 366 | // } |
367 | - // Core.inherit(Pay_confirm, Module); | 367 | + // Core.inherit(Zf_confirm, Module); |
368 | - // Pay_confirm.prototype.bind = function(){ | 368 | + // Zf_confirm.prototype.bind = function(){ |
369 | // var that = this; | 369 | // var that = this; |
370 | // that.$c.on('click', '[type=submit]', function(e) { | 370 | // that.$c.on('click', '[type=submit]', function(e) { |
371 | // e.preventDefault(); | 371 | // e.preventDefault(); |
372 | // Core.ajax_do(that.$c.find('.ajax'), | 372 | // Core.ajax_do(that.$c.find('.ajax'), |
373 | - // that.paycomfirm_cb, that); | 373 | + // that.zfcomfirm_cb, that); |
374 | // return false; | 374 | // return false; |
375 | // }); | 375 | // }); |
376 | // that.$c.on('click', '#change_vc', function(e){ | 376 | // that.$c.on('click', '#change_vc', function(e){ |
... | @@ -385,22 +385,22 @@ | ... | @@ -385,22 +385,22 @@ |
385 | // }); | 385 | // }); |
386 | // that.$c.on('click', '.checkbox', function(e){ | 386 | // that.$c.on('click', '.checkbox', function(e){ |
387 | // var chked = e.target.checked; | 387 | // var chked = e.target.checked; |
388 | - // var proxy_pay = that.$c.find("div.proxy_pay"); | 388 | + // var proxy_zf = that.$c.find("div.proxy_zf"); |
389 | - // var txt_pay_user = | 389 | + // var txt_zf_user = |
390 | - // that.$c.find("input[data-key='pay_user']"); | 390 | + // that.$c.find("input[data-key='zf_user']"); |
391 | // if (chked){ | 391 | // if (chked){ |
392 | - // txt_pay_user.attr('name', 'pay_user'); | 392 | + // txt_zf_user.attr('name', 'zf_user'); |
393 | - // txt_pay_user.attr('required', 'required'); | 393 | + // txt_zf_user.attr('required', 'required'); |
394 | - // proxy_pay.show(); | 394 | + // proxy_zf.show(); |
395 | // }else{ | 395 | // }else{ |
396 | - // txt_pay_user.removeAttr('name'); | 396 | + // txt_zf_user.removeAttr('name'); |
397 | - // txt_pay_user.removeAttr('required'); | 397 | + // txt_zf_user.removeAttr('required'); |
398 | - // proxy_pay.hide(); | 398 | + // proxy_zf.hide(); |
399 | // } | 399 | // } |
400 | // }); | 400 | // }); |
401 | // } | 401 | // } |
402 | // | 402 | // |
403 | - // Pay_confirm.prototype.paycomfirm_cb = function(data){ | 403 | + // Zf_confirm.prototype.zfcomfirm_cb = function(data){ |
404 | // var code = data.code; | 404 | // var code = data.code; |
405 | // var msg = data.msg; | 405 | // var msg = data.msg; |
406 | // if ('object' != typeof(msg)){ | 406 | // if ('object' != typeof(msg)){ |
... | @@ -408,16 +408,16 @@ | ... | @@ -408,16 +408,16 @@ |
408 | // return; | 408 | // return; |
409 | // } | 409 | // } |
410 | // | 410 | // |
411 | - // var pay_param = msg.pay_param; | 411 | + // var zf_param = msg.zf_param; |
412 | - // if (pay_param){ | 412 | + // if (zf_param){ |
413 | - // if (pay_param.next_url && pay_param.next_url!=""){ | 413 | + // if (zf_param.next_url && zf_param.next_url!=""){ |
414 | // Core.showTips('<h3>正在跳转请稍等...</h3>'); | 414 | // Core.showTips('<h3>正在跳转请稍等...</h3>'); |
415 | - // document.location = pay_param.next_url; | 415 | + // document.location = zf_param.next_url; |
416 | // return; | 416 | // return; |
417 | - // }else if(pay_param.action_url && | 417 | + // }else if(zf_param.action_url && |
418 | - // pay_param.action_url!=""){ | 418 | + // zf_param.action_url!=""){ |
419 | - // var action_url = pay_param.action_url; | 419 | + // var action_url = zf_param.action_url; |
420 | - // var method = pay_param.method; | 420 | + // var method = zf_param.method; |
421 | // var params = ""; | 421 | // var params = ""; |
422 | // if(action_url.indexOf("?")!=-1){ | 422 | // if(action_url.indexOf("?")!=-1){ |
423 | // params = action_url.split("?")[1]; | 423 | // params = action_url.split("?")[1]; |
... | @@ -441,57 +441,57 @@ | ... | @@ -441,57 +441,57 @@ |
441 | // return; | 441 | // return; |
442 | // } | 442 | // } |
443 | // } | 443 | // } |
444 | - // var pay_channel_name = '', tpl = ""; | 444 | + // var zf_channel_name = '', tpl = ""; |
445 | - // if (Core.Data.current_pay_channel){ | 445 | + // if (Core.Data.current_zf_channel){ |
446 | - // tpl = Core.Data.current_pay_channel.success_msg; | 446 | + // tpl = Core.Data.current_zf_channel.success_msg; |
447 | - // pay_channel_name = current_pay_channel.name | 447 | + // zf_channel_name = current_zf_channel.name |
448 | // }else{ | 448 | // }else{ |
449 | - // var ele_pay_user = $('input[name="pay_user"]'); | 449 | + // var ele_zf_user = $('input[name="zf_user"]'); |
450 | - // if(ele_pay_user.length == 0){ | 450 | + // if(ele_zf_user.length == 0){ |
451 | // tpl = | 451 | // tpl = |
452 | - // '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; | 452 | + // '使用{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.'; |
453 | // }else{ | 453 | // }else{ |
454 | // tpl = | 454 | // tpl = |
455 | - // '已向'+ele_pay_user.val()+'发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; | 455 | + // '已向'+ele_zf_user.val()+'发送代付{{=it.ya_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.'; |
456 | // } | 456 | // } |
457 | // } | 457 | // } |
458 | // var doTpl = doT.template(tpl); | 458 | // var doTpl = doT.template(tpl); |
459 | // var success_msg = | 459 | // var success_msg = |
460 | - // doTpl({"pay_channel_name":pay_channel_name, | 460 | + // doTpl({"zf_channel_name":zf_channel_name, |
461 | - // "youai_star":msg.youai_star, "amount":msg.amount, | 461 | + // "ya_star":msg.ya_star, "amount":msg.amount, |
462 | // "game_unit_name":Core.Data.game_unit_name, | 462 | // "game_unit_name":Core.Data.game_unit_name, |
463 | // "game_amount":msg.game_amount, | 463 | // "game_amount":msg.game_amount, |
464 | // "game_unit":Core.Data.game_unit}); | 464 | // "game_unit":Core.Data.game_unit}); |
465 | // Core.Data.success_msg = success_msg; | 465 | // Core.Data.success_msg = success_msg; |
466 | // Core.Data.trade_id = msg.trade_id; | 466 | // Core.Data.trade_id = msg.trade_id; |
467 | // Core.showTips('成功提交!', true, 2000); | 467 | // Core.showTips('成功提交!', true, 2000); |
468 | - // Core.updateMod('pay_result'); | 468 | + // Core.updateMod('zf_result'); |
469 | // } | 469 | // } |
470 | - // Core.registerMod('pay_confirm', Pay_confirm); | 470 | + // Core.registerMod('zf_confirm', Zf_confirm); |
471 | 471 | ||
472 | /** | 472 | /** |
473 | * 代付操作模块 | 473 | * 代付操作模块 |
474 | */ | 474 | */ |
475 | - var Pay_proxy = function(modId) { | 475 | + var Zf_proxy = function(modId) { |
476 | Module.call(this, modId); | 476 | Module.call(this, modId); |
477 | } | 477 | } |
478 | - Core.inherit(Pay_proxy, Module); | 478 | + Core.inherit(Zf_proxy, Module); |
479 | - Pay_proxy.prototype.bind = function() { | 479 | + Zf_proxy.prototype.bind = function() { |
480 | var that = this; | 480 | var that = this; |
481 | - that.$c.on('click', '.btn-payfor', function(e) { | 481 | + that.$c.on('click', '.btn-zffor', function(e) { |
482 | e.preventDefault(); | 482 | e.preventDefault(); |
483 | - Core.ajax_do(that.$c.find('form.ajax'), that.payproxy_cb, | 483 | + Core.ajax_do(that.$c.find('form.ajax'), that.zfproxy_cb, |
484 | that); | 484 | that); |
485 | return false; | 485 | return false; |
486 | }); | 486 | }); |
487 | that.$c.on('click', '.btn-undo', function(e) { | 487 | that.$c.on('click', '.btn-undo', function(e) { |
488 | e.preventDefault(); | 488 | e.preventDefault(); |
489 | - Core.ajax_do(that.$c.find('a.ajax'), that.payproxy_cb, | 489 | + Core.ajax_do(that.$c.find('a.ajax'), that.zfproxy_cb, |
490 | that); | 490 | that); |
491 | return false; | 491 | return false; |
492 | }); | 492 | }); |
493 | } | 493 | } |
494 | - Pay_proxy.prototype.payproxy_cb = function(data) { | 494 | + Zf_proxy.prototype.zfproxy_cb = function(data) { |
495 | var code = data.code; | 495 | var code = data.code; |
496 | var msg = data.msg; | 496 | var msg = data.msg; |
497 | Core.showTips(msg, true, 3000); | 497 | Core.showTips(msg, true, 3000); |
... | @@ -503,13 +503,13 @@ | ... | @@ -503,13 +503,13 @@ |
503 | }, 2000); | 503 | }, 2000); |
504 | } | 504 | } |
505 | } | 505 | } |
506 | - Core.registerMod('pay_proxy', Pay_proxy); | 506 | + Core.registerMod('zf_proxy', Zf_proxy); |
507 | 507 | ||
508 | - var Pay_feedback = function(modId){ | 508 | + var Zf_feedback = function(modId){ |
509 | Module.call(this, modId); | 509 | Module.call(this, modId); |
510 | } | 510 | } |
511 | - Core.inherit(Pay_feedback, Module); | 511 | + Core.inherit(Zf_feedback, Module); |
512 | - Pay_feedback.prototype.bind = function(){ | 512 | + Zf_feedback.prototype.bind = function(){ |
513 | var that = this; | 513 | var that = this; |
514 | that.$c.on('click', '.submit', function(e){ | 514 | that.$c.on('click', '.submit', function(e){ |
515 | e.preventDefault(); | 515 | e.preventDefault(); |
... | @@ -521,13 +521,13 @@ | ... | @@ -521,13 +521,13 @@ |
521 | return false; | 521 | return false; |
522 | }) | 522 | }) |
523 | } | 523 | } |
524 | - Pay_feedback.prototype.sq_cb = function(data) { | 524 | + Zf_feedback.prototype.sq_cb = function(data) { |
525 | Core.showTips(data.msg, true, 2000); | 525 | Core.showTips(data.msg, true, 2000); |
526 | this.isValid = false; | 526 | this.isValid = false; |
527 | this.$c.find('textarea').val(''); | 527 | this.$c.find('textarea').val(''); |
528 | - Core.showMod('pay'); | 528 | + Core.showMod('zf'); |
529 | } | 529 | } |
530 | - Core.registerMod('pay_feedback', Pay_feedback); | 530 | + Core.registerMod('zf_feedback', Zf_feedback); |
531 | /** | 531 | /** |
532 | * 兑换记录模块 | 532 | * 兑换记录模块 |
533 | */ | 533 | */ |
... | @@ -573,15 +573,15 @@ | ... | @@ -573,15 +573,15 @@ |
573 | Core.inherit(Proxy_record, Module); | 573 | Core.inherit(Proxy_record, Module); |
574 | Proxy_record.prototype.bind = function() { | 574 | Proxy_record.prototype.bind = function() { |
575 | var that = this; | 575 | var that = this; |
576 | - that.$c.on('click', '.op-payfor', function(e) { | 576 | + that.$c.on('click', '.op-zffor', function(e) { |
577 | e.preventDefault(); | 577 | e.preventDefault(); |
578 | var $e = $(e.target); | 578 | var $e = $(e.target); |
579 | var id = $e.attr('data-id'); | 579 | var id = $e.attr('data-id'); |
580 | - $e.data('path', '/pay/proxy/pay/?id=' + id + '&format=json'); | 580 | + $e.data('path', '/zf/proxy/zf/?id=' + id + '&format=json'); |
581 | Core.load_json($e, function(data){ | 581 | Core.load_json($e, function(data){ |
582 | Core.Data.temp = data; | 582 | Core.Data.temp = data; |
583 | Core.showTips('加载完成!', true, 2000); | 583 | Core.showTips('加载完成!', true, 2000); |
584 | - Core.updateMod('pay_proxy'); | 584 | + Core.updateMod('zf_proxy'); |
585 | }, that); | 585 | }, that); |
586 | return false; | 586 | return false; |
587 | }); | 587 | }); |
... | @@ -599,7 +599,7 @@ | ... | @@ -599,7 +599,7 @@ |
599 | Core.load_html(this.$c.find('.trade-list'), this.pr_cb, | 599 | Core.load_html(this.$c.find('.trade-list'), this.pr_cb, |
600 | this); | 600 | this); |
601 | } | 601 | } |
602 | - if(Core.last_mod == 'pay_proxy') return; | 602 | + if(Core.last_mod == 'zf_proxy') return; |
603 | var _des = Core.last_mod ? Core.last_mod : 'home'; | 603 | var _des = Core.last_mod ? Core.last_mod : 'home'; |
604 | this.$c.find('a.btn.pull-left').attr('href', '#'+_des); | 604 | this.$c.find('a.btn.pull-left').attr('href', '#'+_des); |
605 | } | 605 | } |
... | @@ -660,11 +660,11 @@ | ... | @@ -660,11 +660,11 @@ |
660 | } | 660 | } |
661 | Invite_friend.prototype.show_after = function(){ | 661 | Invite_friend.prototype.show_after = function(){ |
662 | var that = this; | 662 | var that = this; |
663 | - if(Core.isWeixin){ | 663 | + if(Core.isWx){ |
664 | - that.$c.find('#share_weixin').show(); | 664 | + that.$c.find('#share_wx').show(); |
665 | that.$c.find('#share').hide(); | 665 | that.$c.find('#share').hide(); |
666 | }else{ | 666 | }else{ |
667 | - that.$c.find('#share_weixin').hide(); | 667 | + that.$c.find('#share_wx').hide(); |
668 | that.$c.find('#share').show(); | 668 | that.$c.find('#share').show(); |
669 | } | 669 | } |
670 | 670 | ||
... | @@ -681,7 +681,7 @@ | ... | @@ -681,7 +681,7 @@ |
681 | Core.inherit(Other, Module); | 681 | Core.inherit(Other, Module); |
682 | Other.prototype.bind = function() { | 682 | Other.prototype.bind = function() { |
683 | var that = this; | 683 | var that = this; |
684 | - that.$c.on('click', 'ol.other-pay li a', function(e) { | 684 | + that.$c.on('click', 'ol.other-zf li a', function(e) { |
685 | e.preventDefault(); | 685 | e.preventDefault(); |
686 | var $e = $(e.target); | 686 | var $e = $(e.target); |
687 | while (!$e.is('a')) | 687 | while (!$e.is('a')) |
... | @@ -906,28 +906,29 @@ | ... | @@ -906,28 +906,29 @@ |
906 | * enter_amount 进入sdk要购买的游戏币转为平台币数量(换算) | 906 | * enter_amount 进入sdk要购买的游戏币转为平台币数量(换算) |
907 | * total_amount 用户所拥有的平台币 | 907 | * total_amount 用户所拥有的平台币 |
908 | * game_amount 本次支付需要购买的游戏币 | 908 | * game_amount 本次支付需要购买的游戏币 |
909 | - * youai_star 本次支付需要支付的平台币(换算) | 909 | + * ya_star 本次支付需要支付的平台币(换算) |
910 | * money 本次支付需要支付的人民币(换算) | 910 | * money 本次支付需要支付的人民币(换算) |
911 | */ | 911 | */ |
912 | - function pay_init() { | 912 | + function zf_init() { |
913 | if (Core.Data.enter_game_amount > 0) { | 913 | if (Core.Data.enter_game_amount > 0) { |
914 | Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate; | 914 | Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate; |
915 | - Core.Data.pay_again = 0; | 915 | + Core.Data.zf_again = 0; |
916 | } | 916 | } |
917 | //if (Core.Data.enter_game_amount > 0 | 917 | //if (Core.Data.enter_game_amount > 0 |
918 | // && Core.Data.enter_amount <= Core.Data.total_amount) { | 918 | // && Core.Data.enter_amount <= Core.Data.total_amount) { |
919 | // // 需要进入兑换页面 | 919 | // // 需要进入兑换页面 |
920 | // Core.start_page = "exchange"; | 920 | // Core.start_page = "exchange"; |
921 | // Core.Data.game_amount = Core.Data.enter_game_amount; | 921 | // Core.Data.game_amount = Core.Data.enter_game_amount; |
922 | - // Core.Data.youai_star = Core.Data.enter_amount; | 922 | + // Core.Data.ya_star = Core.Data.enter_amount; |
923 | - // Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 923 | + // Core.Data.money = Core.Data.ya_star / Core.Data.rate; |
924 | //} else | 924 | //} else |
925 | //if (Core.Data.enter_game_amount > 0) { | 925 | //if (Core.Data.enter_game_amount > 0) { |
926 | // 需要进入渠道充值页面 | 926 | // 需要进入渠道充值页面 |
927 | Core.start_page = "channel_list"; | 927 | Core.start_page = "channel_list"; |
928 | Core.Data.game_amount = Core.Data.enter_game_amount; | 928 | Core.Data.game_amount = Core.Data.enter_game_amount; |
929 | - Core.Data.youai_star = Core.Data.enter_amount; | 929 | + Core.Data.ya_star = Core.Data.enter_amount; |
930 | - Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 930 | + Core.Data.money = Core.Data.ya_star / Core.Data.rate; |
931 | + Core.Data.current_money = (Core.Data.dct*Core.Data.money).toFixed(2) | ||
931 | //} else { | 932 | //} else { |
932 | // // 没有输入充值数量,进入选择数量的界面 | 933 | // // 没有输入充值数量,进入选择数量的界面 |
933 | //} | 934 | //} |
... | @@ -939,7 +940,7 @@ function onBridgeReady() { | ... | @@ -939,7 +940,7 @@ function onBridgeReady() { |
939 | var mainTitle= '一起玩' + Core.Data.game_name; | 940 | var mainTitle= '一起玩' + Core.Data.game_name; |
940 | var mainDesc = '我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!'; | 941 | var mainDesc = '我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!'; |
941 | try{ | 942 | try{ |
942 | - WeixinJSBridge.on("menu:share:timeline", function(e) { | 943 | + WxJSBridge.on("menu:share:timeline", function(e) { |
943 | var data = { | 944 | var data = { |
944 | appid:'wx1d2b5cd6b11aaf3d', | 945 | appid:'wx1d2b5cd6b11aaf3d', |
945 | img_url:mainImgUrl, | 946 | img_url:mainImgUrl, |
... | @@ -950,21 +951,21 @@ function onBridgeReady() { | ... | @@ -950,21 +951,21 @@ function onBridgeReady() { |
950 | title: mainTitle | 951 | title: mainTitle |
951 | }; | 952 | }; |
952 | alert('shareTimeline'); | 953 | alert('shareTimeline'); |
953 | - WeixinJSBridge.invoke("shareTimeline", data, function(res) { | 954 | + WxJSBridge.invoke("shareTimeline", data, function(res) { |
954 | - WeixinJSBridge.log(res.err_msg); | 955 | + WxJSBridge.log(res.err_msg); |
955 | }); | 956 | }); |
956 | }); | 957 | }); |
957 | - WeixinJSBridge.on("menu:share:weibo", function() { | 958 | + WxJSBridge.on("menu:share:weibo", function() { |
958 | - WeixinJSBridge.invoke("shareWeibo", { | 959 | + WxJSBridge.invoke("shareWeibo", { |
959 | "content": mainDesc, | 960 | "content": mainDesc, |
960 | "url": mainURL | 961 | "url": mainURL |
961 | }, function(res) { | 962 | }, function(res) { |
962 | //alert(res.err_msg); | 963 | //alert(res.err_msg); |
963 | - //WeixinJSBridge.log(res.err_msg); | 964 | + //WxJSBridge.log(res.err_msg); |
964 | }); | 965 | }); |
965 | }); | 966 | }); |
966 | - WeixinJSBridge.on('menu:share:appmessage', function(argv) { | 967 | + WxJSBridge.on('menu:share:appmessage', function(argv) { |
967 | - WeixinJSBridge.invoke("sendAppMessage", { | 968 | + WxJSBridge.invoke("sendAppMessage", { |
968 | appid:'wx1d2b5cd6b11aaf3d', | 969 | appid:'wx1d2b5cd6b11aaf3d', |
969 | img_url: mainImgUrl, | 970 | img_url: mainImgUrl, |
970 | img_width: "120", | 971 | img_width: "120", |
... | @@ -974,18 +975,18 @@ function onBridgeReady() { | ... | @@ -974,18 +975,18 @@ function onBridgeReady() { |
974 | title: mainTitle | 975 | title: mainTitle |
975 | }, function(res) { | 976 | }, function(res) { |
976 | //alert(res.err_msg); | 977 | //alert(res.err_msg); |
977 | - //WeixinJSBridge.log(res.err_msg) | 978 | + //WxJSBridge.log(res.err_msg) |
978 | }); | 979 | }); |
979 | }); | 980 | }); |
980 | 981 | ||
981 | } catch(error){alert(error);} | 982 | } catch(error){alert(error);} |
982 | }; | 983 | }; |
983 | - if (typeof WeixinJSBridge == "undefined"){ | 984 | + if (typeof WxJSBridge == "undefined"){ |
984 | if( document.addEventListener ){ | 985 | if( document.addEventListener ){ |
985 | - document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false); | 986 | + document.addEventListener('WxJSBridgeReady', onBridgeReady, false); |
986 | }else if (document.attachEvent){ | 987 | }else if (document.attachEvent){ |
987 | - document.attachEvent('WeixinJSBridgeReady', onBridgeReady); | 988 | + document.attachEvent('WxJSBridgeReady', onBridgeReady); |
988 | - document.attachEvent('onWeixinJSBridgeReady', onBridgeReady); | 989 | + document.attachEvent('onWxJSBridgeReady', onBridgeReady); |
989 | } | 990 | } |
990 | }else{ | 991 | }else{ |
991 | onBridgeReady(); | 992 | onBridgeReady(); |
... | @@ -993,12 +994,12 @@ function onBridgeReady() { | ... | @@ -993,12 +994,12 @@ function onBridgeReady() { |
993 | 994 | ||
994 | if (window.isGetData == 1) { | 995 | if (window.isGetData == 1) { |
995 | // 兼容旧版本sdk | 996 | // 兼容旧版本sdk |
996 | - pay_init(); | 997 | + zf_init(); |
997 | $('#loading').hide(); | 998 | $('#loading').hide(); |
998 | Core.init(); | 999 | Core.init(); |
999 | } else { | 1000 | } else { |
1000 | window.isGetData = 1; | 1001 | window.isGetData = 1; |
1001 | - window.initFunc = pay_init; | 1002 | + window.initFunc = zf_init; |
1002 | } | 1003 | } |
1003 | } | 1004 | } |
1004 | })(); | 1005 | })(); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -13,7 +13,6 @@ | ... | @@ -13,7 +13,6 @@ |
13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> | 13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> |
14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> | 14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> |
15 | 15 | ||
16 | - | ||
17 | <title> | 16 | <title> |
18 | 平台登录 | 17 | 平台登录 |
19 | </title> | 18 | </title> |
... | @@ -37,8 +36,11 @@ | ... | @@ -37,8 +36,11 @@ |
37 | <div class="new-sdk-container"> | 36 | <div class="new-sdk-container"> |
38 | <div class="new-container-box"> | 37 | <div class="new-container-box"> |
39 | <div class="SDK-titlebox"></div> | 38 | <div class="SDK-titlebox"></div> |
40 | - <form action="/sdk/login" method="post" class="ajax align-left clearfix"> | 39 | + <form action="/sdk/login2" method="post" class="ajax align-left clearfix"> |
41 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 40 | + <div class="new-sdk-logo"> |
41 | + <a href="#"> | ||
42 | + <img src="images/new-sdk-logo.png"> | ||
43 | + </a></div> | ||
42 | <div class="new-sdk-main"> | 44 | <div class="new-sdk-main"> |
43 | <div class="inputbox clearfix" style="position: relative;"> | 45 | <div class="inputbox clearfix" style="position: relative;"> |
44 | <div class="ileft">账号:</div> | 46 | <div class="ileft">账号:</div> |
... | @@ -68,7 +70,7 @@ | ... | @@ -68,7 +70,7 @@ |
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"> | 70 | <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> | 71 | </a> |
70 | 72 | ||
71 | - <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide"> | 73 | + <a title="微信登录" data-replace="href" href="sdk://wxlogin?app_id={app_id}&next=/static/sdk/login.html" class="wx hide"> |
72 | </a> | 74 | </a> |
73 | </p> | 75 | </p> |
74 | 76 | ||
... | @@ -83,11 +85,11 @@ | ... | @@ -83,11 +85,11 @@ |
83 | </div> | 85 | </div> |
84 | <ul class="inline-btn login-inline-btn"> | 86 | <ul class="inline-btn login-inline-btn"> |
85 | <li> | 87 | <li> |
86 | - <a method="post" class="btn btn_pri_block" href="#register">一键注册</a> | 88 | + <a method="post" class="btn btn_pri_block" href="#register">注册</a> |
87 | 89 | ||
88 | </li> | 90 | </li> |
89 | <li> | 91 | <li> |
90 | -<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> --> | 92 | +<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register2?type=-1&app_id={app_id}">一键注册</a> --> |
91 | 93 | ||
92 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> | 94 | <a class="btn larg btn-orange submit" utocomplete="off" >登录</a> |
93 | </li> | 95 | </li> |
... | @@ -103,7 +105,9 @@ | ... | @@ -103,7 +105,9 @@ |
103 | <div class="new-sdk-container"> | 105 | <div class="new-sdk-container"> |
104 | <div class="new-container-box"> | 106 | <div class="new-container-box"> |
105 | <div class="SDK-titlebox"></div> | 107 | <div class="SDK-titlebox"></div> |
106 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 108 | + <div class="new-sdk-logo"> |
109 | + <a href="#"><img src="images/new-sdk-logo.png"></a> | ||
110 | + </div> | ||
107 | <div class="login-third-list"> | 111 | <div class="login-third-list"> |
108 | <div class="title">请选择快速登录</div> | 112 | <div class="title">请选择快速登录</div> |
109 | <div class="third-list"> | 113 | <div class="third-list"> |
... | @@ -128,8 +132,10 @@ | ... | @@ -128,8 +132,10 @@ |
128 | 132 | ||
129 | <div class="new-sdk-container"> | 133 | <div class="new-sdk-container"> |
130 | <div class="SDK-titlebox"></div> | 134 | <div class="SDK-titlebox"></div> |
131 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 135 | + <div class="new-sdk-logo"> |
132 | - <form action="/sdk/register" class="ajax clearfix"> | 136 | + <a href="#"><img src="images/new-sdk-logo.png"></a> |
137 | + </div> | ||
138 | + <form action="/sdk/register2" class="ajax clearfix"> | ||
133 | <div class="new-sdk-main"> | 139 | <div class="new-sdk-main"> |
134 | <div class="inputbox clearfix"> | 140 | <div class="inputbox clearfix"> |
135 | <div class="ileft">账号:</div> | 141 | <div class="ileft">账号:</div> |
... | @@ -158,7 +164,7 @@ | ... | @@ -158,7 +164,7 @@ |
158 | <input type="hidden" name="type" value="-1"> | 164 | <input type="hidden" name="type" value="-1"> |
159 | <ul class="inline-btn"> | 165 | <ul class="inline-btn"> |
160 | <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> | 166 | <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> |
161 | - <li><a class="submit btn larg " >确定注册</a></li> | 167 | + <li><input type="button" class="submit btn larg" id="btn-regist" value="确定注册"></li> |
162 | </ul> | 168 | </ul> |
163 | </form> | 169 | </form> |
164 | </div> | 170 | </div> |
... | @@ -169,7 +175,9 @@ | ... | @@ -169,7 +175,9 @@ |
169 | <section id="agreement" class="hide"> | 175 | <section id="agreement" class="hide"> |
170 | <div class="new-sdk-container"> | 176 | <div class="new-sdk-container"> |
171 | <div class="SDK-titlebox"></div> | 177 | <div class="SDK-titlebox"></div> |
172 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 178 | + <div class="new-sdk-logo"> |
179 | + <a href="#"><img src="images/new-sdk-logo.png"></a> | ||
180 | + </div> | ||
173 | <div class="new-sdk-content" style="overflow: hidden;"> | 181 | <div class="new-sdk-content" style="overflow: hidden;"> |
174 | <h3>网络服务协议</h3> | 182 | <h3>网络服务协议</h3> |
175 | <div class="content-main" style="height: 220px;"> | 183 | <div class="content-main" style="height: 220px;"> |
... | @@ -253,6 +261,8 @@ | ... | @@ -253,6 +261,8 @@ |
253 | </section> | 261 | </section> |
254 | <section id="identityCard_ok" class="hide" data-attr="dot"> | 262 | <section id="identityCard_ok" class="hide" data-attr="dot"> |
255 | </section> | 263 | </section> |
264 | +<section id="bindQQ_ok" class="hide" data-attr="dot"> | ||
265 | +</section> | ||
256 | <!-- 找回密码模块 --> | 266 | <!-- 找回密码模块 --> |
257 | <section id="find_pwd" class="hide" data-replace="1"> | 267 | <section id="find_pwd" class="hide" data-replace="1"> |
258 | <input type="hidden" name="pwd_code" value=""> | 268 | <input type="hidden" name="pwd_code" value=""> |
... | @@ -266,33 +276,33 @@ | ... | @@ -266,33 +276,33 @@ |
266 | </div> | 276 | </div> |
267 | <div class="pwd_box"> | 277 | <div class="pwd_box"> |
268 | <ul class="step-tab"> | 278 | <ul class="step-tab"> |
269 | - <li><a href="javascript:;">通过手机找回</a></li> | 279 | + <!--<li><a href="javascript:;">通过手机找回</a></li>--> |
270 | <li><a href="javascript:;">通过密保找回</a></li> | 280 | <li><a href="javascript:;">通过密保找回</a></li> |
271 | <!--<li><a href="javascript:;">通过邮箱找回</a></li>--> | 281 | <!--<li><a href="javascript:;">通过邮箱找回</a></li>--> |
272 | <li><a href="javascript:;">联系客服</a></li> | 282 | <li><a href="javascript:;">联系客服</a></li> |
273 | </ul> | 283 | </ul> |
274 | 284 | ||
275 | <div class="step-box"> | 285 | <div class="step-box"> |
276 | - <div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;"> | 286 | + <!--<div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;">--> |
277 | - <div class="new-sdk-box"> | 287 | + <!--<div class="new-sdk-box">--> |
278 | - <div class="input" style="padding: 15px 0;"> | 288 | + <!--<div class="input" style="padding: 15px 0;">--> |
279 | - <input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;"> | 289 | + <!--<input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;">--> |
280 | - </div> | 290 | + <!--</div>--> |
281 | - <div class="input" style="padding: 15px 0;"> | 291 | + <!--<div class="input" style="padding: 15px 0;">--> |
282 | - <input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;"> | 292 | + <!--<input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;">--> |
283 | - </div> | 293 | + <!--</div> --> |
284 | - <div class="inputCode clearfix"> | 294 | + <!--<div class="inputCode clearfix">--> |
285 | - <div class="input fl" style="padding: 15px 0;"> | 295 | + <!--<div class="input fl" style="padding: 15px 0;">--> |
286 | - <input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;"> | 296 | + <!--<input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;">--> |
287 | - </div> | 297 | + <!--</div>--> |
288 | - <a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a> | 298 | + <!--<a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a>--> |
289 | - </div> | 299 | + <!--</div>--> |
290 | - <ul class="inline-btn" style="margin-top: 15px;"> | 300 | + <!--<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> | 301 | + <!--<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> | 302 | + <!--<li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li>--> |
293 | - </ul> | 303 | + <!--</ul> --> |
294 | - </div> | 304 | + <!--</div>--> |
295 | - </div> | 305 | + <!--</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"> | 306 | <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"> | 307 | <div class="question-input-box clearfix"> |
298 | <div class="pull-left qib-txt"> | 308 | <div class="pull-left qib-txt"> |
... | @@ -374,6 +384,8 @@ | ... | @@ -374,6 +384,8 @@ |
374 | <section id="answer_question" data-attr="dot" class="hide"></section> | 384 | <section id="answer_question" data-attr="dot" class="hide"></section> |
375 | <!-- 绑定模块 --> | 385 | <!-- 绑定模块 --> |
376 | <section id="bind" data-attr="dot" class="hide" data-auth="1"></section> | 386 | <section id="bind" data-attr="dot" class="hide" data-auth="1"></section> |
387 | +<!-- 绑定QQ --> | ||
388 | +<section id="bindQQ" data-attr="dot" class="hide" data-auth="1"></section> | ||
377 | <!-- 绑定手机 --> | 389 | <!-- 绑定手机 --> |
378 | <section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section> | 390 | <section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section> |
379 | <!-- 解绑手机模块 --> | 391 | <!-- 解绑手机模块 --> |
... | @@ -419,17 +431,24 @@ | ... | @@ -419,17 +431,24 @@ |
419 | <p>{{=Core.Data.nickname}}</p> | 431 | <p>{{=Core.Data.nickname}}</p> |
420 | </div> | 432 | </div> |
421 | <div class="inline-btn pull-right w_45"> | 433 | <div class="inline-btn pull-right w_45"> |
434 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | ||
435 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
436 | + {{??}} | ||
422 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 437 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
438 | + {{?}} | ||
423 | </div> | 439 | </div> |
424 | </div> | 440 | </div> |
425 | <div class="bind-user"> | 441 | <div class="bind-user"> |
426 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> | 442 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> |
427 | - 您当前还是游客,为保证账号安全,请升级账号! | 443 | + 为保证您的虚拟财产安全,请升级账号! |
428 | </div> | 444 | </div> |
429 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> | 445 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> |
430 | <a class="btn btn-bind" href="#modify_pwd">马上升级</a> | 446 | <a class="btn btn-bind" href="#modify_pwd">马上升级</a> |
431 | </div> | 447 | </div> |
432 | </div> | 448 | </div> |
449 | + {{? Core.Data.kefu_info != ""}} | ||
450 | + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px; left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
451 | + {{?}} | ||
433 | </div> | 452 | </div> |
434 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> | 453 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> |
435 | <div class="user-center-box"> | 454 | <div class="user-center-box"> |
... | @@ -439,7 +458,11 @@ | ... | @@ -439,7 +458,11 @@ |
439 | <p>{{=Core.Data.nickname}}</p> | 458 | <p>{{=Core.Data.nickname}}</p> |
440 | </div> | 459 | </div> |
441 | <div class="inline-btn pull-right w_45"> | 460 | <div class="inline-btn pull-right w_45"> |
461 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | ||
462 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
463 | + {{??}} | ||
442 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 464 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
465 | + {{?}} | ||
443 | </div> | 466 | </div> |
444 | </div> | 467 | </div> |
445 | {{? Core.Data.bind_phone === ""}} | 468 | {{? Core.Data.bind_phone === ""}} |
... | @@ -457,7 +480,9 @@ | ... | @@ -457,7 +480,9 @@ |
457 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | 480 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> |
458 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | 481 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> |
459 | </ul> | 482 | </ul> |
460 | - {{?}} | 483 | + {{? Core.Data.kefu_info != ""}} |
484 | + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
485 | + {{?}} {{?}} | ||
461 | </div> | 486 | </div> |
462 | {{?? Core.Data.is_guest == 0}} | 487 | {{?? Core.Data.is_guest == 0}} |
463 | <div class="user-center-box"> | 488 | <div class="user-center-box"> |
... | @@ -467,18 +492,76 @@ | ... | @@ -467,18 +492,76 @@ |
467 | <p>{{=Core.Data.nickname}}</p> | 492 | <p>{{=Core.Data.nickname}}</p> |
468 | </div> | 493 | </div> |
469 | <div class="inline-btn pull-right w_45"> | 494 | <div class="inline-btn pull-right w_45"> |
495 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | ||
470 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 496 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
497 | + {{??}} | ||
498 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
499 | + {{?}} | ||
471 | </div> | 500 | </div> |
472 | </div> | 501 | </div> |
473 | 502 | ||
503 | + {{? Core.Data.force_auth == 1}} | ||
504 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
474 | {{? Core.Data.bind_phone === ""}} | 505 | {{? Core.Data.bind_phone === ""}} |
475 | - <ul class="list-item clearfix"> | 506 | + <li style="position: relative;width:50%;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> |
476 | - <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | 507 | + {{??}} |
477 | - <li><a href="#mibao">设置密保</a></li> | 508 | + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> |
478 | - <li><a href="#modify_pwd">修改密码</a></li> | 509 | + {{?}} |
510 | + <li style="width:50%;"><a href="#mibao">设置密保</a></li> | ||
479 | </ul> | 511 | </ul> |
512 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
513 | + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | ||
514 | + {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}} | ||
515 | + <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | ||
480 | {{??}} | 516 | {{??}} |
481 | - <ul class="list-item clearfix"> | 517 | + <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证 |
518 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span> | ||
519 | + </a></li> | ||
520 | + {{?}} | ||
521 | + </ul> | ||
522 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
523 | + {{? Core.Data.bind_qq === "" || Core.Data.bind_qq === undefined}} | ||
524 | + <li style="width:50%;"><a href="#bindQQ">绑定QQ</a></li> | ||
525 | + {{??}} | ||
526 | + <li style="width:50%;position:relative;"><a href="#bindQQ_ok">绑定QQ | ||
527 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已绑定</span> | ||
528 | + </a></li> | ||
529 | + {{?}} | ||
530 | + <li style="width:50%;"><a href="" style="visibility:hidden">占位置</a></li> | ||
531 | + </ul> | ||
532 | + {{? Core.Data.kefu_info != ""}} | ||
533 | + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
534 | + {{?}} {{??}} | ||
535 | + {{? Core.Data.bind_phone === ""}} | ||
536 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
537 | + <li style="width:50%;"><a href="#bindMobile">绑定手机</a></li> | ||
538 | + <li style="width:50%;"><a href="#mibao">设置密保</a></li> | ||
539 | + </ul> | ||
540 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
541 | + <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | ||
542 | + {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}} | ||
543 | + <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | ||
544 | + {{??}} | ||
545 | + <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证 | ||
546 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span> | ||
547 | + </a></li> | ||
548 | + {{?}} | ||
549 | + </ul> | ||
550 | + <ul class="list-item clearfix" style="border-top:none;border-bottom:none;"> | ||
551 | + {{? Core.Data.bind_qq === "" || Core.Data.bind_qq === undefined}} | ||
552 | + <li style="width:50%;"><a href="#bindQQ">绑定QQ</a></li> | ||
553 | + {{??}} | ||
554 | + <li style="width:50%;position:relative;"><a href="#bindQQ_ok">绑定QQ | ||
555 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已绑定</span> | ||
556 | + </a></li> | ||
557 | + {{?}} | ||
558 | + <li style="width:50%;"><a href="" style="visibility:hidden">占位置</a></li> | ||
559 | + </ul> | ||
560 | + {{? Core.Data.kefu_info != ""}} | ||
561 | + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
562 | + {{?}} | ||
563 | + {{??}} | ||
564 | + <ul class="list-item clearfix" style="border-top:none;"> | ||
482 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | 565 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> |
483 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> | 566 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> |
484 | </ul> | 567 | </ul> |
... | @@ -492,6 +575,19 @@ | ... | @@ -492,6 +575,19 @@ |
492 | </a></li> | 575 | </a></li> |
493 | {{?}} | 576 | {{?}} |
494 | </ul> | 577 | </ul> |
578 | + <ul class="list-item clearfix" style="border-top:none;border-bottom:none;"> | ||
579 | + {{? Core.Data.bind_qq === "" || Core.Data.bind_qq === undefined}} | ||
580 | + <li style="width:50%;"><a href="#bindQQ">绑定QQ</a></li> | ||
581 | + {{??}} | ||
582 | + <li style="width:50%;position:relative;"><a href="#bindQQ_ok">绑定QQ | ||
583 | + <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已绑定</span> | ||
584 | + </a></li> | ||
585 | + {{?}} | ||
586 | + <li style="width:50%;"><a href="" style="visibility:hidden">占位置</a></li> | ||
587 | + </ul> | ||
588 | + {{? Core.Data.kefu_info != ""}} | ||
589 | + <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
590 | + {{?}} {{?}} | ||
495 | {{?}} | 591 | {{?}} |
496 | <!--<ul class="list-item clearfix"> | 592 | <!--<ul class="list-item clearfix"> |
497 | {{? Core.Data.bind_phone === ""}} | 593 | {{? Core.Data.bind_phone === ""}} |
... | @@ -624,7 +720,7 @@ | ... | @@ -624,7 +720,7 @@ |
624 | 720 | ||
625 | </label> | 721 | </label> |
626 | </div> | 722 | </div> |
627 | - {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} | 723 | + {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,请妥善保管正式账号</p>{{??}}{{?}} |
628 | 724 | ||
629 | </div> | 725 | </div> |
630 | 726 | ||
... | @@ -643,15 +739,19 @@ | ... | @@ -643,15 +739,19 @@ |
643 | <div class="new-sdk-container"> | 739 | <div class="new-sdk-container"> |
644 | <div class="SDK-titlebox"></div> | 740 | <div class="SDK-titlebox"></div> |
645 | <div class="user-center"> | 741 | <div class="user-center"> |
742 | + {{? Core.Data.force_auth !== 1 }} | ||
646 | <a href="#home" class="lefticon"> | 743 | <a href="#home" class="lefticon"> |
647 | <i class="iconfont icon-fanhui"></i> | 744 | <i class="iconfont icon-fanhui"></i> |
648 | </a> | 745 | </a> |
649 | - 实名认证 | 746 | + {{?}} |
747 | + 实名认证<div class="" style=" font-size: 18px;color: #949494;text-align: left; padding-left: 37px;">根据国家规定,游戏用户需进行实名认证</div> | ||
650 | </div> | 748 | </div> |
749 | + | ||
651 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | 750 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > |
751 | + | ||
652 | <div class="new-sdk-box"> | 752 | <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> | 753 | + <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> | 754 | + <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入身份证姓名" style="text-align: left;"></div> |
655 | </div> | 755 | </div> |
656 | <ul class="inline-btn"> | 756 | <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> | 757 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> |
... | @@ -842,6 +942,33 @@ | ... | @@ -842,6 +942,33 @@ |
842 | </div> | 942 | </div> |
843 | </div> | 943 | </div> |
844 | </script> | 944 | </script> |
945 | + | ||
946 | +<script id="bindQQ_template" type="text/x-jquery-tmpl"> | ||
947 | + <div class="new-sdk-container"> | ||
948 | + <div class="SDK-titlebox"></div> | ||
949 | + <div class="user-center"> | ||
950 | + <a href="#home" class="lefticon"> | ||
951 | + <i class="iconfont icon-fanhui"></i> | ||
952 | + </a> | ||
953 | + 绑定QQ号码 | ||
954 | + </div> | ||
955 | + <div class="new-sdk-box"> | ||
956 | + <div class="acount-name"> | ||
957 | + 账号:{{=Core.Data.username}} | ||
958 | + </div> | ||
959 | + <form id="bind_qq_form" action="/user/bind_qq"> | ||
960 | + <div class="input" style="padding: 0;"> | ||
961 | + <input id="js_qq" type="text" required placeholder="请输入您要绑定的QQ号码"> | ||
962 | + </div> | ||
963 | + <ul class="inline-btn"> | ||
964 | + <li><a class="larg btn btn-orange" id="js_qq_bind_conform" value="" >确定</a></li> | ||
965 | + <li><a class="btn" href="#home">返回</a></li> | ||
966 | + </ul> | ||
967 | + </form> | ||
968 | + </div> | ||
969 | + </div> | ||
970 | +</script> | ||
971 | + | ||
845 | <script id="unbindMobile_template" type="text/x-jquery-tmpl"> | 972 | <script id="unbindMobile_template" type="text/x-jquery-tmpl"> |
846 | <div class="new-sdk-container"> | 973 | <div class="new-sdk-container"> |
847 | <div class="SDK-titlebox"></div> | 974 | <div class="SDK-titlebox"></div> |
... | @@ -888,6 +1015,22 @@ | ... | @@ -888,6 +1015,22 @@ |
888 | </div> | 1015 | </div> |
889 | </div> | 1016 | </div> |
890 | </script> | 1017 | </script> |
1018 | +<script id="bindQQ_ok_template" type="text/x-jquery-tmpl"> | ||
1019 | + <div class="new-sdk-container"> | ||
1020 | + <div class="SDK-titlebox"></div> | ||
1021 | + <div class="user-center"> | ||
1022 | + <a href="#home" class="lefticon"> | ||
1023 | + <i class="iconfont icon-fanhui"></i> | ||
1024 | + </a> | ||
1025 | + 绑定QQ | ||
1026 | + </div> | ||
1027 | + <div class="new-sdk-box"> | ||
1028 | + <div class="bind-qq"> | ||
1029 | + <p style="margin-top: 0;">已绑定的QQ号码:<span class="bind_qq"></span></p> | ||
1030 | + </div> | ||
1031 | + </div> | ||
1032 | + </div> | ||
1033 | +</script> | ||
891 | <script id="message_detail_template" type="text/x-jquery-tmpl"> | 1034 | <script id="message_detail_template" type="text/x-jquery-tmpl"> |
892 | <div class="header"> | 1035 | <div class="header"> |
893 | <a class="btn pull-left op-back" href="#message">返回</a> | 1036 | <a class="btn pull-left op-back" href="#message">返回</a> |
... | @@ -1006,7 +1149,7 @@ FastClick.attach(document.body); | ... | @@ -1006,7 +1149,7 @@ FastClick.attach(document.body); |
1006 | <script type="text/javascript"> | 1149 | <script type="text/javascript"> |
1007 | window.onload = window.onresize = initMatching; | 1150 | window.onload = window.onresize = initMatching; |
1008 | (function(){ | 1151 | (function(){ |
1009 | - getData('/sdk/login/json'); | 1152 | + getData('/sdk/login2/json'); |
1010 | })(); | 1153 | })(); |
1011 | simpScroller(document.querySelector(".horizontall"), {}); | 1154 | simpScroller(document.querySelector(".horizontall"), {}); |
1012 | // $(document).ready(function(){ | 1155 | // $(document).ready(function(){ | ... | ... |
... | @@ -55,7 +55,7 @@ for (i = 0, l = base_js.length; i < l; i++) { | ... | @@ -55,7 +55,7 @@ for (i = 0, l = base_js.length; i < l; i++) { |
55 | if (PATH.existsSync(path)) { | 55 | if (PATH.existsSync(path)) { |
56 | mtime = formatTime(fs.statSync(path).mtime); | 56 | mtime = formatTime(fs.statSync(path).mtime); |
57 | content.push('/static/sdk/' + path + '?' + mtime); | 57 | content.push('/static/sdk/' + path + '?' + mtime); |
58 | - //更新login.html, center.html, pay.html的引用信息的版本号 | 58 | + //更新login.html, center.html, zf.html的引用信息的版本号 |
59 | for (var j = 0, k = html_content.length; j < k; j++) { | 59 | for (var j = 0, k = html_content.length; j < k; j++) { |
60 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') | 60 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') |
61 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); | 61 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); |
... | @@ -70,7 +70,7 @@ for (i = 0, l = concat_with_mtime.length; i < l; i++) { | ... | @@ -70,7 +70,7 @@ for (i = 0, l = concat_with_mtime.length; i < l; i++) { |
70 | if (PATH.existsSync(path)) { | 70 | if (PATH.existsSync(path)) { |
71 | mtime = formatTime(fs.statSync(path).mtime); | 71 | mtime = formatTime(fs.statSync(path).mtime); |
72 | content.push('/static/sdk/' + path + '?' + mtime); | 72 | content.push('/static/sdk/' + path + '?' + mtime); |
73 | - //更新login.html, center.html, pay.html的引用信息的版本号 | 73 | + //更新login.html, center.html, zf.html的引用信息的版本号 |
74 | for (j = 0, k = html_content.length; j < k; j++) { | 74 | for (j = 0, k = html_content.length; j < k; j++) { |
75 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') | 75 | reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+') |
76 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); | 76 | html_content[j] = html_content[j].replace(reg, path + '?' + mtime); |
... | @@ -107,7 +107,7 @@ for (i = 0, l = target.length; i < l; i++) { | ... | @@ -107,7 +107,7 @@ for (i = 0, l = target.length; i < l; i++) { |
107 | /* | 107 | /* |
108 | skin_content.push('/static/sdk/' + path + '/skin.css' + '?' + skin_mtime); | 108 | skin_content.push('/static/sdk/' + path + '/skin.css' + '?' + skin_mtime); |
109 | */ | 109 | */ |
110 | - //更新login.html, center.html, pay.html的引用信息的版本号 | 110 | + //更新login.html, center.html, zf.html的引用信息的版本号 |
111 | for (j = 0, k = html_content.length; j < k; j++) { | 111 | for (j = 0, k = html_content.length; j < k; j++) { |
112 | reg = new RegExp('data-v="\\d+"'); | 112 | reg = new RegExp('data-v="\\d+"'); |
113 | html_content[j] = html_content[j].replace(reg, 'data-v="' + skin_mtime + '"'); | 113 | html_content[j] = html_content[j].replace(reg, 'data-v="' + skin_mtime + '"'); | ... | ... |
... | @@ -23,6 +23,7 @@ section{ | ... | @@ -23,6 +23,7 @@ section{ |
23 | a,input,textarea,select { | 23 | a,input,textarea,select { |
24 | outline: 0; | 24 | outline: 0; |
25 | } | 25 | } |
26 | +input[type=button],input[type=text],input[type=password]{-webkit-appearance:none;outline:none} | ||
26 | a:focus { | 27 | a:focus { |
27 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ | 28 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ |
28 | } | 29 | } |
... | @@ -50,18 +51,18 @@ select{ | ... | @@ -50,18 +51,18 @@ select{ |
50 | -moz-osx-font-smoothing: grayscale; | 51 | -moz-osx-font-smoothing: grayscale; |
51 | } | 52 | } |
52 | 53 | ||
53 | -.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} | 54 | +.icon-wx:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} |
54 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #00beef;} | 55 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #00beef;} |
55 | .icon-iconfontcha:before { content: "\e609"; } | 56 | .icon-iconfontcha:before { content: "\e609"; } |
56 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #00beef;} | 57 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #00beef;} |
57 | -.icon-weixin1:before { content: "\e603"; } | 58 | +.icon-wx1:before { content: "\e603"; } |
58 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #00beef;} | 59 | .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-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 1.6em;} |
60 | .icon-iconfontcolor19:before { content: "\e60b"; } | 61 | .icon-iconfontcolor19:before { content: "\e60b"; } |
61 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} | 62 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} |
62 | .icon-triangle-l:before { content: "\e605"; } | 63 | .icon-triangle-l:before { content: "\e605"; } |
63 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} | 64 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} |
64 | -.icon-weixin2:before { content: "\e606"; } | 65 | +.icon-wx2:before { content: "\e606"; } |
65 | .icon-xiangyou:before { content: "\e60e"; } | 66 | .icon-xiangyou:before { content: "\e60e"; } |
66 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } | 67 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } |
67 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 30px;} | 68 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 30px;} |
... | @@ -598,7 +599,7 @@ body{ | ... | @@ -598,7 +599,7 @@ body{ |
598 | .new-sdk-container .new-sdk-main .other-login p a.qq{ | 599 | .new-sdk-container .new-sdk-main .other-login p a.qq{ |
599 | background: url(../images/login_icon.png) no-repeat 0 0; | 600 | background: url(../images/login_icon.png) no-repeat 0 0; |
600 | } | 601 | } |
601 | -.new-sdk-container .new-sdk-main .other-login p a.weixin{ | 602 | +.new-sdk-container .new-sdk-main .other-login p a.wx{ |
602 | background: url(../images/login_icon.png) no-repeat 0 -45px; | 603 | background: url(../images/login_icon.png) no-repeat 0 -45px; |
603 | } | 604 | } |
604 | .new-sdk-container .new-sdk-main .other-login label{ | 605 | .new-sdk-container .new-sdk-main .other-login label{ | ... | ... |
... | @@ -3,19 +3,19 @@ CACHE MANIFEST | ... | @@ -3,19 +3,19 @@ CACHE MANIFEST |
3 | #version=20151112001 | 3 | #version=20151112001 |
4 | /static/sdk_3/login.html?20151112001 | 4 | /static/sdk_3/login.html?20151112001 |
5 | /static/sdk_3/center.html?20151112001 | 5 | /static/sdk_3/center.html?20151112001 |
6 | -/static/sdk_3/pay.html?20151112001 | 6 | +/static/sdk_3/zf.html?20151112001 |
7 | /static/sdk_3/share.html?20151112001 | 7 | /static/sdk_3/share.html?20151112001 |
8 | /static/sdk_3/js/fastclick.min.1.0.js?20151112001 | 8 | /static/sdk_3/js/fastclick.min.1.0.js?20151112001 |
9 | /static/sdk_3/js/zepto.min.js?20151112001 | 9 | /static/sdk_3/js/zepto.min.js?20151112001 |
10 | /static/sdk_3/js/doT.min.js?20151112001 | 10 | /static/sdk_3/js/doT.min.js?20151112001 |
11 | /static/sdk_3/js/iscroll.min.1.0.js?20151112001 | 11 | /static/sdk_3/js/iscroll.min.1.0.js?20151112001 |
12 | /static/sdk_3/skin/login.css?20151112001 | 12 | /static/sdk_3/skin/login.css?20151112001 |
13 | -/static/sdk_3/skin/pay.css?20151112001 | 13 | +/static/sdk_3/skin/zf.css?20151112001 |
14 | 14 | ||
15 | /static/sdk_3/js/core.min.js?20151112001 | 15 | /static/sdk_3/js/core.min.js?20151112001 |
16 | /static/sdk_3/js/loader.min.js?20151112001 | 16 | /static/sdk_3/js/loader.min.js?20151112001 |
17 | /static/sdk_3/js/center.min.js?20151112001 | 17 | /static/sdk_3/js/center.min.js?20151112001 |
18 | -/static/sdk_3/js/pay.min.js?20151112001 | 18 | +/static/sdk_3/js/zf.min.js?20151112001 |
19 | /static/sdk_3/js/login.min.js?20151112001 | 19 | /static/sdk_3/js/login.min.js?20151112001 |
20 | /static/sdk_3/images/login_icon.png?20151112001 | 20 | /static/sdk_3/images/login_icon.png?20151112001 |
21 | /static/sdk_3/images/new-sdk-logo.png?20151112001 | 21 | /static/sdk_3/images/new-sdk-logo.png?20151112001 | ... | ... |
... | @@ -176,7 +176,7 @@ p.text-muted{color: #999999; } | ... | @@ -176,7 +176,7 @@ p.text-muted{color: #999999; } |
176 | right: 5px; | 176 | right: 5px; |
177 | top: 13px; | 177 | top: 13px; |
178 | } | 178 | } |
179 | -.badge.pay{ | 179 | +.badge.zf{ |
180 | position: absolute; | 180 | position: absolute; |
181 | right: -8px; | 181 | right: -8px; |
182 | top: -6px; | 182 | top: -6px; |
... | @@ -265,18 +265,18 @@ label.enter_game{ | ... | @@ -265,18 +265,18 @@ label.enter_game{ |
265 | -moz-osx-font-smoothing: grayscale; | 265 | -moz-osx-font-smoothing: grayscale; |
266 | } | 266 | } |
267 | 267 | ||
268 | -.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} | 268 | +.icon-wx:before { content: "\e600"; font-size: 1.8em; color: #0bb515;} |
269 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #0f9fcf;} | 269 | .icon-qq:before { content: "\e601"; font-size: 1.8em; color: #0f9fcf;} |
270 | .icon-iconfontcha:before { content: "\e609"; } | 270 | .icon-iconfontcha:before { content: "\e609"; } |
271 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #0f9fcf;} | 271 | .icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #0f9fcf;} |
272 | -.icon-weixin1:before { content: "\e603"; } | 272 | +.icon-wx1:before { content: "\e603"; } |
273 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #0f9fcf;} | 273 | .icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #0f9fcf;} |
274 | .icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 32px;} | 274 | .icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 32px;} |
275 | .icon-iconfontcolor19:before { content: "\e60b"; } | 275 | .icon-iconfontcolor19:before { content: "\e60b"; } |
276 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} | 276 | .icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;} |
277 | .icon-triangle-l:before { content: "\e605"; } | 277 | .icon-triangle-l:before { content: "\e605"; } |
278 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} | 278 | .icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;} |
279 | -.icon-weixin2:before { content: "\e606"; } | 279 | +.icon-wx2:before { content: "\e606"; } |
280 | .icon-xiangyou:before { content: "\e60e"; } | 280 | .icon-xiangyou:before { content: "\e60e"; } |
281 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } | 281 | .icon-fuxuankuangyixuanze:before { content: "\e607"; } |
282 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 1.8em;} | 282 | .icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 1.8em;} |
... | @@ -498,22 +498,22 @@ ul.step-tab{ | ... | @@ -498,22 +498,22 @@ ul.step-tab{ |
498 | /* 支付类型列表 END */ | 498 | /* 支付类型列表 END */ |
499 | 499 | ||
500 | /* 确认代付 */ | 500 | /* 确认代付 */ |
501 | -.pay-proxy-info{ | 501 | +.zf-proxy-info{ |
502 | font-size:14px; | 502 | font-size:14px; |
503 | margin:auto; | 503 | margin:auto; |
504 | text-align: left; | 504 | text-align: left; |
505 | height: 100px; | 505 | height: 100px; |
506 | } | 506 | } |
507 | -.pay-proxy-info .desc{ | 507 | +.zf-proxy-info .desc{ |
508 | margin-left:0px; | 508 | margin-left:0px; |
509 | } | 509 | } |
510 | -.pay-proxy-info .desc p{ | 510 | +.zf-proxy-info .desc p{ |
511 | font-size: 14px; | 511 | font-size: 14px; |
512 | line-height: 16px; | 512 | line-height: 16px; |
513 | margin: 5px 0; | 513 | margin: 5px 0; |
514 | padding: 0; | 514 | padding: 0; |
515 | } | 515 | } |
516 | -.pay-proxy-info .btn-group{ | 516 | +.zf-proxy-info .btn-group{ |
517 | margin-left:10px; | 517 | margin-left:10px; |
518 | float:right;} | 518 | float:right;} |
519 | /* 确认代付 END */ | 519 | /* 确认代付 END */ |
... | @@ -884,24 +884,24 @@ div.head span.num{ | ... | @@ -884,24 +884,24 @@ div.head span.num{ |
884 | div.sec{ | 884 | div.sec{ |
885 | margin-top: 16px; | 885 | margin-top: 16px; |
886 | } | 886 | } |
887 | -ol.other-pay{ | 887 | +ol.other-zf{ |
888 | padding-left: 5px; | 888 | padding-left: 5px; |
889 | } | 889 | } |
890 | -ol.other-pay li{ | 890 | +ol.other-zf li{ |
891 | display:inline-block; | 891 | display:inline-block; |
892 | } | 892 | } |
893 | 893 | ||
894 | -ol.other-pay li a{ | 894 | +ol.other-zf li a{ |
895 | display:inline-block; | 895 | display:inline-block; |
896 | text-align: center; | 896 | text-align: center; |
897 | margin:5px 10px 5px 0; | 897 | margin:5px 10px 5px 0; |
898 | padding: 0 5px; | 898 | padding: 0 5px; |
899 | cursor: pointer; | 899 | cursor: pointer; |
900 | } | 900 | } |
901 | -ol.other-pay li a:last-of-type{ | 901 | +ol.other-zf li a:last-of-type{ |
902 | margin: 5px 0px 5px 0; | 902 | margin: 5px 0px 5px 0; |
903 | } | 903 | } |
904 | -ol.other-pay li a img{ | 904 | +ol.other-zf li a img{ |
905 | width: 70px; | 905 | width: 70px; |
906 | height: 70px; | 906 | height: 70px; |
907 | 907 | ||
... | @@ -949,7 +949,7 @@ ol.other-pay li a img{ | ... | @@ -949,7 +949,7 @@ ol.other-pay li a img{ |
949 | .level{ color:#F60; float:right; font-size:14px;} | 949 | .level{ color:#F60; float:right; font-size:14px;} |
950 | .gz-zhanghao{ text-align:left; padding:5px; margin-bottom:10px;} | 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; } | 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} | 952 | +.gz-zhanghao .wx{ background:url(http://cdn.i9133.com/static/sdk/skin/img/wx.png) left bottom no-repeat; padding:5px 0px 5px 35px} |
953 | 953 | ||
954 | .fs_box{ text-align:left; font-size:16px; } | 954 | .fs_box{ text-align:left; font-size:16px; } |
955 | 955 | ||
... | @@ -1151,19 +1151,19 @@ li.more .btn{ display:block;} | ... | @@ -1151,19 +1151,19 @@ li.more .btn{ display:block;} |
1151 | height: auto; | 1151 | height: auto; |
1152 | min-height: 73px; | 1152 | min-height: 73px; |
1153 | } | 1153 | } |
1154 | -.pay-info-cont{ | 1154 | +.zf-info-cont{ |
1155 | padding: 10px 37px; | 1155 | padding: 10px 37px; |
1156 | position: relative; | 1156 | position: relative; |
1157 | } | 1157 | } |
1158 | -.pay-info-cont .player-info-cont{ | 1158 | +.zf-info-cont .player-info-cont{ |
1159 | border-right:1px solid black; | 1159 | border-right:1px solid black; |
1160 | 1160 | ||
1161 | } | 1161 | } |
1162 | -.pay-info-cont .player-info-cont .head-ico{ | 1162 | +.zf-info-cont .player-info-cont .head-ico{ |
1163 | max-height: 50px; | 1163 | max-height: 50px; |
1164 | max-width: 50px; | 1164 | max-width: 50px; |
1165 | } | 1165 | } |
1166 | -.pay-info-cont .player-info-cont span{ | 1166 | +.zf-info-cont .player-info-cont span{ |
1167 | display: inline-block; | 1167 | display: inline-block; |
1168 | 1168 | ||
1169 | } | 1169 | } |
... | @@ -1247,10 +1247,10 @@ position:absolute; left:0; right:0; top:0; bottom:0; width:auto; height:auto; ma | ... | @@ -1247,10 +1247,10 @@ position:absolute; left:0; right:0; top:0; bottom:0; width:auto; height:auto; ma |
1247 | .warm-prompt h2 { color: #ff0000; font-size: 20px; font-weight: normal; font-family: "Microsoft YaHei","微软雅黑"; } | 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;} | 1248 | .warm-prompt p { color: #535353; font-family: "Microsoft YaHei","微软雅黑"; font-size: 16px; margin: 0;} |
1249 | .warm-prompt p a { color: #f39700; } | 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);} | 1250 | +.zf-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; } | 1251 | +.zf-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;} | 1252 | +.zf-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; } | 1253 | +.zf-info-cont .user-msg p span { color: #f39700; } |
1254 | 1254 | ||
1255 | /*充值记录*/ | 1255 | /*充值记录*/ |
1256 | .integral .box{ border-left:2px solid #089b55; margin-left:100px; height:100%; padding:0 10px 20px;;} | 1256 | .integral .box{ border-left:2px solid #089b55; margin-left:100px; height:100%; padding:0 10px 20px;;} | ... | ... |
demo/app/src/main/assets/sdk/uglifyjs_sqwish.sh
→
demo/app/src/main/assets/sdk_11/uglifyjs_sqwish.sh
File moved
demo/app/src/main/assets/sdk_11/version.txt
0 → 100644
1 | +20180925 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | <meta name="full-screen" content="yes"> | 10 | <meta name="full-screen" content="yes"> |
11 | <meta http-equiv="x-ua-compatible" content="IE=edge" /> | 11 | <meta http-equiv="x-ua-compatible" content="IE=edge" /> |
12 | 12 | ||
13 | -<link href="skin/pay.css?v=20150318002" type="text/css" rel="stylesheet" /> | 13 | +<link href="skin/zf.css?v=20150318002" type="text/css" rel="stylesheet" /> |
14 | <link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" /> | 14 | <link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" /> |
15 | <style> | 15 | <style> |
16 | .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;} | 16 | .ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;} |
... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
41 | <section id="channel_list" class="hide" data-attr="dot" data-auth="1"></section> | 41 | <section id="channel_list" class="hide" data-attr="dot" data-auth="1"></section> |
42 | <!-- end --> | 42 | <!-- end --> |
43 | <!-- 充值操作模块 --> | 43 | <!-- 充值操作模块 --> |
44 | -<section id="pay" class="hide" data-attr="dot" data-auth="1"></section> | 44 | +<section id="zf" class="hide" data-attr="dot" data-auth="1"></section> |
45 | <!-- end --> | 45 | <!-- end --> |
46 | <!-- 客服问题列表模块 --> | 46 | <!-- 客服问题列表模块 --> |
47 | <section id="kefu_list" class="hide" data-auth="1" data-attr="dot"></section> | 47 | <section id="kefu_list" class="hide" data-auth="1" data-attr="dot"></section> |
... | @@ -89,10 +89,10 @@ | ... | @@ -89,10 +89,10 @@ |
89 | </div> | 89 | </div> |
90 | </div> | 90 | </div> |
91 | </section> | 91 | </section> |
92 | -<section id="pay_feedback" class="hide" data-replace="1"> | 92 | +<section id="zf_feedback" class="hide" data-replace="1"> |
93 | <div class="header"> | 93 | <div class="header"> |
94 | <span class="title">充值问题</span> | 94 | <span class="title">充值问题</span> |
95 | - <a class="iconfont icon-iconfontxiangyou poslft" href="#pay"></a> | 95 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#zf"></a> |
96 | <a class="btn-link posrgt" href="#kefu_list">在线客服</a> | 96 | <a class="btn-link posrgt" href="#kefu_list">在线客服</a> |
97 | </div> | 97 | </div> |
98 | <div class="container"> | 98 | <div class="container"> |
... | @@ -109,13 +109,13 @@ | ... | @@ -109,13 +109,13 @@ |
109 | </div> | 109 | </div> |
110 | </section> | 110 | </section> |
111 | <!-- 代付模块 --> | 111 | <!-- 代付模块 --> |
112 | -<section id="pay_proxy" data-attr="dot" class="hide" data-auth="1"></section> | 112 | +<section id="zf_proxy" data-attr="dot" class="hide" data-auth="1"></section> |
113 | <!-- end --> | 113 | <!-- end --> |
114 | <!-- 充值结果模块 --> | 114 | <!-- 充值结果模块 --> |
115 | -<section id="pay_result" data-attr="dot" class="hide" data-auth="1"></section> | 115 | +<section id="zf_result" data-attr="dot" class="hide" data-auth="1"></section> |
116 | <!-- end --> | 116 | <!-- end --> |
117 | <!-- 确认付款 模块 --> | 117 | <!-- 确认付款 模块 --> |
118 | -<!-- <section id="pay_confirm" data-attr="dot" class="hide" data-auth="1"></section> --> | 118 | +<!-- <section id="zf_confirm" data-attr="dot" class="hide" data-auth="1"></section> --> |
119 | <!-- end --> | 119 | <!-- end --> |
120 | <!-- 其他充值方式模块 --> | 120 | <!-- 其他充值方式模块 --> |
121 | <section id="other" data-attr="dot" class="hide" data-auth="1"></section> | 121 | <section id="other" data-attr="dot" class="hide" data-auth="1"></section> |
... | @@ -126,12 +126,12 @@ | ... | @@ -126,12 +126,12 @@ |
126 | <!-- 验证码模块 --> | 126 | <!-- 验证码模块 --> |
127 | <section id="verify" data-attr="dot" class="hide" data-auth="1"></section> | 127 | <section id="verify" data-attr="dot" class="hide" data-auth="1"></section> |
128 | <!-- end --> | 128 | <!-- end --> |
129 | -<section id="pay_for" data-attr="dot" class="hide" data-auth="1"></section> | 129 | +<section id="zf_for" data-attr="dot" class="hide" data-auth="1"></section> |
130 | <section id="frame" 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" > | 131 | <script id="frame_template" type="text/x-jquery-tmpl" > |
132 | <div class="header"> | 132 | <div class="header"> |
133 | <span class="title">{{=Core.Data.frame_title}}</span> | 133 | <span class="title">{{=Core.Data.frame_title}}</span> |
134 | - <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | 134 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishZf()"></a> |
135 | </div> | 135 | </div> |
136 | <div class="container" style=""> | 136 | <div class="container" style=""> |
137 | <div class="container_load in_frame" id="loading_frame" onclick="$(this).hide()"> | 137 | <div class="container_load in_frame" id="loading_frame" onclick="$(this).hide()"> |
... | @@ -150,8 +150,8 @@ | ... | @@ -150,8 +150,8 @@ |
150 | <script id='home_template' type='text/x-jquery-tmpl'> | 150 | <script id='home_template' type='text/x-jquery-tmpl'> |
151 | <div class="header"> | 151 | <div class="header"> |
152 | <span class="title">充值中心</span> | 152 | <span class="title">充值中心</span> |
153 | - <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | 153 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishZf()"></a> |
154 | - {{? Core.Data.pay_only != 1 }} | 154 | + {{? Core.Data.zf_only != 1 }} |
155 | 155 | ||
156 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> | 156 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> |
157 | 157 | ||
... | @@ -167,7 +167,7 @@ | ... | @@ -167,7 +167,7 @@ |
167 | </p> | 167 | </p> |
168 | <br> | 168 | <br> |
169 | <p class="align-left text-success tips9133"> | 169 | <p class="align-left text-success tips9133"> |
170 | - {{? Core.Data.pay_only != 1 }} | 170 | + {{? Core.Data.zf_only != 1 }} |
171 | {{? Core.Data.is_guest == 1}} | 171 | {{? Core.Data.is_guest == 1}} |
172 | 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。 | 172 | 亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。 |
173 | {{??}} | 173 | {{??}} |
... | @@ -178,7 +178,7 @@ | ... | @@ -178,7 +178,7 @@ |
178 | 178 | ||
179 | <br> | 179 | <br> |
180 | <div class="amount_level align-left" > | 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> | 181 | + <a href="javascript:Core.finishZf()" id="back-btn" class="btn larg conBtn " style="text-align: center;display:none">请返回游戏</a> |
182 | <br> | 182 | <br> |
183 | </div> | 183 | </div> |
184 | 184 | ||
... | @@ -207,7 +207,7 @@ | ... | @@ -207,7 +207,7 @@ |
207 | </div> | 207 | </div> |
208 | </script> | 208 | </script> |
209 | 209 | ||
210 | -<script id="pay_for_template" type="text/x-jquery-tmpl" > | 210 | +<script id="zf_for_template" type="text/x-jquery-tmpl" > |
211 | <div class="header"> | 211 | <div class="header"> |
212 | <span class="title">找他人代付</span> | 212 | <span class="title">找他人代付</span> |
213 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | 213 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> |
... | @@ -215,7 +215,7 @@ | ... | @@ -215,7 +215,7 @@ |
215 | </div> | 215 | </div> |
216 | <div class="container"> | 216 | <div class="container"> |
217 | <div class="box_info_center"> | 217 | <div class="box_info_center"> |
218 | - <form id="pay_for_form" action="/sdk/pay" method="post" class="ajax" > | 218 | + <form id="zf_for_form" action="/sdk/zf" method="post" class="ajax" > |
219 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | 219 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> |
220 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | 220 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> |
221 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | 221 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> |
... | @@ -226,12 +226,12 @@ | ... | @@ -226,12 +226,12 @@ |
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>元 | 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> | 227 | </p> |
228 | 228 | ||
229 | - <div class="proxy_pay"> | 229 | + <div class="proxy_zf"> |
230 | <p> | 230 | <p> |
231 | - <input class="larg" type="text" data-key="pay_user" required="required" name="pay_user" placeholder="请输入代付人手游平台帐号" /> | 231 | + <input class="larg" type="text" data-key="zf_user" required="required" name="zf_user" placeholder="请输入代付人手游平台帐号" /> |
232 | </p> | 232 | </p> |
233 | <p> | 233 | <p> |
234 | - <input class="larg" type="text" name="pay_message" placeholder="给他留言···" /> | 234 | + <input class="larg" type="text" name="zf_message" placeholder="给他留言···" /> |
235 | </p> | 235 | </p> |
236 | 236 | ||
237 | <p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p> | 237 | <p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p> |
... | @@ -243,7 +243,7 @@ | ... | @@ -243,7 +243,7 @@ |
243 | <div class="header"> | 243 | <div class="header"> |
244 | <span class="title">兑换{{=Core.Data.game_unit_name}}</span> | 244 | <span class="title">兑换{{=Core.Data.game_unit_name}}</span> |
245 | {{? Core.Data.enter_amount && Core.Data.enter_amount >0}} | 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> | 246 | + <a class="btn pull-left op-back op-primary" href="javascript:Core.finishZf()">返回游戏</a> |
247 | {{??}} | 247 | {{??}} |
248 | <a class="btn pull-left op-back op-primary" href="#home">修改数量</a> | 248 | <a class="btn pull-left op-back op-primary" href="#home">修改数量</a> |
249 | {{?}} | 249 | {{?}} |
... | @@ -251,7 +251,7 @@ | ... | @@ -251,7 +251,7 @@ |
251 | </div> | 251 | </div> |
252 | <div class="container"> | 252 | <div class="container"> |
253 | <div class="box_info_center"> | 253 | <div class="box_info_center"> |
254 | - <form id="exchange_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" > | 254 | + <form id="exchange_form" action="/sdk/zf" method="post" class="ajax" todo="feedback" > |
255 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | 255 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> |
256 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | 256 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> |
257 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | 257 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> |
... | @@ -259,7 +259,7 @@ | ... | @@ -259,7 +259,7 @@ |
259 | <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | 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}}" /> | 260 | <input type="hidden" name="money" value="{{=Core.Data.money}}" /> |
261 | <p class="align-left" > | 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>个游爱星 | 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.ya_star}}</span>个游爱星 |
263 | </p> | 263 | </p> |
264 | <p class="align-left text-muted"> | 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}} | 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}} |
... | @@ -282,11 +282,11 @@ | ... | @@ -282,11 +282,11 @@ |
282 | <div class="header"> | 282 | <div class="header"> |
283 | <span class="title">充值中心</span> | 283 | <span class="title">充值中心</span> |
284 | {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }} | 284 | {{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }} |
285 | - <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a> | 285 | + <a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishZf()"></a> |
286 | {{??}} | 286 | {{??}} |
287 | <a class="btn-link poslft" href="#home">修改数量</a> | 287 | <a class="btn-link poslft" href="#home">修改数量</a> |
288 | {{?}} | 288 | {{?}} |
289 | - {{? Core.Data.pay_only != 1 }} | 289 | + {{? Core.Data.zf_only != 1 }} |
290 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> | 290 | <a class="btn-link posrgt" href="#trade_record">充值记录</a> |
291 | {{?}} | 291 | {{?}} |
292 | </div> | 292 | </div> |
... | @@ -296,12 +296,18 @@ | ... | @@ -296,12 +296,18 @@ |
296 | 296 | ||
297 | <div id="channel_list_wrapper" style="position:relative" class="scroll"> | 297 | <div id="channel_list_wrapper" style="position:relative" class="scroll"> |
298 | <div id="channel_list_scroller"> | 298 | <div id="channel_list_scroller"> |
299 | - <div class="pay-info-cont clearfix"> | 299 | + <div class="zf-info-cont clearfix"> |
300 | <div class="iconfont icon-yonghutouxiang pull-left"></div> | 300 | <div class="iconfont icon-yonghutouxiang pull-left"></div> |
301 | <div class="user-msg pull-left align-left"> | 301 | <div class="user-msg pull-left align-left"> |
302 | <h2>玩家:{{=Core.Data.username}}</h2> | 302 | <h2>玩家:{{=Core.Data.username}}</h2> |
303 | <h2>ID:{{=Core.Data.user_id}}</h2> | 303 | <h2>ID:{{=Core.Data.user_id}}</h2> |
304 | + {{? Core.Data.zfType != 2 }} | ||
305 | + {{? Core.Data.dct ==1 }} | ||
304 | <p>充值金额:<span>{{=Core.Data.money}}元</span></p> | 306 | <p>充值金额:<span>{{=Core.Data.money}}元</span></p> |
307 | + {{??}} | ||
308 | + <p>充值金额<br>原价:<span style="text-decoration:line-through">{{=Core.Data.money}}</span><span>元</span> <br>现价:<span>{{=Core.Data.current_money}}元</span></p> | ||
309 | + {{?}} | ||
310 | + {{?}} | ||
305 | </div> | 311 | </div> |
306 | </div> | 312 | </div> |
307 | 313 | ||
... | @@ -310,10 +316,11 @@ | ... | @@ -310,10 +316,11 @@ |
310 | <div class="box_info_center"> | 316 | <div class="box_info_center"> |
311 | 317 | ||
312 | <div class="channel_list align-left" > | 318 | <div class="channel_list align-left" > |
313 | - {{? Core.Data.youai_star <= Core.Data.total_amount }} | 319 | + {{? Core.Data.ya_star <= Core.Data.total_amount }} |
314 | <!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>--> | 320 | <!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>--> |
315 | {{?}} | 321 | {{?}} |
316 | - {{~Core.Data.game_pay_channel_list :item:index }} | 322 | + {{? Core.Data.zfType != 2 }} |
323 | + {{~Core.Data.game_zf_channel_list :item:index }} | ||
317 | {{?item.name}} | 324 | {{?item.name}} |
318 | 325 | ||
319 | <a href="#" data-id="{{=item.id}}" class="btn channel btn-block clearfix"> | 326 | <a href="#" data-id="{{=item.id}}" class="btn channel btn-block clearfix"> |
... | @@ -322,11 +329,17 @@ | ... | @@ -322,11 +329,17 @@ |
322 | 329 | ||
323 | {{?}} | 330 | {{?}} |
324 | {{~}} | 331 | {{~}} |
325 | - {{? Core.Data.pay_only != 1 }} | 332 | + {{? Core.Data.zf_only != 1 }} |
326 | {{? Core.Data.ad_game.length >= 1}} | 333 | {{? Core.Data.ad_game.length >= 1}} |
327 | {{??}} | 334 | {{??}} |
328 | {{?}} | 335 | {{?}} |
329 | {{?}} | 336 | {{?}} |
337 | + {{??}} | ||
338 | + <a href="#" data-id="" class="btn channel btn-block clearfix"> | ||
339 | + <div class="image pull-left"><img src=""/></div> | ||
340 | + 苹果支付<i class="iconfont icon-xiangyou pull-right" style="color:#b5b5b6;font-size:24px;"></i></a> | ||
341 | + {{?}} | ||
342 | + | ||
330 | 343 | ||
331 | </div> | 344 | </div> |
332 | 345 | ||
... | @@ -341,7 +354,7 @@ | ... | @@ -341,7 +354,7 @@ |
341 | </div> | 354 | </div> |
342 | 355 | ||
343 | 356 | ||
344 | - {{? Core.Data.pay_only != 1 }} | 357 | + {{? Core.Data.zf_only != 1 }} |
345 | <p class="align-left text-muted tips9133"> | 358 | <p class="align-left text-muted tips9133"> |
346 | {{? Core.Data.vip > 0}} | 359 | {{? Core.Data.vip > 0}} |
347 | {{??}} | 360 | {{??}} |
... | @@ -356,17 +369,17 @@ | ... | @@ -356,17 +369,17 @@ |
356 | </script> | 369 | </script> |
357 | 370 | ||
358 | 371 | ||
359 | -<script id='pay_template' type='text/x-jquery-tmpl'> | 372 | +<script id='zf_template' type='text/x-jquery-tmpl'> |
360 | <div class="header"> | 373 | <div class="header"> |
361 | - <span class="title">{{=Core.Data.current_pay_channel.name}}充值</span> | 374 | + <span class="title">{{=Core.Data.current_zf_channel.name}}充值</span> |
362 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> | 375 | <a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a> |
363 | - <a class="btn-link posrgt" href="#pay_feedback">无法充值?</a> | 376 | + <a class="btn-link posrgt" href="#zf_feedback">无法充值?</a> |
364 | </div> | 377 | </div> |
365 | <div class="container"> | 378 | <div class="container"> |
366 | 379 | ||
367 | - <div id="pay_panel_wrapper"> | 380 | + <div id="zf_panel_wrapper"> |
368 | 381 | ||
369 | - <div class="pay-info-cont clearfix"> | 382 | + <div class="zf-info-cont clearfix"> |
370 | <div class="iconfont icon-yonghutouxiang pull-left"></div> | 383 | <div class="iconfont icon-yonghutouxiang pull-left"></div> |
371 | <div class="user-msg pull-left align-left"> | 384 | <div class="user-msg pull-left align-left"> |
372 | <h2>玩家:{{=Core.Data.username}}</h2> | 385 | <h2>玩家:{{=Core.Data.username}}</h2> |
... | @@ -375,33 +388,33 @@ | ... | @@ -375,33 +388,33 @@ |
375 | </div> | 388 | </div> |
376 | </div> | 389 | </div> |
377 | <div class="box_info_center"> | 390 | <div class="box_info_center"> |
378 | - <form id="pay_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" > | 391 | + <form id="zf_form" action="/sdk/zf" method="post" class="ajax" todo="feedback" > |
379 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> | 392 | <input type="hidden" name="callback" value="{{=Core.Data.callback}}" /> |
380 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> | 393 | <input type="hidden" name="userid" value="{{=Core.Data.user_id}}" /> |
381 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> | 394 | <input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" /> |
382 | <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> | 395 | <input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" /> |
383 | - {{? Core.Data.current_pay_channel }} | 396 | + {{? Core.Data.current_zf_channel }} |
384 | - <input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" /> | 397 | + <input type="hidden" name="zf_channel_id" value="{{=Core.Data.current_zf_channel.id}}" /> |
385 | 398 | ||
386 | <input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" /> | 399 | <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}}" /> | 400 | <input type="hidden" name="money" value="{{=Core.Data.money}}" /> |
388 | <div class="require_input "> | 401 | <div class="require_input "> |
389 | - {{? Core.Data.current_pay_channel.config['input_item'] }} | 402 | + {{? Core.Data.current_zf_channel.config['input_item'] }} |
390 | <p class="align-left"> | 403 | <p class="align-left"> |
391 | - <label>您选择了<span>{{=Core.Data.current_pay_channel.name}}</span>充值方式</label> | 404 | + <label>您选择了<span>{{=Core.Data.current_zf_channel.name}}</span>充值方式</label> |
392 | </p> | 405 | </p> |
393 | <p class="clearfix" style="margin:15px 0 20px"> | 406 | <p class="clearfix" style="margin:15px 0 20px"> |
394 | <label class="pull-left">充值卡面额:</label> | 407 | <label class="pull-left">充值卡面额:</label> |
395 | <select class="card_amount larg pull-left" name="amount" > | 408 | <select class="card_amount larg pull-left" name="amount" > |
396 | <option value='选择金额' >选择金额</option> | 409 | <option value='选择金额' >选择金额</option> |
397 | - {{~ Core.Data.current_pay_channel.config['amount_level'] :amount}} | 410 | + {{~ Core.Data.current_zf_channel.config['amount_level'] :amount}} |
398 | {{? amount >= Core.Data.money }} | 411 | {{? amount >= Core.Data.money }} |
399 | <option value="{{=amount}}" >{{=amount}}</option> | 412 | <option value="{{=amount}}" >{{=amount}}</option> |
400 | {{?}} | 413 | {{?}} |
401 | {{~}} | 414 | {{~}} |
402 | </select> | 415 | </select> |
403 | </p> | 416 | </p> |
404 | - {{~ Core.Data.current_pay_channel.config['input_item'] :item:index }} | 417 | + {{~ Core.Data.current_zf_channel.config['input_item'] :item:index }} |
405 | {{? item.name === 'card_num' }} | 418 | {{? item.name === 'card_num' }} |
406 | <p class="clearfix"> | 419 | <p class="clearfix"> |
407 | <label class="pull-left">充值卡号:</label> | 420 | <label class="pull-left">充值卡号:</label> |
... | @@ -442,7 +455,7 @@ | ... | @@ -442,7 +455,7 @@ |
442 | </div> | 455 | </div> |
443 | </script> | 456 | </script> |
444 | 457 | ||
445 | -<script id="pay_proxy_template" type="text/x-jquery-tmpl"> | 458 | +<script id="zf_proxy_template" type="text/x-jquery-tmpl"> |
446 | <div class="header"> | 459 | <div class="header"> |
447 | <span class="title">确认代付</span> | 460 | <span class="title">确认代付</span> |
448 | <a class="iconfont icon-iconfontxiangyou poslft" href="#proxy_record"></a> | 461 | <a class="iconfont icon-iconfontxiangyou poslft" href="#proxy_record"></a> |
... | @@ -460,25 +473,25 @@ | ... | @@ -460,25 +473,25 @@ |
460 | {{=Core.Data.temp.game_amount_unit_name}} | 473 | {{=Core.Data.temp.game_amount_unit_name}} |
461 | </span> | 474 | </span> |
462 | </h4> | 475 | </h4> |
463 | - <form action="/pay/proxy/pay" method="post" class="ajax" data-todo="pay_proxy_callback" > | 476 | + <form action="/zf/proxy/zf" method="post" class="ajax" data-todo="zf_proxy_callback" > |
464 | - <div class="pay-proxy-info clearfix"> | 477 | + <div class="zf-proxy-info clearfix"> |
465 | <div class="btn-group clearfix" > | 478 | <div class="btn-group clearfix" > |
466 | <input type="hidden" name="id" value="{{=Core.Data.temp.trade_id}}" /> | 479 | <input type="hidden" name="id" value="{{=Core.Data.temp.trade_id}}" /> |
467 | - <button class="btn btn-payfor" type="submit">确认为他付款</button><br/> | 480 | + <button class="btn btn-zffor" type="submit">确认为他付款</button><br/> |
468 | or<br/> | 481 | or<br/> |
469 | - <a class="ajax btn-undo" href="/pay/proxy/undo?id={{=Core.Data.temp.trade_id}}">拒绝付款</a> | 482 | + <a class="ajax btn-undo" href="/zf/proxy/undo?id={{=Core.Data.temp.trade_id}}">拒绝付款</a> |
470 | </div> | 483 | </div> |
471 | <div class="desc"> | 484 | <div class="desc"> |
472 | <p> | 485 | <p> |
473 | 可用游爱星:<span class="text-warning">{{=Core.Data.temp.amount}}颗</span> | 486 | 可用游爱星:<span class="text-warning">{{=Core.Data.temp.amount}}颗</span> |
474 | </p> | 487 | </p> |
475 | <p> | 488 | <p> |
476 | - 应付游爱星:<span class="text-warning">{{=Core.Data.temp.youai_star}}颗</span> | 489 | + 应付游爱星:<span class="text-warning">{{=Core.Data.temp.ya_star}}颗</span> |
477 | <small>(1:{{=Core.Data.temp.exchange_rate}})</small> | 490 | <small>(1:{{=Core.Data.temp.exchange_rate}})</small> |
478 | </p> | 491 | </p> |
479 | - {{?Core.Data.temp.pay_message != ''}} | 492 | + {{?Core.Data.temp.zf_message != ''}} |
480 | - <p class="pay-message"> | 493 | + <p class="zf-message"> |
481 | - <small>他说:{{=Core.Data.temp.pay_message}}</small> | 494 | + <small>他说:{{=Core.Data.temp.zf_message}}</small> |
482 | </p> | 495 | </p> |
483 | {{?}} | 496 | {{?}} |
484 | </div> | 497 | </div> |
... | @@ -496,7 +509,7 @@ | ... | @@ -496,7 +509,7 @@ |
496 | </div> | 509 | </div> |
497 | </script> | 510 | </script> |
498 | 511 | ||
499 | -<script id='pay_result_template' type='text/x-jquery-tmpl'> | 512 | +<script id='zf_result_template' type='text/x-jquery-tmpl'> |
500 | <div class="header"> | 513 | <div class="header"> |
501 | <span class="title">支付结果</span> | 514 | <span class="title">支付结果</span> |
502 | 515 | ||
... | @@ -506,7 +519,7 @@ | ... | @@ -506,7 +519,7 @@ |
506 | {{=Core.Data.success_msg}} | 519 | {{=Core.Data.success_msg}} |
507 | </p> | 520 | </p> |
508 | 521 | ||
509 | - <a href="javascript:Core.finishPay()" class="btn larg conBtn">继续游戏</a> | 522 | + <a href="javascript:Core.finishZf()" class="btn larg conBtn">继续游戏</a> |
510 | </div> | 523 | </div> |
511 | </script> | 524 | </script> |
512 | <script id="invite_friend_template" type="text/x-jquery-tmpl"> | 525 | <script id="invite_friend_template" type="text/x-jquery-tmpl"> |
... | @@ -533,7 +546,7 @@ | ... | @@ -533,7 +546,7 @@ |
533 | {{? Core.Data.ad_game.length >= 1}} | 546 | {{? Core.Data.ad_game.length >= 1}} |
534 | <div class="sec sec_invtite"> | 547 | <div class="sec sec_invtite"> |
535 | <p class="title-fs">方式一:下载指定游戏可获得{{=Core.Data.game_unit_name}}</p> | 548 | <p class="title-fs">方式一:下载指定游戏可获得{{=Core.Data.game_unit_name}}</p> |
536 | - <ol class="other-pay"> | 549 | + <ol class="other-zf"> |
537 | {{~ Core.Data.ad_game :item:index}} | 550 | {{~ Core.Data.ad_game :item:index}} |
538 | {{? item.id}} | 551 | {{? item.id}} |
539 | <li> | 552 | <li> |
... | @@ -563,7 +576,7 @@ | ... | @@ -563,7 +576,7 @@ |
563 | {{? Core.start_page == 'kefu_list'}} | 576 | {{? Core.start_page == 'kefu_list'}} |
564 | <a class="btn-link poslft" href="sdk://exit?action=center">返回游戏</a> | 577 | <a class="btn-link poslft" href="sdk://exit?action=center">返回游戏</a> |
565 | {{??}} | 578 | {{??}} |
566 | - <a class="iconfont icon-iconfontxiangyou poslft" href="#pay_feedback"></a> | 579 | + <a class="iconfont icon-iconfontxiangyou poslft" href="#zf_feedback"></a> |
567 | {{?}} | 580 | {{?}} |
568 | </div> | 581 | </div> |
569 | <div class="container"> | 582 | <div class="container"> |
... | @@ -690,7 +703,7 @@ | ... | @@ -690,7 +703,7 @@ |
690 | <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> | 703 | <p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p> |
691 | {{??}} | 704 | {{??}} |
692 | {{? it.page_num == 1}} | 705 | {{? it.page_num == 1}} |
693 | - <div class="pay-info-cont clearfix"> | 706 | + <div class="zf-info-cont clearfix"> |
694 | <div class="iconfont icon-yonghutouxiang pull-left"></div> | 707 | <div class="iconfont icon-yonghutouxiang pull-left"></div> |
695 | <div class="user-msg pull-left align-left"> | 708 | <div class="user-msg pull-left align-left"> |
696 | <h2>玩家:{{=Core.Data.username}}</h2> | 709 | <h2>玩家:{{=Core.Data.username}}</h2> |
... | @@ -747,14 +760,14 @@ | ... | @@ -747,14 +760,14 @@ |
747 | <p class="detail"> | 760 | <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{{?}}"> | 761 | <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 }} | 762 | [{{? item.status == 1 }} |
750 | - <a class="btn op-payfor" href="#pay_proxy&id={{=item.id}}" data-id="{{=item.id}}">支付</a> | 763 | + <a class="btn op-zffor" href="#zf_proxy&id={{=item.id}}" data-id="{{=item.id}}">支付</a> |
751 | {{??}} | 764 | {{??}} |
752 | {{=item.get_status}}] | 765 | {{=item.get_status}}] |
753 | {{?}} | 766 | {{?}} |
754 | </span> | 767 | </span> |
755 | <strong>{{=item.game_name}}</strong><small>{{=item.server_name}}<{{=item.role_name}}></small> | 768 | <strong>{{=item.game_name}}</strong><small>{{=item.server_name}}<{{=item.role_name}}></small> |
756 | </p> | 769 | </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> | 770 | + <p class="muted">消费游爱星<strong>{{=item.ya_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> | 771 | <p class="info"><small class="pull-right muted time_p">{{=item.last_firendlyTime}}</small> |
759 | 772 | ||
760 | <span class="order-text">订单:{{=item.id}}</span> | 773 | <span class="order-text">订单:{{=item.id}}</span> |
... | @@ -782,12 +795,12 @@ FastClick.attach(document.body); | ... | @@ -782,12 +795,12 @@ FastClick.attach(document.body); |
782 | }); | 795 | }); |
783 | </script> | 796 | </script> |
784 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> | 797 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> |
785 | -<script type="text/javascript" src="js/pay.min.js?201504218001" ></script> | 798 | +<script type="text/javascript" src="js/zf.min.js?201504218001" ></script> |
786 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> | 799 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> |
787 | 800 | ||
788 | <script type="text/javascript"> | 801 | <script type="text/javascript"> |
789 | (function(){ | 802 | (function(){ |
790 | - getData('/sdk/pay/json'); | 803 | + getData('/sdk/zf/json'); |
791 | })(); | 804 | })(); |
792 | $(function(){ | 805 | $(function(){ |
793 | if (Core.isIos) { | 806 | if (Core.isIos) { | ... | ... |
1 | -SERVER_URL=http://sdk.uuufish.com | ||
2 | -CDN_SERVER_URL=http://sdk.uuufish.com | ||
3 | -SDK_TYPE=.sys_config_youyu | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +SERVER_URL=https://sdk.i9133.com | ||
2 | +CDN_SERVER_URL=https://cdn.i9133.com | ||
3 | +SDK_TYPE=.sys_config_9133_n | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
libs/YouYuSDK_190516.jar
deleted
100644 → 0
No preview for this file type
libs/youyu190617.jar
0 → 100644
No preview for this file type
-
Please register or login to post a comment