xuguohong

add assets content

Showing 35 changed files with 10847 additions and 13 deletions
......@@ -2,22 +2,18 @@
<config>
<sdkconfig
YA_APPKEY=""
YA_APPID=""
gamesimplename=""
YA_APPID="58fd78a9834e7246b8dc0eac"
YA_APPKEY="b06b86b79c25774ec758657a7203bae6"
gamesimplename="fytx_test"
sdksimplename="youyu"
sdkversioncode="V1_0"
channelparameter1=""
channelparameter2=""
custom=""
gamechannelid=""
logincheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJckQW+5uHcG5Mxl+gMWO6s8PhqrR0VX7irk="
payorderurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4SO5qrmq1RBsIoFXavzUfg="
paycheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4ChH88g5ubtvsBW3D32B8c="
sdksimplename="vWVsU5Ogkh8="
sdkversioncode="BVPAQexcXDk="
styleName="4N7gnKed6uk="
usertype="gssaXIIEiL0="
weixinId="x3d4hSeP9KFDTFusyU+iB/9NgyvRyoop" />
logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check"
paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm"
payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create"
usertype="gssaXIIEiL0=" />
</config>
\ No newline at end of file
......
No preview for this file type
No preview for this file type
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<title>
手游平台支付
</title>
<style>
h4,p{font-size: 24px;
font-weight: normal;
padding: 0 20px;font-family: "微软雅黑"; width: 100%;}
p{ text-indent: 2em;}
</style>
</head>
<body>
<div class="mask"></div>
<div class="horizontal" style="height: 220px;">
<h4>1. 游娱账号服务条款的接受</h4>
<p>1.1 游娱账号由广州游爱兄弟信息技术有限公司(以下简称“游娱”)及其关联公司所有并合法运营,游娱及其关联公司并在本用户服务协议的条款和要求下提供服务。</p>
<p>1.2 当用户访问、浏览及使用游娱账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p>
<p>1.3 本服务协议所称的用户是指完全同意本服务协议所有条款(以下简称“服务条款”)并访问或浏览游娱账号相关页面的服务接受者。</p>
<h4>2. 服务条款的变更和修改</h4>
<p>游娱保留依其自主判断在将来的任何时间变更、修改、增加或删除本服务协议条款的权利。所有修改的协议均构成本服务协议的一部分。游娱有权随时对服务条款进行修改,一旦发生服务条款的变动,游娱将公示修改的内容;当用户使用游娱账号的任何服务时,应接受游娱账号随时提供的与该服务相关的规则或说明,并且此规则或说明均构成本服务条款的一部分。用户如果不同意服务条款的修改,可以主动取消已经获得的服务;如果用户继续享用服务,则视为用户已经接受服务条款的修改。</p>
<h4>3. 服务说明</h4>
<p>3.1 游娱运用自己的操作系统通过国际互联网向用户提供丰富的网上资源,包括网盘、书签、邮箱、皮肤、微博、空间、游戏、论坛、SNS社区和实时定位、好友识别等其它个性化服务(以下简称本服务)。除非另有明确规定,基于增强或强化目前服务目的所新增的任何新功能、服务、新产品,均无条件地适用本服务条款。</p>
<p>3.2 除非本协议中另有规定,否则游娱对服务不承担任何责任,即用户对服务的使用承担风险。游娱不保证服务一定会满足用户的使用要求,也不保证服务不会中断,对服务的及时性、安全性、准确性也不作担保。</p>
<p>3.3 为使用本服务,用户必须自行配备接入国际互联网所必需的设备,包括计算机、手机、掌上电脑及其他存取装置或接受服务所需其它设备,并自行支付与此服务有关的费用。 </p>
<p>3.4 游娱保留在日后对全部或部分服务项目收取费用的权利。</p>
<p>3.5 用户接受本服务时,须提供完整、真实、准确、最新的个人资料并按其变更情况不断更新账号资料。</p>
<p>3.6 若用户提供任何错误、不实、过时或不完整的资料,或者游娱有合理理由怀疑前述资料为错误、不实、过时或不完整,游娱有权暂停或终止用户的账号,并拒绝其现在或将来使用本服务的全部或一部分。</p>
<p>3.7 游娱有权规定并修改使用本服务的一般措施,包括但不限于决定保留电子邮件信息或其他上载内容的时间、限制本服务一个账号可接收信息的数量等措施。如游娱账号未能储存或删除本服务的内容或其他信息,游娱不负担任何责任。对于用户3个月未使用的账号,游娱有权(但无义务)予以删除。</p>
<p>3.8 由于用户经由本服务张贴、上传或传送内容、与本服务连线、违反本服务条款或侵害其他人的任何权利导致任何第三方提出权利主张或使游娱遭受任何形式的罚款或处罚,用户同意以适当方式充分消除对游娱的不利影响,赔偿游娱及其分公司、关联公司、代理人或其他合作伙伴及员工的损失,并使其免受损害。</p>
<h4>4. 用户应遵守以下法律及法规</h4>
<p>用户同意遵守中华人民共和国相关法律、法规的规定,在使用游娱账号时,不得侵犯任何第三方的合法权益。在任何情况下,如果游娱有合理理由认为用户的行为可能违反上述法律、法规或侵犯第三方的合法权益,游娱可以在任何时候,不经事先通知终止向该用户提供服务。用户应了解国际互联网的无国界性,应特别注意遵守当地所有有关的法律和法规。</p>
<h4>5. 用户隐私权</h4>
<p>用户在遵守上述协议要求的前提下,游娱将充分保护用户享有个人隐私。除非因以下原因,未经用户授权,本网站不公开、编辑或透露其个人账号资料:</p>
<p>根据有关法律法规的要求;</p>
<p>按照相关政府主管部门的要求;</p>
<p>维护社会个体和公众的安全;</p>
<p>为维护社会公共利益的需要;</p>
<p>维护本网站的合法权益;</p>
<p>事先获得用户的明确授权;</p>
<p>符合其他相关的要求。</p>
<h4>6. 用户账号、密码和安全</h4>
<p>6.1 用户一旦注册成功,便成为游娱的注册用户,将得到一个密码和账号。用户有义务保证密码和账号的安全。用户对利用该密码和账号所进行的一切活动负全部责任;因此所衍生的任何损失或损害,游娱无法也不会承担任何责任。</p>
<p>6.2 用户的密码和账号遭到未授权的使用或发生其他任何安全问题,用户可以立即通知游娱。用户在每次连线结束,应结束账号使用,否则用户可能得不到游娱账号的安全保护。</p>
<p>6.3 游娱禁止用户交易游娱账号,游娱有权收回用户交易的游娱账号。如果因用户交易游娱账号引起的任何纠纷,游娱不承担任何责任。</p>
<h4>7. 对用户信息的存储和限制</h4>
<p>游娱不对用户在游娱账号任何服务下发布信息的删除或储存失败负责。游娱有权判断用户的行为是否符合游娱账号服务条款的规定,如果游娱认为用户违反了服务条款的规定,游娱有权删除用户发布或发送的信息,直至中断或终止向其提供服务。</p>
<h4>8. 禁止用户从事以下行为:</h4>
<p>8.1 上载、张贴、发送或传送任何非法、淫秽、色情、低俗的,胁迫、骚扰、中伤他人的,诽谤、侵害他人隐私或诋毁他人名誉或商誉的,其他违反国家法律法规、社会主义道德规范及不适当的信息或电子邮件,包括但不限于资讯、资料、文字、软件、音乐、照片、图形、信息、视频或其他资料(以下简称内容)。</p>
<p>8.2 以任何方式危害未成年人。</p>
<p>8.3 冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为与任何人或任何机构有关。</p>
<p>8.4 伪造标题或以其他方式操控识别资料,使人误认为该内容为游娱所传送。</p>
<p>8.5 上载、张贴、发送电子邮件或以其他方式传送无权传送的内容。</p>
<p>8.6 上载、张贴、发送电子邮件或以其他方式传送侵犯任何人的专利、商标、著作权、商业秘密或其他民事权利之内容。</p>
<p>8.7 上载、张贴、发送电子邮件或以其他方式传送广告函件、促销资料、垃圾邮件等。</p>
<p>8.8 干扰或破坏本服务或与本服务相连的服务器和网络,或不遵守本服务协议之规定。</p>
<p>8.9 违反任何相关的中国法律、法规、规章、条例等其他具有法律约束力的规范。</p>
<p>8.10 跟踪或以其他方式骚扰他人。</p>
<p>8.11 窃取他人密码、账号和其它数字化信息或财产。</p>
<p>8.12 其他被游娱视为不适当的行为。</p>
<p>8.13 游娱有权对用户载、张贴、发送的内容进行审核,有任何违反法律法规或本协议之有关规定的内容,游娱有权立即将其删除或屏蔽,且不需要对用户另行通知。</p>
<p>8.14 游娱账号封号规则</p>
<p>1.无视国家规定,在姓名、游戏角色名等地方中使用违规词语或不文明词语、非法字符</p>
<p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
<p>2.涉及到侵入、拦截、破坏、复制、修改游戏程序,以及宣扬、叫卖和使用各种辅助性程序或恶性非法程序,即使用外挂程序、或在游戏中宣传外挂程序的行为。</p>
<p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
<p>3.以任何弄虚作假的形式来蒙蔽或者欺骗其他用户,如发布模仿官方并带有病毒的网站、非官方中奖信息、非法广告、游戏代码、木马、外挂、病毒、色情信息、垃圾广告等信息</p>
<p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
<p>4.通过游娱账号发布非法网站,宣传或使用私服、游戏代码、木马、外挂、病毒、色情信息、垃圾广告、非法广告等信息</p>
<p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
<p>5.通过游娱账号发布触犯政府法令的文字如:煽动、反动、猥亵、暴力、种族歧视、宗教歧视等字眼,包含这类相关字的反向书写。</p>
<p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p>
<p>6.宣传或贩卖BUG、攻击服务器运行、牟取个人利益、影响游戏公平性,以及影响其他玩家正常进行游戏等行为</p>
<p>处罚规则:查证核实后,将暂停账号,并清除所有非法物品;视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
<p>7.盗取或参与盗取他人账号,给被盗者造成严重损失的行为</p>
<p>处罚规则:查证核实后,视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚,并上报相关部门追究其法律责任。</p>
<p>8.侮辱、毁谤、猥亵、威胁、辱骂其他用户,扭曲事实、恶意散布不实谣言,恶意影响游戏环境等行为</p>
<p>处罚规则:视情节轻重给予时限性冻结账号的处罚;情节严重者,给予永久冻结的处罚。</p>
<h4>9. 内容及其披露</h4>
<p>9.1 用户对经由本服务上载、张贴或传送的内容负全部责任;对于经由本服务而传送的内容,游娱不保证前述内容的正确性、完整性或及时性。在任何情况下,游娱均不对任何用户提供的内容负责,包括但不限于任何内容发生任何错误或纰漏以及衍生的任何损失或损害,用户负责处理与其提供的内容相关的任何及全部纠纷。游娱有权(但无义务)拒绝或删除经由本服务提供的任何内容。用户使用上述内容,应自行承担风险。</p>
<p>9.2 游娱有权利在下述情况下,对内容进行保存或披露:</p>
<p>法律程序所规定</p>
<p>本服务条款规定</p>
<p>被侵害的第三人提出权利主张</p>
<p>为保护游娱账号、其使用者及社会公众的权利、财产或人身安全</p>
<p>其他游娱认为有必要的情况。</p>
<h4>10. 电子公告栏的张贴内容</h4>
<p>10.1 “电子公告栏”包括空间、论坛、SNS社区和其它一般公众可以使用的区域;</p>
<p>10.2 用户一旦在本服务电子公告栏上传或张贴内容,即视为用户授予游娱该内容著作权之免费及非独家、永久的许可使用权,游娱有权为展示、传播及推广前述内容之目的,对上述内容进行复制、修改、出版。由此展示、传播及推广行为所产生的损失或利润,均由游娱承担或享受。游娱有权自主决定是否给予此类用户鼓励或奖励。</p>
<p>10.3 因用户进行上述张贴,而导致任何第三方提出索赔要求或衍生的任何损害或损失,用户须承担全部责任。</p>
<p>10.4 非经游娱事先许可,用户不得对他人上传或张贴在电子公告栏或本服务其他内容进行复制、出售或用作其他商业用途。</p>
<h4>11. 游娱账号服务使用规则</h4>
<p>11.1 用户必须保证,拥有上传之照片、文字等作品之著作权或已获得合法授权,在本网站之上传行为未侵犯任何第三方之合法权益。否则,将由用户承担由此带来的一切法律责任;用户不得将任何内部资料、机密资料、涉及他人隐私资料或侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利之内容加以上载、张贴、或以其他方式传送。</p>
<p>11.2 用户不得利用本服务进行故意制作、传播计算机病毒等破坏性程序,不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则,否则游娱将保留追究其法律责任的权利并有权将其提交给相关部门处理。</p>
<p>11.3 游娱有权对用户上传的图片、添加的文字等内容进行审核,有任何违反法律法规或本协议之有关规定的图片、文字,游娱有权立即将其删除或屏蔽,且不需要对用户另行通知。</p>
<p>11.4 用户不得将广告函件、促销资料、垃圾邮件等,加以上载、张贴、发送电子邮件或以其他方式传送。</p>
<p>11.5 游娱郑重提请用户注意,任何经由本服务以上载、张贴、发送的资料、文字、照片、图形、视讯、信息、用户的登记资料或其他资料(以下简称“内容”),无论系公开还是私下传送,均由内容提供者承担责任。游娱无法控制经由本服务传送之内容,也无法对用户的使用行为进行全面控制,因此不保证内容的合法性、正确性、完整性、真实性或品质;用户已预知使用本服务时,可能会接触到令人不快、不适当或令人厌恶之内容,并同意将自行加以判断并承担所有风险,而不依赖于游娱。但在任何情况下,游娱有权依法停止传输任何前述内容并采取相应行动,包括但不限于暂停用户使用本服务的全部或部分,保存有关记录,并向有关机关报告。但游娱有权(但无义务)依其自行之考量,拒绝和删除可经由本服务提供之违反本条款的或其他引起游娱或用户反感的任何内容。</p>
<p>11.6 用户完全理解并同意,若第三方在用户不知情或未经用户同意的前提下,将其文字、图片作品上传于游娱账号空间及由此所产生的任何可能侵害其权益的行为,游娱均不对任何人承担任何责任。</p>
<p>11.7 游娱有权根据政府机关或权利人的要求删除用户上载、张贴、发送的内容,无论游娱事先是否通知。</p>
<p>11.8 游娱有权根据服务的需要,收回用户所用的空间域名或减少用户所用空间的大小,无论游娱事先是否通知。</p>
<h4>12. 游娱论坛规则</h4>
<p>12.1 关于用户名和昵称</p>
<p>不得使用党和国家领导人或其他知名人士的真实姓名、字号、艺名、笔名作为用户名和昵称;</p>
<p>不得使用国家机构或其他机构的名称作为用户名和昵称;</p>
<p>不得使用和其他网友之名相近、相仿的用户名和昵称;</p>
<p>不得使用不文明、不健康,或带攻击性、侮辱性的用户名和昵称;</p>
<p>请勿使用易产生歧义、引起他人误解的用户名和昵称;</p>
<p>不得使用各种奇形怪状的符号作为用户名和昵称;</p>
<p>对于违反规定或产生不良后果的用户名和昵称,本站有权删除而不必事先通知。</p>
<p>12.2 关于签名</p>
<p>不得出现宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的信息内容;</p>
<p>不得出现有侮辱性言语、挑衅、辱骂其他人以及不健康内容;</p>
<p>不得出现广告性质的内容以及本公司以外其他网站的链接;</p>
<p>游娱有权在不需要通知和解释的情况下除去违反以上规定的签名内容,并对情节严重者予以封号处理。</p>
<p>12.3 关于发贴内容</p>
<p>遵守相关法规,严禁发表违反法律法规及社会主义道德规定的内容;</p>
<p>使用文明用语,不得张贴对任何人进行人身攻击、谩骂、诋毁的言论;</p>
<p>不得张贴未经公开报道、未经证实的消息;</p>
<p>不得张贴与所在论坛主题无关的消息、言论和图片;</p>
<p>未经游娱同意,不得张贴带有商业性质的内容或任何形式的广告,不得张贴游娱及其关联公司以外其他网站的链接;</p>
<p>不得恶意灌水,内容相同的帖子不得一文多发;</p>
<p>不得在帖子中(标题和内容)加入各种奇形怪状的符号;</p>
<p>转贴文章应注明原始出处和时间;</p>
<p>对于违反以上规定的内容,在不需要通知和解释的情况下,游娱以及版主有权予以删除,并对情节严重者予以封账号处理。</p>
<p>12.4 关于贴图</p>
<p>不得张贴宣扬反动、封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪等不符合国家法律规定的以及任何包含种族、性别、宗教歧视性和猥亵性的图片;</p>
<p>不得出现带有侮辱性、挑衅、辱骂其他人以及不健康内容的图片;</p>
<p>请勿使用易产生歧义、引起他人误解的图片;</p>
<p>摘录、转贴的图片请注明出处及作者,禁止张贴侵犯他人著作权、版权等知识产权的图片;</p>
<p>不得张贴与论坛主题无关的图片;</p>
<p>游娱有权在不需要通知和解释的情况下删除违反以上规定的图片,并对情节严重者予以封账号处理。</p>
<h4>13. 游娱账号游戏规则</h4>
<p>13.1 用户应当遵守游戏公约、玩家守则及不时发布的游戏规则、公告等;</p>
<p>13.2 用户不得通过不正当的手段或其他不公平的手段使用游娱账号的游戏产品和服务或参与游娱账号的游戏活动。用户不得干扰游娱正常地提供产品和服务,包括但不限于:攻击、侵入游娱的网站服务器或使网站服务器过载;制作、发布、传播、使用任何形式的妨碍游戏公平性的辅助工具或程序(外挂);利用程序的漏洞和错误(Bug)破坏游戏的正常进行或传播该漏洞或错误(Bug);不合理地干扰或阻碍他人使用游娱所提供的产品和服务。</p>
<p>13.3 为维护游戏的公平性,如果游娱发现用户数据异常,无论用户对该异常数据产生是否负有过错,游娱均有权根据本规则、游戏公约、玩家守则及后期不时发布的游戏公告等,采取相应措施:包括但不限于对该账号的冻结、终止、删除;用户在此承诺游娱有权采取上述行动,并承诺不得就上述行为要求游娱做任何补偿或退费。</p>
<p>13.4 游娱在此特别提示用户:</p>
<p>游娱提供的游戏将按照现状提供,用户明确知道游戏中存在已知和未知的漏洞和错误(Bug)。尽管游娱将尽最大努力解决已知的漏洞和错误(Bug),但用户知道或应该知道游戏中仍可能包含未知的漏洞和错误(Bug)等。用户同意不向游娱及其关联公司因任何漏洞和错误(Bug)主张任何赔偿。游娱不提倡虚拟物品之间的交易,并不对该交易中产生的任何问题进行支持和保障。</p>
<h4>14. 手机特色功能说明</h4>
<p>14.1 用户明确知道,游娱提供的实时定位服务将向用户及用户的不特定游娱账号好友提供用户的实时空间位置信息。</p>
<p>14.2 用户可选择向游娱账号导入手机通讯簿上所对应的好友关系链,但游娱确保将不导入好友关系链之外的任何信息(包括好友姓名及其他任何相关信息) </p>
<p>14.3 游娱将对好友关系链通过不可逆转的方式加密存储,包括游娱账号和您的任何好友都将无法获知您的真实好友关系链和真实手机号码。</p>
<h4>15. 游娱的知识产权及其他权利</h4>
<p>15.1 游娱对本服务及本服务所使用的软件和受知识产权相关法律或其他法律保护的资料享有相应的权利。</p>
<p>15.2 经由本服务传送的内容,受到著作权法、商标法、专利法或其他法律的保护;未经游娱明示授权许可,用户不得进行修改、出租、散布或衍生其他作品,用户本人创作并在公开使用区域张贴的内容除外。</p>
<p>15.3 用户对本服务所使用的软件有非专属性使用权,但自己不得或许可任何第三方复制、修改、出售或衍生产品。</p>
<p>15.4 游娱账号及其他游娱账号图样、产品及服务名称,均为游娱及其关联公司所享有的商标,未经游娱所事先书面授权,任何人不得使用、 复制或用作其他用途。</p>
<h4>16. 免责声明</h4>
<p>16.1 游娱对于本服务包含的或用户经由或从任何与本服务有关的途径所获得的任何内容、信息或广告,不保证其正确性或可靠性;并且对于用户经本服务上的广告、展示而购买、取得的任何产品、信息或资料,游娱不负保证责任。用户自行承担担使用本服务的风险。</p>
<p>16.2 游娱有权但无义务,改善或更正本服务任何部分之任何疏漏、错误。</p>
<p>16.3 游娱不保证以下事项(包括但不限于):</p>
<p>本服务适合用户的使用要求;</p>
<p>本服务不受干扰,及时、安全、可靠或不出现错误;</p>
<p>用户经由本服务取得的任何产品、服务或其他材料符合用户的期望;</p>
<p>16.4 用户使用经由本服务下载的或取得的任何资料,其风险自行负担;因该使用而导致用户手机或其他设备系统损坏或资料流失,用户应负完全责任;</p>
<p>16.5 对基于以下原因而造成的利润、商业信誉、资料的损失或其他有形或无形损失,游娱不承担任何直接、间接、附带、衍生或惩罚性的赔偿:</p>
<p>本服务使用或无法使用;</p>
<p>经由本服务购买或取得的任何产品、资料或服务;</p>
<p>用户资料遭到未授权的使用或修改;</p>
<p>用户资料丢失或被删除;</p>
<p>其他与本服务相关的事宜。</p>
<p>16.6 用户在浏览网际网路时自行判断使用游娱账号的检索目录。该检索目录可能会引导用户进入到被认为具有攻击性或不适当的网站,游娱没有义务查看检索目录所列网站的内容,因此,对其正确性、合法性、正当性不负任何责任。</p>
<h4>17. 服务的修改和终止</h4>
<p>游娱有权在未事前通知的情况下在任何时候,暂时或永久地修改或终止本服务或其中任何一部分。游娱对本服务的修改或终止对用户和任何第三人不承担任何责任。游娱有权基于任何理由,终止用户的账号、密码或拒绝其使用本服务,或删除、转移用户存储、发布在本服务的内容,游娱采取上述行为均不需通知,并且对用户和任何第三人不承担任何责任。</p>
<h4>18. 通知</h4>
<p>游娱向用户发出的通知,可以采用电子邮件、页面公告、常规信件、电话或游娱认为适合的形式。服务条款的修改或其他事项变更时,游娱将会以上述形式进行通知。</p>
<h4>19. 全部协议</h4>
<p>本服务协议和游娱的其他服务条款构成完整的协议。</p>
<h4>20. 法律的适用和管辖</h4>
<p>本服务条款的生效、履行、解释及争议的解决均适用中华人民共和国法律,发生的争议提交广州仲裁委员会裁决。如果本服务协议中某项条款因与中华人民共和国现行法律相抵触而导致无效,将不影响其他部分的效力。</p>
<h4>21. 生效条件</h4>
<p>本协议自用户访问、浏览及使用游娱账号之时开始生效。</p>
</div>
<!-- end -->
<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script>
<script type="text/javascript" src="js/zepto.min.js?20150923001"></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
});
</script>
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/simpScroller-min.js"></script>
<script>
simpScroller(document.querySelector(".horizontal"), {});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" />
<link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" />
<title>
平台登录
</title>
</head>
<body>
<input type="hidden" name="loginUserName" value="">
<input type="hidden" name="loginPassword" value="">
<div class="mask">
<div class="container_load" id="loading">
<div class="content">
<div class="circle"></div>
<div class="circle1"></div>
</div>
</div>
<div class="alert alert-success hide" id="alert">
<!--<button type="button" class="close" data-dismiss="alert">&times;</button>-->
<span></span>
</div>
<!-- 登录模块 -->
<section id="login" class="hide" data-replace="1">
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
<form action="/sdk/login" method="post" class="ajax align-left clearfix">
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-main">
<div class="inputbox clearfix" style="position: relative;">
<div class="ileft">账号:</div>
<div class="iright">
<input type="text" name="username" placeholder="请输入账号" id="js_login_username">
<div class="bottom-icon drop-down">
<i class="iconfont icon-xiangxia"></i>
</div>
</div>
<div class="pull-box">
<ul class="drop-ul">
</ul>
</div>
</div>
<div class="inputbox clearfix">
<div class="ileft">密码:</div>
<div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div>
</div>
<div class="other-login clearfix">
<!--<p>第三方登录
<a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="sina hide">
<i class=" iconfont icon-unie61d"></i>
</a>
<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">
</a>
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide">
</a>
</p>-->
<label><a href="#find_pwd" class="forgetpsw">找回密码</a></label>
<div class="clear"></div>
<label onclick="" class="input-control pull-left hide" >
<input type="checkbox" checked="checked" class="eg" ></input>
进入帐号管理界面
</label>
</div>
</div>
<ul class="inline-btn login-inline-btn">
<li>
<a method="post" class="btn btn_pri_block" href="#register">一键注册</a>
</li>
<li>
<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> -->
<a class="btn larg btn-orange submit" utocomplete="off" >登录</a>
</li>
</ul>
</form>
</div>
</div>
</section>
<!-- end -->
<!-- 登录前模块 -->
<section id="login_before" class="hide" data-replace="1">
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="login-third-list">
<div class="title">请选择快速登录</div>
<div class="third-list">
<ul>
<li class="login_case_qq"><a title="QQ帐号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li>
<li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li>
<div class="clear"></div>
</ul>
</div>
<div class="only-btn"><a href="#login">返回</a></div>
</div>
</div>
</div>
</section>
<!-- end-->
<!-- 注册模块 -->
<section id="register" class="hide">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<form action="/sdk/register" class="ajax clearfix">
<div class="new-sdk-main">
<div class="inputbox clearfix">
<div class="ileft">账号:</div>
<div class="iright">
<input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required>
<div class="bottom-icon drop-down">
<i class="iconfont icon-xiangxia"></i>
</div>
</div>
</div>
<div class="inputbox clearfix">
<div class="ileft">密码:</div>
<div class="iright"><input name="password" placeholder="密码长度为6-16个字符,不能包含空格" required></div>
</div>
<div class="ag-tx clearfix">
<span data-action="agreement" >
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">接受<a href="agreement.html">网络服务协议</a></p>
</span>
</div>
</div>
<input type="hidden" name="old_usernmae" value="-1">
<input type="hidden" name="type" value="-1">
<ul class="inline-btn">
<li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li>
<li><a class="submit btn larg " >确定注册</a></li>
</ul>
</form>
</div>
</section>
<!-- end -->
<!-- 协议模块 -->
<section id="agreement" class="hide">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-content">
<h3>网络服务协议</h3>
<div class="content-main">
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<h4>一、账号注册</h4>
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<h4>二、账号注册</h4>
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
</div>
</div>
<div class="only-btn inline-btn">
<a href="#register" class="submit btn-orange">确定</a>
<div class="agreement l" style="margin-right: 0;">
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">已阅读</p>
</div>
</div>
</div>
</section>
<!-- end -->
<!-- 活动公告模块 -->
<section id="activity" class="hide" data-auth="1">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
活动公告
<!--<a href="#message" class="btn-link posrgt">
个人消息
</a>-->
</div>
<div class="container activity">
<div class="box_info_center" style="height: 100%;">
<div id="activity_wrapper" style="position: relative" class="scroll">
<ol class="activity-list list" data-role="ajax-html"
data-params-url="/sdk/notice/list?page_size=10"
data-params-template="tpl_activity">
</ol>
</div>
</div>
</div>
</div>
</section>
<!-- end -->
<!-- 活动公告详细页面模块 -->
<section id="activity_detail" class="hide" data-auth="1" data-attr="dot">
</section>
<!-- end -->
<!-- 消息列表模块 -->
<section id="message" class="hide" data-auth="1">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#activity" class="lefticon op-back">
<i class="iconfont icon-fanhui"></i>
</a>
个人消息
</div>
<div class="container activity">
<div class="box_info_center">
<div id="message_wrapper" style="position: relative" class="scroll">
<ol class="message-list list" data-role="ajax-html"
data-params-url="/message/list?page_size=10"
data-params-template="tpl_message_list">
</ol>
</div>
</div>
</div>
</div>
</section>
<!-- end -->
<section id="message_detail" class="hide" data-attr="dot">
</section>
<!-- 找回密码模块 -->
<section id="find_pwd" class="hide" data-replace="1">
<input type="hidden" name="pwd_code" value="">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center" style="border-bottom: none;">
<a href="#login" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
<span>找回密码</span>
</div>
<div class="pwd_box">
<ul class="step-tab">
<li><a href="javascript:;">通过手机找回</a></li>
<li><a href="javascript:;">通过密保找回</a></li>
<!--<li><a href="javascript:;">通过邮箱找回</a></li>-->
<li><a href="javascript:;">联系客服</a></li>
</ul>
<div class="step-box">
<div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;">
<div class="new-sdk-box">
<div class="input" style="padding: 15px 0;">
<input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;">
</div>
<div class="input" style="padding: 15px 0;">
<input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;">
</div>
<div class="inputCode clearfix">
<div class="input fl" style="padding: 15px 0;">
<input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;">
</div>
<a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a>
</div>
<ul class="inline-btn" style="margin-top: 15px;">
<li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>
<li style="background: none; border-radius: 20px;"><a class="btn" href="#home">返回</a></li>
</ul>
</div>
</div>
<div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form">
<div class="question-input-box clearfix">
<div class="pull-left qib-txt">
您的账户:
</div>
<div class="pull-left qib-input">
<input type="text" name="username" placeholder="输入您的账号" style="text-align: left;" class="function-input username" required/>
</div>
</div>
<a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a>
</div>
<!--<div id="email_get_pwd_form" action="/user/password_by_mail" todo="password_by_mail_callback" class="function-list-content ajax hide form">
<input type="text" name="email" placeholder="输入您绑定的邮箱地址" class="function-input mail" style="margin: 0 0 30px;"/>
<a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a>
</div>-->
<div class="function-list-content hide">
<div class="pwd_txt">
<div class="default_text" style="display: none;">
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
<p>客服电话:<a href="tel:"></a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
</div>
<div class="get_text"></div>
</div>
<a href="javascript:;" class="kefu_subbtn">确定</a>
</div>
<div class="reset_psw_mobile hide" style="border-top: 1px solid #fff;">
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">账号:<span id="js_UserName" style="color: #000;"></span></p>
</div>
<div class="inputCode clearfix">
<div class="input fl" style="width: 100%; padding:15px 0;">
<input type="text" required placeholder="请输入新密码" id="js_reset_newpsw" style="margin: 0; text-align: left; padding: 0 20px;">
</div>
</div>
<div class="ag-tx clearfix">
<span data-action="">
<div class="checkbox checkbox-2 l">
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l" style="margin-top: 0;">显示密码</p>
</span>
</div>
<a href="javascript:;" class="btn-orange" id="js_confirm_resetnewpsw">保存修改</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- end -->
<section id="help" class="hide" data-auth="1">
<div class="header">
<span class="title">手游平台</span>
<a class="btn pull-left op-back" href="#home">返回</a>
</div>
<div class="container">
<div class="box_info_center">
<div class='align-left'>
</div>
</div>
</div>
</section>
<!-- 首页模块 -->
<section id="home" class="hide" data-attr="dot" data-auth="1"></section>
<!-- 重置密码模块 -->
<section id="reset_pwd" data-attr="dot" class="hide"></section>
<!-- 修改密码模块 -->
<section id="modify_pwd" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 密保模块 -->
<section id="mibao" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 回答密保模块 -->
<section id="answer_question" data-attr="dot" class="hide"></section>
<!-- 绑定模块 -->
<section id="bind" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 绑定手机 -->
<section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 解绑手机模块 -->
<section id="unbindMobile" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 绑定邮箱模块 -->
<section id="mail" data-attr="dot" class="hide" data-auth="1"></section>
<!-- doT模板 -->
<section id="frame" data-attr="dot" class="hide" ></section>
<script id="frame_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;">
<a href="#"><img src="images/new-sdk-logo.png"></a>
<a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;">
<i class="iconfont icon-fanhui"></i>
</a>
</div>
<div class="container" style=" margin-bottom: 20px;">
<div class="ios_scroll">
<iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe>
</div>
</div>
</div>
</script>
<script id="home_template" type="text/x-jquery-tmpl">
<input type="hidden" name="initUserName" value="{{=Core.Data.nickname}}" />
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
<div class="user-center">
用户中心
<a href="/sdk/logout" class="op-logout">切换账户</a>
</div>
{{? Core.Data.is_guest == 1}}
<div class="user-center-box">
<div class="top clearfix">
<div class="pull-left txt w_45">
<p>欢迎您!</p>
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<div class="bind-user">
<div class="w_50 txt" style="display: inline-block; vertical-align: middle;">
您当前还是游客,为保证账号安全,请升级账号!
</div>
<div class="inline-btn w_45" style="display: inline-block; vertical-align: ;">
<a class="btn btn-bind" href="#modify_pwd">马上升级</a>
</div>
</div>
</div>
{{?? Core.Data.is_guest == 2}}
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
<p>欢迎您!</p>
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
{{?}}
<!--<li><a href="#mail">绑定邮箱</a></li>-->
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
</div>
{{??}}
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
<p>欢迎您!</p>
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
{{?}}
<!--<li><a href="#mail">绑定邮箱</a></li> -->
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
</div>
{{?}}
</div>
</div>
</script>
<script id="mail_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
绑定邮箱
</div>
{{? Core.Data.bind_mail_statu == 0}}
<div class="new-sdk-box">
<div class="acount-name">
账号:{{=Core.Data.username}}
</div>
<form id="pwd_by_question_form" action="/user/bind_mail" class="ajax" method="post">
<div class="input" style="padding: 0;">
<input type="text" name="email" required placeholder="请输入你要绑定的邮箱">
<input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;">
</div>
</form>
<p>提示:发送绑定邮件后,请您登录邮箱操作!</p>
</div>
<ul class="inline-btn">
<li style="margin: 0 auto; padding: 1em 0; float: none;">
<a class="submit btn larg btn-orange" href="">发送绑定邮件</a>
</li>
</ul>
{{?? Core.Data.bind_mail_statu == 1}}
<div class="new-sdk-box">
<form id="bind_mail_form" action="/user/bind_mail" class="ajax" todo="bind_mail_callback" style="display:none; ">
<div class="input">
<input type="text" name="email" required placeholder="输入想要绑定的邮箱地址">
<input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;">
</div>
</form>
<p>待绑定邮箱:<span class="text-info">{{=Core.Data.mail}}</span></p>
</div>
<ul class="inline-btn">
<li style="margin: 0 auto; padding: 1em 0; float: none;" id="change-mail-btn" class=""><a class="btn larg btn-orange" href="#">更换邮箱</a></li>
<li style="margin: 0 auto; padding: 1em 0; float: none; background: #ff9600;" id="bind-mail-btn" class="hide"><a class="btn larg op-primary btn-orange" href="#home">保存设置</a></li>
</ul>
{{?? Core.Data.bind_mail_statu == 2}}
<div class="new-sdk-box">
<div class="input" style="padding: 0;">
<input type="text" name="email" required disabled="disabled" value="{{=Core.Data.mail}}">
</div>
<p>可以通过绑定的邮箱找回密码</p>
</div>
{{?}}
</div>
</script>
<script id="reset_pwd_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-box">
<div class="question-input mt10">
账号:{{=Core.Data.username}}
</div>
<div class="question-input mt10">
<p>你的新密码是:{{=Core.Data.new_pwd}}</p>
<p style="color: #949494;">请妥善保管,切勿外泄</p>
</div>
</div>
<ul class="inline-btn">
<li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange" href="#login">我知道了</a></li>
</ul>
</div>
</script>
<script id="modify_pwd_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
{{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}}
</div>
<form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" >
<div class="new-sdk-box">
<div class="input new-sdk-psw clearfix">
<i>{{? Core.Data.is_guest == 1}}正式账号:{{??}}旧密码:{{?}}</i>
<label>
<input {{? Core.Data.is_guest == 1}}type="text"{{??}}type="password"{{?}} class="old_pwd required " name="{{? Core.Data.is_guest >= 1}}username{{??}}password{{?}}" value="{{? Core.Data.new_pwd}}{{=Core.Data.new_pwd}}{{?}}" required="required" placeholder="{{? Core.Data.is_guest == 1}}请输入6-18位字母或数字{{??}}请输入旧密码{{?}}" required/>
</label>
</div>
<div class="input new-sdk-psw clearfix">
<i>{{? Core.Data.is_guest == 1}}正式密码:{{??}}新密码:{{?}}</i>
<label>
<input class="" name="newpwd" required type="text" placeholder="{{? Core.Data.is_guest == 1}}请输入6-16位字母或数字{{??}}请输入密码{{?}}" />
</label>
</div>
{{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}}
</div>
<ul class="inline-btn">
<li style="margin: 0 auto; padding: 1em 0; float: none;">
<a class="submit btn larg btn-orange" autocomplete="off" >保存更改</a>
</li>
</ul>
</form>
</div>
</script>
<script id="mibao_template" type="text/x-jquery-tmpl" >
{{? Core.Data.safe_question == "" }}
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
设置密保
</div>
<form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" >
<div class="new-sdk-box">
<div class="input select" style="padding: 25px;">
<select name="question" class="" >
{{~ Core.Data.question_list :item:index }}
<option value='{{=item}}'>{{=item}}</option>
{{~}}
</select>
</div>
<div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div>
<p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange ">保存设置</a></li>
</ul>
</form>
</div>
{{??}}
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
设置密保
</div>
<form action="">
<div class="new-sdk-box">
<p>问题:{{=Core.Data.safe_question}}</p>
<p>答案:{{=Core.Data.safe_answer}}</p>
</div>
</form>
</div>
{{?}}
</script>
<script id="answer_question_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#login" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
密保找回密码
</div>
<div class="new-sdk-box" style="border-top: 1px solid #c4c3c3;">
<div id="pwd_by_question_form" action="/sdk/find/question/" class="ajax " method="post" >
<input type="hidden" name="username" value="{{=Core.Data.ans_temp.username}}" />
<input type="hidden" name="question" value="{{=Core.Data.ans_temp.question}}" />
<div class="question-input" style="margin-bottom: 20px;">
{{=Core.Data.ans_temp.question}}
<i class="iconfont icon-xiangxia"></i>
</div>
<div class="input" style="padding: 0;">
<input type="text" name="answer" required class="larg " placeholder="请输入答案" required/>
</div>
</div>
</div>
<ul class="inline-btn">
<li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange submit op-primary" >确定</a></li>
</ul>
</div>
</script>
<script id="bind_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#login" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
绑定手机
</div>
<div class="new-sdk-box">
{{? Core.Data.bind_phone == "" && Core.Data.bind_statu == 0 }}
<div class="acount-name">
账号:{{=Core.Data.username}}
</div>
<form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" >
<div class="input" style="padding: 0;">
<input id="js_iphone" type="text" required name="mobile" placeholder="请输入您要绑定的手机号码">
</div>
<div class="inputCode clearfix">
<div class="input fl">
<input id="js_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码">
</div>
<a href="javascript:;" class="getCode" id="js_getcode">获取验证码</a>
</div>
<ul class="inline-btn">
<li><a class="larg btn btn-orange submit" id="js_conform" value="" >确定</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
{{?? Core.Data.bind_statu == 1}}
<form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" >
<div class="new-sdk-box">
<div class="input" style="padding: 0;"><input type="text" required name="mobile" placeholder="{{=Core.Data.bind_phone}}"></div>
<p>当前号码待绑定,更换手机号码请直接修改</p>
<p>请用绑定的手机拨打<span>{{=Core.Data.mobile_helper_number}}</span>(电话会自动挂断,此呼叫免费)完成绑定,才可以通过手机修改密码。</p>
</div>
<ul class="inline-btn">
<li><a class="larg btn btn-orange submit" >保存设置</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
{{?? Core.Data.bind_statu == 2}}
<form action="">
<div class="new-sdk-box">
<div class="input" style="padding: 0;"><input type="text" value="{{=Core.Data.bind_phone}}"></div>
<p>解除绑定,请用绑定的手机发送短信内容“<span>qxbd</span>”发送到<span>{{=Core.Data.mobile_helper_number}}</span></p>
</div>
<div class="only-btn"><a class="btn" href="#home">返回</a></div>
</form>
{{?}}
</div>
</div>
</script>
<script id="bindMobile_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
绑定手机
</div>
<div class="new-sdk-box">
<div class="acount-name">
账号:{{=Core.Data.username}}
</div>
<form id="bind_mobile_form" action="/user/bind_mobile">
<div class="input" style="padding: 0;">
<input id="js_iphone" type="text" required placeholder="请输入您要绑定的手机号码">
</div>
<div class="inputCode clearfix">
<div class="input fl">
<input id="js_ranks" type="text" required placeholder="请输入短信验证码">
</div>
<a href="javascript:;" class="getCode" id="js_getcode" style="padding: 20px 0;">获取验证码</a>
</div>
<ul class="inline-btn">
<li><a class="larg btn btn-orange" id="js_conform" value="" >确定</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
</div>
</div>
</script>
<script id="unbindMobile_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
解绑手机
</div>
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">账号:{{=Core.Data.username}}</p>
<p>手机:<span class="phoneMobile"></span></p>
</div>
<form id="unbind_mobile_form" action="/user/bind_mobile">
<div class="inputCode clearfix">
<div class="input fl">
<input id="js_unbind_ranks" type="text" required placeholder="请输入短信验证码">
</div>
<a href="javascript:;" class="getCode" id="js_unbind_getcode" style="padding:20px 0;">获取验证码</a>
</div>
<ul class="inline-btn" style="margin-top: 25px;">
<li><a class="larg btn btn-orange" id="js_unbind" value="" >确定</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
</div>
</div>
</script>
<script id="message_detail_template" type="text/x-jquery-tmpl">
<div class="header">
<a class="btn pull-left op-back" href="#message">返回</a>
<span class="title">消息内容</span>
</div>
<div class="container">
<div class="box_info_center">
<div class="message-comm">
<div class="align-center bor_b_h3">
<h3>{{=Core.Data.message_detail.title}}</h3>
<p class="text-info">
<span class="mar-r-10">{{=Core.Data.message_detail.nickname}}</span>
<span>[{{=Core.Data.message_detail.create_time}}]</span>
</p>
</div>
<div class="message_text">
{{=Core.Data.message_detail.content}}
</div>
</div>
</div>
</div>
</script>
<script id="activity_detail_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container" style="background: #fff;">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#activity" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
活动公告详情
</div>
<div class="container activity">
<div class="align-center bor_b_h3 clearfix">
<h3 class="pull-left">{{=Core.Data.activity_detail.title}}</h3>
<p class="text-info pull-right">
<span>{{=Core.Data.activity_detail.notice_time}}</span>
</p>
</div>
<div class="box_info_center" style="height: 100%; margin: 0 37px;">
<div class="detail_scroller scroll" id="detail_scroller">
<div class="activity-comm">
<div class="activity_text">
{{=Core.Data.activity_detail.content}}
</div>
</div>
</div>
</div>
</div>
</div>
</script>
<script id='tpl_message_list_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p>没有消息.</p>
{{??}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li >
<a class="item" data-id="{{=item.id}}">
<span class="pull-right">{{=item.nickname}}</span>
<span class="pull-right text-info mar-r-10">{{=item.create_time}}</span>
<p>
<span class="title">{{=item.title}}</span> {{? item.read == 0}}<span class="statu">未读</span>{{?}}
</p>
</a>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/message/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_message_list" data-params-append="true" >点击加载更多帖子</a>
</li>
{{?}}
{{?}}
</script>
<script id='tpl_activity_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p>
{{??}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li >
<a class="item" href="#" data-id="{{=item.id}}">
<span class="pull-right act_time">{{=item.notice_time}}</span>
<span class="act_title{{? item.update_time.indexOf('刚刚') > -1}}new{{?}}">{{=item.title}}</span>
</a>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/sdk/notice/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_activity" data-params-append="true" >点击加载</a>
</li>
{{?}}
{{?}}
</script>
</div>
<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script>
<script type="text/javascript" src="js/zepto.min.js?20150923001"></script>
<script type="text/javascript" src="js/doT.min.js?20150923001" ></script>
<script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
});
</script>
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/login.min.js?2016111" ></script>
<script type="text/javascript" src="js/loader.min.js?20150923001"></script>
<script type="text/javascript">
window.onload = window.onresize = initMatching;
(function(){
getData('/sdk/login/json');
})();
// $(document).ready(function(){
// setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000)
// })
</script>
</body>
</html>
\ No newline at end of file
//游戏皮肤对应manifest文件的生成配置文件, 包括基本的第三方库、业务逻辑js、样式
var base_js = [
'js/fastclick.min.1.0.js',
'js/zepto.min.js',
'js/doT.min.js',
'js/iscroll.min.1.0.js'
]
var concat_with_mtime = [
'skin/new_sdk.min.css',
'skin/responsive.min.css',
'js/core.min.js',
'js/loader.min.js',
'js/center.min.js',
'js/pay.min.js',
'js/login.min.js'
]
var htmls = [
'login.html',
'center.html',
'pay.html',
'share.html'
]
var images = 'skin/img';
var target = [
'bllm',
'bwts',
'bwzq',
'fytx',
'hxjh',
'rxxt',
'sgg',
'smlw',
'twzw',
'whj'
]
exports.htmls = htmls;
exports.target = target;
exports.concat_with_mtime = concat_with_mtime;
exports.base_js = base_js;
exports.images = images;
\ No newline at end of file
No preview for this file type
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
Created by FontForge 20120731 at Wed Jul 20 14:44:24 2016
By admin
</metadata>
<defs>
<font id="iconfont" horiz-adv-x="1024" >
<font-face
font-family="iconfont"
font-weight="500"
font-stretch="normal"
units-per-em="1024"
panose-1="2 0 6 3 0 0 0 0 0 0"
ascent="896"
descent="-128"
x-height="792"
bbox="0 -212 1024 896"
underline-thickness="50"
underline-position="-100"
unicode-range="U+0078-E612"
/>
<missing-glyph horiz-adv-x="374"
d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
<glyph glyph-name=".notdef" horiz-adv-x="374"
d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
<glyph glyph-name=".null" horiz-adv-x="0"
/>
<glyph glyph-name="nonmarkingreturn" horiz-adv-x="341"
/>
<glyph glyph-name="x" unicode="x" horiz-adv-x="1001"
d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5
t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5
t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" />
<glyph glyph-name="uniE600" unicode="&#xe600;"
d="M580 300q-9 0 -16 -7t-7 -17q0 -8 7 -15t16 -7q13 0 21.5 6.5t8.5 15.5q0 10 -8.5 17t-21.5 7zM503 413q14 0 22 8t8 21t-8 21t-22 8t-24 -8t-10 -21t10 -21t24 -8zM512 811q-104 0 -198.5 -40.5t-163 -109t-109 -163t-40.5 -198.5t40.5 -199t109 -163.5t163 -109
t198.5 -40.5t199 40.5t163.5 109t109 163.5t40.5 199t-40.5 198.5t-109 163t-163.5 109t-199 40.5zM416 170q-36 0 -83 13l-84 -42l24 72q-94 66 -94 158q0 84 69 142t168 58q87 0 154.5 -46.5t82.5 -118.5q-12 2 -22 2q-85 0 -143 -55t-58 -132q0 -23 6 -50q-6 -1 -20 -1z
M763 88l17 -60l-63 36q-5 -1 -22 -5t-28 -5.5t-22 -1.5q-84 0 -142 50t-58 121.5t58 121.5t142 50q80 0 140.5 -50.5t60.5 -121.5q0 -74 -83 -135zM338 471q-14 0 -25 -8t-11 -21t11 -21t25 -8q13 0 21.5 8t8.5 21t-8.5 21t-21.5 8zM711 300q-10 0 -17 -7t-7 -17
q0 -8 7.5 -15t16.5 -7q12 0 20.5 6.5t8.5 15.5q0 10 -8.5 17t-20.5 7zM711 300z" />
<glyph glyph-name="uniE601" unicode="&#xe601;"
d="M332 306l-1 3l-1 4v2v9v3l1 4l2 4l1 4l3 5l3 4v3v3v4l2 4l1 5l1 2l1 3l2 2l1 2v11l1 5l1 7l2 8l2 8l2 4l1 5l2 5l2 5l3 5l2 5l3 5l4 6l2 3l1 2l4 6l4 5l5 6l5 6l5 6l6 5l6 6l5 4l5 4l5 4l6 3l5 3l6 3l7 3l7 2l6 2l7 2l7 2l8 2l7 1l15 2h8h23l8 -1l8 -1l7 -1l8 -1l8 -2
l7 -2l8 -2l7 -3l7 -3l8 -3l7 -3l6 -4l7 -4l5 -4l3 -2l3 -2l5 -4l4 -5l5 -4l4 -5l4 -5l4 -5l3 -5l3 -4l3 -6l2 -5l5 -10l2 -5l2 -5l1 -5l2 -5l1 -4l1 -5l3 -9l1 -7l1 -8l1 -6l1 -9l1 -1l1 -2l3 -5l1 -3l2 -3l2 -4l2 -4l1 -5l2 -4l1 -5v-3v-3v-2v-3v-3l-1 -3l-1 -6l-2 -3
l-1 -4v-1l1 -1l1 -2l7 -10l6 -8l2 -5l4 -6l3 -6l3 -6l4 -8l4 -8l2 -5l2 -5l2 -5l1 -5l2 -5l1 -5l2 -9l1 -9l1 -8v-12l-1 -4v-7l-2 -7l-2 -5v-3l-2 -3l-1 -2l-1 -2l-1 -2l-2 -2l-2 -1l-1 -2h-2l-2 -1l-1 -1h-2l-2 1l-2 1l-1 1l-2 1l-1 1l-1 1l-3 3l-2 4l-3 3l-2 3l-2 4l-3 6
l-3 6h-1l-1 -1l-1 -1l-1 -2l-2 -7l-4 -8l-4 -11l-3 -5l-4 -6l-4 -6l-4 -6l-2 -3l-3 -3l-6 -6l1 -1l3 -2l13 -6l6 -3l5 -3l5 -4l5 -4l2 -2l2 -2l2 -2l1 -3l1 -2l1 -2v-3l1 -2l-1 -2v-2v-2l-1 -1l-1 -2v-1l-3 -3l-2 -3l-2 -2l-1 -1l-3 -3l-4 -2l-5 -2l-4 -2l-5 -2l-3 -1l-2 -1
l-6 -1l-6 -1l-6 -2l-7 -1h-7l-7 -1h-22l-8 1h-7l-8 1l-8 1l-8 1l-8 2l-8 2l-8 2l-7 3l-8 2l-4 2l-4 1l-2 1h-3h-6l-8 1h-3l-5 1l-3 -3l-5 -3l-6 -2l-6 -4l-4 -2l-4 -1l-9 -4l-5 -1l-5 -2l-7 -1h-4l-5 -1h-5l-6 -1h-23l-13 1l-13 1l-6 1l-13 2l-6 1l-6 2l-5 1l-5 2l-5 2l-5 2
l-4 2l-3 3l-2 2l-1 1l-2 2l-1 2l-1 1l-1 2l-1 3l-1 2v2v2v2v3l1 2v4v2l1 3l1 2l1 4l2 1l1 1l2 3l2 2l2 1l1 1l3 1l2 1l3 2l3 1h3l3 1l4 1h4h4l1 1h1v1l-1 1l-2 1l-6 5l-4 3l-4 4l-5 4l-4 6l-6 6l-2 3l-2 4l-2 4l-3 4l-2 5l-2 4l-2 5l-2 6l-2 5l-1 6h-1l-1 1l-1 -1h-1v-1v-1
l-1 -2l-1 -1l-2 -5l-2 -3l-2 -2l-2 -3l-3 -4l-2 -3l-3 -2l-3 -3l-3 -2l-4 -2l-3 -2l-4 -1h-4h-1h-1l-1 2l-1 1l-1 3l-1 2l-1 3l-1 3l-1 3l-1 7v4v12v10l1 5l1 5l1 5l1 5l2 6l2 6l2 6l2 5l3 6l3 6l3 6l4 6l4 5l4 7l4 4l4 5l5 5l2 2l3 3l4 3l4 4l6 5l5 4zM511 -159
q-91 0 -174 35q-80 34 -142 96t-96 142q-35 84 -35 175t35 174q34 80 96 142t142 96q83 35 174 35t175 -35q80 -34 142 -96t96 -142q35 -83 35 -174t-35 -175q-34 -80 -96 -142t-142 -96q-84 -35 -175 -35zM511.5 710q-114.5 0 -211.5 -56.5t-153.5 -153.5t-56.5 -211.5
t56.5 -211.5t153.5 -153.5t211.5 -56.5t211.5 56.5t153.5 153.5t56.5 211.5t-56.5 211.5t-153.5 153.5t-211.5 56.5z" />
<glyph glyph-name="uniE602" unicode="&#xe602;"
d="M139 233q-24 -59 -27.5 -108t15.5 -60q13 -7 32.5 7.5t38.5 45.5q16 -66 72 -116q-29 -11 -45.5 -28.5t-16.5 -37.5q0 -34 43.5 -57.5t105.5 -23.5q56 0 97.5 19.5t50.5 48.5h18q8 -29 50 -48.5t98 -19.5q62 0 105.5 23.5t43.5 57.5q0 20 -16.5 37.5t-45.5 28.5
q56 50 71 116q20 -31 39 -45.5t32 -7.5q19 11 16 60t-27 108q-19 46 -42 78t-43 40q1 7 1 12q0 35 -17 64v4q0 16 -7 30q-5 125 -77.5 207t-190 82t-189.5 -82t-77 -207q-7 -14 -7 -30v-4q-17 -29 -17 -64q0 -5 1 -12q-20 -8 -43.5 -40t-41.5 -78z" />
<glyph glyph-name="uniE603" unicode="&#xe603;"
d="M671 454q15 0 31 -2q-20 93 -113 154.5t-212 61.5q-87 0 -161 -34.5t-117.5 -95t-43.5 -131.5q0 -122 129 -208l-32 -93l112 54q82 -15 113 -15q14 0 30 1q-10 32 -10 64q0 102 80 173t194 71zM498 538q18 0 29 -11t11 -28t-11 -27.5t-29 -10.5q-19 0 -33.5 10.5
t-14.5 27.5t14.5 28t33.5 11zM272 461q-19 0 -33.5 10.5t-14.5 27.5t14.5 28t33.5 11t30 -11t11 -28t-11 -27.5t-30 -10.5zM966 214q0 92 -82.5 158t-191.5 66q-115 0 -194.5 -65.5t-79.5 -158.5t79.5 -158t194.5 -65q32 0 96 15l89 -46l-24 77q113 81 113 177zM603 253
q-12 0 -22 9.5t-10 21t10 21t22 9.5q17 0 28.5 -9t11.5 -21.5t-11 -21.5t-29 -9zM780 253q-12 0 -22 9.5t-10 21t10 21t22 9.5q18 0 29.5 -9t11.5 -21.5t-11.5 -21.5t-29.5 -9z" />
<glyph glyph-name="uniE604" unicode="&#xe604;"
d="M512 812q-104 0 -199 -40.5t-163.5 -109t-109 -163.5t-40.5 -199t40.5 -199t109 -163.5t163.5 -109t199 -40.5t199 40.5t163.5 109t109 163.5t40.5 199t-40.5 199t-109 163.5t-163.5 109t-199 40.5zM794 140q-10 -8 -25.5 0.5t-32.5 31.5q-14 -38 -36 -71q51 -18 51 -47
q0 -25 -39 -43t-94 -18q-66 0 -106 24q-39 -24 -106 -24q-55 0 -93.5 18t-38.5 43q0 29 50 47q-21 32 -36 71q-16 -23 -31.5 -31.5t-25.5 -0.5q-14 13 -9.5 52.5t24.5 81.5q9 20 20 35q3 124 74.5 211t171.5 87q101 0 172.5 -87t74.5 -211q10 -15 19 -35q20 -42 24.5 -81.5
t-8.5 -52.5z" />
<glyph glyph-name="uniE605" unicode="&#xe605;"
d="M696 -95q11 -9 26 -9q17 0 29 12t12 29v704q0 17 -12 29t-29 12q-16 0 -28 -11l-411 -351q-17 -12 -17 -32t16 -32l414 -351v0z" />
<glyph glyph-name="uniE606" unicode="&#xe606;"
d="M308 467zM270 467.5q0 15.5 11.5 26.5t27 11t26.5 -11t11 -26.5t-11 -26.5t-26.5 -11t-27 11t-11.5 26.5zM594 273zM564 272.5q0 12.5 8.5 21t21 8.5t21 -8.5t8.5 -21t-8.5 -21t-21 -8.5t-21 8.5t-8.5 21zM500 467zM463 467.5q0 15.5 11 26.5t26.5 11t26.5 -11t11 -26.5
t-11 -26.5t-26.5 -11t-26.5 11t-11 26.5zM814 750h-605q-60 0 -102.5 -42.5t-42.5 -102.5v-604q0 -61 42.5 -103.5t102.5 -42.5h605q60 0 102.5 42.5t42.5 103.5v604q0 60 -42.5 102.5t-102.5 42.5zM400 151q-26 0 -95 13l-95 -47l27 81q-109 76 -109 183q0 97 80 164
t192 67q100 0 178 -54t96 -136q-15 1 -26 1q-97 0 -164 -62.5t-67 -151.5q0 -29 8 -57q-14 -1 -25 -1zM800 56l21 -68l-75 41q-54 -14 -81 -14q-97 0 -164 57.5t-67 139t67 139.5t164 58q92 0 161 -58.5t69 -138.5q0 -85 -95 -156zM741 273zM712 272.5q0 12.5 8.5 21t21 8.5
t21 -8.5t8.5 -21t-8.5 -21t-21 -8.5t-21 8.5t-8.5 21z" />
<glyph glyph-name="uniE607" unicode="&#xe607;"
d="M896 896h-768q-53 0 -90.5 -37.5t-37.5 -90.5v-768q0 -53 37.5 -90.5t90.5 -37.5h768q53 0 90.5 37.5t37.5 90.5v768q0 53 -37.5 90.5t-90.5 37.5zM973 0q0 -32 -22.5 -54.5t-54.5 -22.5h-768q-32 0 -54.5 22.5t-22.5 54.5v768q0 32 22.5 54.5t54.5 22.5h768
q32 0 54.5 -22.5t22.5 -54.5v-768zM429 19q113 212 242 395q45 62 101 128.5t90 101.5l34 34l-26 71q-17 -11 -44.5 -31t-99 -78.5t-124.5 -113.5q-54 -55 -108 -123.5t-80.5 -108t-26.5 -40.5l-184 167l-75 -77z" />
<glyph glyph-name="uniE608" unicode="&#xe608;"
d="M875 -128h-727q-61 0 -104.5 43.5t-43.5 105.5v727q0 61 43.5 104.5t104.5 43.5h727q62 0 105.5 -43.5t43.5 -104.5v-727q0 -62 -43.5 -105.5t-105.5 -43.5zM964 688q0 62 -43.5 105.5t-104.5 43.5h-608q-62 0 -105.5 -43.5t-43.5 -105.5v-608q0 -61 43.5 -104.5
t105.5 -43.5h608q61 0 104.5 43.5t43.5 104.5v608z" />
<glyph glyph-name="uniE609" unicode="&#xe609;"
d="M755 599l-243 -242l-243 242q-10 10 -23.5 10t-23.5 -9.5t-10 -23.5t10 -24l243 -243l-243 -243q-10 -9 -10 -23t10 -24t23.5 -10t23.5 10l243 243l243 -243q10 -10 23.5 -10t23.5 10t10 24t-10 23l-243 243l243 243q10 10 10 24t-10 23.5t-23.5 9.5t-23.5 -10z" />
<glyph glyph-name="uniE60A" unicode="&#xe60a;"
d="M625 632l-40 40l-365 -366l365 -366l40 40l-326 326z" />
<glyph glyph-name="uniE60B" unicode="&#xe60b;"
d="M1024 300q0 139 -68.5 257t-186.5 186.5t-257 68.5t-257 -68.5t-186.5 -186.5t-68.5 -257q0 -110 44 -207.5t121 -169.5q13 -16 38 -31q137 -104 309 -104q181 0 322 114q9 7 17 14q81 72 127 171.5t46 212.5zM48 300q0 192 136 328t328 136t328 -136t136 -328
q0 -168 -108 -297q-3 15 -8 26.5t-14.5 20t-16.5 14t-22.5 10t-24 6.5t-29.5 6t-31 6q-6 1 -22.5 4.5t-23 5t-20.5 5t-19.5 6.5t-15 8.5t-13 11t-8.5 14t-5.5 18.5t1 23.5t5.5 28.5q15 12 29.5 34.5t29.5 42.5t35 28q12 18 11.5 40.5t-11.5 35.5q-7 9 -15 10.5t-10 7.5
q-1 15 2.5 60.5t-0.5 73t-23 40.5q-9 5 -20 5q-3 0 -11 -0.5t-12 -0.5q-9 0 -15 3q-11 4 -23.5 22t-26.5 19h-21q-20 -14 -64 -21t-48 -8q-4 -2 -5 -2q-29 -9 -43 -36t-14 -88q0 -11 0.5 -33t0.5 -31q-25 -13 -26 -50q-1 -19 5 -34q3 -11 18 -24t20 -18q8 -10 22 -33.5
t22 -32.5q10 -9 19 -11v-68q-9 -12 -19 -20q-21 -18 -58.5 -29.5t-70 -17t-64.5 -22t-46 -43.5q-3 -6 -6 -11.5t-3 -6.5q-112 131 -112 302z" />
<glyph glyph-name="uniE60C" unicode="&#xe60c;"
d="M115 313h-52v-108h52v108zM115 25h-52q0 -56 39 -95t95 -39v52q-34 0 -58 24t-24 58zM115 169h-52v-107h52v107zM343 627h-108v-53h108v53zM627 582v45h-108v-53h99q5 5 9 8zM486 627h-107v-53h107v53zM197 574v53q-56 0 -95 -39t-39 -95h52q0 34 24 57.5t58 23.5z
M115 453h-52v-108h52v108zM750 205h52v108h-52v-108zM756 345h46v60q-24 -30 -46 -60zM750 62h52v107h-52v-107zM379 -111h107v53h-107v-53zM235 -111h108v53h-108v-53zM667 -57v-52q55 0 94.5 39t39.5 95h-53q0 -34 -23.5 -58t-57.5 -24zM519 -111h108v53h-108v-53z
M939 726q-87 -53 -170 -116.5t-147.5 -124t-108.5 -107t-80 -89.5l-197 154l-87 -70l340 -345q50 127 181.5 316.5t288.5 333.5z" />
<glyph glyph-name="uniE60D" unicode="&#xe60d;"
d="M511 747q-91 0 -174 -35.5t-143 -95t-95 -142.5t-35 -174t35 -173.5t95 -142.5t143 -95.5t174 -35.5t173.5 35.5t142.5 95.5t95.5 142.5t35.5 173.5t-35.5 174t-95.5 142.5t-142.5 95t-173.5 35.5zM510.5 -51q-95.5 0 -176.5 47t-128 128t-47 176.5t47 176.5t128 128
t176.5 47t176.5 -47t128 -128t47 -176.5t-47 -176.5t-128 -128t-176.5 -47zM511 300zM296 300.5q0 88.5 63 151.5t151.5 63t151.5 -63t63 -151.5t-63 -151.5t-151.5 -63t-151.5 63t-63 151.5z" />
<glyph glyph-name="uniE60E" unicode="&#xe60e;"
d="M384 570l48 50l338 -335l-338 -335l-48 49l284 286z" />
<glyph glyph-name="uniE60F" unicode="&#xe60f;"
d="M777 550l-265 -266l-265 266q-9 10 -22.5 10t-23 -9.5t-9.5 -23t9 -22.5l287 -288q9 -9 24 -9q15 -1 24 9l287 288q9 9 9 22.5t-9.5 23t-23 9.5t-22.5 -10z" />
<glyph glyph-name="uniE610" unicode="&#xe610;"
d="M592 164.5q-14 -13.5 -33 -13.5t-33 13l-181 184h-1l-2 2q-14 13 -13 33q0 20 13 34q1 0 2 0.5t1 1.5l183 184q13 14 32.5 14t33 -13.5t13.5 -33t-13 -33.5l-153 -154l151 -153q14 -13 14 -32.5t-14 -33zM962 141q-3 -14 -14 -24v0q-14 -13 -31 -13q-20 0 -33.5 14
t-13.5 33v4q0 17 12 31q50 93 50 199q0 114 -56 210.5t-152.5 152.5t-210.5 56t-211 -56t-153 -152.5t-56 -210.5t56 -211t153 -153t211 -56q136 0 246 81q14 15 34 15t33.5 -13.5t13.5 -33.5l-1 -4q0 -16 -9.5 -28.5t-24.5 -16.5q-133 -93 -293 -93q-139 0 -257 68.5
t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257q0 -129 -62 -243z" />
<glyph glyph-name="uniE611" unicode="&#xe611;"
d="M512 896q-139 0 -257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5t257 68.5t186.5 186.5t68.5 257t-68.5 257t-186.5 186.5t-257 68.5zM512 -81q-95 0 -181 36q-62 26 -115 69q24 18 61 34l43 17q32 13 49 21q52 26 66 63v2l1 3q2 20 2 84v12
l-10 6h-1l-6 6q-5 8 -12 21q-13 27 -16 54l-2 15l-17 2q-2 0 -5 4q-8 9 -11 33q-2 17 6 22l13 8l-4 14q-30 116 -3 179q31 71 140 73h1q58 0 72 -24l5 -8l9 -1q36 -5 54 -30q16 -23 19 -60q5 -59 -18 -128l-5 -15l13 -8v-1l2 -2q2 -1 2.5 -3.5t1 -6.5t0.5 -9q-3 -23 -11 -33
q-3 -4 -5 -4l-17 -2l-2 -15q-2 -26 -16 -54q-6 -13 -12 -21q-2 -2 -5 -6l-11 -6v-12q0 -64 2 -84v-3l1 -2q14 -38 66 -63q16 -8 48.5 -21t43.5 -17q35 -15 60 -33q-52 -43 -115 -70q-86 -36 -181 -36zM842 56q-28 23 -76 43q-4 2 -37 15q-33 14 -52 23q-34 17 -42 35
q-2 26 -2 66h1l1 1q3 2 6 6q8 10 16 27q12 25 17 57h2q11 4 15 11q16 20 21 56q3 28 -13 49q22 71 17 132q-4 50 -28 83q-25 35 -74 46q-30 37 -104 37h-1v0q-69 -1 -115 -28q-46 -26 -66 -72q-32 -73 -2 -197q-17 -21 -14 -50q5 -36 21 -56q5 -6 15 -11h2q6 -33 18 -57
q8 -16 17 -27q1 -2 6 -6l1 -1q0 -45 -2 -65q-8 -19 -41 -36q-17 -8 -53 -22q-29 -12 -37 -16q-48 -20 -77 -43q-64 64 -99 147q-36 86 -36 181t36 181q35 83 100 148t148 100q86 36 181 36t181 -36q84 -36 148 -100t100 -148q36 -86 36 -181t-36 -181q-35 -83 -99 -147z" />
<glyph glyph-name="uniE612" unicode="&#xe612;"
d="M630 651l-272 -267l272 -266v533z" />
</font>
</defs></svg>
No preview for this file type
No preview for this file type
(function() {
localStorage.setItem('auto', false);
init_data();
function init_data(response) {
if (response) {
$(response).appendTo($('body .mask'));
}
// Home模块
var Home = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Home, Module);
Home.prototype.bind = function() {
// 绑定模块事件到section
var that = this;
that.$c.on('click', 'label.help, img', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'help')
return;
Core.showMod('help');
return false;
});
}
Core.registerMod('home', Home);
// 帮助信息模块
var Help = function(modId) {
Module.call(this, modId);
}
Core.inherit(Help, Module);
Core.registerMod('help', Help);
// Mibao模块
var Mibao = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Mibao, Module);
Mibao.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that);
return false;
});
}
Mibao.prototype.mibao_cb = function(data) {
var status_code = data.code;
var msg = data.msg;
if (0 == status_code) {
Core.Data.safe_question = msg.question;
Core.Data.safe_answer = msg.answer;
}
// 显示一个成功信息,并跳转到home
Core.showTips("成功设置密保!", true);
Core.showMod('home');
}
Core.registerMod('mibao', Mibao);
// 用户安全菜单模块
var Sub_menu = function(modId) {
Module.call(this, modId);
}
Core.inherit(Sub_menu, Module);
Core.registerMod('sub_menu', Sub_menu);
// var Message_menu = function(modId) {
// Module.call(this, modId);
// }
// Core.inherit(Message_menu, Module);
// Message_menu.prototype.show_after = function(){
// var $badge = this.$c.find('.badge');
// if($badge.length ==0){
// if(Core.Data.msg_count > 0){
// var $btn = this.$c.find('.msg');
// $btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html());
// }
// }
// }
// Core.registerMod('message_menu', Message_menu);
// //找回密码模块
// var Find_pwd = function(modId){
// Module.call(this, modId);
// }
// Core.inherit(Find_pwd, Module);
// Find_pwd.prototype.bind = function(){
// var that = this;
// that.$c.on('click', '.op-primary', function(e){
// var $form = that.$c.find('.step-tab
// input:checked').parent().parent().find('form')
// e.preventDefault();
// Core.ajax_do($form, that.findpwd_cb, that);
// return false;
// });
// }
// Find_pwd.prototype.findpwd_cb = function(data){
// var code = data.code;
// var msg = data.msg;
//
// if (0 != code){
// Core.showTips(msg, false);
// return;
// }
// if(typeof msg == 'object'){
// //回答密保
// Core.Data.ans_temp = msg;
// Core.updateMod('answer_question');
// } else{
// //通过邮箱
// Core.showTips(msg, true);
// Core.showMod("login");
// }
// }
// Core.registerMod('find_pwd', Find_pwd);
// Mibao模块
var Bind = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Bind, Module);
Bind.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that);
return false;
});
that.$c.on('click', '#bind-mobile', function(e) {
e.preventDefault();
that.$c.find('#bind_phone_form').show();
return false;
});
that.$c.on('click', '#bind-check', function(e){
e.preventDefault();
Core.ajax_do($(e.target), that.bind_ch, that);
return false;
});
}
Bind.prototype.bind_ch = function(data){
var code = data.code;
Core.Data.bind_statu = data.msg.bind_statu;
if(data.msg.bind_statu == 1){
Core.showTips('电话绑定未成功', false);
}
Core.updateMod('bind');
}
Bind.prototype.bind_cb = function(data) {
var code = data.code;
if (code != 0)
return;
$(".bind_phone_tip").html(Core.Data.bind_mobile_tips);
Core.Data.bind_statu = 1;
Core.Data.bind_phone = this.$c.find('input[name=mobile]').val();
this.$c.find('span.text-info').html(this.$c.find('input[name=mobile]').val());
Core.showTips('通过电话确认后可绑定手机!', true);
this.$c.find('#bind_phone_form').hide();
this.isValid = false;
setTimeout(function() {
Core.updateMod('bind');
}, 1000);
}
Core.registerMod('bind', Bind);
// Mail模块
var Mail = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Mail, Module);
Mail.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
return false;
});
that.$c.on('click', '#bind-mail', function(e) {
e.preventDefault();
that.$c.find('#bind_mail_form').show();
return false;
});
that.$c.on('click', '.op-primary', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
return false;
});
}
Mail.prototype.mail_cb = function(data) {
var code = data.code;
Core.Data.bind_mail_statu = 1;
Core.Data.mail = this.$c.find('input[name=email]').val();
this.$c.find('span.text-info').html(this.$c.find('input[name=email]').val());
Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true);
this.$c.find('#bind_mail_form').hide();
this.isValid = false;
setTimeout(function() {
Core.updateMod('mail');
}, 1000);
}
Core.registerMod('mail', Mail);
// // 重置密码模块
// var Reset_pwd = function(modId) {
// Module.call(this, modId);
// }
// // 继承基础模块
// Core.inherit(Reset_pwd, Module);
// Reset_pwd.prototype.bind = function() {
// this.$c.on('click', '.op-primary', function() {
// Core.updateMod("modify_pwd");
// });
// }
// Core.registerMod('reset_pwd', Reset_pwd);
var Modify_pwd = function(modId) {
Module.call(this, modId);
}
Core.inherit(Modify_pwd, Module);
Modify_pwd.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
return false;
});
}
Modify_pwd.prototype.modify_cb = function(data) {
var status_code = data.code;
var msg = data.msg;
if (status_code == 0) {
if(Core.Data.is_guest == 1){
//游客帐号转正
localStorage.removeItem('guest_n');
Core.showTips('账号升级成功, 请记住登录名和新密码。', true);
}else{
Core.showTips('成功修改密码, 请记住新密码。', true);
}
if (!Core.user_names) Core.user_names = {}
Core.user_names[msg.username] = this.$c.find('input[name=newpwd]').val();
localStorage.setItem('user_names', JSON.stringify(Core.user_names));
Core.Data.is_guest = msg.is_guest;
Core.Data.username = msg.username;
Core.Data.nickname = msg.nickname;
// 强制更新显示home模块,模块自刷新
this.isValid = false;
Core.updateMod('home');
} else {
Core.showTips(msg, false);
}
}
Modify_pwd.prototype.show_after = function(){
var _des = Core.last_mod ? Core.last_mod : 'home';
this.$c.find('a.btn.pull-left').attr('href', '#'+_des);
}
Core.registerMod('modify_pwd', Modify_pwd);
/**
* 公告活动记录模块
*/
var Activity = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Activity, Module);
Activity.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'activity_detail')
return;
var $e = $(e.target);
if (!$e.is('a'))
$e = $e.parent();
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.Data.activity_update = false;
Core.showMod('activity_detail');
return false;
}
that.cur_id = id;
Core.Data.activity_update = true;
Core.showTips('加载中...', true, 5000);
$e.data('path', '/sdk/notice/view/?id=' + id);
Core.load_json($e, function(data){
Core.Data.activity_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('activity_detail');
}, that);
// $.getJSON('/sdk/notice/view/?id=' + id, function(data) {
// Core.Data.activity_detail = data;
// Core.showTips('加载完成!', true, 2000);
// Core.updateMod('activity_detail');
// });
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Activity.prototype.refresh = function() {
this.myScroll.refresh();
}
Activity.prototype.show_after = function() {
if (this.$c.find('.activity-list').children().length == 0) {
Core.load_html(this.$c.find('.activity-list'),
this.act_cb, this);
}
var $badge = this.$c.find('.badge');
if($badge.length ==0){
if(Core.Data.msg_count > 0){
var $btn = this.$c.find('.badge_msg');
$btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html());
}
}
}
Activity.prototype.act_cb = function(data) {
this.myScroll = new iScroll('activity_wrapper');
}
Core.registerMod('activity', Activity);
/**
* 公告活动详细模块
*/
var Activity_detail = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Activity_detail, Module);
Activity_detail.prototype.bind = function() {
var that = this;
}
Activity_detail.prototype.show_after = function() {
var that = this;
if (Core.Data.activity_update) {
console.log('new scroller');
this.myScroll = new iScroll('detail_scroller');
that.myScroll.refresh();
this.$c.find('.scroll img').on('load', function(e){
console.log('img loaded in scroll');
that.myScroll.refresh();
});
}
}
Core.registerMod('activity_detail', Activity_detail);
/**
* 客服问题列表模块
*/
var Kefu_list = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Kefu_list, Module);
Kefu_list.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'question_detail')
return;
var $e = $(e.target);
while (!$e.is('a'))
$e = $e.parent();
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.Data.question_update = false;
Core.showMod('question_detail');
return false;
}
that.cur_id = id;
Core.Data.question_update = true;
$e.data('path', '/user/question/view?id=' + id + '&format=json');
Core.load_json($e, function(data){
Core.Data.question_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('question_detail');
}, that);
// Core.showTips('加载中...', true, 5000);
// $.getJSON('/user/question/view?id=' + id + '&format=json',
// function(data) {
// Core.Data.question_detail = data;
// Core.showTips('加载完成!', true, 2000);
// Core.updateMod('question_detail');
// });
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Kefu_list.prototype.refresh = function() {
this.myScroll.refresh();
}
Kefu_list.prototype.show_after = function() {
if (this.$c.find('.kefu-list').children().length == 0) {
$ol = this.$c.find('.kefu-list');
if($ol.attr('data-params-url').indexOf('undefined') == -1)
Core.load_html(this.$c.find('.kefu-list'), this.act_cb,
this);
}
}
Kefu_list.prototype.act_cb = function(data) {
this.myScroll = new iScroll('kefu_wrapper');
}
Core.registerMod('kefu_list', Kefu_list);
/**
* 邀请列表模块
*/
var Invite_list = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Invite_list, Module);
Invite_list.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Invite_list.prototype.refresh = function() {
this.myScroll.refresh();
}
Invite_list.prototype.show_after = function() {
if (this.$c.find('.invite-list').children().length == 0) {
Core.load_html(this.$c.find('.invite-list'), this.act_cb,
this);
}
}
Invite_list.prototype.act_cb = function(data) {
this.myScroll = new iScroll('invite_wrapper');
}
Core.registerMod('invite_list', Invite_list);
/**
* 消息列表模块
*/
var Message = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Message, Module);
Message.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'message_detail')
return;
var $e = $(e.currentTarget);
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.showMod('message_detail');
return false;
}
that.cur_id = id;
$e.data('path', '/message/' + id + '.html?format=json');
Core.load_json($e, function(data){
Core.Data.message_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('message_detail');
}, that);
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Message.prototype.refresh = function() {
this.myScroll.refresh();
}
Message.prototype.show_after = function() {
if (this.$c.find('.message-list').children().length == 0) {
Core.load_html(this.$c.find('.message-list'), this.act_cb,
this);
}
}
Message.prototype.act_cb = function(data) {
this.myScroll = new iScroll('message_wrapper');
}
Core.registerMod('message', Message);
/**
* 消息内容详细模块
*/
var Message_detail = function(modId) {
Module.call(this, modId);
}
Core.inherit(Message_detail, Module);
Core.registerMod('message_detail', Message_detail);
/**
* 论坛列表模块
*/
var Topic_list = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Topic_list, Module);
Topic_list.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'topic_detail')
return;
var $e = $(e.target);
while (!$e.is('a'))
$e = $e.parent();
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.Data.topic_update = false;
Core.showMod('topic_detail');
return false;
}
that.cur_id = id;
Core.Data.topic_update = true;
Core.Data.topic_id = id;
$e.data('path', '/topic/view?id=' + id + '&order=recent&format=json');
Core.load_json($e, function(data){
Core.Data.topic_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('topic_detail');
}, that)
// Core.showTips('加载中...', true, 5000);
// $.getJSON('/topic/view?id=' + id + '&order=recent&format=json',
// function(data) {
// Core.Data.topic_detail = data;
// Core.showTips('加载完成!', true, 2000);
// Core.updateMod('topic_detail');
// });
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Topic_list.prototype.refresh = function() {
this.myScroll.refresh();
}
Topic_list.prototype.show_after = function() {
if (this.$c.find('.topic-list').children().length == 0) {
this.cur_id = null;
var $ol = this.$c.find('.topic-list');
if($ol.attr('data-params-url').indexOf('undefined') == -1)
Core.load_html($ol, this.act_cb,
this);
}
}
Topic_list.prototype.act_cb = function(data) {
this.myScroll = new iScroll('topic_wrapper');
}
Core.registerMod('topic_list', Topic_list);
/**
* 帖子详细模块
*/
var Topic_detail = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Topic_detail, Module);
Topic_detail.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
that.$c.on('click', '.op-primary', function(e) {
e.preventDefault();
Core.updateMod('topic_reply');
return false;
});
}
Topic_detail.prototype.refresh = function() {
this.myScroll.refresh();
var that = this;
this.$c.find('.scroll img').on("load", function(e){
that.myScroll.refresh();
});
}
Topic_detail.prototype.show_after = function() {
if (Core.Data.topic_update) {
if (this.myScroll)
this.myScroll.destroy();
this.myScroll = new iScroll('topic_detail_scroller');
this.refresh();
}
}
Core.registerMod('topic_detail', Topic_detail);
/**
* 发帖子模块
*/
var Topic = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Topic, Module);
Topic.prototype.bind = function() {
var that = this;
that.$c.on('click', '.op-primary.submit', function(e) {
e.preventDefault();
if (that.$c.find('textarea').val() == '') {
Core.showTips('请填写相应的描述!', false);
return false;
}
/*
* if(that.$c.find('textarea').val().length > 150){
* Core.showTips('帖子描述超出了150个字符!', false); return false; }
*/
Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
return false;
});
}
Topic.prototype.sq_cb = function(data) {
if (data.code == 0) {
Core.showTips(data.msg, true, 3000);
this.$c.find('input[name=title]').val('');
this.$c.find('textarea').val('');
setTimeout(function() {
Core.updateMod('topic_list');
}, 2000);
} else {
Core.showTips(data.msg, false);
}
}
Core.registerMod('topic', Topic);
/**
* 回复帖子模块
*/
var Topic_reply = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Topic_reply, Module);
Topic_reply.prototype.bind = function() {
var that = this;
that.$c.on('click', '.op-primary.submit', function(e) {
e.preventDefault();
if (that.$c.find('textarea').val().length > 150) {
Core.showTips('帖子描述超出了150个字符!', false);
return false;
}
Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
return false;
});
}
Topic_reply.prototype.sq_cb = function(data) {
if (data.code == 0) {
// 回复成功,跳转回帖子详情页
var that = this;
Core.showTips(data.msg, true, 2000);
var id = Core.Data.topic_id;
var _$ = that.$c.find('.op-primary.submit');
_$.data('path', '/topic/view?id=' + id + '&order=recent&format=json');
Core.load_json(_$, function(data){
Core.Data.topic_update = true;
Core.Data.topic_detail = data;
Core.showTips('回复成功!', true, 2000);
Core.updateMod('topic_detail');
}, that);
// $.getJSON('/topic/view?id=' + id + '&order=recent&format=json',
// function(data) {
// Core.Data.topic_update = true;
// Core.Data.topic_detail = data;
// Core.showTips('回复成功!', true, 2000);
// Core.updateMod('topic_detail');
// });
} else {
Core.showTips(data.msg, false);
}
}
Core.registerMod('topic_reply', Topic_reply);
/**
* 奖励列表模块
*/
var Prize_list = function(modId) {
this.myScroll = null;
this.$e = null;
Module.call(this, modId);
}
Core.inherit(Prize_list, Module);
Prize_list.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>p>a', function(e) {
e.preventDefault();
var $e = $(e.target);
that.$e = $e;
Core.ajax_do($e, that.post_cb, that);
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Prize_list.prototype.refresh = function() {
var that = this;
setTimeout(function() {
that.myScroll.refresh();
}, 300);
}
Prize_list.prototype.show_after = function() {
if (this.$c.find('.prize-list').children().length == 0) {
Core.load_html(this.$c.find('.prize-list'), this.act_cb,
this);
}
}
Prize_list.prototype.post_cb = function(data) {
Core.showTips(data.msg.msg, data.code == 0 ? true : false, 2000);
if (data.code == 0) {
console.log(this);
this.$e.replaceWith('<sapn class="pull-right text-info btn-small">已经领取</span>');
}
}
Prize_list.prototype.act_cb = function(data) {
this.myScroll = new iScroll('prize_wrapper');
}
Core.registerMod('prize_list', Prize_list);
/**
* 客服问题详细模块
*/
var Question_detail = function(modId) {
this.myScroll = null;
this.$score = null;
Module.call(this, modId);
}
Core.inherit(Question_detail, Module);
Question_detail.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
that.$c.on('click', 'li p > a', function(e) {
e.preventDefault();
that.$score = $(e.target);
Core.ajax_do($(e.target), that.jude_cb, that);
return false;
})
}
Question_detail.prototype.jude_cb = function(data) {
Core.showTips(data.msg);
if (data.code == 0) {
var score = this.$score.html();
this.$score.parent().empty().html(
'您的评价:&nbsp;&nbsp;<span class="btn">' + score
+ '</span>');
}
}
Question_detail.prototype.refresh = function() {
var that = this;
setTimeout(function() {
that.myScroll.refresh();
}, 300);
}
Question_detail.prototype.show_after = function() {
if (Core.Data.question_update) {
if (this.myScroll)
this.myScroll.destory();
this.myScroll = new iScroll('question_detail_scroller');
}
}
Core.registerMod('question_detail', Question_detail);
/**
* 提问客模块
*/
var Submit_question = function(modId) {
Module.call(this, modId);
}
Core.inherit(Submit_question, Module);
Submit_question.prototype.bind = function() {
var that = this;
that.$c.on('click', '.op-primary.submit', function(e) {
e.preventDefault();
if (that.$c.find('select').val() == ''
|| that.$c.find('textarea').val() == '') {
Core.showTips('请选择问题类型,并填写相应的描述!', false);
return false;
}
if (that.$c.find('textarea').val().length > 150) {
Core.showTips('问题描述超出了150个字符!', false);
return false;
}
Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
return false;
});
}
Submit_question.prototype.sq_cb = function(data) {
Core.showTips(data.msg, true, 2000);
this.isValid = false;
Core.updateMod('kefu_list');
}
Core.registerMod('submit_question', Submit_question);
/**
* 邀请菜单模块
*/
var Invite_menu = function(modId) {
Module.call(this, modId);
}
Core.inherit(Invite_menu, Module);
Invite_menu.prototype.bind = function() {
var that = this;
// that.$c.on('click', 'input[type=submit]', function(e) {
// e.preventDefault();
// Core.ajax_do(that.$c.find('.ajax'), that.if_cb, that);
// return false;
// });
that.$c.on('click', '#share a', function(e){
e.preventDefault();
var $e = $(e.target);
var params = [];
var head = $e.attr('title');
var url = $e.attr('href');
var pic = Core.Data.game_icon;
var targetUrl = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html';
var title = 'title=' + encodeURIComponent('我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!');
targetUrl = 'url=' + encodeURIComponent(targetUrl);
if($e.hasClass('s_tqq')){
params.push('c=share');
params.push('a=index');
}
if($e.hasClass('s_qzone')){
pic = 'pics=' + encodeURIComponent(pic);
}
else if($e.hasClass('s_tsina')){
params.push('searchpic=true');
params.push('style=number');
//params.push('mbweb=0');
}
else {
pic = 'pic=' + encodeURIComponent(pic);
}
params.push(pic);
params.push(targetUrl);
params.push(title);
var appkey = $e.attr('data-appkey');
if(appkey){
appkey = 'appkey=' + appkey;
params.push(appkey);
}
url = url + '?' + params.join('&');
Core.Data.frame_title = head + '分享';
Core.Data.frame_src = url;
Core.updateMod('frame');
});
}
// Invite_menu.prototype.if_cb = function(data) {
// Core.showTips(data.msg, data.code == 0 ? true : false);
// this.$c.find('input[type=email]').val('');
// }
Core.registerMod('invite_menu', Invite_menu);
/**
* 平台助手模块
*/
var Assistant = function(modId) {
Module.call(this, modId);
}
Core.inherit(Assistant, Module);
Assistant.prototype.bind = function(){
var that = this;
that.$c.on('click', '.go_frame', function(e){
e.preventDefault();
var $e = $(e.target);
var site = $e.attr('data-url');
var title = $e.attr('data-title');
Core.Data.frame_title = title;
Core.Data.frame_src = site;
Core.updateMod('frame');
});
}
Core.registerMod('assistant', Assistant);
/**
* iframe模块,用于显示外部页面
*/
var Frame = function(modId) {
Module.call(this, modId);
}
Core.inherit(Frame, Module);
Frame.prototype.show_after = function() {
var that = this;
var _des = Core.last_mod ? Core.last_mod : 'home';
this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
this.$c.find('iframe')[0].onload = function() {
that.$c.find('#loading_frame').hide();
}
}
Core.registerMod('frame', Frame);
if (window.isGetData == 1) {
// 兼容旧版本sdk
$('#loading').hide();
Core.init();
} else {
window.isGetData = 1;
}
}
})();
\ No newline at end of file
/*
* 言语数据加载
* lang_cn.js 简体中文
* lang_tw.js 繁体中文
* lang_ko.js 韩文
* lang_ja.js 日文
*/
// (function(){
// var type ='cn';
// var lang = (navigator.language || navigator.browserLanguage).toLowerCase();
// if(lang.indexOf('zh') != 1){
// //中文
// if(lang.indexOf('tw')!=-1 || lang.indexOf('hk') != -1){
// //繁体中文
// type = 'tw';
// }
// }else if(lang.indexOf('ko') != -1) {
// type = 'ko'; //韩文
// } else if(lang.indexOf('ja') != -1){
// type = 'ja'; //日文
// }
// $('<script type="text/javascript" src="/static/js/lagn_' + type + '.js/>').appendTo($('head'));
// })();
/*
* 定义核心模块
*/
var Core = {};
function initMatching(){
var userAgent = navigator.userAgent;
Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null;
Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1;
Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议
Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1;
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
if(Core.isFile){
Core.server = lastServer;
}else if(location.href.indexOf(lastServer)==-1){
location.href = location.href.replace(Core.server,lastServer);
}
}
var ary = null;
if (location.hash.indexOf('app_id') != -1) {
ary = location.hash.match(/.*%7C(\d+)_(\d+)&/);
} else {
ary = location.search.match(/.*%7C(\d+)_(\d+)&/);
}
if (ary && ary.length == 3) {
//成功匹配屏幕大小, 直接计算屏幕高度
Core.sdk_w = parseInt(ary[1]);
Core.sdk_h = parseInt(ary[2]);
if(Core.isIos && userAgent.indexOf('iPad')!=-1 && Core.sdk_h < 600){
Core.sdk_w *= 2;
Core.sdk_h *= 2;
}
}
if(location.href.indexOf('callBackUrl')!=-1){
try{
Core.Data.back_url = unescape(location.href.match(/callBackUrl=([^&]+)/)[1]);
}catch(e){}
}
var _head = $('head');
if (Core.isAndroid) {
$('html').attr('data-useragent', 'android');
if (ratio > 1.5) {
$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(_head);//340
//Core.ratio = 1.5;
} else if (ratio < 1) {
$('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(_head);//260
//Core.ratio = 1;
} else if(ratio == 1){
$('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(_head);//300
//Core.ratio = 1.25;
}else{
$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(_head);//340
}
}
var _w = null;
if (Core.isIos) {
$('html').attr('data-useragent', 'ios');
if (!Core.sdk_w) Core.sdk_w = 600;
_scale = 1;
if(ratio == 2){//5、6、6s(2.4)
_scale = 2.4 / ratio;
if(userAgent.indexOf('iPad') != -1){
_scale = 2 / ratio;
}
}else if(ratio >2.5){//6s plus
_scale = 2.7 / ratio;
}else if (ratio < 1) {
_scale = 1.5 / ratio;
} else {
_scale = 1;
}
if(userAgent.indexOf('iPad') != -1 && Core.sdk_w > 768){
Core.sdk_w = Core.sdk_w / 2;
Core.sdk_h = Core.sdk_h / 2 / _scale;
}else{
Core.sdk_h = Core.sdk_h * _scale;
}
_w = Core.sdk_w * _scale;
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
$(window.document).on('touchmove', function(e) {
if (e.target.tagName != "IFRAME")
e.preventDefault();
});
$('body').addClass('ios');
if($("div")[0].getAttribute("class")!="mask"){
$("div")[0].remove();
}
}
};
(function() {
//兼容localStorage处理
if(typeof(localStorage) == 'undefined'){
localStorage = {
setItem: function(){
console.log('localStorage not support!');
},
getItem: function(){
console.log('localStorage not support!');
}
}
}
var userAgent = navigator.userAgent;
Core.isIos = userAgent.match(/i[^;]+;( U;)? CPU.+Mac OS X/) != null;
Core.isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1;
Core.isFile = location.href.indexOf('file') == 0; //判断当前请求是否为file://协议
Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1;
var ratio = window.devicePixelRatio;
Core.ratio = ratio;
Core.PLATFORM_NAME = '游娱';
Core.server = 'https://sdk.uuufish.com';
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
if(Core.isFile){
Core.server = lastServer;
}else if(location.href.indexOf(lastServer)==-1){
location.href = location.href.replace(Core.server,lastServer);
}
}
var ary = null;
if (location.hash.indexOf('app_id') != -1) {
ary = location.hash.match(/.*%7C(\d+)_(\d+)&/);
} else {
ary = location.search.match(/.*%7C(\d+)_(\d+)&/);
}
if (ary && ary.length == 3) {
//成功匹配屏幕大小, 直接计算屏幕高度
Core.sdk_w = parseInt(ary[1]);
Core.sdk_h = parseInt(ary[2]);
if(Core.isIos && userAgent.indexOf('iPad')!=-1 && Core.sdk_h < 600){
Core.sdk_w *= 2;
Core.sdk_h *= 2;
}
}
if(location.href.indexOf('callBackUrl')!=-1){
try{
Core.Data.back_url = unescape(location.href.match(/callBackUrl=([^&]+)/)[1]);
}catch(e){}
}
var _head = $('head');
if (Core.isAndroid) {
$('html').attr('data-useragent', 'android');
if (ratio > 1.5) {
$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1.0"/>').appendTo(_head);//340
//Core.ratio = 1.5;
} else if (ratio < 1) {
$('<meta name="viewport" content="target-densitydpi=280;initial-scale=1.0"/>').appendTo(_head);//260
//Core.ratio = 1;
} else if(ratio == 1){
$('<meta name="viewport" content="target-densitydpi=300;initial-scale=1.0"/>').appendTo(_head);//300
//Core.ratio = 1.25;
}else{
$('<meta name="viewport" content="target-densitydpi=340;initial-scale=1"/>').appendTo(_head);//340
}
}
var _w = null;
if (Core.isIos) {
$('html').attr('data-useragent', 'ios');
if (!Core.sdk_w) Core.sdk_w = 600;
_scale = 1;
if (ratio > 1.5){//6s plus,
_scale = 2.8 / ratio;
} else if (ratio < 1) {
_scale = 1.5 / ratio;
} else {
_scale = 1;
}
if(userAgent.indexOf('iPad') != -1 && Core.sdk_w > 768){
Core.sdk_w = Core.sdk_w / 2;
Core.sdk_h = Core.sdk_h / 2 / _scale;
}else{
Core.sdk_h = Core.sdk_h * _scale;
}
_w = Core.sdk_w * _scale;
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
$(window.document).on('touchmove', function(e) {
if (e.target.tagName != "IFRAME")
e.preventDefault();
});
$('body').addClass('ios');
if($("div")[0].getAttribute("class")!="mask"){
$("div")[0].remove();
}
}
})();
(function(window, core) {
var modules = {}, tip_timeOut = null;
// 数据
core.Data = {};
core.cur_mod = null;
core.last_mod = null;
// 加载Script模板
core.getTemplate = function(moduleId) {
var tpl = $("#" + moduleId + "_template").html();
return tpl;
};
core.getMod = function(modId){
if (!modId in modules) {
console.error('没有对应的模块id的section:' + modId);
return;
}
return modules[modId];
};
// 模块注册
core.registerMod = function(modId, modCreator) {
if ($('#' + modId).length == 0)
console.error('没有对应的模块id的section:' + modId);
if (modules[modId])
console.error('模块已经存在:' + modId);
modules[modId] = new modCreator(modId);
modules[modId].init();
};
//绑定客户端返回按钮
core.back = function() {
if (!core.cur_mod || core.cur_mod == '') core.cur_mod = 'home';
var _$ = $('#' + core.cur_mod);
var _$btn = _$.find('.op-back');
if (_$btn.length == 0) {
location.href = 'sdk://exit?action=login';
} else {
var path = _$btn.attr('href');
if (path.indexOf('#') == 0) {
//模块跳转
location.hash = path;
} else {
location.href = path;
}
}
};
//清除iframe内容
core.clearFrame = function() {
var _$ = $('#frame iframe');
_$.remove();
//if (_$.length > 0) {
// setTimeout(function(){
// _$.remove();
// },3000);
//}
}
core.get_url = function(url){
var url = url
if (core.isFile) {
url = Core.server + url;
}
if (core.Data.open_id && core.Data.login_key){
var connect_str = url.indexOf('?') >=0 ? '&' : '?'
url = url + connect_str + 'open_id=' + core.Data.open_id + '&login_key=' + core.Data.login_key;
}
return url
}
//格式化输出字符串
// core.format = function(str){
// var params = Array.prototype.slice.call(arguments, 1);
// var re = null;
// for(var i=1, l=params.length; i<=l; i++){
// re = new RegExp('\\$' + i, 'g');
// if(params[i-1] == undefined) break;
// str = str.replace(re, params[i-1]);
// }
// return str;
// }
core.updateData = function(data) {
var appId = Core.Data.app_id; //保留app_id
if (!data) {
Core.Data.username = null;
Core.Data.nickname = null;
return;
}
Core.Data = data
Core.Data.app_id = appId;
Core.Data.open_id = Core.Data.open_id + '';
Core.Data.timestamp = Core.Data.timestamp + '';
if(data.face){
Core.Data.face = Core.server + data.face;
}
}
/**
* 强行更新一个模块,并显示出来
*/
core.updateMod = function(modId) {
if (!modId in modules) {
console.error('没有对应的模块id的section:' + modId);
modId = 'home'
//return;
}
location.hash = "#" + modId + '&force';
}
/**
* 强行重绘所有模块,在用户登出操作后
*/
core.clearMods = function() {
for(var mod in modules){
modules[mod].isValid = false;
}
}
/**
* 显示指定的模块
*/
core.showMod = function(modId) {
if (!modId in modules) {
console.error('没有对应的模块id的section:' + modId);
return;
}
//location.replace = "#" + modId;
location.hash = "#" + modId;
}
// 显示信息type=1: success, type=0: error, type=2: info, time默认2秒
core.showTips = function(msg, type, time) {
if (typeof msg == 'object') msg = msg.msg;
if (type == undefined)
type = 1;
if (time == undefined)
time = 4000;
var $alert = $('#alert');
if (type)
$alert.removeClass('alert-error').addClass('alert-success');
else
$alert.removeClass('alert-success').addClass('alert-error');
if (tip_timeOut != null) {
// 上一个消息没消失,替换内容
$('#alert span').html(msg);
clearTimeout(tip_timeOut);
tip_timeOut = null;
tip_timeOut = setTimeout(function() {
$('#alert').hide();
tip_timeOut = null;
}, time);
return;
}
// 显示信息
$('#alert span').html(msg);
$alert.show();
tip_timeOut = setTimeout(function() {
$('#alert').hide();
tip_timeOut = null;
}, time);
};
core.isValid = function($form) {
var isvalid = true;
$form.find('input[required]').each(function() {
if (!isvalid) {
//已经出错了,直接return;
return;
}
if ($(this).val() == '') {
$(this).focus();
isvalid = false;
}
});
if (!isvalid) {
Core.showTips('请先填写相应信息!', false, 2000);
return false;
}
return true;
}
/**
* sdk跳转功能,浏览器下打开新页跳转
*/
core.goTo = function(url){
if(!core.Data.game_url){
url = 'sdk://open?url=' + encodeURIComponent(url);
}
location.href = url;
}
core.getCookie = function(name) {
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
return r ? r[1] : undefined;
}
core.GetParameter = function(the_form) {
var result = "";
$(the_form).find("input,textarea,select").each(
function() {
if ($(this).attr('name') == undefined || $(this).attr('name') == '') {
return;
}
// 过滤不需要的input
var type = $(this).attr('type');
if (type == "button" || type == "submit")
return;
var chk_box = false;
if (type == "checkbox" || type == "radio")
chk_box = true;
var chk = false;
if (chk_box) {
if (!$(this)[0].checked)
return;
// 等于 each中的continue;
}
result += $(this).attr('name') + "=" + encodeURIComponent($(this).val().trim()) + "&";
});
result += 'app_id=' + encodeURIComponent(core.Data.app_id ? core.Data.app_id : core.Data.game_id);
if (result.indexOf('_xsrf') == -1) {
result += "&_xsrf=" + core.getCookie("_xsrf");
}
return result;
}
core.ajax = function(settings){
//跨域修复https://github.com/imweb/mobile/issues/6
settings.url = Core.get_url(settings.url)
settings.beforeSend = function(xhr) {
try {
xhr.withCredentials = true;
} catch (e) {
var nativeOpen = xhr.open;
xhr.open = function() {
var result = nativeOpen.apply(xhr, arguments);
xhr.withCredentials = true;
return result;
};
}
}
return $.ajax(settings);
},
core.ajax_do = function($obj, func, context) {
var param = '';
var action_methon = null;
var post_url = '';
var $sub_btn = $obj.find('[type=submit]');
var temp = $sub_btn.is('button') ? $sub_btn.html() : $sub_btn
.attr('value');
if ($obj[0].tagName == "FORM" || $obj[0].getAttribute('action')) {
if ($obj[0].disabled) {
Core.showTips('请求已提交,请稍候!');
return;
}
if (!core.isValid($obj))
return;
param = core.GetParameter($obj);
post_url = $obj.attr('action');
action_method = "post";
} else {
if ($obj[0].disabled) {
//点击重入
Core.showTips('请求已提交,请稍候!');
return;
}
post_url = $obj.attr('href');
param = $obj.attr('params');
var action_method = $obj.attr('method');
if (!action_method) {
action_method = "get";
}
}
if (post_url.indexOf('?') != -1) {
post_url += '&format=json';
} else {
post_url += '?format=json';
}
var options = {
type: action_method,
url: post_url,
dataType: 'json',
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: param,
beforeSend: function(xhr) {
try {
xhr.withCredentials = true;
} catch (e) {
var nativeOpen = xhr.open;
xhr.open = function() {
var result = nativeOpen.apply(xhr, arguments);
xhr.withCredentials = true;
return result;
};
}
},
success: function(result, textStatus) {
if (result.code == -10) {
// 未登录,跳转的登录界面
} else if (result.code == 0) {
if (func && typeof func == "function") {
context ? func.call(context, result) : func(result);
}
if (typeof(result.msg) == '$object' && result.msg.msg)
result.msg = result.msg.msg;
}
if ($obj[0].tagName == "FORM") {
$obj[0].disabled = false;
$obj.find("input, button").attr('disabled', null);
var $but_input = $obj.find('[type=submit]');
if ($but_input.is('button')) {
$but_input.html(temp);
} else {
$but_input.attr('value', temp);
}
} else {
$obj[0].disabled = false;
}
if (result.msg != '') {
if (result.code != 0)
core.showTips(result.msg, false);
}
},
cache: false,
timeout: 10000,
error: function(XMLHttpRequest, textStatus) {
var response_status = XMLHttpRequest.status;
var msg = "网络不给力,请重试!" + response_status;
if (response_status == 403 || response_status == 401) {
msg = '请先登录!';
} else if (response_status == 408) {
msg = '请求超时,请再尝试!';
} else if (response_status == 411) {
msg = '提交内容过长。';
}
if ($obj[0].tagName == "FORM") {
core.showTips(msg, false, 3000);
$obj[0].disabled = false;
$obj.find("input, button").attr('disabled', null);
var $but_input = $obj.find('[type=submit]');
if ($but_input.is('button')) {
$but_input.html(temp);
} else {
$but_input.attr('value', temp);
}
} else {
core.showTips(msg, false, 3000);
$obj[0].disabled = false;
}
}
}
if ($obj[0].tagName == "FORM") {
$obj[0].disabled = true;
$obj.find("input, button").attr('disabled', true);
if ($sub_btn.is('button')) {
$sub_btn.html("提交中...");
} else {
$sub_btn.attr('value', "提交中...");
}
} else {
//a标签触发的请求
$obj[0].disabled = true;
}
Core.showTips('加载中...', true, 5000);
Core.ajax(options);
return false;
}
core.load_json = function($obj, func, context) {
var path = $obj.data('path');
if ($obj.data('disabled') == true) {
Core.showTips('请求已提交,请稍候。');
return;
}
var options = {
type: "get",
url: path,
dataType: 'json',
timeout: 10000,
success: function(data) {
if (func && typeof func == "function") {
context ? func.call(context, data) : func(data);
}
$obj.data('disabled', false);
},
error: function() {
//数据加载出错
Core.showTips('数据加载出错,请检查网络状态。', false, 3000);
$obj.data('disabled', false);
}
}
$obj.data('disabled', true);
Core.showTips('加载中...', true, 5000);
Core.ajax(options);
return false;
}
core.load_html = function($obj, func, context) {
var data_url = '';
var isAppend = false;
var data_tpl_url = $obj.attr('data-params-template');
if ($obj[0].tagName == "A") {
data_url = $obj.attr('href');
isAppend = $obj.attr('data-params-append') == 'true' ? true : false;
} else {
data_url = $obj.attr('data-params-url');
}
if (data_url == '')
return;
if (data_url.indexOf('?') != -1) {
data_url += '&format=json';
} else {
data_url += '?format=json';
}
if (data_url.indexOf('game_id') == -1) {
var _id = core.Data.game_id ? core.Data.game_id : core.Data.app_id;
data_url += '&game_id=' + _id;
}
var dataType = '';
if (data_tpl_url && data_tpl_url != "") {
dataType = 'json';
}
var data_result = '';
var options = {
type: "get",
url: data_url,
dataType: dataType,
contentType: "application/x-www-form-urlencoded; charset=utf-8",
success: function(result) {
if(result.code && result.code != 0){
//出错
Core.showTips(result.msg, false);
return;
}
data_result = result;
if (data_tpl_url && data_tpl_url != "") {
// 加载模板
tpl = Core.getTemplate(data_tpl_url);
var doTpl = doT.template(tpl);
result = doTpl(data_result);
if (isAppend) {
// 删除最后一项,并将新的内容append进去
var $wrap = $obj.parent();
$wrap.is('.more') ? $wrap.replaceWith(result) : $obj
.find('.more').replaceWith(result);
} else {
$obj.html(result);
}
if (func && typeof func == "function") {
context ? func.call(context, result) : func(result);
}
Core.showTips('加载完毕!', true, 2000);
} else {
$obj.html(result);
if (func && typeof func == "function") {
context ? func.call(context, result) : func(result);
}
Core.showTips('加载完毕!', true, 2000);
}
},
cache: false,
timeout: 5000,
error: function(e) {
Core.showTips('json format has error');
}
}
Core.showTips('加载中...', true, 5000);
Core.ajax(options);
}
// 判断用户是否登录,使用两个
core.isAuths = function() {
if($('#login').length == 1 && !core.Data.username){
return false;
}
return true;
}
// 继承
core.inherit = function(childCtor, parentCtor) {
/** @constructor */
function temCtor() {}
temCtor.prototype = parentCtor.prototype;
childCtor.superClass_ = parentCtor.prototype;
childCtor.prototype = new temCtor();
/** @override */
childCtor.prototype.constructor = childCtor;
}
// 动画显示模块
core.show_anim = function($target) {
$target.css({
zIndex: 2
});
$target.show();
}
/**
* sdk.loadfinished
*/
core.loadFinished = function() {
if (Core.isAndroid) { //If WebKit browser
if(!Core.Data.game_url){
try{
return;
location.href="sdk://finishLoad?action=login";
}catch(e){}
}
} else {
console.log('not wbkit browser!');
}
}
core.finishPay = function() {
var pay_url = "sdk://exit?action=pay";
core.clearFrame()
if(Core.Data.game_url && Core.Data.game_url != ''){
if(Core.Data.back_url){
pay_url = Core.Data.back_url;
}else{
pay_url = Core.Data.game_url;
}
}else{
if(Core.Data.trade_id && Core.Data.trade_id != ''){
pay_url = "sdk://pay?order_id=" + Core.Data.trade_id;
pay_url += Core.Data.current_pay_channel ? '&paytype=' + Core.Data.current_pay_channel.name : ''
}
}
try{
location.href = pay_url;
}catch(e){}
}
core.finishLogin = function() {
var login_url = 'sdk://exit?action=login';
var login_params = "open_id=" + Core.Data.open_id + "&token=" + Core.Data.token + "&timestamp=" + Core.Data.timestamp ;
login_params += Core.Data.login_count ? '&login_count=' + Core.Data.login_count : '' ;
if(Core.Data.game_url && Core.Data.game_url != ''){
if(Core.Data.back_url){
login_url = Core.Data.back_url;
}else{
login_url = Core.Data.game_url;
}
if(login_url.indexOf("?")!=-1){
login_url +="&";
}else{
login_url +="?";
}
login_url += login_params;
}else{
login_url = "sdk://login?"+login_params;
login_url += "&login_key=" + Core.Data.login_key;
}
try{
location.href = login_url;
}catch(e){}
}
// 隐藏指定模块
core.hide = function(modId) {
if (!modId)
modId = core.cur_mod;
if (!(modId in modules)) {
console.log('没有对应的模块id的section:' + modId);
return;
}
var page_w = $(window).width();
var $target = $('#' + modId);
if ($target.find('iframe').length > 0) {
core.clearFrame();
}
$target.css({
zIndex: 1
});
$target.hide();
core.last_mod = modId;
}
// 核心初始化,注册事件
core.init = function() {
// $('#loading').hide();
if(localStorage.getItem('guest_n') || Core.user_names){
core.isFresh = false;
} else {
core.isFresh = true;
}
// 注册提示框的关闭按钮
$('#alert').on('click', '', function(e) {
if (tip_timeOut) {
clearTimeout(tip_timeOut);
tip_timeOut = null;
$('#alert').hide();
}
});
window.onhashchange = function() {
var hash = location.hash,
module, params;
var strs = hash.split('&');
hash = strs[0];
params = strs[1];
if (hash == '') {
if (Core.start_page) {
hash = Core.start_page;
} else {
hash = 'home';
}
} else {
hash = hash.substring(1);
}
if (!(hash in modules)) {
console.log('没有对应的模块id的section:' + hash);
hash = 'home';
}
core.hide();
module = modules[hash];
core.cur_mod = hash;
if (params && params.indexOf('force') != -1) {
if (module.isDef) {
module.show(false); // 强制更新面板
} else { // 列表更新
//Core.showTips('update list');
module.$c.find('ol').empty();
module.show();
}
} else {
module.show();
}
}
// 监听hashChange事件
var lochash = location.hash.split('&')[0];
var mod = null;
if (lochash == '') {
if (Core.start_page) {
mod = Core.start_page;
} else {
mod = 'home';
}
location.hash = "#" + mod;
} else {
mod = lochash.substring(1);
onhashchange();
}
// if(Core.isIos){
//ios下,不需要自动登录和加载完成消息
// return;
// }
//新版sdk,支持直接登录、加载后回调
if (Core.Data.open_id && Core.Data.open_id != '' && $('#login').length != 0 && Core.Data.auto_login == 1 && Core.Data.is_guest == 0) {
//登录模块,判定可否自动登录
var d = new Date().getTime();
var auto = localStorage.getItem('auto');
var auto_time = parseInt(localStorage.getItem('auto_time'));
if (auto && auto == 'true') {
if ((d - auto_time) > 600000) {
//距离上次登录10分钟,尝试自动登录
localStorage.setItem('auto_time', d);
core.finishLogin();
} else {
//距离上次登录,小于10分钟,手动登录
localStorage.setItem('auto_time', d);
core.loadFinished();
}
} else {
//自动登录
localStorage.setItem('auto', true);
localStorage.setItem('auto_time', d);
Core.finishLogin();
}
} else {
if ($('#login').length != 0) {
//第一次没有登录,进入手动登录,写入信息
var f = new Date().getTime();
localStorage.setItem('auto', true);
localStorage.setItem('auto_time', f);
}
core.loadFinished();
}
}
$(function() {
// 调整页面高度适应
var page_w, page_h, tag, c_w, c_h;
var ratio = window.devicePixelRatio;
if (Core.sdk_h) {
//成功匹配屏幕大小, 直接计算屏幕高度
if (ratio != Core.ratio) {
page_h = Core.sdk_h * (Core.ratio / ratio);
} else {
page_h = Core.sdk_h;
}
//alert('sdk:' + page_h + ':' + ratio + ':' + Core.ratio + ':' + Core.ios_w, true, 5000);
} else {
//旧版sdk,只能通过高度取值
page_w = $(window).width();
page_h = $(window).height();
c_w = document.documentElement.clientWidth;
c_h = document.documentElement.clientHeight;
if (c_w && c_w > page_w) page_w = c_w;
if (c_h && c_h > page_h) page_h = c_h;
//Core.showTips(page_h + ':' + ratio, true, 5000);
if (page_h < 450 && page_w == 450) {
page_h = 450;
}
}
//Core.showTips('page_h:' + page_h + ';sdk_h:' + Core.sdk_h, true, 50000);
//$('body').height(page_h);
if(Core.isIos && $(window).width() < $('body').width()){
$('meta[name="viewport"]').attr('content','width=' + $('body').width() + ',maximum-scale=0.5,user-scalable=no');
}
// var x = (page_h - 76) / page_h * 100 + '%';
// $('<style>.container{height:' + x + ';}</style>').appendTo($('body'));
// setTimeout(function(){
// Core.showTips('page-w:' + $('body').width() + ';page-h:' + $('body').height() + 'ratio:' + core.ratio);
// }, 2000);
});
})(window, Core);
/**
* 基础模块
*/
Module = function(modId) {
this.isDef = null;
this.isAuth = false;
this.isReplace = false; //模块内容部分信息需要在显示前替换,如login模块的app_id替换
this.moduleId = modId;
this.$c = $('#' + modId);
this.isValid = false;
}
Module.prototype.init = function() {
if (this.$c.attr('data-attr') == 'dot') {
this.isDef = true;
} else {
this.isValid = true;
}
if(this.$c.attr('data-replace') == '1'){
this.isReplace = true;
}
if (this.$c.attr('data-auth') == '1') {
this.isAuth = true;
}
if (this.bind && typeof this.bind == 'function')
this.bind();
}
Module.prototype.show = function(valid) {
if (valid != undefined)
this.isValid = valid;
if (this.isAuth && !Core.isAuths()) {
if (location.hash.indexOf('login') == -1) {
Core.isFresh ? Core.showMod('login') : Core.showMod('login');
return;
}
}
if (!this.isDef) {
if(this.isReplace){
//模块第一次显示,需要替换部分未知变量。
this.$c.find('[data-replace]').each(function(index){
var $elem = $(this), val;
var attr = $elem.attr('data-replace');
var oldValue = $elem.attr(attr);
var arrays = /\{([\w]+)\}/.exec(oldValue);
if(arrays.length == 2 && arrays[1] in Core.Data){
val = Core.Data[arrays[1]];
var newValue = oldValue.replace(arrays[0], val)
$elem.attr(attr, newValue);
} else {
console.log('can not find variable in:' + oldValue);
}
});
//只需在模块第一次显示时替换变量。
this.isReplace = false;
}
Core.show_anim(this.$c);
} else {
if (this.isValid) {
Core.show_anim(this.$c);
} else {
if (!this.tpl)
this.tpl = doT.template(Core.getTemplate(this.moduleId));
this.$c.html(this.tpl());
Core.show_anim(this.$c);
this.isValid = true;
}
}
if (this.show_after && typeof this.show_after == 'function')
this.show_after();
}
// Laura Doktorova https://github.com/olado/doT
(function(){function o(){var b={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},a=/&(?!#?\w+;)|<|>|"|'|\//g;return function(f){return f?f.toString().replace(a,function(g){return b[g]||g}):f}}function p(b,a,f){return(typeof a==="string"?a:a.toString()).replace(b.define||h,function(g,e,c,i){if(e.indexOf("def.")===0)e=e.substring(4);if(!(e in f))if(c===":")f[e]=i;else eval("def['"+e+"']="+i);return""}).replace(b.use||h,function(g,e){var c=eval(e);return c?p(b,c,f):c})}function l(b){return b.replace(/\\('|\\)/g,
"$1").replace(/[\r\t\n]/g," ")}var j={version:"0.2.0",templateSettings:{evaluate:/\{\{([\s\S]+?)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:true,append:true,selfcontained:false},template:undefined,compile:undefined},m=function(){return this||(0,eval)("this")}();
if(typeof module!=="undefined"&&module.exports)module.exports=j;else if(typeof define==="function"&&define.amd)define(function(){return j});else m.doT=j;m.encodeHTML=o();var q={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},h=/$^/;j.template=function(b,a,f){a=a||j.templateSettings;var g=a.append?q.append:q.split,e,c=0,i;if(a.use||a.define){var r=m.def;m.def=f||{};b=p(a,b,m.def);m.def=r}b=("var out='"+(a.strip?b.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g,
" ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):b).replace(/'|\\/g,"\\$&").replace(a.interpolate||h,function(n,d){return g.start+l(d)+g.end}).replace(a.encode||h,function(n,d){e=true;return g.startencode+l(d)+g.end}).replace(a.conditional||h,function(n,d,k){return d?k?"';}else if("+l(k)+"){out+='":"';}else{out+='":k?"';if("+l(k)+"){out+='":"';}out+='"}).replace(a.iterate||h,function(n,d,k,s){if(!d)return"';} } out+='";c+=1;i=s||"i"+c;d=l(d);return"';var arr"+c+"="+d+";if(arr"+c+"){var "+k+","+i+"=-1,l"+
c+"=arr"+c+".length-1;while("+i+"<l"+c+"){"+k+"=arr"+c+"["+i+"+=1];out+='"}).replace(a.evaluate||h,function(n,d){return"';"+l(d)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|}|^|{)out\+='';/g,"$1").replace(/\+''/g,"").replace(/(\s|;|}|^|{)out\+=''\+/g,"$1out+=");if(e&&a.selfcontained)b="var encodeHTML=("+o.toString()+"());"+b;try{return new Function(a.varname,b)}catch(t){typeof console!=="undefined"&&console.log("Could not create a template function: "+
b);throw t;}};j.compile=function(b,a){return j.template(b,null,a)}})();
function FastClick(layer){"use strict";var oldOnClick,self=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=layer;if(!layer||!layer.nodeType){throw new TypeError("Layer must be a document node")}this.onClick=function(){return FastClick.prototype.onClick.apply(self,arguments)};this.onMouse=function(){return FastClick.prototype.onMouse.apply(self,arguments)};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(self,arguments)};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(self,arguments)};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(self,arguments)};if(FastClick.notNeeded(layer)){return}if(this.deviceIsAndroid){layer.addEventListener("mouseover",this.onMouse,true);layer.addEventListener("mousedown",this.onMouse,true);layer.addEventListener("mouseup",this.onMouse,true)}layer.addEventListener("click",this.onClick,true);layer.addEventListener("touchstart",this.onTouchStart,false);layer.addEventListener("touchend",this.onTouchEnd,false);layer.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){layer.removeEventListener=function(type,callback,capture){var rmv=Node.prototype.removeEventListener;if(type==="click"){rmv.call(layer,type,callback.hijacked||callback,capture)}else{rmv.call(layer,type,callback,capture)}};layer.addEventListener=function(type,callback,capture){var adv=Node.prototype.addEventListener;if(type==="click"){adv.call(layer,type,callback.hijacked||(callback.hijacked=function(event){if(!event.propagationStopped){callback(event)}}),capture)}else{adv.call(layer,type,callback,capture)}}}if(typeof layer.onclick==="function"){oldOnClick=layer.onclick;layer.addEventListener("click",function(event){oldOnClick(event)},false);layer.onclick=null}}FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(target){"use strict";switch(target.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(target.disabled){return true}break;case"input":if(this.deviceIsIOS&&target.type==="file"||target.disabled){return true}break;case"label":case"video":return true}return/\bneedsclick\b/.test(target.className)};FastClick.prototype.needsFocus=function(target){"use strict";switch(target.nodeName.toLowerCase()){case"textarea":case"select":return true;case"input":switch(target.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false}return!target.disabled&&!target.readOnly;default:return/\bneedsfocus\b/.test(target.className)}};FastClick.prototype.sendClick=function(targetElement,event){"use strict";var clickEvent,touch;if(document.activeElement&&document.activeElement!==targetElement){document.activeElement.blur()}touch=event.changedTouches[0];clickEvent=document.createEvent("MouseEvents");clickEvent.initMouseEvent("click",true,true,window,1,touch.screenX,touch.screenY,touch.clientX,touch.clientY,false,false,false,false,0,null);clickEvent.forwardedTouchEvent=true;targetElement.dispatchEvent(clickEvent)};FastClick.prototype.focus=function(targetElement){"use strict";var length;if(this.deviceIsIOS&&targetElement.setSelectionRange){length=targetElement.value.length;targetElement.setSelectionRange(length,length)}else{targetElement.focus()}};FastClick.prototype.updateScrollParent=function(targetElement){"use strict";var scrollParent,parentElement;scrollParent=targetElement.fastClickScrollParent;if(!scrollParent||!scrollParent.contains(targetElement)){parentElement=targetElement;do{if(parentElement.scrollHeight>parentElement.offsetHeight){scrollParent=parentElement;targetElement.fastClickScrollParent=parentElement;break}parentElement=parentElement.parentElement}while(parentElement)}if(scrollParent){scrollParent.fastClickLastScrollTop=scrollParent.scrollTop}};FastClick.prototype.getTargetElementFromEventTarget=function(eventTarget){"use strict";if(eventTarget.nodeType===Node.TEXT_NODE){return eventTarget.parentNode}return eventTarget};FastClick.prototype.onTouchStart=function(event){"use strict";var targetElement,touch,selection;if(event.targetTouches.length>1){return true}targetElement=this.getTargetElementFromEventTarget(event.target);touch=event.targetTouches[0];if(this.deviceIsIOS){selection=window.getSelection();if(selection.rangeCount&&!selection.isCollapsed){return true}if(!this.deviceIsIOS4){if(touch.identifier===this.lastTouchIdentifier){event.preventDefault();return false}this.lastTouchIdentifier=touch.identifier;this.updateScrollParent(targetElement)}}this.trackingClick=true;this.trackingClickStart=event.timeStamp;this.targetElement=targetElement;this.touchStartX=touch.pageX;this.touchStartY=touch.pageY;if(event.timeStamp-this.lastClickTime<200){event.preventDefault()}return true};FastClick.prototype.touchHasMoved=function(event){"use strict";var touch=event.changedTouches[0],boundary=this.touchBoundary;if(Math.abs(touch.pageX-this.touchStartX)>boundary||Math.abs(touch.pageY-this.touchStartY)>boundary){return true}return false};FastClick.prototype.findControl=function(labelElement){"use strict";if(labelElement.control!==undefined){return labelElement.control}if(labelElement.htmlFor){return document.getElementById(labelElement.htmlFor)}return labelElement.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(event){"use strict";var forElement,trackingClickStart,targetTagName,scrollParent,touch,targetElement=this.targetElement;if(this.touchHasMoved(event)){this.trackingClick=false;this.targetElement=null}if(!this.trackingClick){return true}if(event.timeStamp-this.lastClickTime<200){this.cancelNextClick=true;return true}this.lastClickTime=event.timeStamp;trackingClickStart=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(this.deviceIsIOSWithBadTarget){touch=event.changedTouches[0];targetElement=document.elementFromPoint(touch.pageX-window.pageXOffset,touch.pageY-window.pageYOffset)||targetElement;targetElement.fastClickScrollParent=this.targetElement.fastClickScrollParent}targetTagName=targetElement.tagName.toLowerCase();if(targetTagName==="label"){forElement=this.findControl(targetElement);if(forElement){this.focus(targetElement);if(this.deviceIsAndroid){return false}targetElement=forElement}}else if(this.needsFocus(targetElement)){if(event.timeStamp-trackingClickStart>100||this.deviceIsIOS&&window.top!==window&&targetTagName==="input"){this.targetElement=null;return false}this.focus(targetElement);if(!this.deviceIsIOS4||targetTagName!=="select"){this.targetElement=null;event.preventDefault()}return false}if(this.deviceIsIOS&&!this.deviceIsIOS4){scrollParent=targetElement.fastClickScrollParent;if(scrollParent&&scrollParent.fastClickLastScrollTop!==scrollParent.scrollTop){return true}}if(!this.needsClick(targetElement)){event.preventDefault();this.sendClick(targetElement,event)}return false};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=false;this.targetElement=null};FastClick.prototype.onMouse=function(event){"use strict";if(!this.targetElement){return true}if(event.forwardedTouchEvent){return true}if(!event.cancelable){return true}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(event.stopImmediatePropagation){event.stopImmediatePropagation()}else{event.propagationStopped=true}event.stopPropagation();event.preventDefault();return false}return true};FastClick.prototype.onClick=function(event){"use strict";var permitted;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true}if(event.target.type==="submit"&&event.detail===0){return true}permitted=this.onMouse(event);if(!permitted){this.targetElement=null}return permitted};FastClick.prototype.destroy=function(){"use strict";var layer=this.layer;if(this.deviceIsAndroid){layer.removeEventListener("mouseover",this.onMouse,true);layer.removeEventListener("mousedown",this.onMouse,true);layer.removeEventListener("mouseup",this.onMouse,true)}layer.removeEventListener("click",this.onClick,true);layer.removeEventListener("touchstart",this.onTouchStart,false);layer.removeEventListener("touchend",this.onTouchEnd,false);layer.removeEventListener("touchcancel",this.onTouchCancel,false)};FastClick.notNeeded=function(layer){"use strict";var metaViewport;if(typeof window.ontouchstart==="undefined"){return true}if(/Chrome\/[0-9]+/.test(navigator.userAgent)){if(FastClick.prototype.deviceIsAndroid){metaViewport=document.querySelector("meta[name=viewport]");if(metaViewport&&metaViewport.content.indexOf("user-scalable=no")!==-1){return true}}else{return true}}if(layer.style.msTouchAction==="none"){return true}return false};FastClick.attach=function(layer){"use strict";return new FastClick(layer)};if(typeof define!=="undefined"&&define.amd){define(function(){"use strict";return FastClick})}else if(typeof module!=="undefined"&&module.exports){module.exports=FastClick.attach;module.exports.FastClick=FastClick}else{window.FastClick=FastClick}
\ No newline at end of file
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|";
function IsIdCard(idcard)
{
idcard = idcard.toUpperCase();
var area={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:"国外"};
var retflag=false;
var idcard,Y,JYM;
var S,M;
var idcard_array = new Array();
idcard_array = idcard.split("");
//地区检验
if(area[parseInt(idcard.substr(0,2))]==null) return false;
//身份号码位数及格式检验
switch(idcard.length)
{
case 15:
if ((parseInt(idcard.substr(6,2))+1900) % 4 == 0 ||
((parseInt(idcard.substr(6,2))+1900) % 100 == 0 && (parseInt(idcard.substr(6,2))+1900) % 4 == 0 ))
{
ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/;//测试出生日期的合法性
}
else
{
ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/;//测试出生日期的合法性
}
if(ereg.test(idcard)) return true;
else return false;
break;
case 18:
//18位身份号码检测
//出生日期的合法性检查
//闰年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))
//平年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))
if ( parseInt(idcard.substr(6,4)) % 4 == 0 ||
(parseInt(idcard.substr(6,4)) % 100 == 0 &&parseInt(idcard.substr(6,4))%4 == 0 ))
{
ereg=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/;//闰年出生日期的合法性正则表达式
}
else
{
ereg=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/;//平年出生日期的合法性正则表达式
}
if(ereg.test(idcard))
{//测试出生日期的合法性
//计算校验位
S = (parseInt(idcard_array[0]) + parseInt(idcard_array[10])) * 7
+ (parseInt(idcard_array[1]) + parseInt(idcard_array[11])) * 9
+ (parseInt(idcard_array[2]) + parseInt(idcard_array[12])) * 10
+ (parseInt(idcard_array[3]) + parseInt(idcard_array[13])) * 5
+ (parseInt(idcard_array[4]) + parseInt(idcard_array[14])) * 8
+ (parseInt(idcard_array[5]) + parseInt(idcard_array[15])) * 4
+ (parseInt(idcard_array[6]) + parseInt(idcard_array[16])) * 2
+ parseInt(idcard_array[7]) * 1
+ parseInt(idcard_array[8]) * 6
+ parseInt(idcard_array[9]) * 3 ;
Y = S % 11;
M = "F";
JYM = "10X98765432";
M = JYM.substr(Y,1);//判断校验位
if(M == idcard_array[17]) true; //检测ID的校验位
else return false;
}
else return false;
break;
default:
return false;
break;
}
return true;
}
\ No newline at end of file
!function(){var m=Math,mround=function(r){return r>>0},vendor=/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":"opera"in window?"O":"",isAndroid=/android/gi.test(navigator.appVersion),isIDevice=/iphone|ipad/gi.test(navigator.appVersion),isPlaybook=/playbook/gi.test(navigator.appVersion),isTouchPad=/hp-tablet/gi.test(navigator.appVersion),has3d="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,hasTouch="ontouchstart"in window&&!isTouchPad,hasTransform=vendor+"Transform"in document.documentElement.style,hasTransitionEnd=isIDevice||isPlaybook,nextFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){return setTimeout(callback,17)}}(),cancelFrame=function(){return window.cancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),RESIZE_EV="onorientationchange"in window?"orientationchange":"resize",START_EV=hasTouch?"touchstart":"mousedown",MOVE_EV=hasTouch?"touchmove":"mousemove",END_EV=hasTouch?"touchend":"mouseup",CANCEL_EV=hasTouch?"touchcancel":"mouseup",trnOpen="translate"+(has3d?"3d(":"("),trnClose=has3d?",0)":")",iScroll=function(el,options){var that=this,doc=document,i;this._events={};that.wrapper=typeof el=="object"?el:doc.getElementById(el);that.wrapper.style.overflow="hidden";that.scroller=that.wrapper.children[0];that.options={hScroll:true,vScroll:true,x:0,y:0,bounce:true,bounceLock:false,momentum:true,lockDirection:true,useTransform:true,useTransition:false,mouseWheel:true,onRefresh:null,onBeforeScrollStart:function(e){var target=e.target;while(target.nodeType!=1)target=target.parentNode;if(target.tagName!="SELECT"&&target.tagName!="INPUT"&&target.tagName!="TEXTAREA")e.preventDefault()},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null};for(i in options)that.options[i]=options[i];that.x=that.options.x;that.y=that.options.y;that.options.useTransform=hasTransform?that.options.useTransform:false;that.options.hScrollbar=that.options.hScroll&&that.options.hScrollbar;that.options.vScrollbar=that.options.vScroll&&that.options.vScrollbar;that.options.useTransition=hasTransitionEnd&&that.options.useTransition;that.options.invertWheelDirection=that.options.invertWheelDirection?-1:1;that.scroller.style[vendor+"TransitionProperty"]=that.options.useTransform?"-"+vendor.toLowerCase()+"-transform":"top left";that.scroller.style[vendor+"TransitionDuration"]="0";that.scroller.style[vendor+"TransformOrigin"]="0 0";if(that.options.useTransition)that.scroller.style[vendor+"TransitionTimingFunction"]="cubic-bezier(0.33,0.66,0.66,1)";if(that.options.useTransform)that.scroller.style[vendor+"Transform"]=trnOpen+that.x+"px,"+that.y+"px"+trnClose;else that.scroller.style.cssText+=";position:absolute;top:"+that.y+"px;left:"+that.x+"px";if(that.options.mouseWheel)that._initWheel();that.refresh();that._bind(RESIZE_EV,window);that._bind(START_EV);if(!hasTouch)that._bind("mouseout",that.wrapper)};iScroll.prototype={enabled:true,x:0,y:0,steps:[],scale:1,handleEvent:function(e){var that=this;switch(e.type){case START_EV:if(!hasTouch&&e.button!==0)return;that._start(e);break;case MOVE_EV:that._move(e);break;case END_EV:case CANCEL_EV:that._end(e);break;case RESIZE_EV:that._resize();break;case"mouseout":that._mouseout(e);break;case"webkitTransitionEnd":that._transitionEnd(e);break;case"mousewheel":that._wheel(e);break}},_resize:function(){this.refresh()},_pos:function(x,y){x=this.hScroll?x:0;y=this.vScroll?y:0;if(this.options.useTransform){this.scroller.style[vendor+"Transform"]=trnOpen+x+"px,"+y+"px"+trnClose+" scale("+this.scale+")"}else{x=mround(x);y=mround(y);this.scroller.style.left=x+"px";this.scroller.style.top=y+"px"}this.x=x;this.y=y},_start:function(e){var that=this,point=hasTouch?e.touches[0]:e,matrix,x,y;if(!that.enabled)return;if(that.options.onBeforeScrollStart)that.options.onBeforeScrollStart.call(that,e);if(that.options.useTransition)that._transitionTime(0);that.moved=false;that.animating=false;that.zoomed=false;that.distX=0;that.distY=0;that.absDistX=0;that.absDistY=0;that.dirX=0;that.dirY=0;if(that.options.momentum){if(that.options.useTransform){matrix=getComputedStyle(that.scroller,null)[vendor+"Transform"].replace(/[^0-9-.,]/g,"").split(",");x=matrix[4]*1;y=matrix[5]*1}else{x=getComputedStyle(that.scroller,null).left.replace(/[^0-9-]/g,"")*1;y=getComputedStyle(that.scroller,null).top.replace(/[^0-9-]/g,"")*1}if(x!=that.x||y!=that.y){if(that.options.useTransition)that._unbind("webkitTransitionEnd");else cancelFrame(that.aniTime);that.steps=[];that._pos(x,y)}}that.startX=that.x;that.startY=that.y;that.pointX=point.pageX;that.pointY=point.pageY;that.startTime=e.timeStamp||Date.now();if(that.options.onScrollStart)that.options.onScrollStart.call(that,e);that._bind(MOVE_EV);that._bind(END_EV);that._bind(CANCEL_EV)},_move:function(e){var that=this,point=hasTouch?e.touches[0]:e,deltaX=point.pageX-that.pointX,deltaY=point.pageY-that.pointY,newX=that.x+deltaX,newY=that.y+deltaY,timestamp=e.timeStamp||Date.now();if(that.options.onBeforeScrollMove)that.options.onBeforeScrollMove.call(that,e);that.pointX=point.pageX;that.pointY=point.pageY;if(newX>0||newX<that.maxScrollX){newX=that.options.bounce?that.x+deltaX/2:newX>=0||that.maxScrollX>=0?0:that.maxScrollX}if(newY>0||newY<that.maxScrollY){newY=that.options.bounce?that.y+deltaY/2:newY>=0||that.maxScrollY>=0?0:that.maxScrollY}that.distX+=deltaX;that.distY+=deltaY;that.absDistX=m.abs(that.distX);that.absDistY=m.abs(that.distY);if(that.absDistX<6&&that.absDistY<6){return}if(that.options.lockDirection){if(that.absDistX>that.absDistY+5){newY=that.y;deltaY=0}else if(that.absDistY>that.absDistX+5){newX=that.x;deltaX=0}}that.moved=true;that._pos(newX,newY);that.dirX=deltaX>0?-1:deltaX<0?1:0;that.dirY=deltaY>0?-1:deltaY<0?1:0;if(timestamp-that.startTime>300){that.startTime=timestamp;that.startX=that.x;that.startY=that.y}if(that.options.onScrollMove)that.options.onScrollMove.call(that,e)},_end:function(e){if(hasTouch&&e.touches.length!=0)return;var that=this,point=hasTouch?e.changedTouches[0]:e,target,ev,momentumX={dist:0,time:0},momentumY={dist:0,time:0},duration=(e.timeStamp||Date.now())-that.startTime,newPosX=that.x,newPosY=that.y,newDuration;that._unbind(MOVE_EV);that._unbind(END_EV);that._unbind(CANCEL_EV);if(that.options.onBeforeScrollEnd)that.options.onBeforeScrollEnd.call(that,e);if(!that.moved){if(hasTouch){target=point.target;while(target.nodeType!=1)target=target.parentNode;if(target.tagName!="SELECT"&&target.tagName!="INPUT"&&target.tagName!="TEXTAREA"){ev=document.createEvent("MouseEvents");ev.initMouseEvent("click",true,true,e.view,1,point.screenX,point.screenY,point.clientX,point.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);ev._fake=true;target.dispatchEvent(ev)}}that._resetPos(200);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return}if(duration<300&&that.options.momentum){momentumX=newPosX?that._momentum(newPosX-that.startX,duration,-that.x,that.scrollerW-that.wrapperW+that.x,that.options.bounce?that.wrapperW:0):momentumX;momentumY=newPosY?that._momentum(newPosY-that.startY,duration,-that.y,that.maxScrollY<0?that.scrollerH-that.wrapperH+that.y:0,that.options.bounce?that.wrapperH:0):momentumY;newPosX=that.x+momentumX.dist;newPosY=that.y+momentumY.dist;if(that.x>0&&newPosX>0||that.x<that.maxScrollX&&newPosX<that.maxScrollX)momentumX={dist:0,time:0};if(that.y>0&&newPosY>0||that.y<that.maxScrollY&&newPosY<that.maxScrollY)momentumY={dist:0,time:0}}if(momentumX.dist||momentumY.dist){newDuration=m.max(m.max(momentumX.time,momentumY.time),10);that.scrollTo(mround(newPosX),mround(newPosY),newDuration);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return}that._resetPos(200);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e)},_initWheel:function(){this.wrapper.addEventListener("mousewheel",this);this.wrapper.addEventListener("DOMMouseScroll",this);this.on("destroy",function(){this.wrapper.removeEventListener("mousewheel",this);this.wrapper.removeEventListener("DOMMouseScroll",this)})},_wheel:function(e){var wheelDeltaX,wheelDeltaY,newX,newY,that=this;clearTimeout(this.wheelTimeout);this.wheelTimeout=setTimeout(function(){that._execEvent("scrollEnd")},400);e.preventDefault();if("wheelDeltaX"in e){wheelDeltaX=e.wheelDeltaX/Math.abs(e.wheelDeltaX)||0;wheelDeltaY=e.wheelDeltaY/Math.abs(e.wheelDeltaY)||0}else if("wheelDelta"in e){wheelDeltaX=wheelDeltaY=e.wheelDelta/Math.abs(e.wheelDelta)}else if("detail"in e){wheelDeltaX=wheelDeltaY=-(e.detail/Math.abs(e.detail))}else{return}wheelDeltaX*=12;wheelDeltaY*=12;if(!this.hasVerticalScroll){wheelDeltaX=wheelDeltaY}newX=this.x+wheelDeltaX*this.options.invertWheelDirection;newY=this.y+wheelDeltaY*this.options.invertWheelDirection;if(newX>0){newX=0}else if(newX<this.maxScrollX){newX=this.maxScrollX}if(newY>0){newY=0}else if(newY<this.maxScrollY){newY=this.maxScrollY}that.scrollTo(newX,newY,0)},on:function(type,fn){if(!this._events[type]){this._events[type]=[]}this._events[type].push(fn)},_execEvent:function(type){if(!this._events[type]){return}var i=0,l=this._events[type].length;if(!l){return}for(;i<l;i++){this._events[type][i].call(this)}},_resetPos:function(time){var that=this,resetX=that.x>=0?0:that.x<that.maxScrollX?that.maxScrollX:that.x,resetY=that.y>=0||that.maxScrollY>0?0:that.y<that.maxScrollY?that.maxScrollY:that.y;if(resetX==that.x&&resetY==that.y){if(that.moved){if(that.options.onScrollEnd)that.options.onScrollEnd.call(that);that.moved=false}return}that.scrollTo(resetX,resetY,time||0)},_mouseout:function(e){var t=e.relatedTarget;if(!t){this._end(e);return}while(t=t.parentNode)if(t==this.wrapper)return;this._end(e)},_transitionEnd:function(e){var that=this;if(e.target!=that.scroller)return;that._unbind("webkitTransitionEnd");that._startAni()},_startAni:function(){var that=this,startX=that.x,startY=that.y,startTime=Date.now(),step,easeOut,animate;if(that.animating)return;if(!that.steps.length){that._resetPos(400);return}step=that.steps.shift();if(step.x==startX&&step.y==startY)step.time=0;that.animating=true;that.moved=true;if(that.options.useTransition){that._transitionTime(step.time);that._pos(step.x,step.y);that.animating=false;if(step.time)that._bind("webkitTransitionEnd");else that._resetPos(0);return}animate=function(){var now=Date.now(),newX,newY;if(now>=startTime+step.time){that._pos(step.x,step.y);that.animating=false;if(that.options.onAnimationEnd)that.options.onAnimationEnd.call(that);that._startAni();return}now=(now-startTime)/step.time-1;easeOut=m.sqrt(1-now*now);newX=(step.x-startX)*easeOut+startX;newY=(step.y-startY)*easeOut+startY;that._pos(newX,newY);if(that.animating)that.aniTime=nextFrame(animate)};animate()},_transitionTime:function(time){this.scroller.style[vendor+"TransitionDuration"]=time+"ms"},_momentum:function(dist,time,maxDistUpper,maxDistLower,size){var deceleration=6e-4,speed=m.abs(dist)/time,newDist=speed*speed/(2*deceleration),newTime=0,outsideDist=0;if(dist>0&&newDist>maxDistUpper){outsideDist=size/(6/(newDist/speed*deceleration));maxDistUpper=maxDistUpper+outsideDist;speed=speed*maxDistUpper/newDist;newDist=maxDistUpper}else if(dist<0&&newDist>maxDistLower){outsideDist=size/(6/(newDist/speed*deceleration));maxDistLower=maxDistLower+outsideDist;speed=speed*maxDistLower/newDist;newDist=maxDistLower}newDist=newDist*(dist<0?-1:1);newTime=speed/deceleration;return{dist:newDist,time:mround(newTime)}},_offset:function(el){var left=-el.offsetLeft,top=-el.offsetTop;while(el=el.offsetParent){left-=el.offsetLeft;top-=el.offsetTop}return{left:left,top:top}},_bind:function(type,el,bubble){(el||this.scroller).addEventListener(type,this,!!bubble)},_unbind:function(type,el,bubble){(el||this.scroller).removeEventListener(type,this,!!bubble)},destroy:function(){var that=this;that.scroller.style[vendor+"Transform"]="";that._unbind(RESIZE_EV,window);that._unbind(START_EV);that._unbind(MOVE_EV);that._unbind(END_EV);that._unbind(CANCEL_EV);that._unbind("mouseout",that.wrapper);if(that.options.useTransition)that._unbind("webkitTransitionEnd");if(that.options.onDestroy)that.options.onDestroy.call(that)},refresh:function(){var that=this,offset;that.wrapperW=that.wrapper.clientWidth;that.wrapperH=that.wrapper.clientHeight;that.scrollerW=that.scroller.offsetWidth;that.scrollerH=that.scroller.offsetHeight;that.maxScrollX=that.wrapperW-that.scrollerW;that.maxScrollY=that.wrapperH-that.scrollerH;that.dirX=0;that.dirY=0;that.hScroll=that.options.hScroll&&that.maxScrollX<0;that.vScroll=that.options.vScroll&&(!that.options.bounceLock&&!that.hScroll||that.scrollerH>that.wrapperH);offset=that._offset(that.wrapper);that.wrapperOffsetLeft=-offset.left;that.wrapperOffsetTop=-offset.top;that.scroller.style[vendor+"TransitionDuration"]="0";that._resetPos(200)},scrollTo:function(x,y,time,relative){var that=this,step=x,i,l;that.stop();if(!step.length)step=[{x:x,y:y,time:time,relative:relative}];for(i=0,l=step.length;i<l;i++){if(step[i].relative){step[i].x=that.x-step[i].x;step[i].y=that.y-step[i].y}that.steps.push({x:step[i].x,y:step[i].y,time:step[i].time||0})}that._startAni()},scrollToElement:function(el,time){var that=this,pos;el=el.nodeType?el:that.scroller.querySelector(el);if(!el)return;pos=that._offset(el);pos.left+=that.wrapperOffsetLeft;pos.top+=that.wrapperOffsetTop;pos.left=pos.left>0?0:pos.left<that.maxScrollX?that.maxScrollX:pos.left;pos.top=pos.top>0?0:pos.top<that.maxScrollY?that.maxScrollY:pos.top;time=time===undefined?m.max(m.abs(pos.left)*2,m.abs(pos.top)*2):time;that.scrollTo(pos.left,pos.top,time)},disable:function(){this.stop();this._resetPos(0);this.enabled=false;this._unbind(MOVE_EV);this._unbind(END_EV);this._unbind(CANCEL_EV)},enable:function(){this.enabled=true},stop:function(){cancelFrame(this.aniTime);this.steps=[];this.moved=false;this.animating=false}};if(typeof exports!=="undefined")exports.iScroll=iScroll;else window.iScroll=iScroll}();
\ No newline at end of file
(function() {
// 加载数据
var goInit = function() {
if (window.isGetData == 1) {
Core.init();
} else {
window.isGetData = 1;
}
}
var getData = function(url) {
var params = location.hash.slice(1);
var args = params.match(/app_id=(\w*)&?/);
var start_page = params.match(/mod=(\w*)&?/);
var core_server = params.match(/core_server=(.*)&?/);
var appId = '';
var skin_v = '?' + $('#skin').attr('data-v');
if (args && args.length == 2) {
//匹配出app_id
appId = args[1];
}
if(start_page && start_page.length == 2){
//匹配出启动模块
Core.start_page = start_page[1];
console.log(Core.start_page);
}
if (core_server){
Core.server = core_server[1]
}
location.hash = '';
if (appId == '') {
//刷新地址出错
params = localStorage.getItem('params_' + url);
appId = localStorage.getItem('app_id');
} else {
localStorage.setItem('params_' + url, params);
localStorage.setItem('app_id', appId);
}
Core.params = params;
if (!appId) {
//无法获取到app_id
Core.showTips('无法获取app_id!', false, 3000);
goInit();
$('#loading').hide();
return;
}
Core.Data.app_id = appId;
var setSkin = false;
//先尝试设置皮肤,检查是否自动登录
var tryAutoLogin = false;
var _skin = localStorage.getItem('skin_' + appId);
if (_skin) {
$('#skin').attr('href', Core.server + '/static/sdk/skin/' + _skin + '/skin.css' + skin_v);
setSkin = true;
}
if ($('#login').length != 0) {
var auto = localStorage.getItem('auto');
var auto_time = parseInt(localStorage.getItem('auto_time'));
var d = new Date().getTime();
if (auto == 'true' && (d - auto_time) < 600000) {
tryAutoLogin = false;
} else if (auto == null) {
tryAutoLogin = false;
} else {
tryAutoLogin = true;
}
}
//如果不尝试自动登录,直接初始化界面
if (!tryAutoLogin)
goInit();
Core.ajax({
type: 'GET',
url: url + '?' + params,
dataType: 'json',
success: function(data) {
if (data.code == 0) {
// 成功请求
Core.Data = data.msg;
if (Core.Data.face) {
Core.Data.face = Core.server + data.msg.face;
}
//更新server
var lastServer = localStorage.getItem('last_server');
if (Core.Data.new_server) {
if (lastServer && lastServer == Core.Data.new_server) {
//没有变化
} else {
//需要更新server
var s = 'sdk://changeServer?addr=' + Core.Data.new_server;
localStorage.setItem('last_server', Core.Data.new_server);
location.href = s;
}
}
if (!setSkin && data.skin) {
$('#skin').attr('href', Core.server + '/static/sdk/skin/' + data.skin + '/skin.css' + skin_v);
localStorage.setItem('skin_' + appId, data.skin);
}
localStorage.setItem('data_' + url, JSON.stringify(data.msg));
//模块初始化函数,兼容旧版本sdk
if (typeof(window.initFunc) == "function") {
window.initFunc();
}
// 核心初始化
$('#loading').hide();
if (tryAutoLogin) {
goInit();
} else {
var first_mod = Core.start_page? Core.start_page: 'home';
Core.updateMod(first_mod);
}
} else {
//参数出错,没有游戏服什么的.
$('#loading').hide();
$('<h2 class="error_title">出错了,正在努力抢修中...</h2>').appendTo($('.mask'));
Core.showTips(data.msg, false, 6000);
// 核心初始化
Core.loadFinished();
}
},
error: function(xhr, type) {
// 请求失败,服务器崩溃
//尝试从缓存中获取数据
var data_str = localStorage.getItem('data_' + url);
if (data_str && data_str != '') {
var data = JSON.parse(data_str);
if (typeof data == "object") {
Core.Data = data;
if (tryAutoLogin) {
goInit();
} else {
Core.updateMod('home');
}
}
}
Core.showTips('网络出错,请检查网络状态。', false);
// 核心初始化
$('#loading').hide();
}
});
}
window.getData = getData;
})();
\ No newline at end of file
(function() {
// iframe下更新数据,并跳转到页面
if (window.top != window.self) {
try {
//webview 不会跳转,这里第三方登陆后,刷新父页面,自动登录
parent.location.reload()
//parent.Core.Data = Core.Data;
//parent.location.hash = "#home&force";
//parent.Core.clearFrame();
} catch (e) {
//跨域问题,通知sdk直接跳转到游戏
Core.finishLogin();
}
}
init_data();
function init_data(response) {
if (response) {
$(response).appendTo($('body .mask'));
}
// Home模块
var Home = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Home, Module);
Home.prototype.bind = function() {
// 绑定模块事件到section
var that = this;
that.$c.on('click', '.op-logout', function(e) {
e.preventDefault();
// Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb,
// that);
that.logout_cb();
return false;
});
that.$c.on('click', 'label.help', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'help')
return;
Core.showMod('help');
return false;
});
}
Home.prototype.logout_cb = function(data) {
Core.updateData();
Core.clearMods();
Core.showMod('login');
}
Home.prototype.show_after = function(){
$('#login').hide()
}
Core.registerMod('home', Home);
// 帮助信息模块
var Help = function(modId) {
Module.call(this, modId);
}
Core.inherit(Help, Module);
Core.registerMod('help', Help);
// 注册协议
var Agreement = function(modId) {
Module.call(this, modId);
}
Core.inherit(Agreement, Module);
Agreement.prototype.bind = function() {
var that = this;
var checkbox = that.$c.find(".checkbox");
var checkbox_type = that.$c.find("i.icon-xuanzhong");
that.$c.on("click",checkbox,function(e){
if(checkbox.hasClass('checkbox-2')){
checkbox_type.parents(".checkbox").removeClass("checkbox-2");
checkbox_type.addClass("checkbx");
}else{
checkbox_type.parents(".checkbox").addClass("checkbox-2");
checkbox_type.removeClass("checkbx");
}
});
that.$c.on('click', '[type=submit],.submit', function(e) {
if (that.$c.find('.checkbox-2').length<=0 ){
Core.showTips('已阅读请打勾',1);
return false;
}
});
}
Core.registerMod('agreement', Agreement);
// Login模块
var Login = function(modId) {
this.other_login = true;
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Login, Module);
Login.prototype.bind = function() {
var that = this;
that.$c.on('click', 'input[type=submit],.submit', function(e) {
e.preventDefault();
if (that.$c.find('.eg')[0].checked == false) {
// 直接进入游戏
Core.ajax_do(that.$c.find('.ajax'), that.login_eg_cb,
that);
} else {
Core.ajax_do(that.$c.find('.ajax'), that.login_cb,
that);
}
return false;
});
that.$c.on('click', '.drop-down', function(e) {
e.preventDefault();
that.$c.find('.pull-box').toggle();
return false;
});
that.$c.on('click', 'ul.drop-ul li a', function(e) {
e.preventDefault();
that.$c.find('input[name=username]').val(
$(e.target).html());
that.$c.find('input[name=password]').val($(e.target).attr('data-p'));
that.$c.find('.pull-box').hide();
return false;
})
that.$c.on('click', '.op-guest', function(e) {
e.preventDefault();
var _name = localStorage.getItem('guest_n');
var _pwd = localStorage.getItem('guest_p');
if (_name && _name != '') {
//已经有游客帐号,使用游客帐号登录
that.$c.find('input[name=username]').val(_name);
that.$c.find('input[name=password]').val(_pwd);
console.log('submit-u:' + _name + ":" + _pwd);
Core.ajax_do(that.$c.find('.ajax'), that.login_cb,
that);
} else {
Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb,
that);
}
return false;
});
that.$c.on('click', '.iframe', function(e) {
e.preventDefault();
var src = $(this).attr('href');
var title = $(this).attr('title');
if (Core.isFile) {
src = Core.server + src;
}
Core.Data.frame_title = title;
Core.Data.frame_src = src;
Core.updateMod('frame');
return false;
});
}
Login.prototype.cache = function(n, p) {
var name = n ? n : this.$c.find('input[name=username]').val(),
password = p ? p : this.$c.find('input[name=password]').val(),
name_ary,index_ary,firstUser;
var _d = localStorage.getItem('user_names');
if (_d) {
name_ary = JSON.parse(_d);
}
var _i = localStorage.getItem('user_indexs');
if (_i) {
index_ary = JSON.parse(_i);
}
if(index_ary == null){
index_ary = [];
index_ary.unshift(name);
localStorage.setItem('user_indexs', JSON.stringify(index_ary));
}else{
if($.inArray(name,index_ary) == -1){
index_ary.unshift(name);
localStorage.setItem('user_indexs', JSON.stringify(index_ary));
}
}
if (name_ary == null) {
name_ary = {};
name_ary[name] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
} else {
if (!(name in name_ary)) {
name_ary[name] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
} else {
if (name_ary[name] != password) {
name_ary[name] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
}
}
}
Core.user_indexs = index_ary;
Core.user_names = name_ary;
$("input[name='loginUserName']").val(Core.Data.username);
$("input[name='loginPassword']").val(Core.user_names[Core.Data.username]);
}
Login.prototype.login_cb = function(result) {
Core.updateData(result.msg);
// 显示一个登录成功信息,并跳转到home
Core.first_user = this.$c.find('[name="username"]').val()
Core.first_password = this.$c.find('[name="password"]').val()
this.cache();
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台');
Core.updateMod('home');
}
Login.prototype.login_eg_cb = function(result) {
Core.updateData(result.msg);
// 跳转进入游戏
this.cache();
Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台, 正在进入游戏');
setTimeout(function() {
Core.finishLogin();
}, 1000);
}
Login.prototype.guest_cb = function(data) {
Core.updateData(data.msg);
//保存游客用户名和密码到localstorage
localStorage.setItem('guest_n', data.msg.username);
localStorage.setItem('guest_p', data.msg.pwd);
this.cache(data.msg.username, data.msg.pwd);
Core.isFresh = false;
Core.updateMod('home');
Core.showTips("游客登录成功,请及时修改帐号和密码。", true);
}
Login.prototype.show_after = function() {
var user_indexs = localStorage.getItem('user_indexs'),
names = localStorage.getItem('user_names');
var loginUserName = $("input[name='loginUserName']").val(),
loginPassword = $("input[name='loginPassword']").val(),
initUserName = $("input[name='initUserName']").val();
this.$c.find(".forgetpsw").click(function(){
$(".pwd_box").children(".step-tab").css("display","block");
$(".pwd_box").children(".step-box").css("display","none");
});
var names = JSON.parse(names);
var userIdx = JSON.parse(user_indexs);
if (names != null) {
delete names["undefined"];
this.$c.find('.drop-down').show();
var lis = '';
for(var ele = 0,l = userIdx.length;ele<l;ele++){
lis += '<li><a data-p="' + names[userIdx[ele]] + '">' + userIdx[ele] + '</a></li>';
}
this.$c.find('.drop-ul').html(lis);
if(loginUserName != ""){
this.$c.find("input#js_login_username").val(loginUserName);
}else if(initUserName != ""){
this.$c.find("input#js_login_username").val(initUserName);
this.$c.find("input#js_login_password").val(Core.user_names[initUserName]);
}
}else{
this.$c.find("input#js_login_username").val(Core.first_user);
this.$c.find("input#js_login_password").val(Core.first_password);
}
if (Core.Data.other_login && this.other_login) {
if(Core.Data.other_login.length > 0){
this.$c.find(".other-login-bx").removeClass("hide");
}
//设置第三方登录显示
for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
}
this.other_login = false;
}
if(loginPassword != ""){
this.$c.find("input#js_login_password").val(loginPassword);
}
var old_pwd = localStorage.getItem('old_pwd');
if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){
this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]);
console.log($("input#js_login_password").val());
}
$("#find_pwd").find(".user-center span").html("找回密码");
}
Core.registerMod('login', Login);
// Login_before模块
var Login_before = function(modId) {
this.other_login = true;
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Login_before, Module);
Login_before.prototype.bind = function() {
var that = this;
that.$c.on('click', '.login_case2', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.op-guest'), that.guest_cb, that);
return false;
});
that.$c.on('click', '.login_case_qq', function(e){
e.preventDefault();
var src = '/user/auth2/qq/login/?next=/sdk/login?app_id=' + Core.Data.app_id;
if (Core.isFile) {
src = Core.server + src;
}
Core.Data.frame_title = 'QQ登录';
Core.Data.frame_src = src;
Core.updateMod('frame');
return false;
});
}
//使用Login模块的业务逻辑
Login_before.prototype.cache = Login.prototype.cache;
Login_before.prototype.guest_cb = Login.prototype.guest_cb;
Login_before.prototype.show_after = function() {
if (Core.Data.other_login && this.other_login) {
//设置第三方登录显示
for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
}
if(Core.Data.other_login.length == 0){
//没有可用的第三方登录,直接跳转到home界面
Core.updateMod('home');
}
this.other_login = false;
}
}
Core.registerMod('login_before', Login_before);
// Register模块
var Register = function(modId) {
this._username = null
this._pwd = null
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Register, Module);
Register.prototype.bind = function() {
var that = this;
var checkbox = that.$c.find(".checkbox");
var checkbox_type = that.$c.find("i.icon-xuanzhong");
that.$c.on("click",checkbox,function(e){
if(checkbox.hasClass('checkbox-2')){
checkbox_type.parents(".checkbox").removeClass("checkbox-2");
checkbox_type.addClass("checkbx");
}else{
checkbox_type.parents(".checkbox").addClass("checkbox-2");
checkbox_type.removeClass("checkbx");
}
});
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){
Core.showTips("密码不能有大写字母!");
}else if(!that.$c.find('.checkbox-2').length>0){
Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
}else{
//如果是游客的话则调用安卓截屏方法
if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){
window.android.screenShot();
}
Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that);
}
return false;
});
that.$c.on('change','[name="username"]',function(e){
if (this.value == that.$c.find('[name="old_usernmae"]').val()){
that.$c.find('[name="type"]').val(-1)
} else{
that.$c.find('[name="type"]').val(0)
}
})
}
Register.prototype.set_random = function(){
var that = this;
var random_name = 'yy' + Math.random().toString(36).substr(-2) + new Date().getTime().toString(36).substr(-4)
var random_passwd = Math.random().toString(36).substr(-6)
that.$c.find('[name="username"]').val(random_name)
that.$c.find('[name="old_usernmae"]').val(random_name)
that.$c.find('[name="password"]').val(random_passwd)
that.$c.find('[name="type"]').val(-1)
}
Register.prototype.cache = Login.prototype.cache;
Register.prototype.register_cb = function(result) {
Core.updateData(result.msg);
Core.first_user = this.$c.find('[name="username"]').val()
Core.first_password = this.$c.find('[name="password"]').val()
// 显示一个注册成功信息,并跳转到home
this.cache();
Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台');
Core.updateMod('home');
}
Register.prototype.show_after = function() {
this.set_random();
}
Core.registerMod('register', Register);
// Mibao模块
var Mibao = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Mibao, Module);
Mibao.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.mibao_cb, that);
return false;
});
}
Mibao.prototype.mibao_cb = function(data) {
var status_code = data.code;
var msg = data.msg;
if (0 == status_code) {
Core.Data.safe_question = msg.question;
Core.Data.safe_answer = msg.answer;
}
// 显示一个成功信息,并跳转到home
Core.showTips("成功设置密保!", true);
this.isValid = false;
Core.showMod('home');
}
Core.registerMod('mibao', Mibao);
// 找回密码模块
var Find_pwd = function(modId) {
Module.call(this, modId);
}
Core.inherit(Find_pwd, Module);
Find_pwd.prototype.bind = function() {
var that = this;
var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"];
var pwd_header_back = {
0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>',
1 : '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>'
};
var browser = {
versions: function() {
var u = navigator.userAgent,
app = navigator.appVersion;
return { //移动终端浏览器版本信息
trident: u.indexOf('Trident') > -1,
presto: u.indexOf('Presto') > -1,
webKit: u.indexOf('AppleWebKit') > -1,
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,
mobile: !!u.match(/AppleWebKit.*Mobile.*/),
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
iPhone: u.indexOf('iPhone') > -1,
iPad: u.indexOf('iPad') > -1,
webApp: u.indexOf('Safari') == -1
};
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
};
if (browser.versions.mobile) { //判断是否是移动设备打开
var ua = navigator.userAgent.toLowerCase();
if (browser.versions.ios) {
//是否在IOS浏览器打开
$("#js_kefu_qq").href = "mqq://im/chat?chat_type=wpa&uin=2739920773&version=1&src_type=web";
$("#js_player").href = "mqq://im/chat?chat_type=wpa&uin=167355030&version=1&src_type=web";
}
if (browser.versions.android) {
//是否在安卓浏览器打开
$("#js_kefu_qq").href = "mqqwpa://im/chat?chat_type=wpa&uin=2739920773";
$("#js_player").href = "mqqwpa://im/chat?chat_type=wpa&uin=167355030";
}
} else {
//否则就是PC浏览器打开
$("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes";
$("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes";
}
that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码
var $self = $(this)
phone = $("#js_findPSW_mobile").val();
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phone,
success:function(msg){
if(msg.length == 0){//为空(已经发送)
Core.showTips('验证码发送成功,请注意查收', true);
$self.addClass("disabled");
var counter = 60;
var timer = setInterval(function(){
if(counter > 0){
$self.text(counter + "秒再获取");
counter --;
}else{
clearInterval(timer);
$self.text("获取验证码");
$self.removeClass("disabled");
}
},1000);
}else{
Core.showTips(msg, true);
}
}
});
});
that.$c.on("click","#js_findPSW_confirm",function(){
var code = that.$c.find("#js_findPSW_ranks").val(),
accout = $("#js_findPSW_accout").val(),
phoneTest = $("#js_findPSW_mobile").val(),
//iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
iphoneReg = /^1(3|4|5|7|8)\d{9}$/;
if($.trim(accout) == ""){
Core.showTips('请输入账号!', false);
return false;
}
if($.trim(phoneTest) == ""){
Core.showTips('请输入手机号码!', false);
return false;
}
if(!iphoneReg.test(phoneTest)){
Core.showTips('请输入11位手机号码!', false);
return false;
}
if($.trim(code) == ""){
Core.showTips('请输入验证码!', true);
return false;
}
Core.ajax({
type:"post",
url:"/user/password_by_mobile?mobile="+phoneTest+"&username="+accout+"&vcode="+code,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
var message = JSON.parse(res.msg);
Core.showTips('验证成功!请设置新密码', true);
that.$c.find("input[name='pwd_code']").val(message.pwd_code);
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(3).removeClass("hide").siblings("div").addClass("hide");
that.$c.find("#js_UserName").text(message.username);
$("input[name='loginUserName']").val(message.username);
}else{
Core.showTips(res.msg, true);
}
}
});
});
that.$c.on("click","#returnhome",function(){
that.$c.find(".user-center span").html("找回密码");
});
that.$c.on("click","#js_confirm_resetnewpsw",function(){
var NewPsw = that.$c.find("#js_reset_newpsw").val(),
NewKey = that.$c.find("input[name='pwd_code']").val(),
account = $("input[name='loginUserName']").val();
var names = localStorage.getItem('user_names');
names = JSON.parse(names);
Core.ajax({
type:"post",
url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
Core.showTips('重置密码成功!', true);
$("input[name='loginPassword']").val(NewPsw);
names[account] = NewPsw;
localStorage.setItem('user_names',JSON.stringify(names));
Core.user_names = names;
$("#js_reset_newpsw").val("");
setTimeout(function() {
Core.updateMod('login');
}, 500);
}else{
Core.showTips(res.msg, true);
}
}
});
});
var checkbox = that.$c.find(".checkbox");
var checkbox_type = that.$c.find("i.icon-xuanzhong");
var checkboxInput = that.$c.find("input#js_reset_newpsw");
that.$c.on("click",checkbox,function(e){
if(checkbox.hasClass('checkbox-2')){
checkbox_type.parents(".checkbox").removeClass("checkbox-2");
checkbox_type.addClass("checkbx");
checkboxInput.attr("type","password");
}else{
checkbox_type.parents(".checkbox").addClass("checkbox-2");
checkbox_type.removeClass("checkbx");
checkboxInput.attr("type","text");
}
});
that.$c.on('click', '.pwd_box .step-tab li a', function(e) {
var ipar = $(this).parent("li"),
iIndex = ipar.index();
that.$c.find("#js_findPSW_ranks").val("");
$("#js_findPSW_accout").val("");
$("#js_findPSW_mobile").val("");
that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(iIndex).removeClass("hide").addClass("fn-icon-2").siblings("div").addClass("hide").removeClass("fn-icon-2");
that.$c.find(".user-center span").html(pwd_header[iIndex]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
});
that.$c.on('click', '.user-center a.back-btn', function(e) {
$(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show();
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[0]);
});
that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) {
$(this).parents(".step-box").hide().siblings(".step-tab").show();
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
});
that.$c.on('click', '.op-primary', function(e) {
var $form = that.$c.find('.fn-icon-2');
e.preventDefault();
console.log($form);
Core.ajax_do($form, that.findpwd_cb, that);
return false;
});
that.$c.on('click', '.step-tab .function-list-title', function(e) {
that.$c.find('.step-tab .function-list-content').hide();
$(e.target).parent().next().show();
that.$c.find('.step-tab .function-list-icon').removeClass('function-list-icon-2')
$(this).find('.function-list-icon').addClass('function-list-icon-2').addClass('function-list-icon-1')
if (!$(e.target).parent().next().is('.form')) {
that.$c.find('.next-btn').hide();
} else {
that.$c.find('.next-btn').show();
}
});
}
Find_pwd.prototype.findpwd_cb = function(data) {
var code = data.code;
var msg = data.msg;
if (0 != code) {
Core.showTips(msg, false);
return;
}
if (typeof msg == 'object') {
// 回答密保
Core.Data.ans_temp = msg;
Core.updateMod('answer_question');
Core.showTips('加载成功.', true,100);
} else {
// 通过邮箱
Core.showTips(msg, true);
Core.showMod("login");
}
}
Find_pwd.prototype.show_after = function() {
var that = this;
this.$c.find('input[name="username"]').val($('#login input[name="username"]').val());
this.$c.find('.sms').html(Core.Data.mobile_helper_number);
var kefu = Core.Data.kefu_info,
kefuInfo = JSON.stringify(kefu);
if(typeof(kefuInfo) !== "undefined"){
localStorage.setItem("kefuInfo",kefuInfo);
}else{
that.$c.find(".pwd_txt .default_text").css("display","block");
that.$c.find(".pwd_txt .get_text").html("").css("display","none");
}
var getItem = localStorage.getItem("kefuInfo"),
kefu_info = JSON.parse(getItem),
isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/,
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})$/;
if(kefu_info == ""){
that.$c.find(".pwd_txt .default_text").css("display","block");
that.$c.find(".pwd_txt .get_text").html("").css("display","none");
}else{
that.$c.find(".pwd_txt .default_text").css("display","none");
that.$c.find(".pwd_txt .get_text").html("").css("display","block");
for(var key in kefu_info){
var reg = /\d+/g,
str = kefu_info[key],
ms = str.match(reg),
result = ms.join("-");
if( isMob.test(result) || isPhone.test(result) ){
var hrefTel = '<a href="tel:'+result+'">'+result+'</a>',
stringTel = str.split(":")[0];
that.$c.find(".pwd_txt .get_text").append('<p>'+stringTel+':'+hrefTel+'</p>');
}else{
that.$c.find(".pwd_txt .get_text").append('<p>'+kefu_info[key]+'</p>');
}
}
}
}
Core.registerMod('find_pwd', Find_pwd);
// Mibao模块
var Bind = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Bind, Module);
Bind.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.bind_cb, that);
return false;
});
that.$c.on('click', '#bind-mobile', function(e) {
e.preventDefault();
that.$c.find('#bind_phone_form').show();
return false;
});
that.$c.on('click', '#bind-check', function(e) {
e.preventDefault();
Core.ajax_do($(e.target), that.bind_ch, that);
return false;
});
}
Bind.prototype.bind_ch = function(data) {
var code = data.code;
Core.Data.bind_statu = data.msg.bind_statu;
if (data.msg.bind_statu == 1) {
Core.showTips('电话绑定未成功', false);
}
Core.updateMod('bind');
}
Bind.prototype.bind_cb = function(data) {
var code = data.code;
if (code != 0)
return;
$(".bind_phone_tip").html(Core.Data.bind_mobile_tips);
Core.Data.bind_statu = 1;
Core.Data.bind_phone = this.$c.find('input[name=mobile]').val();
this.$c.find('span.text-info').html(this.$c.find('input[name=mobile]').val());
Core.showTips('通过电话确认后可绑定手机!', true);
this.$c.find('#bind_phone_form').hide();
this.isValid = false;
setTimeout(function() {
Core.updateMod('bind');
}, 1000);
}
Core.registerMod('bind', Bind);
//绑定手机模块
var BindMobile = function(modId){
Module.call(this, modId);
}
Core.inherit(BindMobile, Module);
BindMobile.prototype.bind = function(){
var that = this;
var SendMsg = {
mobileReg : function(iphone){
var iphoneReg = /^1(3|4|5|7|8)\d{9}$/,
phoneTest = $(iphone).val();
if($.trim(phoneTest) == ""){
Core.showTips('请输入手机号码!', false);
return false;
}
if(!iphoneReg.test(phoneTest)){
Core.showTips('请输入11位手机号码!', false);
return false;
}
},
send : function(element,iphone){
var self = this,
ele = that.$c;
ele.on("click",element,function(){
var phoneTest = $(iphone).val();
if(self.mobileReg(iphone) == false) return false;
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phoneTest,
success:function(msg){
if(msg.length == 0){//为空(已经发送)
Core.showTips('验证码发送成功,请注意查收', true);
$(element).addClass("disabled");
var counter = 60;
var timer = setInterval(function(){
if(counter > 0){
$(element).text(counter + "秒再获取");
counter --;
}else{
clearInterval(timer);
$(element).text("获取验证码");
$(element).removeClass("disabled");
}
},1000);
}else{
Core.showTips(msg, true);
}
}
});
});
},
bind : function(element,iphone,rank){
var self = this,
ele = that.$c;
ele.on("click",element,function(){
var code = $(rank).val(),
phoneTest = $(iphone).val();
if(self.mobileReg(iphone) == false) return false;
if($.trim(code) == ""){
Core.showTips('请输入验证码!', true);
return false;
}
Core.ajax({
type:"post",
url:"/user/bind_mobile?mobile="+phoneTest+"&vcode="+code,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
Core.showTips('绑定成功!', true);
Core.Data.bind_phone = phoneTest;
setTimeout(function() {
Core.updateMod('home');
}, 500);
}else{
Core.showTips(res.msg, true);
}
}
});
});
}
};
SendMsg.send("#js_getcode","#js_iphone");
SendMsg.bind("#js_conform","#js_iphone","#js_ranks");
}
BindMobile.prototype.show_after = function(){
}
Core.registerMod('bindMobile', BindMobile);
//解绑手机模块
var UnBindMobile = function(modId){
Module.call(this, modId);
}
Core.inherit(UnBindMobile, Module);
UnBindMobile.prototype.bind = function(){
var that = this;
that.$c.on("click","#js_unbind_getcode",function(){
var $self = $(this),
phone = Core.Data.bind_phone;
Core.ajax({
type:"post",
url:"/sms_validate_code/?mobile="+phone,
success:function(msg){
if(msg.length == 0){//为空(已经发送)
Core.showTips('验证码发送成功,请注意查收', true);
$self.addClass("disabled");
var counter = 60;
var timer = setInterval(function(){
if(counter > 0){
$self.text(counter + "秒再获取");
counter --;
}else{
clearInterval(timer);
$self.text("获取验证码");
$self.removeClass("disabled");
}
},1000);
}else{
Core.showTips(msg, true);
}
}
});
});
that.$c.on("click","#js_unbind",function(){
var code = $("#js_unbind_ranks").val(),
phoneTest = Core.Data.bind_phone;
if($.trim(code) == ""){
Core.showTips('请输入验证码!', true);
return false;
}
Core.ajax({
type:"post",
url:"/user/unbind_mobile?mobile="+phoneTest+"&vcode="+code,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
Core.showTips('解绑成功!', true);
Core.Data.bind_phone = "";
$("#js_iphone").val("");
$("#js_ranks").val("");
setTimeout(function() {
Core.updateMod('home');
}, 500);
}else{
Core.showTips(res.msg, true);
}
}
});
});
}
UnBindMobile.prototype.show_after = function(){
var phoneMobile = Core.Data.bind_phone,
getBefore = phoneMobile.substring(0,3),
getAfter = phoneMobile.substring(8,11),
phoneHtml = getBefore+"****"+getAfter;
this.$c.find(".phoneMobile").html(phoneHtml);
}
Core.registerMod('unbindMobile', UnBindMobile);
//实名认证
var IdentityCard = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(IdentityCard, Module);
IdentityCard.prototype.bind = function() {
var that = this;
this.$c.on('click', '.submit', function() {
var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证
compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名
compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字
if($.trim(identityCard) == ""){
Core.showTips("请输入身份证号码",false);
return false;
}else if(IsIdCard(identityCard) == false){
Core.showTips("请输入正确的身份证信息",false);
return false;
}else if($.trim(compellationName) == ""){
Core.showTips("请输入姓名",false);
return false;
}else if(!compellationNameReg.test(compellationName)){
Core.showTips("请输入正确的中文姓名",false);
return false;
}
Core.ajax({
type:"post",
url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
Core.showTips('认证成功!', true);
Core.Data.compellation_name = compellationName;
Core.Data.identity_card = identityCard;
setTimeout(function() {
Core.updateMod('home');
}, 500);
}else{
Core.showTips(res.msg, true);
}
}
});
});
}
IdentityCard.prototype.show_after = function(){
}
Core.registerMod('identityCard', IdentityCard);
//已认证
var IdentityCardOk = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(IdentityCardOk, Module);
IdentityCardOk.prototype.show_after = function(){
var compellation_name = Core.Data.compellation_name,//姓名
identity_card = Core.Data.identity_card;//身份证
if(compellation_name.length == 2){
var getBefore = compellation_name.substring(0,1),
nameHtml = getBefore+"*";
}else if(compellation_name.length == 3){
var getBefore = compellation_name.substring(0,1),
nameHtml = getBefore+"**";
}else if(compellation_name.length == 4){
var getBefore = compellation_name.substring(0,2),
nameHtml = getBefore+"**";
}else if(compellation_name.length > 4){
var getBefore = compellation_name.substring(0,2),
starNum = compellation_name.length,
star = "";
for(var i = 0;i<starNum - 2;i++){
star += "*";
}
nameHtml = getBefore+star;
};
if(identity_card.length == 15){
var getBefore = identity_card.substring(0,1),
getAfter = identity_card.substring(14,15),
cardHtml = getBefore+"*************"+getAfter;
}else if(identity_card.length == 18){
var getBefore = identity_card.substring(0,1),
getAfter = identity_card.substring(17,18),
cardHtml = getBefore+"****************"+getAfter;
};
this.$c.find(".compellation_name").html(nameHtml);
this.$c.find(".identity_card").html(cardHtml);
};
Core.registerMod('identityCard_ok', IdentityCardOk);
// Mail模块
var Mail = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Mail, Module);
Mail.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
return false;
});
that.$c.on('click', '#change-mail-btn', function(e) {
e.preventDefault();
that.$c.find('#bind_mail_form').show();
that.$c.find('#bind-mail-btn').show();
$(this).hide()
return false;
});
that.$c.on('click', '.op-primary', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.mail_cb, that);
return false;
});
}
Mail.prototype.mail_cb = function(data) {
var code = data.code;
Core.Data.bind_mail_statu = 1;
Core.Data.mail = this.$c.find('input[name=email]').val();
this.$c.find('span.text-info').html(this.$c.find('input[name=email]').val());
Core.showTips('请登录您的邮箱,完成邮箱认证功能。', true);
this.$c.find('#bind_mail_form').hide();
this.isValid = false;
setTimeout(function() {
Core.updateMod('mail');
}, 1000);
}
Core.registerMod('mail', Mail);
// 重置密码模块
var Reset_pwd = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Reset_pwd, Module);
Reset_pwd.prototype.bind = function() {
this.$c.on('click', '.op-primary', function() {
Core.updateMod("modify_pwd");
});
}
Core.registerMod('reset_pwd', Reset_pwd);
// 回答密保模块
var Answer_question = function(modId) {
Module.call(this, modId);
}
Core.inherit(Answer_question, Module);
Answer_question.prototype.bind = function() {
var that = this;
that.$c.on('click', '.op-primary', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.aq_cb, that);
return false;
});
}
Answer_question.prototype.aq_cb = function(data) {
console.log(data);
var code = data.code;
var msg = data.msg;
var name = localStorage.getItem('user_names');
Core.updateData(msg);
Core.Data.new_pwd = msg.password;
name = JSON.parse(name);
if(name == null){
name = null;
}else{
name[msg.nickname] = msg.password;
}
localStorage.setItem('user_names',JSON.stringify(name));
Core.user_names = name;
// 强制更新显示重置密码模块
Core.updateMod('reset_pwd');
Core.showTips('重置成功.',true,1000);
localStorage.setItem('old_pwd',Core.Data.new_pwd);
}
Core.registerMod('answer_question', Answer_question);
var Modify_pwd = function(modId) {
Module.call(this, modId);
}
Core.inherit(Modify_pwd, Module);
Modify_pwd.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){
Core.showTips("密码不能有大写字母!");
}else{
Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
}
return false;
});
that.$c.on('click', '.op-logout', function(e) {
e.preventDefault();
// Core.ajax_do(that.$c.find('.op-logout'), that.logout_cb,
// that);
that.logout_cb();
return false;
});
}
Modify_pwd.prototype.logout_cb = Home.prototype.logout_cb;
Modify_pwd.prototype.modify_cb = function(data) {
var status_code = data.code;
var msg = data.msg,
name = this.$c.find('input[name=username]').val(),
password = this.$c.find('input[name=newpwd]').val(),
name_ary,index_ary;
var _d = localStorage.getItem('user_names'),
_i = localStorage.getItem('user_indexs');
if (_d) {
name_ary = JSON.parse(_d);
}
if (_i) {
index_ary = JSON.parse(_i);
}
if (status_code == 0) {
if(Core.Data.is_guest == 1){
//游客帐号转正
localStorage.removeItem('guest_n');
Core.showTips('升级账号成功!请妥善保管正式账号!', true);
delete name_ary[Core.Data.nickname];
localStorage.setItem('user_names', JSON.stringify(name_ary));
}else{
Core.showTips('成功修改密码, 请记住新密码。', true);
name_ary[msg.username] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
}
var getAcc = Core.Data.nickname;//升级前账号
var getIndex = $.inArray(getAcc,index_ary);
if(index_ary == null){
index_ary = [];
index_ary.unshift(name);
localStorage.setItem('user_indexs', JSON.stringify(index_ary));
}else{
if(getIndex == -1){
index_ary.unshift(name);
localStorage.setItem('user_indexs', JSON.stringify(index_ary));
}else{
index_ary.splice(getIndex,1);
index_ary.unshift(msg.username);
localStorage.setItem('user_indexs', JSON.stringify(index_ary));
}
}
if (name_ary == null) {
name_ary = {};
name_ary[name] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
} else {
if (!(name in name_ary)) {
name_ary[name] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
} else {
name_ary[msg.username] = password;
localStorage.setItem('user_names', JSON.stringify(name_ary));
}
}
Core.user_names = name_ary;
Core.user_indexs = index_ary;
Core.Data.is_guest = msg.is_guest;
Core.Data.username = msg.username;
Core.Data.nickname = msg.nickname;
$("input[name='loginUserName']").val(Core.Data.username);
$("input[name='loginPassword']").val(Core.user_names[Core.Data.username]);
// 强制更新显示home模块,模块自刷新
this.isValid = false;
Core.updateMod('home');
} else {
Core.showTips(msg, false);
}
}
Core.registerMod('modify_pwd', Modify_pwd);
var Frame = function(modId) {
Module.call(this, modId);
}
Core.inherit(Frame, Module);
Frame.prototype.bind = function() {
var that = this;
that.$c.on('click', '.scroll-btn', function(e) {
e.preventDefault();
e.stopPropagation();
var $frame = that.$c.find('iframe');
var h1 = $frame.height();
var h2 = that.$c.find('.ios_scroll').height();
var top = parseInt($frame.css('margin-top'));
if ($(e.currentTarget).hasClass('scroll-up')) {
if (Math.abs(top) + 20 > (h1 - h2)) return;
$frame.css('margin-top', top - 50);
} else {
if (top >= 0) return;
$frame.css('margin-top', top + 50);
}
});
}
Frame.prototype.show_after = function() {
var that = this;
var _des = Core.last_mod ? Core.last_mod : 'home';
var $frame = that.$c.find('iframe');
var $div = that.$c.find('.ios_scroll');
var isFix = that.$c.is('.fix, .nofix');
this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
$frame[0].onload = function() {
that.$c.find('#loading_frame').hide();
if (Core.isAndroid && !isFix) {
var h1 = $frame.height();
var h2 = $div.height();
if (h1 > h2) {
//android 低版本浏览器,需要提供手动滚动iframe
that.$c.addClass('fix');
} else {
that.$c.addClass('nofix');
}
}
}
}
Core.registerMod('frame', Frame);
/**
* 公告活动记录模块
*/
var Activity = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Activity, Module);
Activity.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'activity_detail')
return;
var $e = $(e.target);
if (!$e.is('a'))
$e = $e.parent();
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.Data.activity_update = false;
Core.showMod('activity_detail');
return false;
}
that.cur_id = id;
Core.Data.activity_update = true;
Core.showTips('加载中...', true, 2000);
$e.data('path', '/sdk/notice/view/?id=' + id);
Core.load_json($e, function(data) {
Core.Data.activity_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('activity_detail');
}, that);
// $.getJSON('/sdk/notice/view/?id=' + id, function(data) {
// Core.Data.activity_detail = data;
// Core.showTips('加载完成!', true, 2000);
// Core.updateMod('activity_detail');
// });
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Activity.prototype.refresh = function() {
this.myScroll.refresh();
}
Activity.prototype.show_after = function() {
if (this.$c.find('.activity-list').children().length == 0) {
Core.load_html(this.$c.find('.activity-list'),
this.act_cb, this);
}
var $badge = this.$c.find('.badge');
if ($badge.length == 0) {
if (Core.Data.msg_count > 0) {
var $btn = this.$c.find('.badge_msg');
$btn.html('<span class="badge">' + Core.Data.msg_count + '</span>' + $btn.html());
}
}
}
Activity.prototype.act_cb = function(data) {
this.myScroll = new iScroll('activity_wrapper');
}
Core.registerMod('activity', Activity);
/**
* 公告活动详细模块
*/
var Activity_detail = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Activity_detail, Module);
Activity_detail.prototype.bind = function() {
var that = this;
}
Activity_detail.prototype.show_after = function() {
var that = this;
if (Core.Data.activity_update) {
console.log('new scroller');
this.myScroll = new iScroll('detail_scroller');
that.myScroll.refresh();
this.$c.find('.scroll img').on('load', function(e) {
console.log('img loaded in scroll');
that.myScroll.refresh();
});
}
}
Core.registerMod('activity_detail', Activity_detail);
/**
* 消息列表模块
*/
var Message = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Message, Module);
Message.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'message_detail')
return;
var $e = $(e.currentTarget);
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.showMod('message_detail');
return false;
}
that.cur_id = id;
$e.data('path', '/message/' + id + '.html?format=json');
Core.load_json($e, function(data) {
Core.Data.message_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('message_detail');
}, that);
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Message.prototype.refresh = function() {
this.myScroll.refresh();
}
Message.prototype.show_after = function() {
if (this.$c.find('.message-list').children().length == 0) {
Core.load_html(this.$c.find('.message-list'), this.act_cb,
this);
}
}
Message.prototype.act_cb = function(data) {
this.myScroll = new iScroll('message_wrapper');
}
Core.registerMod('message', Message);
/**
* 消息内容详细模块
*/
var Message_detail = function(modId) {
Module.call(this, modId);
}
Core.inherit(Message_detail, Module);
Core.registerMod('message_detail', Message_detail);
function login_init() {
var names = localStorage.getItem("user_names"),
userIndexs = localStorage.getItem("user_indexs");
names = JSON.parse(names);
if (names == null){
names = null
}
else {
delete names["undefined"];
var user_indexs = [];
for (var item in names){//遍历对象,排序
if($.inArray(item,user_indexs) == -1){
user_indexs.unshift(item);
}
}
userIndexs = user_indexs;
localStorage.setItem('user_indexs', JSON.stringify(userIndexs));
}
if ($.isArray(names)) {
//旧版本,直接清除
var i, l, _names = {};
for (i = 0, l = names.length; i < l; i++) {
_names[names[i]] = '';
}
names = _names
localStorage.setItem('user_names', JSON.stringify(names));
}
Core.user_names = names;
Core.user_indexs = userIndexs;
if (names) {
for (var item in names) {
Core.first_user = item;
Core.first_password = names[item];
break;
}
}
$("input#js_login_username").val(Core.first_user);
$("input#js_login_password").val(Core.first_password);
}
login_init();
if (window.isGetData == 1) {
// 兼容旧版本sdk
$('#loading').hide();
Core.init();
} else {
window.isGetData = 1;
}
}
})();
$(document).on("click", ".mask", function(){
$("input[type=password]").bind('cut copy paste', function(e){
return false;
});
});
\ No newline at end of file
(function() {
localStorage.setItem('auto', false);
// 加载页面内容到body下
init_data();
function init_data(response) {
// 注册页面所有模块
if (response) {
$(response).appendTo($('body .mask'));
}
/**
* 首页模块
*/
var Home = function(modId) {
Module.call(this, modId);
}
Core.inherit(Home, Module);
Home.prototype.bind = function() {
$('#loading').click(function(){$(this).hide()})
var that = this;
that.$c.on('click', 'input[type=button]', function(e) {
// 更新要兑换的元宝
e.preventDefault();
Core.Data.current_pay_channel = null;
Core.Data.game_amount = parseInt($(e.target).attr('data'));
var youai_star_need = Core.Data.game_amount / Core.Data.exchange_rate;
if (Core.Data.total_amount >= youai_star_need) {
// 用户游爱星足够兑换,进入兑换模块
Core.Data.youai_star = youai_star_need;
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
Core.updateMod('exchange');
} else {
// 用户游爱星不足够兑换,进入充值渠道列表
Core.Data.money = youai_star_need / Core.Data.rate;
Core.Data.youai_star = youai_star_need;
Core.updateMod('channel_list');
}
return false;
});
}
Home.prototype.show_after = function(){
setTimeout(function(){
$('#back-btn').show();
},3000)
}
Core.registerMod('home', Home);
/**
* 兑换和发起代付的回调方法
*/
var payconfirm_cb = function(data) {
var code = data.code;
var msg = data.msg;
if ('object' != typeof (msg)) {
Core.showTips(msg, false);
return;
}
var $cur_mod = $('#' + Core.cur_mod);
var ele_pay_user = $cur_mod.find('input[name="pay_user"]');
if (ele_pay_user.length == 0) {
tpl = '成功使用<span class="text-info">{{=it.youai_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}},{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.';
} else {
tpl = '已向<span class="text-info">'
+ ele_pay_user.val()
+ '</span>发送代付<span class="text-info">{{=it.youai_star}}</span>个游爱星兑换<span class="text-info">{{=it.game_amount}}</span>{{=it.game_unit}}{{=it.game_unit_name}}.';
}
var doTpl = doT.template(tpl);
var success_msg = doTpl({
"youai_star" : msg.youai_star,
"amount" : msg.amount,
"game_unit_name" : Core.Data.game_unit_name,
"game_amount" : msg.game_amount,
"game_unit" : Core.Data.game_unit
});
Core.Data.success_msg = success_msg;
Core.Data.trade_id = msg.trade_id;
Core.showTips('成功提交!', true, 2000);
Core.updateMod('pay_result');
}
/**
* 兑换模块
*/
var Exchange = function(modId) {
Module.call(this, modId);
}
Core.inherit(Exchange, Module);
Exchange.prototype.bind = function() {
var that = this;
that.$c.on('click', 'input[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that);
return false;
});
// that.$c.on('click', '#change_vc1', function(e) {
// e.preventDefault();
// var num = new Date().getTime();
// var rand = Math.round(Math.random() * 10000);
// num = num + rand;
// if ($("#vdimgck1")[0]) {
// $("#vdimgck1")[0].src = "/validate_code/?tag=" + num;
// }
// return false;
// });
}
Core.registerMod('exchange', Exchange);
/**
* 发起代付模块
*/
var Pay_for = function(modId) {
Module.call(this, modId);
}
Core.inherit(Pay_for, Module);
Pay_for.prototype.bind = function() {
var that = this;
that.$c.on('click', 'input[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), payconfirm_cb, that);
return false;
});
}
Core.registerMod('pay_for', Pay_for);
/**
* 显示结果模块
*/
var Pay_result = function(modId) {
Module.call(this, modId);
}
Core.inherit(Pay_result, Module);
Core.registerMod('pay_result', Pay_result);
/**
* 充值方式列表模块
*/
var Channel_list = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Channel_list, Module);
Channel_list.prototype.bind = function() {
var that = this;
that.$c.on('click', '.channel_list a.channel', function(e) {
e.preventDefault();
var reload = false;
var list = Core.Data.game_pay_channel_list;
var $c = $(e.target);
var id = $(this).attr('data-id');
for ( var index in list) {
var item = list[index];
if (id == item.id) {
if (Core.Data.current_pay_channel != item) {
reload = true;
}
Core.Data.current_pay_channel = item;
// Core.Data.game_amount =
// null;
break;
}
}
if (reload) {
Core.updateMod('pay');
} else {
Core.showMod('pay');
}
return false;
});
}
Channel_list.prototype.refresh = function() {
this.myScroll.refresh();
}
Channel_list.prototype.show_after = function() {
Core.auto_click = true
if (!this.myScroll){
this.myScroll = new iScroll('channel_list_wrapper');
}
Core.Data.frame_src = ''
}
Core.registerMod('channel_list', Channel_list);
/**
* 充值模块
*/
var Pay = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Pay, Module);
Pay.prototype.bind = function() {
var that = this;
that.$c.on('click', 'input[type=submit]', function(e) {
e.preventDefault();
var isText = that.$c.find('.require_input input[type=text]').length > 0;
if (isText && that.check()) {
Core.ajax_do(that.$c.find('.ajax'),
that.paycomfirm_cb, that);
} else if (!isText) {
Core.ajax_do(that.$c.find('.ajax'),
that.paycomfirm_cb, that);
}
return false;
});
that.$c.on('change', '.card_amount', function(e){
var value = parseInt($(e.target).val());
if(value > Core.Data.money){
//显示出余额提示
var m = value - Core.Data.money;
that.$c.find('.select-info').html('注:充值剩余的' + m + '元将保存为账户的游爱星.');
}
});
}
Pay.prototype.show_after = function(){
var that = this;
if (Core.auto_click){
that.$c.find("input[type='submit'].zhifubaoBtn").click();
Core.auto_click = false
}
$('#alert').hide();
if (!this.myScroll){
this.myScroll = new iScroll('pay_panel_wrapper');
}
}
Pay.prototype.check = function() {
var check = true, that = this;
that.$c.find(".require_input input").each(
function() {
var value = $(this).val();
if ('' == value) {
Core.showTips("请输入" + $(this).attr('title'), false,
2000);
check = false;
return false;
} else {
var format = $(this).attr('format');
if (format) {
var re = RegExp(format, 'g')
if ('' != value.replace(re, "")) {
Core.showTips($(this).attr('title')
+ "输入格式不正确"
+ $(this).attr('placeholder'),
false, 2000);
check = false;
return false;
}
}
}
});
if (!check)
return false;
var money = $(".require_input .card_amount").val();
money = parseFloat(money);
if (money == null || money == NaN || isNaN(money)) {
Core.showTips("请选择金额", false, 2000);
return false;
}
Core.Data.post_data = {};
that.$c
.find(
"input[type='hidden'],input[type='text'],input[type='password'],select")
.each(function() {
var name = $(this).attr('name');
var value = $(this).val();
Core.Data.post_data[name] = value;
});
// 更新当前金钱状态
Core.Data.money = money;
$("#pay_form input[name=money]").val(money);
console.log(Core.Data.post_data);
return true;
}
Pay.prototype.refresh = function() {
this.myScroll.refresh();
}
Pay.prototype.paycomfirm_cb = function(data) {
var code = data.code;
var msg = data.msg;
if ('object' != typeof (msg)) {
Core.showTips(msg, false);
return;
}
var pay_param = msg.pay_param;
if (pay_param) {
if (pay_param.next_url && pay_param.next_url != "") {
Core.showTips('正在跳转请稍等...', true, 1000);
Core.Data.frame_title = "充值";
Core.Data.frame_src = pay_param.next_url;
Core.updateMod('frame');
return;
} else if (pay_param.action_url && pay_param.action_url != "") {
var action_url = pay_param.action_url;
var method = pay_param.method;
var params = "";
if (action_url.indexOf("?") != -1) {
params = action_url.split("?")[1];
action_url = action_url.split("?")[0];
}
var go_form = $("<form></form>");
if (!method)
method = 'get';
go_form.attr("method", method);
go_form.attr("action", action_url);
params = params.split("&");
for ( var i in params) {
var item = params[i]
go_form.append('<input type="hidden" name="'
+ item.split("=")[0] + '" value="'
+ unescape(item.split("=")[1]) + '"/>');
}
Core.showTips('<h3>正在跳转请稍等...</h3>');
go_form.submit();
return;
}
}
var pay_channel_name = '', tpl = "";
if (Core.Data.current_pay_channel) {
tpl = Core.Data.current_pay_channel.success_msg;
pay_channel_name = Core.Data.current_pay_channel.name
} else {
var ele_pay_user = $('input[name="pay_user"]');
if (ele_pay_user.length == 0) {
tpl = '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.';
} else {
tpl = '已向'
+ ele_pay_user.val()
+ '发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.';
}
}
var doTpl = doT.template(tpl);
var success_msg = doTpl({
"pay_channel_name" : pay_channel_name,
"youai_star" : msg.youai_star,
"amount" : msg.amount,
"game_unit_name" : Core.Data.game_unit_name,
"game_amount" : msg.game_amount,
"game_unit" : Core.Data.game_unit
});
Core.Data.success_msg = success_msg;
Core.Data.trade_id = msg.trade_id;
Core.showTips('成功提交!', true, 2000);
Core.updateMod('pay_result');
}
Core.registerMod('pay', Pay);
// /**
// * 确认付款(提交表单)模块
// */
// var Pay_confirm = function(modId){
// Module.call(this, modId);
// }
// Core.inherit(Pay_confirm, Module);
// Pay_confirm.prototype.bind = function(){
// var that = this;
// that.$c.on('click', '[type=submit]', function(e) {
// e.preventDefault();
// Core.ajax_do(that.$c.find('.ajax'),
// that.paycomfirm_cb, that);
// return false;
// });
// that.$c.on('click', '#change_vc', function(e){
// e.preventDefault();
// var num = new Date().getTime();
// var rand = Math.round(Math.random() * 10000);
// num = num + rand;
// if ($("#vdimgck")[0]) {
// $("#vdimgck")[0].src = "/validate_code/?tag=" + num;
// }
// return false;
// });
// that.$c.on('click', '.checkbox', function(e){
// var chked = e.target.checked;
// var proxy_pay = that.$c.find("div.proxy_pay");
// var txt_pay_user =
// that.$c.find("input[data-key='pay_user']");
// if (chked){
// txt_pay_user.attr('name', 'pay_user');
// txt_pay_user.attr('required', 'required');
// proxy_pay.show();
// }else{
// txt_pay_user.removeAttr('name');
// txt_pay_user.removeAttr('required');
// proxy_pay.hide();
// }
// });
// }
//
// Pay_confirm.prototype.paycomfirm_cb = function(data){
// var code = data.code;
// var msg = data.msg;
// if ('object' != typeof(msg)){
// Core.showTips(msg, false);
// return;
// }
//
// var pay_param = msg.pay_param;
// if (pay_param){
// if (pay_param.next_url && pay_param.next_url!=""){
// Core.showTips('<h3>正在跳转请稍等...</h3>');
// document.location = pay_param.next_url;
// return;
// }else if(pay_param.action_url &&
// pay_param.action_url!=""){
// var action_url = pay_param.action_url;
// var method = pay_param.method;
// var params = "";
// if(action_url.indexOf("?")!=-1){
// params = action_url.split("?")[1];
// action_url = action_url.split("?")[0];
// }
// var go_form = $("<form></form>");
// if (!method)
// method = 'get';
//
// go_form.attr("method", method);
// go_form.attr("action", action_url);
// params = params.split("&");
// for(var item in params){
// go_form.appendChild('<input type="hidden"
// name="'+item.split("=")[0]+'"
// value="'+escape(item.split("=")[1])+'"/>');
// }
//
// Core.showTips('<h3>正在跳转请稍等...</h3>');
// go_form.submit();
// return;
// }
// }
// var pay_channel_name = '', tpl = "";
// if (Core.Data.current_pay_channel){
// tpl = Core.Data.current_pay_channel.success_msg;
// pay_channel_name = current_pay_channel.name
// }else{
// var ele_pay_user = $('input[name="pay_user"]');
// if(ele_pay_user.length == 0){
// tpl =
// '使用{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}成功,{{=it.game_unit_name}}将会很快充入您的账户,请留意游戏提示.';
// }else{
// tpl =
// '已向'+ele_pay_user.val()+'发送代付{{=it.youai_star}}颗游爱星兑换{{=it.game_unit_name}}{{=it.game_amount}}{{=it.game_unit}}.';
// }
// }
// var doTpl = doT.template(tpl);
// var success_msg =
// doTpl({"pay_channel_name":pay_channel_name,
// "youai_star":msg.youai_star, "amount":msg.amount,
// "game_unit_name":Core.Data.game_unit_name,
// "game_amount":msg.game_amount,
// "game_unit":Core.Data.game_unit});
// Core.Data.success_msg = success_msg;
// Core.Data.trade_id = msg.trade_id;
// Core.showTips('成功提交!', true, 2000);
// Core.updateMod('pay_result');
// }
// Core.registerMod('pay_confirm', Pay_confirm);
/**
* 代付操作模块
*/
var Pay_proxy = function(modId) {
Module.call(this, modId);
}
Core.inherit(Pay_proxy, Module);
Pay_proxy.prototype.bind = function() {
var that = this;
that.$c.on('click', '.btn-payfor', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('form.ajax'), that.payproxy_cb,
that);
return false;
});
that.$c.on('click', '.btn-undo', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('a.ajax'), that.payproxy_cb,
that);
return false;
});
}
Pay_proxy.prototype.payproxy_cb = function(data) {
var code = data.code;
var msg = data.msg;
Core.showTips(msg, true, 3000);
if (code == 0) {
// 操作导致代付列表发生变化,需要更新列表
$('#proxy_scroller .trade-list').empty();
setTimeout(function() {
Core.showMod('proxy_record');
}, 2000);
}
}
Core.registerMod('pay_proxy', Pay_proxy);
var Pay_feedback = function(modId){
Module.call(this, modId);
}
Core.inherit(Pay_feedback, Module);
Pay_feedback.prototype.bind = function(){
var that = this;
that.$c.on('click', '.submit', function(e){
e.preventDefault();
if (that.$c.find('textarea').val().length > 150) {
Core.showTips('问题描述超出了150个字符!', false);
return false;
}
Core.ajax_do(that.$c.find('.ajax'), that.sq_cb, that);
return false;
})
}
Pay_feedback.prototype.sq_cb = function(data) {
Core.showTips(data.msg, true, 2000);
this.isValid = false;
this.$c.find('textarea').val('');
Core.showMod('pay');
}
Core.registerMod('pay_feedback', Pay_feedback);
/**
* 兑换记录模块
*/
var Trade_record = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Trade_record, Module);
Trade_record.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Trade_record.prototype.refresh = function() {
this.myScroll.refresh();
}
Trade_record.prototype.show_after = function() {
if (this.$c.find('.trade-list').children().length == 0) {
Core.load_html(this.$c.find('.trade-list'), this.tr_cb,
this);
}
var _des = Core.last_mod ? Core.last_mod : 'home';
this.$c.find('a.btn.pull-left').attr('href', '#'+_des);
}
Trade_record.prototype.tr_cb = function(data) {
if (!this.myScroll){
this.myScroll = new iScroll('wrapper');
}
}
Core.registerMod('trade_record', Trade_record);
/**
* 代付记录模块
*/
var Proxy_record = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Proxy_record, Module);
Proxy_record.prototype.bind = function() {
var that = this;
that.$c.on('click', '.op-payfor', function(e) {
e.preventDefault();
var $e = $(e.target);
var id = $e.attr('data-id');
$e.data('path', '/pay/proxy/pay/?id=' + id + '&format=json');
Core.load_json($e, function(data){
Core.Data.temp = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('pay_proxy');
}, that);
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Proxy_record.prototype.refresh = function() {
this.myScroll.refresh();
}
Proxy_record.prototype.show_after = function() {
if (this.$c.find('.trade-list').children().length == 0) {
Core.load_html(this.$c.find('.trade-list'), this.pr_cb,
this);
}
if(Core.last_mod == 'pay_proxy') return;
var _des = Core.last_mod ? Core.last_mod : 'home';
this.$c.find('a.btn.pull-left').attr('href', '#'+_des);
}
Proxy_record.prototype.pr_cb = function(data) {
if (!this.myScroll){
this.myScroll = new iScroll('proxy_wrapper');
}
}
Core.registerMod('proxy_record', Proxy_record);
/**
* 邀请好友模块
*/
var Invite_friend = function(modId) {
Module.call(this, modId);
}
Core.inherit(Invite_friend, Module);
Invite_friend.prototype.bind = function() {
var that = this;
that.$c.on('click', '#share a', function(e){
e.preventDefault();
var $e = $(e.target);
var params = [];
var head = $e.attr('title');
var url = $e.attr('href');
var pic = Core.Data.game_icon;
var targetUrl = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html';
var title = 'title=' + encodeURIComponent('我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!');
targetUrl = 'url=' + encodeURIComponent(targetUrl);
if($e.hasClass('s_tqq')){
params.push('c=share');
params.push('a=index');
}
if($e.hasClass('s_qzone')){
pic = 'pics=' + encodeURIComponent(pic);
} else {
pic = 'pic=' + encodeURIComponent(pic);
}
params.push(pic);
params.push(targetUrl);
params.push(title);
var appkey = $e.attr('data-appkey');
if(appkey){
appkey = 'appkey=' + appkey;
params.push(appkey);
}
url = url + '?' + params.join('&');
Core.Data.frame_title = head + '分享';
Core.Data.frame_src = url;
Core.updateMod('frame');
});
}
Invite_friend.prototype.if_cb = function(data) {
Core.showTips(data.msg, data.code == 0 ? true : false);
this.$c.find('input[type=email]').val('');
}
Invite_friend.prototype.show_after = function(){
var that = this;
if(Core.isWeixin){
that.$c.find('#share_weixin').show();
that.$c.find('#share').hide();
}else{
that.$c.find('#share_weixin').hide();
that.$c.find('#share').show();
}
}
Core.registerMod('invite_friend', Invite_friend);
/**
* 其他充值方式模块
*/
var Other = function(modId) {
this.myScroll = null;
Module.call(this, modId);
}
Core.inherit(Other, Module);
Other.prototype.bind = function() {
var that = this;
that.$c.on('click', 'ol.other-pay li a', function(e) {
e.preventDefault();
var $e = $(e.target);
while (!$e.is('a'))
$e = $e.parent();
var href = $e.attr('href');
window.open(href);
});
}
Core.registerMod('other', Other);
var Frame = function(modId) {
Module.call(this, modId);
}
Core.inherit(Frame, Module);
Frame.prototype.bind = function(){
var that = this;
that.$c.on('click', '.scroll-btn', function(e){
e.preventDefault();
e.stopPropagation();
var $frame = that.$c.find('iframe');
var h1 = $frame.height();
var h2 = that.$c.find('.ios_scroll').height();
var top = parseInt($frame.css('margin-top'));
if($(e.currentTarget).hasClass('scroll-down')){
if(Math.abs(top) + 20>(h1-h2)) return;
$frame.css('margin-top', top-50);
} else {
if(top>=0) return;
$frame.css('margin-top', top+50);
}
});
}
Frame.prototype.show_after = function() {
var that = this;
var _des = Core.last_mod ? Core.last_mod : 'home';
var $frame = that.$c.find('iframe');
var $div = that.$c.find('.ios_scroll');
var isFix = false;
this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
var i = 0;
$frame[0].onload = function() {
that.$c.find('#loading_frame').hide();
$('#alert').hide();
if(Core.isAndroid && !isFix){
var h1 = $frame.height();
var h2 = $div.height();
if(h1>h2){
//android 低版本浏览器,需要提供手动滚动iframe
that.$c.addClass('fix');
isFix = true;
} else {
that.$c.addClass('nofix');
}
}
}
}
Core.registerMod('frame', Frame);
/**
* 客服问题列表模块
*/
var Kefu_list = function(modId) {
this.myScroll = null;
this.cur_id = null;
Module.call(this, modId);
}
Core.inherit(Kefu_list, Module);
Kefu_list.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li>a.item', function(e) {
e.preventDefault();
e.stopPropagation();
/*
* @todo-list bug fixed in android,the click event fired twice!
*/
if (Core.cur_mod == 'question_detail')
return;
var $e = $(e.target);
while (!$e.is('a'))
$e = $e.parent();
var id = $e.attr('data-id');
if (id == that.cur_id) {
Core.Data.question_update = false;
Core.showMod('question_detail');
return false;
}
that.cur_id = id;
Core.Data.question_update = true;
$e.data('path', '/user/question/view?id=' + id + '&format=json');
Core.load_json($e, function(data){
Core.Data.question_detail = data;
Core.showTips('加载完成!', true, 2000);
Core.updateMod('question_detail');
}, that);
// Core.showTips('加载中...', true, 5000);
// $.getJSON('/user/question/view?id=' + id + '&format=json',
// function(data) {
// Core.Data.question_detail = data;
// Core.showTips('加载完成!', true, 2000);
// Core.updateMod('question_detail');
// });
return false;
});
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
}
Kefu_list.prototype.refresh = function() {
this.myScroll.refresh();
}
Kefu_list.prototype.show_after = function() {
if (this.$c.find('.kefu-list').children().length == 0) {
$ol = this.$c.find('.kefu-list');
if($ol.attr('data-params-url').indexOf('undefined') == -1)
Core.load_html(this.$c.find('.kefu-list'), this.act_cb,
this);
}
this.isValid = false;
}
Kefu_list.prototype.act_cb = function(data) {
if (!this.myScroll){
this.myScroll = new iScroll('kefu_wrapper');
}
}
Core.registerMod('kefu_list', Kefu_list);
var Modify_pwd = function(modId) {
Module.call(this, modId);
}
Core.inherit(Modify_pwd, Module);
Modify_pwd.prototype.bind = function() {
var that = this;
that.$c.on('click', '[type=submit]', function(e) {
e.preventDefault();
Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
return false;
});
}
Modify_pwd.prototype.modify_cb = function(data) {
var status_code = data.code;
var msg = data.msg;
if (status_code == 0) {
if(Core.Data.is_guest == 1){
//游客帐号转正
localStorage.removeItem('guest_n');
Core.showTips('账号升级成功, 请记住登录名和新密码。', true);
}
if (!Core.user_names) Core.user_names = {}
Core.user_names[msg.username] = this.$c.find('input[name=newpwd]').val();
localStorage.setItem('user_names', JSON.stringify(Core.user_names));
Core.Data.is_guest = msg.is_guest;
Core.Data.username = msg.username;
Core.Data.nickname = msg.nickname;
// 强制更新显示home模块,模块自刷新
this.isValid = false;
Core.updateMod('home');
} else {
Core.showTips(msg, false);
}
}
Core.registerMod('modify_pwd', Modify_pwd);
/**
* 客服问题详细模块
*/
var Question_detail = function(modId) {
this.myScroll = null;
this.$score = null;
Module.call(this, modId);
}
Core.inherit(Question_detail, Module);
Question_detail.prototype.bind = function() {
var that = this;
that.$c.on('click', 'li.more a', function(e) {
e.preventDefault();
Core.load_html($(e.target), that.refresh, that);
return false;
});
that.$c.on('click', 'li p > a', function(e) {
e.preventDefault();
that.$score = $(e.target);
Core.ajax_do($(e.target), that.jude_cb, that);
return false;
})
}
Question_detail.prototype.jude_cb = function(data) {
Core.showTips(data.msg);
if (data.code == 0) {
var score = this.$score.html();
this.$score.parent().empty().html(
'您的评价:&nbsp;&nbsp;<span class="btn">' + score
+ '</span>');
}
}
Question_detail.prototype.refresh = function() {
var that = this;
setTimeout(function() {
that.myScroll.refresh();
}, 300);
}
Question_detail.prototype.show_after = function() {
if (Core.Data.question_update) {
if (this.myScroll){
this.myScroll.destory();
}else{
this.myScroll = new iScroll('question_detail_scroller');
}
}
}
Core.registerMod('question_detail', Question_detail);
/**
* enter_game_amount 进入sdk的要购买的游戏币
* enter_amount 进入sdk要购买的游戏币转为平台币数量(换算)
* total_amount 用户所拥有的平台币
* game_amount 本次支付需要购买的游戏币
* youai_star 本次支付需要支付的平台币(换算)
* money 本次支付需要支付的人民币(换算)
*/
function pay_init() {
if (Core.Data.enter_game_amount > 0) {
Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate;
Core.Data.pay_again = 0;
}
//if (Core.Data.enter_game_amount > 0
// && Core.Data.enter_amount <= Core.Data.total_amount) {
// // 需要进入兑换页面
// Core.start_page = "exchange";
// Core.Data.game_amount = Core.Data.enter_game_amount;
// Core.Data.youai_star = Core.Data.enter_amount;
// Core.Data.money = Core.Data.youai_star / Core.Data.rate;
//} else
//if (Core.Data.enter_game_amount > 0) {
// 需要进入渠道充值页面
Core.start_page = "channel_list";
Core.Data.game_amount = Core.Data.enter_game_amount;
Core.Data.youai_star = Core.Data.enter_amount;
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
//} else {
// // 没有输入充值数量,进入选择数量的界面
//}
}
function onBridgeReady() {
var mainImgUrl = Core.Data.game_icon;
var mainURL = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html';
var mainTitle= '一起玩' + Core.Data.game_name;
var mainDesc = '我在玩' + Core.Data.game_name + ',游戏很棒,一起来玩吧!';
try{
WeixinJSBridge.on("menu:share:timeline", function(e) {
var data = {
appid:'wx1d2b5cd6b11aaf3d',
img_url:mainImgUrl,
img_width: "120",
img_height: "120",
link: mainURL,
desc: mainDesc,
title: mainTitle
};
alert('shareTimeline');
WeixinJSBridge.invoke("shareTimeline", data, function(res) {
WeixinJSBridge.log(res.err_msg);
});
});
WeixinJSBridge.on("menu:share:weibo", function() {
WeixinJSBridge.invoke("shareWeibo", {
"content": mainDesc,
"url": mainURL
}, function(res) {
//alert(res.err_msg);
//WeixinJSBridge.log(res.err_msg);
});
});
WeixinJSBridge.on('menu:share:appmessage', function(argv) {
WeixinJSBridge.invoke("sendAppMessage", {
appid:'wx1d2b5cd6b11aaf3d',
img_url: mainImgUrl,
img_width: "120",
img_height: "120",
link: mainURL,
desc: mainDesc,
title: mainTitle
}, function(res) {
//alert(res.err_msg);
//WeixinJSBridge.log(res.err_msg)
});
});
} catch(error){alert(error);}
};
if (typeof WeixinJSBridge == "undefined"){
if( document.addEventListener ){
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
}else if (document.attachEvent){
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
}else{
onBridgeReady();
}
if (window.isGetData == 1) {
// 兼容旧版本sdk
pay_init();
$('#loading').hide();
Core.init();
} else {
window.isGetData = 1;
window.initFunc = pay_init;
}
}
})();
\ No newline at end of file
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){return n.apply(b,v.call(arguments,0).concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice;this.listeners=this.listeners||{},a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),this.$results.append(d)},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")});var f=e.filter("[aria-selected=true]");f.length>0?f.first().trigger("mouseenter"):e.first().trigger("mouseenter")})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";{a(h)}this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b){var c=this,d=b.id+"-results";this.$results.attr("id",d),b.on("results:all",function(a){c.clear(),c.append(a.data),b.isOpen()&&c.setClasses()}),b.on("results:append",function(a){c.append(a.data),b.isOpen()&&c.setClasses()}),b.on("query",function(a){c.showLoading(a)}),b.on("select",function(){b.isOpen()&&c.setClasses()}),b.on("unselect",function(){b.isOpen()&&c.setClasses()}),b.on("open",function(){c.$results.attr("aria-expanded","true"),c.$results.attr("aria-hidden","false"),c.setClasses(),c.ensureHighlightVisible()}),b.on("close",function(){c.$results.attr("aria-expanded","false"),c.$results.attr("aria-hidden","true"),c.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=c.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=c.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?c.trigger("close"):c.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=c.getHighlightedResults(),b=c.$results.find("[aria-selected]"),d=b.index(a);if(0!==d){var e=d-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=c.$results.offset().top,h=f.offset().top,i=c.$results.scrollTop()+(h-g);0===e?c.$results.scrollTop(0):0>h-g&&c.$results.scrollTop(i)}}),b.on("results:next",function(){var a=c.getHighlightedResults(),b=c.$results.find("[aria-selected]"),d=b.index(a),e=d+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=c.$results.offset().top+c.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=c.$results.scrollTop()+h-g;0===e?c.$results.scrollTop(0):h>g&&c.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){c.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=c.$results.scrollTop(),d=c.$results.get(0).scrollHeight-c.$results.scrollTop()+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&d<=c.$results.height();e?(c.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(c.$results.scrollTop(c.$results.get(0).scrollHeight-c.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var d=a(this),e=d.data("data");return"true"===d.attr("aria-selected")?void(c.options.get("multiple")?c.trigger("unselect",{originalEvent:b,data:e}):c.trigger("close")):void c.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var b=a(this).data("data");c.getHighlightedResults().removeClass("select2-results__option--highlighted"),c.trigger("results:focus",{data:b,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a){var b=this,d=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){b.trigger("focus",a)}),this.$selection.on("blur",function(a){b.trigger("blur",a)}),this.$selection.on("keydown",function(a){b.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){b.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){b.update(a.data)}),a.on("open",function(){b.$selection.attr("aria-expanded","true"),b.$selection.attr("aria-owns",d),b._attachCloseHandler(a)}),a.on("close",function(){b.$selection.attr("aria-expanded","false"),b.$selection.removeAttr("aria-activedescendant"),b.$selection.removeAttr("aria-owns"),b.$selection.focus(),b._detachCloseHandler(a)}),a.on("enable",function(){b.$selection.attr("tabindex",b._tabindex)}),a.on("disable",function(){b.$selection.attr("tabindex","-1")})},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c){function d(){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},d.prototype.bind=function(a){var b=this;d.__super__.bind.apply(this,arguments);var c=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",c),this.$selection.attr("aria-labelledby",c),this.$selection.on("mousedown",function(a){1===a.which&&b.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),a.on("selection:update",function(a){b.update(a.data)})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){var b=this.options.get("templateSelection"),c=this.options.get("escapeMarkup");return c(b(a))},d.prototype.selectionContainer=function(){return a("<span></span>")},d.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.display(b),d=this.$selection.find(".select2-selection__rendered");d.empty().append(c),d.prop("title",b.title||b.text)},d}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(){var b=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){b.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(c){var d=a(this),e=d.parent(),f=e.data("data");b.trigger("unselect",{originalEvent:c,data:f})})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){var b=this.options.get("templateSelection"),c=this.options.get("escapeMarkup");return c(b(a))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.display(e),g=this.selectionContainer();g.append(f),g.prop("title",e.title||e.text),g.data("data",e),b.push(g)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(){function a(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},a.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},a}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle")}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">&times;</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus()}),b.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val(""),e.$search.focus()}),b.on("enable",function(){e.$search.prop("disabled",!1)}),b.on("disable",function(){e.$search.prop("disabled",!0)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e.trigger("blur",a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}}),this.$selection.on("input",".select2-search--inline",function(){e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input",".select2-search--inline",function(a){e.handleSearch(a)})},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.trigger("open"),this.$search.val(b.text+" ")},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a){var b=this;this.container=a,a.on("select",function(a){b.select(a.data)}),a.on("unselect",function(a){b.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};
if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=(c.extend(!0,{},l,j),this.option(l));k.replaceWith(m)}else{var n=this.option(j);if(j.children){var o=this.convertToOptions(j.children);b.appendMany(n,o)}h.push(n)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(b,c){this.ajaxOptions=this._applyDefaults(c.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),a.__super__.constructor.call(this,b,c)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return{q:a.term}},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url(a)),"function"==typeof f.data&&(f.data=f.data(a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");if(void 0!==f&&(this.createTag=f),b.call(this,c,d),a.isArray(e))for(var g=0;g<e.length;g++){var h=e[g],i=this._normalizeItem(h),j=this.option(i);this.$element.append(j)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(){var b=(this._lastTag,this.$element.find("option[data-select2-tag]"));b.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(a,b,c){function d(a){e.select(a)}var e=this;b.term=b.term||"";var f=this.tokenizer(b,this.options,d);f.term!==b.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),b.term=f.term),a.call(this,b,c)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);e(m),g=g.substr(h+1)||"",h=0}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.position=function(){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a){function b(){}return b.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},b.prototype.handleSearch=function(){if(!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},b.prototype.showSearch=function(){return!0},b}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="option load-more" role="treeitem"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(a,b,c){this.$dropdownParent=c.get("dropdownParent")||document.body,a.call(this,b,c)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c){var d=this,e="scroll.select2."+c.id,f="resize.select2."+c.id,g="orientationchange.select2."+c.id,h=this.$container.parents().filter(b.hasScroll);h.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),h.on(e,function(){var b=a(this).data("select2-scroll-position");a(this).scrollTop(b.y)}),a(window).on(e+" "+f+" "+g,function(){d._positionDropdown(),d._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c){var d="scroll.select2."+c.id,e="resize.select2."+c.id,f="orientationchange.select2."+c.id,g=this.$container.parents().filter(b.hasScroll);g.off(d),a(window).off(d+" "+e+" "+f)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=(this.$container.position(),this.$container.offset());f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom};c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(){d._handleSelectOnClose()})},a.prototype._handleSelectOnClose=function(){var a=this.getHighlightedResults();a.length<1||this.trigger("select",{data:a.data("data")})},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close")},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend({},this.defaults,l),null==l.dataAdapter){if(l.dataAdapter=null!=l.ajax?o:null!=l.data?n:m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.selectionAdapter=l.multiple?e:d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=a.prop("dir")?a.prop("dir"):a.closest("[dir]").prop("dir")?a.closest("[dir]").prop("dir"):"ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this._sync=c.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",b._sync,!1)},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("focus",function(){a.$container.addClass("select2-container--focus")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open"),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ENTER?(a.trigger("results:select"),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle"),b.preventDefault()):c===d.UP?(a.trigger("results:previous"),b.preventDefault()):c===d.DOWN?(a.trigger("results:next"),b.preventDefault()):(c===d.ESC||c===d.TAB)&&(a.close(),b.preventDefault()):(c===d.ENTER||c===d.SPACE||(c===d.DOWN||c===d.UP)&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},e.prototype.close=function(){this.isOpen()&&this.trigger("close")},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(a,b,c,d){if(b("jquery.mousewheel"),null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){{var d=a.extend({},b,!0);new c(a(this),d)}}),this;if("string"==typeof b){var d=this.data("select2");null==d&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2.");var f=Array.prototype.slice.call(arguments,1),g=d[b](f);return a.inArray(b,e)>-1?this:g}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),b.define("jquery.mousewheel",["jquery"],function(a){return a}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
\ No newline at end of file
/*!
** create by zhangxinxu(.com) 2013-07-15
** a simple method for custom scrolling
** it can be used on both mobile and parts desktop browser IE9+/FF/Chrome/...
*/
var simpScroller=(function(){var c=!((window.DocumentTouch&&document instanceof window.DocumentTouch)||"ontouchstart" in window)*1,b={start:["touchstart","mousedown"][c],move:["touchmove","mousemove"][c],end:["touchend","mouseup"][c]};var a=function(e,l,f){var n="top",o="Top",p="height",g="Height",d="pageY";if(l=="horizontal"){n="left";o="Left";p="width";g="Width";d="pageX"}var i=null;if(f.hideScrollBar==false){i=document.createElement("div");i.className="scroller_"+l;f.container.appendChild(i)}var m=e["client"+g],h=0;var j=function(){if(i==null){return}var r=i.style[p].replace("px",""),q=e["scroll"+o]/(h-m)*(m-r);if(m-r-q<=0){q=m-r}i.style[n]=q+"px"};var k={};e.addEventListener(b.start,function(q){h=this["scroll"+g];k[d]=q.touches?q.touches[0][d]:q[d];k[n]=this["scroll"+o];document.moveFollow=true;if(i&&h>m){i.style.opacity=1;i.style[p]=(m*m/h)+"px";j()}c&&q.preventDefault()});e.addEventListener(b.move,function(q){if(c==false||(document.moveFollow==true)){this["scroll"+o]=k[n]+(k[d]-(q.touches?q.touches[0][d]:q[d]));j();f.onScroll.call(this,q)}q.preventDefault()});e.addEventListener(b.end,function(q){i&&(i.style.opacity=0)});if(c==true){document.addEventListener("mouseup",function(){this.moveFollow=false})}};return function(d,f){f=f||{};var j=new Object({verticalScroll:true,horizontalScroll:false,hideScrollBar:false,onScroll:function(){}}),g;for(g in f){j[g]=f[g]}if(window.getComputedStyle(d).position=="static"){d.style.position="relative"}var i=d.childNodes,e=document.createDocumentFragment();[].slice.call(i).forEach(function(k){e.appendChild(k)});var h=document.createElement("div");h.style.height="100%";h.style.width="100%";h.style.overflow="hidden";d.appendChild(h);h.appendChild(e);j.container=d;if(j.verticalScroll==true){a(h,"vertical",j)}if(j.horizontalScroll==true){a(h,"horizontal",j)}}})();
\ No newline at end of file
/* Zepto v1.0-3-g342d490 - polyfill zepto detect event ajax form fx fx_methods - zeptojs.com/license */
(function(a){String.prototype.trim===a&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.prototype.reduce===a&&(Array.prototype.reduce=function(b){if(this===void 0||this===null)throw new TypeError;var c=Object(this),d=c.length>>>0,e=0,f;if(typeof b!="function")throw new TypeError;if(d==0&&arguments.length==1)throw new TypeError;if(arguments.length>=2)f=arguments[1];else do{if(e in c){f=c[e++];break}if(++e>=d)throw new TypeError}while(!0);while(e<d)e in c&&(f=b.call(a,f,c[e],e,c)),e++;return f})})();var Zepto=function(){function E(a){return a==null?String(a):y[z.call(a)]||"object"}function F(a){return E(a)=="function"}function G(a){return a!=null&&a==a.window}function H(a){return a!=null&&a.nodeType==a.DOCUMENT_NODE}function I(a){return E(a)=="object"}function J(a){return I(a)&&!G(a)&&a.__proto__==Object.prototype}function K(a){return a instanceof Array}function L(a){return typeof a.length=="number"}function M(a){return g.call(a,function(a){return a!=null})}function N(a){return a.length>0?c.fn.concat.apply([],a):a}function O(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function P(a){return a in j?j[a]:j[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function Q(a,b){return typeof b=="number"&&!l[O(a)]?b+"px":b}function R(a){var b,c;return i[a]||(b=h.createElement(a),h.body.appendChild(b),c=k(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),c=="none"&&(c="block"),i[a]=c),i[a]}function S(a){return"children"in a?f.call(a.children):c.map(a.childNodes,function(a){if(a.nodeType==1)return a})}function T(c,d,e){for(b in d)e&&(J(d[b])||K(d[b]))?(J(d[b])&&!J(c[b])&&(c[b]={}),K(d[b])&&!K(c[b])&&(c[b]=[]),T(c[b],d[b],e)):d[b]!==a&&(c[b]=d[b])}function U(b,d){return d===a?c(b):c(b).filter(d)}function V(a,b,c,d){return F(b)?b.call(a,c,d):b}function W(a,b,c){c==null?a.removeAttribute(b):a.setAttribute(b,c)}function X(b,c){var d=b.className,e=d&&d.baseVal!==a;if(c===a)return e?d.baseVal:d;e?d.baseVal=c:b.className=c}function Y(a){var b;try{return a?a=="true"||(a=="false"?!1:a=="null"?null:isNaN(b=Number(a))?/^[\[\{]/.test(a)?c.parseJSON(a):a:b):a}catch(d){return a}}function Z(a,b){b(a);for(var c in a.childNodes)Z(a.childNodes[c],b)}var a,b,c,d,e=[],f=e.slice,g=e.filter,h=window.document,i={},j={},k=h.defaultView.getComputedStyle,l={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},m=/^\s*<(\w+|!)[^>]*>/,n=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,o=/^(?:body|html)$/i,p=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],r=h.createElement("table"),s=h.createElement("tr"),t={tr:h.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:s,th:s,"*":h.createElement("div")},u=/complete|loaded|interactive/,v=/^\.([\w-]+)$/,w=/^#([\w-]*)$/,x=/^[\w-]+$/,y={},z=y.toString,A={},B,C,D=h.createElement("div");return A.matches=function(a,b){if(!a||a.nodeType!==1)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=D).appendChild(a),d=~A.qsa(e,b).indexOf(a),f&&D.removeChild(a),d},B=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},C=function(a){return g.call(a,function(b,c){return a.indexOf(b)==c})},A.fragment=function(b,d,e){b.replace&&(b=b.replace(n,"<$1></$2>")),d===a&&(d=m.test(b)&&RegExp.$1),d in t||(d="*");var g,h,i=t[d];return i.innerHTML=""+b,h=c.each(f.call(i.childNodes),function(){i.removeChild(this)}),J(e)&&(g=c(h),c.each(e,function(a,b){p.indexOf(a)>-1?g[a](b):g.attr(a,b)})),h},A.Z=function(a,b){return a=a||[],a.__proto__=c.fn,a.selector=b||"",a},A.isZ=function(a){return a instanceof A.Z},A.init=function(b,d){if(!b)return A.Z();if(F(b))return c(h).ready(b);if(A.isZ(b))return b;var e;if(K(b))e=M(b);else if(I(b))e=[J(b)?c.extend({},b):b],b=null;else if(m.test(b))e=A.fragment(b.trim(),RegExp.$1,d),b=null;else{if(d!==a)return c(d).find(b);e=A.qsa(h,b)}return A.Z(e,b)},c=function(a,b){return A.init(a,b)},c.extend=function(a){var b,c=f.call(arguments,1);return typeof a=="boolean"&&(b=a,a=c.shift()),c.forEach(function(c){T(a,c,b)}),a},A.qsa=function(a,b){var c;return H(a)&&w.test(b)?(c=a.getElementById(RegExp.$1))?[c]:[]:a.nodeType!==1&&a.nodeType!==9?[]:f.call(v.test(b)?a.getElementsByClassName(RegExp.$1):x.test(b)?a.getElementsByTagName(b):a.querySelectorAll(b))},c.contains=function(a,b){return a!==b&&a.contains(b)},c.type=E,c.isFunction=F,c.isWindow=G,c.isArray=K,c.isPlainObject=J,c.isEmptyObject=function(a){var b;for(b in a)return!1;return!0},c.inArray=function(a,b,c){return e.indexOf.call(b,a,c)},c.camelCase=B,c.trim=function(a){return a.trim()},c.uuid=0,c.support={},c.expr={},c.map=function(a,b){var c,d=[],e,f;if(L(a))for(e=0;e<a.length;e++)c=b(a[e],e),c!=null&&d.push(c);else for(f in a)c=b(a[f],f),c!=null&&d.push(c);return N(d)},c.each=function(a,b){var c,d;if(L(a)){for(c=0;c<a.length;c++)if(b.call(a[c],c,a[c])===!1)return a}else for(d in a)if(b.call(a[d],d,a[d])===!1)return a;return a},c.grep=function(a,b){return g.call(a,b)},window.JSON&&(c.parseJSON=JSON.parse),c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){y["[object "+b+"]"]=b.toLowerCase()}),c.fn={forEach:e.forEach,reduce:e.reduce,push:e.push,sort:e.sort,indexOf:e.indexOf,concat:e.concat,map:function(a){return c(c.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return c(f.apply(this,arguments))},ready:function(a){return u.test(h.readyState)?a(c):h.addEventListener("DOMContentLoaded",function(){a(c)},!1),this},get:function(b){return b===a?f.call(this):this[b>=0?b:b+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){return e.every.call(this,function(b,c){return a.call(b,c,b)!==!1}),this},filter:function(a){return F(a)?this.not(this.not(a)):c(g.call(this,function(b){return A.matches(b,a)}))},add:function(a,b){return c(C(this.concat(c(a,b))))},is:function(a){return this.length>0&&A.matches(this[0],a)},not:function(b){var d=[];if(F(b)&&b.call!==a)this.each(function(a){b.call(this,a)||d.push(this)});else{var e=typeof b=="string"?this.filter(b):L(b)&&F(b.item)?f.call(b):c(b);this.forEach(function(a){e.indexOf(a)<0&&d.push(a)})}return c(d)},has:function(a){return this.filter(function(){return I(a)?c.contains(this,a):c(this).find(a).size()})},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!I(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!I(a)?a:c(a)},find:function(a){var b,d=this;return typeof a=="object"?b=c(a).filter(function(){var a=this;return e.some.call(d,function(b){return c.contains(b,a)})}):this.length==1?b=c(A.qsa(this[0],a)):b=this.map(function(){return A.qsa(this,a)}),b},closest:function(a,b){var d=this[0],e=!1;typeof a=="object"&&(e=c(a));while(d&&!(e?e.indexOf(d)>=0:A.matches(d,a)))d=d!==b&&!H(d)&&d.parentNode;return c(d)},parents:function(a){var b=[],d=this;while(d.length>0)d=c.map(d,function(a){if((a=a.parentNode)&&!H(a)&&b.indexOf(a)<0)return b.push(a),a});return U(b,a)},parent:function(a){return U(C(this.pluck("parentNode")),a)},children:function(a){return U(this.map(function(){return S(this)}),a)},contents:function(){return this.map(function(){return f.call(this.childNodes)})},siblings:function(a){return U(this.map(function(a,b){return g.call(S(b.parentNode),function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return c.map(this,function(b){return b[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null),k(this,"").getPropertyValue("display")=="none"&&(this.style.display=R(this.nodeName))})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var b=F(a);if(this[0]&&!b)var d=c(a).get(0),e=d.parentNode||this.length>1;return this.each(function(f){c(this).wrapAll(b?a.call(this,f):e?d.cloneNode(!0):d)})},wrapAll:function(a){if(this[0]){c(this[0]).before(a=c(a));var b;while((b=a.children()).length)a=b.first();c(a).append(this)}return this},wrapInner:function(a){var b=F(a);return this.each(function(d){var e=c(this),f=e.contents(),g=b?a.call(this,d):a;f.length?f.wrapAll(g):e.append(g)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(b){return this.each(function(){var d=c(this);(b===a?d.css("display")=="none":b)?d.show():d.hide()})},prev:function(a){return c(this.pluck("previousElementSibling")).filter(a||"*")},next:function(a){return c(this.pluck("nextElementSibling")).filter(a||"*")},html:function(b){return b===a?this.length>0?this[0].innerHTML:null:this.each(function(a){var d=this.innerHTML;c(this).empty().append(V(this,b,a,d))})},text:function(b){return b===a?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=b})},attr:function(c,d){var e;return typeof c=="string"&&d===a?this.length==0||this[0].nodeType!==1?a:c=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(c))&&c in this[0]?this[0][c]:e:this.each(function(a){if(this.nodeType!==1)return;if(I(c))for(b in c)W(this,b,c[b]);else W(this,c,V(this,d,a,this.getAttribute(c)))})},removeAttr:function(a){return this.each(function(){this.nodeType===1&&W(this,a)})},prop:function(b,c){return c===a?this[0]&&this[0][b]:this.each(function(a){this[b]=V(this,c,a,this[b])})},data:function(b,c){var d=this.attr("data-"+O(b),c);return d!==null?Y(d):a},val:function(b){return b===a?this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(a){return this.selected}).pluck("value"):this[0].value):this.each(function(a){this.value=V(this,b,a,this.value)})},offset:function(a){if(a)return this.each(function(b){var d=c(this),e=V(this,a,b,d.offset()),f=d.offsetParent().offset(),g={top:e.top-f.top,left:e.left-f.left};d.css("position")=="static"&&(g.position="relative"),d.css(g)});if(this.length==0)return null;var b=this[0].getBoundingClientRect();return{left:b.left+window.pageXOffset,top:b.top+window.pageYOffset,width:Math.round(b.width),height:Math.round(b.height)}},css:function(a,c){if(arguments.length<2&&typeof a=="string")return this[0]&&(this[0].style[B(a)]||k(this[0],"").getPropertyValue(a));var d="";if(E(a)=="string")!c&&c!==0?this.each(function(){this.style.removeProperty(O(a))}):d=O(a)+":"+Q(a,c);else for(b in a)!a[b]&&a[b]!==0?this.each(function(){this.style.removeProperty(O(b))}):d+=O(b)+":"+Q(b,a[b])+";";return this.each(function(){this.style.cssText+=";"+d})},index:function(a){return a?this.indexOf(c(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return e.some.call(this,function(a){return this.test(X(a))},P(a))},addClass:function(a){return this.each(function(b){d=[];var e=X(this),f=V(this,a,b,e);f.split(/\s+/g).forEach(function(a){c(this).hasClass(a)||d.push(a)},this),d.length&&X(this,e+(e?" ":"")+d.join(" "))})},removeClass:function(b){return this.each(function(c){if(b===a)return X(this,"");d=X(this),V(this,b,c,d).split(/\s+/g).forEach(function(a){d=d.replace(P(a)," ")}),X(this,d.trim())})},toggleClass:function(b,d){return this.each(function(e){var f=c(this),g=V(this,b,e,X(this));g.split(/\s+/g).forEach(function(b){(d===a?!f.hasClass(b):d)?f.addClass(b):f.removeClass(b)})})},scrollTop:function(){if(!this.length)return;return"scrollTop"in this[0]?this[0].scrollTop:this[0].scrollY},position:function(){if(!this.length)return;var a=this[0],b=this.offsetParent(),d=this.offset(),e=o.test(b[0].nodeName)?{top:0,left:0}:b.offset();return d.top-=parseFloat(c(a).css("margin-top"))||0,d.left-=parseFloat(c(a).css("margin-left"))||0,e.top+=parseFloat(c(b[0]).css("border-top-width"))||0,e.left+=parseFloat(c(b[0]).css("border-left-width"))||0,{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||h.body;while(a&&!o.test(a.nodeName)&&c(a).css("position")=="static")a=a.offsetParent;return a})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(b){c.fn[b]=function(d){var e,f=this[0],g=b.replace(/./,function(a){return a[0].toUpperCase()});return d===a?G(f)?f["inner"+g]:H(f)?f.documentElement["offset"+g]:(e=this.offset())&&e[b]:this.each(function(a){f=c(this),f.css(b,V(this,d,a,f[b]()))})}}),q.forEach(function(a,b){var d=b%2;c.fn[a]=function(){var a,e=c.map(arguments,function(b){return a=E(b),a=="object"||a=="array"||b==null?b:A.fragment(b)}),f,g=this.length>1;return e.length<1?this:this.each(function(a,h){f=d?h:h.parentNode,h=b==0?h.nextSibling:b==1?h.firstChild:b==2?h:null,e.forEach(function(a){if(g)a=a.cloneNode(!0);else if(!f)return c(a).remove();Z(f.insertBefore(a,h),function(a){a.nodeName!=null&&a.nodeName.toUpperCase()==="SCRIPT"&&(!a.type||a.type==="text/javascript")&&!a.src&&window.eval.call(window,a.innerHTML)})})})},c.fn[d?a+"To":"insert"+(b?"Before":"After")]=function(b){return c(b)[a](this),this}}),A.Z.prototype=c.fn,A.uniq=C,A.deserializeValue=Y,c.zepto=A,c}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(a){function b(a){var b=this.os={},c=this.browser={},d=a.match(/WebKit\/([\d.]+)/),e=a.match(/(Android)\s+([\d.]+)/),f=a.match(/(iPad).*OS\s([\d_]+)/),g=!f&&a.match(/(iPhone\sOS)\s([\d_]+)/),h=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),i=h&&a.match(/TouchPad/),j=a.match(/Kindle\/([\d.]+)/),k=a.match(/Silk\/([\d._]+)/),l=a.match(/(BlackBerry).*Version\/([\d.]+)/),m=a.match(/(BB10).*Version\/([\d.]+)/),n=a.match(/(RIM\sTablet\sOS)\s([\d.]+)/),o=a.match(/PlayBook/),p=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),q=a.match(/Firefox\/([\d.]+)/);if(c.webkit=!!d)c.version=d[1];e&&(b.android=!0,b.version=e[2]),g&&(b.ios=b.iphone=!0,b.version=g[2].replace(/_/g,".")),f&&(b.ios=b.ipad=!0,b.version=f[2].replace(/_/g,".")),h&&(b.webos=!0,b.version=h[2]),i&&(b.touchpad=!0),l&&(b.blackberry=!0,b.version=l[2]),m&&(b.bb10=!0,b.version=m[2]),n&&(b.rimtabletos=!0,b.version=n[2]),o&&(c.playbook=!0),j&&(b.kindle=!0,b.version=j[1]),k&&(c.silk=!0,c.version=k[1]),!k&&b.android&&a.match(/Kindle Fire/)&&(c.silk=!0),p&&(c.chrome=!0,c.version=p[1]),q&&(c.firefox=!0,c.version=q[1]),b.tablet=!!(f||o||e&&!a.match(/Mobile/)||q&&a.match(/Tablet/)),b.phone=!b.tablet&&!!(e||g||h||l||m||p&&a.match(/Android/)||p&&a.match(/CriOS\/([\d.]+)/)||q&&a.match(/Mobile/))}b.call(a,navigator.userAgent),a.__detect=b}(Zepto),function(a){function g(a){return a._zid||(a._zid=d++)}function h(a,b,d,e){b=i(b);if(b.ns)var f=j(b.ns);return(c[g(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||f.test(a.ns))&&(!d||g(a.fn)===g(d))&&(!e||a.sel==e)})}function i(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function j(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function k(b,c,d){a.type(b)!="string"?a.each(b,d):b.split(/\s/).forEach(function(a){d(a,c)})}function l(a,b){return a.del&&(a.e=="focus"||a.e=="blur")||!!b}function m(a){return f[a]||a}function n(b,d,e,h,j,n){var o=g(b),p=c[o]||(c[o]=[]);k(d,e,function(c,d){var e=i(c);e.fn=d,e.sel=h,e.e in f&&(d=function(b){var c=b.relatedTarget;if(!c||c!==this&&!a.contains(this,c))return e.fn.apply(this,arguments)}),e.del=j&&j(d,c);var g=e.del||d;e.proxy=function(a){var c=g.apply(b,[a].concat(a.data));return c===!1&&(a.preventDefault(),a.stopPropagation()),c},e.i=p.length,p.push(e),b.addEventListener(m(e.e),e.proxy,l(e,n))})}function o(a,b,d,e,f){var i=g(a);k(b||"",d,function(b,d){h(a,b,d,e).forEach(function(b){delete c[i][b.i],a.removeEventListener(m(b.e),b.proxy,l(b,f))})})}function t(b){var c,d={originalEvent:b};for(c in b)!r.test(c)&&b[c]!==undefined&&(d[c]=b[c]);return a.each(s,function(a,c){d[a]=function(){return this[c]=p,b[a].apply(b,arguments)},d[c]=q}),d}function u(a){if(!("defaultPrevented"in a)){a.defaultPrevented=!1;var b=a.preventDefault;a.preventDefault=function(){this.defaultPrevented=!0,b.call(this)}}}var b=a.zepto.qsa,c={},d=1,e={},f={mouseenter:"mouseover",mouseleave:"mouseout"};e.click=e.mousedown=e.mouseup=e.mousemove="MouseEvents",a.event={add:n,remove:o},a.proxy=function(b,c){if(a.isFunction(b)){var d=function(){return b.apply(c,arguments)};return d._zid=g(b),d}if(typeof c=="string")return a.proxy(b[c],b);throw new TypeError("expected function")},a.fn.bind=function(a,b){return this.each(function(){n(this,a,b)})},a.fn.unbind=function(a,b){return this.each(function(){o(this,a,b)})},a.fn.one=function(a,b){return this.each(function(c,d){n(this,a,b,null,function(a,b){return function(){var c=a.apply(d,arguments);return o(d,b,a),c}})})};var p=function(){return!0},q=function(){return!1},r=/^([A-Z]|layer[XY]$)/,s={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};a.fn.delegate=function(b,c,d){return this.each(function(e,f){n(f,c,d,b,function(c){return function(d){var e,g=a(d.target).closest(b,f).get(0);if(g)return e=a.extend(t(d),{currentTarget:g,liveFired:f}),c.apply(g,[e].concat([].slice.call(arguments,1)))}})})},a.fn.undelegate=function(a,b,c){return this.each(function(){o(this,b,c,a)})},a.fn.live=function(b,c){return a(document.body).delegate(this.selector,b,c),this},a.fn.die=function(b,c){return a(document.body).undelegate(this.selector,b,c),this},a.fn.on=function(b,c,d){return!c||a.isFunction(c)?this.bind(b,c||d):this.delegate(c,b,d)},a.fn.off=function(b,c,d){return!c||a.isFunction(c)?this.unbind(b,c||d):this.undelegate(c,b,d)},a.fn.trigger=function(b,c){if(typeof b=="string"||a.isPlainObject(b))b=a.Event(b);return u(b),b.data=c,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(b)})},a.fn.triggerHandler=function(b,c){var d,e;return this.each(function(f,g){d=t(typeof b=="string"?a.Event(b):b),d.data=c,d.target=g,a.each(h(g,b.type||b),function(a,b){e=b.proxy(d);if(d.isImmediatePropagationStopped())return!1})}),e},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}}),["focus","blur"].forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.each(function(){try{this[b]()}catch(a){}}),this}}),a.Event=function(a,b){typeof a!="string"&&(b=a,a=b.type);var c=document.createEvent(e[a]||"Events"),d=!0;if(b)for(var f in b)f=="bubbles"?d=!!b[f]:c[f]=b[f];return c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null),c.isDefaultPrevented=function(){return this.defaultPrevented},c}}(Zepto),function($){function triggerAndReturn(a,b,c){var d=$.Event(b);return $(a).trigger(d,c),!d.defaultPrevented}function triggerGlobal(a,b,c,d){if(a.global)return triggerAndReturn(b||document,c,d)}function ajaxStart(a){a.global&&$.active++===0&&triggerGlobal(a,null,"ajaxStart")}function ajaxStop(a){a.global&&!--$.active&&triggerGlobal(a,null,"ajaxStop")}function ajaxBeforeSend(a,b){var c=b.context;if(b.beforeSend.call(c,a,b)===!1||triggerGlobal(b,c,"ajaxBeforeSend",[a,b])===!1)return!1;triggerGlobal(b,c,"ajaxSend",[a,b])}function ajaxSuccess(a,b,c){var d=c.context,e="success";c.success.call(d,a,e,b),triggerGlobal(c,d,"ajaxSuccess",[b,c,a]),ajaxComplete(e,b,c)}function ajaxError(a,b,c,d){var e=d.context;d.error.call(e,c,b,a),triggerGlobal(d,e,"ajaxError",[c,d,a]),ajaxComplete(b,c,d)}function ajaxComplete(a,b,c){var d=c.context;c.complete.call(d,b,a),triggerGlobal(c,d,"ajaxComplete",[b,c]),ajaxStop(c)}function empty(){}function mimeToDataType(a){return a&&(a=a.split(";",2)[0]),a&&(a==htmlType?"html":a==jsonType?"json":scriptTypeRE.test(a)?"script":xmlTypeRE.test(a)&&"xml")||"text"}function appendQuery(a,b){return(a+"&"+b).replace(/[&?]{1,2}/,"?")}function serializeData(a){a.processData&&a.data&&$.type(a.data)!="string"&&(a.data=$.param(a.data,a.traditional)),a.data&&(!a.type||a.type.toUpperCase()=="GET")&&(a.url=appendQuery(a.url,a.data))}function parseArguments(a,b,c,d){var e=!$.isFunction(b);return{url:a,data:e?b:undefined,success:e?$.isFunction(c)?c:undefined:b,dataType:e?d||c:c}}function serialize(a,b,c,d){var e,f=$.isArray(b);$.each(b,function(b,g){e=$.type(g),d&&(b=c?d:d+"["+(f?"":b)+"]"),!d&&f?a.add(g.name,g.value):e=="array"||!c&&e=="object"?serialize(a,g,c,b):a.add(b,g)})}var jsonpID=0,document=window.document,key,name,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/;$.active=0,$.ajaxJSONP=function(a){if("type"in a){var b="jsonp"+ ++jsonpID,c=document.createElement("script"),d=function(){clearTimeout(g),$(c).remove(),delete window[b]},e=function(c){d();if(!c||c=="timeout")window[b]=empty;ajaxError(null,c||"abort",f,a)},f={abort:e},g;return ajaxBeforeSend(f,a)===!1?(e("abort"),!1):(window[b]=function(b){d(),ajaxSuccess(b,f,a)},c.onerror=function(){e("error")},c.src=a.url.replace(/=\?/,"="+b),$("head").append(c),a.timeout>0&&(g=setTimeout(function(){e("timeout")},a.timeout)),f)}return $.ajax(a)},$.ajaxSettings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},$.ajax=function(options){var settings=$.extend({},options||{});for(key in $.ajaxSettings)settings[key]===undefined&&(settings[key]=$.ajaxSettings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host),settings.url||(settings.url=window.location.toString()),serializeData(settings),settings.cache===!1&&(settings.url=appendQuery(settings.url,"_="+Date.now()));var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),$.ajaxJSONP(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=settings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.contentType!==!1&&settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=$.extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){xhr.onreadystatechange=empty,clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:$.parseJSON(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings):ajaxSuccess(result,xhr,settings)}else ajaxError(null,xhr.status?"error":"abort",xhr,settings)}};var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async);for(name in settings.headers)xhr.setRequestHeader(name,settings.headers[name]);return ajaxBeforeSend(xhr,settings)===!1?(xhr.abort(),!1):(settings.timeout>0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)},$.get=function(a,b,c,d){return $.ajax(parseArguments.apply(null,arguments))},$.post=function(a,b,c,d){var e=parseArguments.apply(null,arguments);return e.type="POST",$.ajax(e)},$.getJSON=function(a,b,c){var d=parseArguments.apply(null,arguments);return d.dataType="json",$.ajax(d)},$.fn.load=function(a,b,c){if(!this.length)return this;var d=this,e=a.split(/\s/),f,g=parseArguments(a,b,c),h=g.success;return e.length>1&&(g.url=e[0],f=e[1]),g.success=function(a){d.html(f?$("<div>").html(a.replace(rscript,"")).find(f):a),h&&h.apply(d,arguments)},$.ajax(g),this};var escape=encodeURIComponent;$.param=function(a,b){var c=[];return c.add=function(a,b){this.push(escape(a)+"="+escape(b))},serialize(c,a,b),c.join("&").replace(/%20/g,"+")}}(Zepto),function(a){a.fn.serializeArray=function(){var b=[],c;return a(Array.prototype.slice.call(this.get(0).elements)).each(function(){c=a(this);var d=c.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||this.checked)&&b.push({name:c.attr("name"),value:c.val()})}),b},a.fn.serialize=function(){var a=[];return this.serializeArray().forEach(function(b){a.push(encodeURIComponent(b.name)+"="+encodeURIComponent(b.value))}),a.join("&")},a.fn.submit=function(b){if(b)this.bind("submit",b);else if(this.length){var c=a.Event("submit");this.eq(0).trigger(c),c.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(a,b){function s(a){return t(a.replace(/([a-z])([A-Z])/,"$1-$2"))}function t(a){return a.toLowerCase()}function u(a){return d?d+a:t(a)}var c="",d,e,f,g={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},h=window.document,i=h.createElement("div"),j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,k,l,m,n,o,p,q,r={};a.each(g,function(a,e){if(i.style[a+"TransitionProperty"]!==b)return c="-"+t(a)+"-",d=e,!1}),k=c+"transform",r[l=c+"transition-property"]=r[m=c+"transition-duration"]=r[n=c+"transition-timing-function"]=r[o=c+"animation-name"]=r[p=c+"animation-duration"]=r[q=c+"animation-timing-function"]="",a.fx={off:d===b&&i.style.transitionProperty===b,speeds:{_default:400,fast:200,slow:600},cssPrefix:c,transitionEnd:u("TransitionEnd"),animationEnd:u("AnimationEnd")},a.fn.animate=function(b,c,d,e){return a.isPlainObject(c)&&(d=c.easing,e=c.complete,c=c.duration),c&&(c=(typeof c=="number"?c:a.fx.speeds[c]||a.fx.speeds._default)/1e3),this.anim(b,c,d,e)},a.fn.anim=function(c,d,e,f){var g,h={},i,t="",u=this,v,w=a.fx.transitionEnd;d===b&&(d=.4),a.fx.off&&(d=0);if(typeof c=="string")h[o]=c,h[p]=d+"s",h[q]=e||"linear",w=a.fx.animationEnd;else{i=[];for(g in c)j.test(g)?t+=g+"("+c[g]+") ":(h[g]=c[g],i.push(s(g)));t&&(h[k]=t,i.push(k)),d>0&&typeof c=="object"&&(h[l]=i.join(", "),h[m]=d+"s",h[n]=e||"linear")}return v=function(b){if(typeof b!="undefined"){if(b.target!==b.currentTarget)return;a(b.target).unbind(w,v)}a(this).css(r),f&&f.call(this)},d>0&&this.bind(w,v),this.size()&&this.get(0).clientLeft,this.css(h),d<=0&&setTimeout(function(){u.each(function(){v.call(this)})},0),this},i=null}(Zepto),function(a,b){function h(c,d,e,f,g){typeof d=="function"&&!g&&(g=d,d=b);var h={opacity:e};return f&&(h.scale=f,c.css(a.fx.cssPrefix+"transform-origin","0 0")),c.animate(h,d,null,g)}function i(b,c,d,e){return h(b,c,0,d,function(){f.call(a(this)),e&&e.call(this)})}var c=window.document,d=c.documentElement,e=a.fn.show,f=a.fn.hide,g=a.fn.toggle;a.fn.show=function(a,c){return e.call(this),a===b?a=0:this.css("opacity",0),h(this,a,1,"1,1",c)},a.fn.hide=function(a,c){return a===b?f.call(this):i(this,a,"0,0",c)},a.fn.toggle=function(c,d){return c===b||typeof c=="boolean"?g.call(this,c):this.each(function(){var b=a(this);b[b.css("display")=="none"?"show":"hide"](c,d)})},a.fn.fadeTo=function(a,b,c){return h(this,a,b,null,c)},a.fn.fadeIn=function(a,b){var c=this.css("opacity");return c>0?this.css("opacity",0):c=1,e.call(this).fadeTo(a,c,b)},a.fn.fadeOut=function(a,b){return i(this,a,null,b)},a.fn.fadeToggle=function(b,c){return this.each(function(){var d=a(this);d[d.css("opacity")==0||d.css("display")=="none"?"fadeIn":"fadeOut"](b,c)})}}(Zepto)
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" />
<link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" />
<title>
平台登录
</title>
</head>
<body>
<input type="hidden" name="loginUserName" value="">
<input type="hidden" name="loginPassword" value="">
<div class="mask">
<div class="container_load" id="loading">
<div class="content">
<div class="circle"></div>
<div class="circle1"></div>
</div>
</div>
<div class="alert alert-success hide" id="alert">
<!--<button type="button" class="close" data-dismiss="alert">&times;</button>-->
<span></span>
</div>
<!-- 登录模块 -->
<section id="login" class="" data-replace="1">
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
<form action="/sdk/login" method="post" class="ajax align-left clearfix">
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-main">
<div class="inputbox clearfix" style="position: relative;">
<div class="ileft">账号:</div>
<div class="iright">
<input type="text" name="username" placeholder="请输入账号" id="js_login_username">
<div class="bottom-icon drop-down">
<i class="iconfont icon-xiangxia"></i>
</div>
</div>
<div class="pull-box horizontall">
<ul class="drop-ul">
</ul>
</div>
</div>
<div class="inputbox clearfix">
<div class="ileft">密码:</div>
<div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div>
</div>
<div class="other-login clearfix">
<p class="other-login-bx hide">第三方登录
<a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide">
<i class=" iconfont icon-unie61d"></i>
</a>
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide">
</a>
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide">
</a>
</p>
<label><a href="#find_pwd" class="forgetpsw">找回密码</a></label>
<div class="clear"></div>
<label onclick="" class="input-control pull-left hide" >
<input type="checkbox" checked="checked" class="eg" ></input>
进入帐号管理界面
</label>
</div>
</div>
<ul class="inline-btn login-inline-btn">
<li>
<a method="post" class="btn btn_pri_block" href="#register">一键注册</a>
</li>
<li>
<!-- <a class="op-guest" data-replace="href" method="post" href="/sdk/register?type=-1&app_id={app_id}">一键注册</a> -->
<a class="btn larg btn-orange submit" utocomplete="off" >登录</a>
</li>
</ul>
</form>
</div>
</div>
</section>
<!-- end -->
<!-- 登录前模块 -->
<section id="login_before" class="hide" data-replace="1">
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="login-third-list">
<div class="title">请选择快速登录</div>
<div class="third-list">
<ul>
<li class="login_case_qq"><a title="QQ帐号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li>
<li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li>
<div class="clear"></div>
</ul>
</div>
<div class="only-btn"><a href="#login">返回</a></div>
</div>
</div>
</div>
</section>
<!-- end-->
<!-- 注册模块 -->
<section id="register" class="hide">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<form action="/sdk/register" class="ajax clearfix">
<div class="new-sdk-main">
<div class="inputbox clearfix">
<div class="ileft">账号:</div>
<div class="iright">
<input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required>
<!--<div class="bottom-icon drop-down">
<i class="iconfont icon-xiangxia"></i>
</div>-->
</div>
</div>
<div class="inputbox clearfix">
<div class="ileft">密码:</div>
<div class="iright"><input name="password" placeholder="密码长度为6-16个字符,不能包含空格" required></div>
</div>
<div class="ag-tx clearfix">
<span data-action="agreement" >
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">接受<a href="#agreement">网络服务协议</a></p>
</span>
</div>
</div>
<input type="hidden" name="old_usernmae" value="-1">
<input type="hidden" name="type" value="-1">
<ul class="inline-btn">
<li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li>
<li><a class="submit btn larg " >确定注册</a></li>
</ul>
</form>
</div>
</section>
<!-- end -->
<!-- 协议模块 -->
<section id="agreement" class="hide">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-content" style="overflow: hidden;">
<h3>网络服务协议</h3>
<div class="content-main" style="height: 220px;">
<iframe src="agreement.html" name="myiframe" id="iframepage" frameborder="0" scrolling="auto" width="100%"></iframe>
</div>
</div>
<div class="only-btn inline-btn">
<a href="#register" class="submit btn-orange">确定</a>
<div class="agreement l" style="margin-right: 0;">
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">已阅读</p>
</div>
</div>
</div>
</section>
<!-- end -->
<!-- 活动公告模块 -->
<section id="activity" class="hide" data-auth="1">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
活动公告
<!--<a href="#message" class="btn-link posrgt">
个人消息
</a>-->
</div>
<div class="container activity">
<div class="box_info_center" style="height: 100%;">
<div id="activity_wrapper" style="position: relative" class="scroll">
<ol class="activity-list list" data-role="ajax-html"
data-params-url="/sdk/notice/list?page_size=10"
data-params-template="tpl_activity">
</ol>
</div>
</div>
</div>
</div>
</section>
<!-- end -->
<!-- 活动公告详细页面模块 -->
<section id="activity_detail" class="hide" data-auth="1" data-attr="dot">
</section>
<!-- end -->
<!-- 消息列表模块 -->
<section id="message" class="hide" data-auth="1">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#activity" class="lefticon op-back">
<i class="iconfont icon-fanhui"></i>
</a>
个人消息
</div>
<div class="container activity">
<div class="box_info_center">
<div id="message_wrapper" style="position: relative" class="scroll">
<ol class="message-list list" data-role="ajax-html"
data-params-url="/message/list?page_size=10"
data-params-template="tpl_message_list">
</ol>
</div>
</div>
</div>
</div>
</section>
<!-- end -->
<section id="message_detail" class="hide" data-attr="dot">
</section>
<section id="identityCard" class="hide" data-attr="dot">
</section>
<section id="identityCard_ok" class="hide" data-attr="dot">
</section>
<!-- 找回密码模块 -->
<section id="find_pwd" class="hide" data-replace="1">
<input type="hidden" name="pwd_code" value="">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center" style="border-bottom: none;">
<a href="#login" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
<span>找回密码</span>
</div>
<div class="pwd_box">
<ul class="step-tab">
<li><a href="javascript:;">通过手机找回</a></li>
<li><a href="javascript:;">通过密保找回</a></li>
<!--<li><a href="javascript:;">通过邮箱找回</a></li>-->
<li><a href="javascript:;">联系客服</a></li>
</ul>
<div class="step-box">
<div id="mobile_get_pwd_form" class="hide" style="border-top: 1px solid #fff;">
<div class="new-sdk-box">
<div class="input" style="padding: 15px 0;">
<input id="js_findPSW_accout" type="text" required name="accout" placeholder="请输入您的账号" style="margin: 0;">
</div>
<div class="input" style="padding: 15px 0;">
<input id="js_findPSW_mobile" type="text" required name="mobile" placeholder="请输入您绑定的手机号码" style="margin: 0;">
</div>
<div class="inputCode clearfix">
<div class="input fl" style="padding: 15px 0;">
<input id="js_findPSW_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码" style="margin: 0;">
</div>
<a href="javascript:;" class="getCode" id="js_findPSW_getcode" style="padding:15px 0;">获取验证码</a>
</div>
<ul class="inline-btn" style="margin-top: 15px;">
<li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>
<li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li>
</ul>
</div>
</div>
<div id="question_get_pwd_form" action="/sdk/find/question" todo="get_question_callback" method="post" class="function-list-content ajax hide form">
<div class="question-input-box clearfix">
<div class="pull-left qib-txt">
您的账户:
</div>
<div class="pull-left qib-input">
<input type="text" name="username" placeholder="输入您的账号" style="text-align: left;" class="function-input username" required/>
</div>
</div>
<a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a>
</div>
<!--<div id="email_get_pwd_form" action="/user/password_by_mail" todo="password_by_mail_callback" class="function-list-content ajax hide form">
<input type="text" name="email" placeholder="输入您绑定的邮箱地址" class="function-input mail" style="margin: 0 0 30px;"/>
<a href="javascript:;" class="pwd_btn op-primary btn-orange">确定</a>
</div>-->
<div class="function-list-content hide">
<div class="pwd_txt">
<div class="default_text">
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
<p>客服电话:<a href="tel:"></a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
</div>
<div class="get_text"></div>
</div>
<a href="javascript:;" class="kefu_subbtn">确定</a>
</div>
<div class="reset_psw_mobile hide" style="border-top: 1px solid #fff;">
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">账号:<span id="js_UserName" style="color: #000;"></span></p>
</div>
<div class="inputCode clearfix">
<div class="input fl" style="width: 100%; padding:15px 0;">
<input type="text" required placeholder="请输入新密码" id="js_reset_newpsw" style="margin: 0; text-align: left; padding: 0 20px;">
</div>
</div>
<div class="ag-tx clearfix">
<span data-action="">
<div class="checkbox checkbox-2 l">
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l" style="margin-top: 0;">显示密码</p>
</span>
</div>
<a href="javascript:;" class="btn-orange" id="js_confirm_resetnewpsw">保存修改</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- end -->
<section id="help" class="hide" data-auth="1">
<div class="header">
<span class="title">手游平台</span>
<a class="btn pull-left op-back" href="#home">返回</a>
</div>
<div class="container">
<div class="box_info_center">
<div class='align-left'>
</div>
</div>
</div>
</section>
<!-- 首页模块 -->
<section id="home" class="hide" data-attr="dot" data-auth="1"></section>
<!-- 重置密码模块 -->
<section id="reset_pwd" data-attr="dot" class="hide"></section>
<!-- 修改密码模块 -->
<section id="modify_pwd" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 密保模块 -->
<section id="mibao" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 回答密保模块 -->
<section id="answer_question" data-attr="dot" class="hide"></section>
<!-- 绑定模块 -->
<section id="bind" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 绑定手机 -->
<section id="bindMobile" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 解绑手机模块 -->
<section id="unbindMobile" data-attr="dot" class="hide" data-auth="1"></section>
<!-- 绑定邮箱模块 -->
<section id="mail" data-attr="dot" class="hide" data-auth="1"></section>
<!-- doT模板 -->
<section id="frame" data-attr="dot" class="hide" ></section>
<script id="frame_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;">
<a href="#"><img src="images/new-sdk-logo.png"></a>
<a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;">
<i class="iconfont icon-fanhui"></i>
</a>
</div>
<div class="container" style=" margin-bottom: 20px;">
<div class="ios_scroll">
<iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe>
</div>
</div>
</div>
</script>
<script id="home_template" type="text/x-jquery-tmpl">
<input type="hidden" name="initUserName" value="{{=Core.Data.nickname}}" />
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
<div class="user-center">
用户中心
<a href="/sdk/logout" class="op-logout">切换账户</a>
</div>
{{? Core.Data.is_guest == 1}}
<div class="user-center-box">
<div class="top clearfix">
<div class="pull-left txt w_45">
<p>欢迎您!</p>
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<div class="bind-user">
<div class="w_50 txt" style="display: inline-block; vertical-align: middle;">
您当前还是游客,为保证账号安全,请升级账号!
</div>
<div class="inline-btn w_45" style="display: inline-block; vertical-align: ;">
<a class="btn btn-bind" href="#modify_pwd">马上升级</a>
</div>
</div>
</div>
{{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录-->
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
<p>欢迎您!</p>
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
</ul>
{{?}}
</div>
{{?? Core.Data.is_guest == 0}}
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
<p>欢迎您!</p>
<p>{{=Core.Data.nickname}}</p>
</div>
<div class="inline-btn pull-right w_45">
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
{{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
{{??}}
<li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
<span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
</a></li>
{{?}}
</ul>
{{?}}
<!--<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
<li><a href="#">实名认证</a></li>
{{?}}
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>-->
</div>
{{?}}
</div>
</div>
</script>
<script id="mail_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
绑定邮箱
</div>
{{? Core.Data.bind_mail_statu == 0}}
<div class="new-sdk-box">
<div class="acount-name">
账号:{{=Core.Data.username}}
</div>
<form id="pwd_by_question_form" action="/user/bind_mail" class="ajax" method="post">
<div class="input" style="padding: 0;">
<input type="text" name="email" required placeholder="请输入你要绑定的邮箱">
<input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;">
</div>
</form>
<p>提示:发送绑定邮件后,请您登录邮箱操作!</p>
</div>
<ul class="inline-btn">
<li style="margin: 0 auto; padding: 1em 0; float: none;">
<a class="submit btn larg btn-orange" href="">发送绑定邮件</a>
</li>
</ul>
{{?? Core.Data.bind_mail_statu == 1}}
<div class="new-sdk-box">
<form id="bind_mail_form" action="/user/bind_mail" class="ajax" todo="bind_mail_callback" style="display:none; ">
<div class="input">
<input type="text" name="email" required placeholder="输入想要绑定的邮箱地址">
<input type="text" value="1" name="email_1" required placeholder="请输入你要绑定的邮箱" style="display: none;">
</div>
</form>
<p>待绑定邮箱:<span class="text-info">{{=Core.Data.mail}}</span></p>
</div>
<ul class="inline-btn">
<li style="margin: 0 auto; padding: 1em 0; float: none;" id="change-mail-btn" class=""><a class="btn larg btn-orange" href="#">更换邮箱</a></li>
<li style="margin: 0 auto; padding: 1em 0; float: none; background: #ff9600;" id="bind-mail-btn" class="hide"><a class="btn larg op-primary btn-orange" href="#home">保存设置</a></li>
</ul>
{{?? Core.Data.bind_mail_statu == 2}}
<div class="new-sdk-box">
<div class="input" style="padding: 0;">
<input type="text" name="email" required disabled="disabled" value="{{=Core.Data.mail}}">
</div>
<p>可以通过绑定的邮箱找回密码</p>
</div>
{{?}}
</div>
</script>
<script id="reset_pwd_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-box">
<div class="question-input mt10">
账号:{{=Core.Data.username}}
</div>
<div class="question-input mt10">
<p>你的新密码是:{{=Core.Data.new_pwd}}</p>
<p style="color: #949494;">请妥善保管,切勿外泄</p>
</div>
</div>
<ul class="inline-btn">
<li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange" href="#login">我知道了</a></li>
</ul>
</div>
</script>
<script id="modify_pwd_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
{{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}}
</div>
<form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" >
<div class="new-sdk-box">
<div class="input new-sdk-psw clearfix">
<i>{{? Core.Data.is_guest == 1}}正式账号:{{??}}旧密码:{{?}}</i>
<label>
<input {{? Core.Data.is_guest == 1}}type="text"{{??}}type="password"{{?}} class="old_pwd required " name="{{? Core.Data.is_guest >= 1}}username{{??}}password{{?}}" value="{{? Core.Data.new_pwd}}{{=Core.Data.new_pwd}}{{?}}" required="required" placeholder="{{? Core.Data.is_guest == 1}}请输入6-18位字母或数字{{??}}请输入旧密码{{?}}" required/>
</label>
</div>
<div class="input new-sdk-psw clearfix">
<i>{{? Core.Data.is_guest == 1}}正式密码:{{??}}新密码:{{?}}</i>
<label>
<input class="" name="newpwd" required type="text" placeholder="{{? Core.Data.is_guest == 1}}请输入6-16位字母或数字{{??}}请输入密码{{?}}" />
</label>
</div>
{{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}}
</div>
<ul class="inline-btn">
<li style="margin: 0 auto; padding: 1em 0; float: none;">
<a class="submit btn larg btn-orange" autocomplete="off" >保存更改</a>
</li>
</ul>
</form>
</div>
</script>
<script id="identityCard_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
实名认证
</div>
<form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div>
<div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li>
</ul>
</form>
</div>
</script>
<script id="mibao_template" type="text/x-jquery-tmpl" >
{{? Core.Data.safe_question == "" }}
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
设置密保
</div>
<form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input select" style="padding:0 25px; position: relative;">
<select name="question" class="" >
{{~ Core.Data.question_list :item:index }}
<option value='{{=item}}'>{{=item}}</option>
{{~}}
</select>
<i class="iconfont icon-xiangxia" style="
position: absolute;
right: -25px;
top: 21px;
"></i>
</div>
<div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div>
<p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">保存设置</a></li>
</ul>
</form>
</div>
{{??}}
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
设置密保
</div>
<form action="">
<div class="new-sdk-box">
<p>问题:{{=Core.Data.safe_question}}</p>
<p>答案:{{=Core.Data.safe_answer}}</p>
</div>
</form>
</div>
{{?}}
</script>
<script id="answer_question_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#login" class="lefticon back-btn">
<i class="iconfont icon-fanhui"></i>
</a>
密保找回密码
</div>
<div class="new-sdk-box" style="border-top: 1px solid #c4c3c3;">
<div id="pwd_by_question_form" action="/sdk/find/question/" class="ajax " method="post" >
<input type="hidden" name="username" value="{{=Core.Data.ans_temp.username}}" />
<input type="hidden" name="question" value="{{=Core.Data.ans_temp.question}}" />
<div class="question-input" style="margin-bottom: 20px;">
{{=Core.Data.ans_temp.question}}
<i class="iconfont icon-xiangxia"></i>
</div>
<div class="input" style="padding: 0;">
<input type="text" name="answer" required class="larg " placeholder="请输入答案" required/>
</div>
</div>
</div>
<ul class="inline-btn">
<li style="float: none; margin: 0 auto;"><a class="larg btn btn-orange submit op-primary" >确定</a></li>
</ul>
</div>
</script>
<script id="bind_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#login" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
绑定手机
</div>
<div class="new-sdk-box">
{{? Core.Data.bind_phone == "" && Core.Data.bind_statu == 0 }}
<div class="acount-name">
账号:{{=Core.Data.username}}
</div>
<form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" >
<div class="input" style="padding: 0;">
<input id="js_iphone" type="text" required name="mobile" placeholder="请输入您要绑定的手机号码">
</div>
<div class="inputCode clearfix">
<div class="input fl">
<input id="js_ranks" type="text" required name="mobilecode" placeholder="请输入短信验证码">
</div>
<a href="javascript:;" class="getCode" id="js_getcode">获取验证码</a>
</div>
<ul class="inline-btn">
<li><a class="larg btn btn-orange submit" id="js_conform" value="" >确定</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
{{?? Core.Data.bind_statu == 1}}
<form id="bind_phone_form" action="/user/bind_mobile" class="ajax" todo="bind_phone_callback" >
<div class="new-sdk-box">
<div class="input" style="padding: 0;"><input type="text" required name="mobile" placeholder="{{=Core.Data.bind_phone}}"></div>
<p>当前号码待绑定,更换手机号码请直接修改</p>
<p>请用绑定的手机拨打<span>{{=Core.Data.mobile_helper_number}}</span>(电话会自动挂断,此呼叫免费)完成绑定,才可以通过手机修改密码。</p>
</div>
<ul class="inline-btn">
<li><a class="larg btn btn-orange submit" >保存设置</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
{{?? Core.Data.bind_statu == 2}}
<form action="">
<div class="new-sdk-box">
<div class="input" style="padding: 0;"><input type="text" value="{{=Core.Data.bind_phone}}"></div>
<p>解除绑定,请用绑定的手机发送短信内容“<span>qxbd</span>”发送到<span>{{=Core.Data.mobile_helper_number}}</span></p>
</div>
<div class="only-btn"><a class="btn" href="#home">返回</a></div>
</form>
{{?}}
</div>
</div>
</script>
<script id="bindMobile_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
绑定手机
</div>
<div class="new-sdk-box">
<div class="acount-name">
账号:{{=Core.Data.username}}
</div>
<form id="bind_mobile_form" action="/user/bind_mobile">
<div class="input" style="padding: 0;">
<input id="js_iphone" type="text" required placeholder="请输入您要绑定的手机号码">
</div>
<div class="inputCode clearfix">
<div class="input fl">
<input id="js_ranks" type="text" required placeholder="请输入短信验证码">
</div>
<a href="javascript:;" class="getCode" id="js_getcode" style="padding: 20px 0;">获取验证码</a>
</div>
<ul class="inline-btn">
<li><a class="larg btn btn-orange" id="js_conform" value="" >确定</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
</div>
</div>
</script>
<script id="unbindMobile_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
解绑手机
</div>
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">账号:{{=Core.Data.username}}</p>
<p>手机:<span class="phoneMobile"></span></p>
</div>
<form id="unbind_mobile_form" action="/user/bind_mobile">
<div class="inputCode clearfix">
<div class="input fl">
<input id="js_unbind_ranks" type="text" required placeholder="请输入短信验证码">
</div>
<a href="javascript:;" class="getCode" id="js_unbind_getcode" style="padding:20px 0;">获取验证码</a>
</div>
<ul class="inline-btn" style="margin-top: 25px;">
<li><a class="larg btn btn-orange" id="js_unbind" value="" >确定</a></li>
<li><a class="btn" href="#home">返回</a></li>
</ul>
</form>
</div>
</div>
</script>
<script id="identityCard_ok_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
实名认证
</div>
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">姓名:<span class="compellation_name"></span></p>
<p>身份证:<span class="identity_card"></span></p>
</div>
</div>
</div>
</script>
<script id="message_detail_template" type="text/x-jquery-tmpl">
<div class="header">
<a class="btn pull-left op-back" href="#message">返回</a>
<span class="title">消息内容</span>
</div>
<div class="container">
<div class="box_info_center">
<div class="message-comm">
<div class="align-center bor_b_h3">
<h3>{{=Core.Data.message_detail.title}}</h3>
<p class="text-info">
<span class="mar-r-10">{{=Core.Data.message_detail.nickname}}</span>
<span>[{{=Core.Data.message_detail.create_time}}]</span>
</p>
</div>
<div class="message_text">
{{=Core.Data.message_detail.content}}
</div>
</div>
</div>
</div>
</script>
<script id="activity_detail_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container" style="background: #fff;">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#activity" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
活动公告详情
</div>
<div class="container activity">
<div class="align-center bor_b_h3 clearfix">
<h3 class="pull-left">{{=Core.Data.activity_detail.title}}</h3>
<p class="text-info pull-right">
<span>{{=Core.Data.activity_detail.notice_time}}</span>
</p>
</div>
<div class="box_info_center" style="height: 100%; margin: 0 37px;">
<div class="detail_scroller scroll" id="detail_scroller">
<div class="activity-comm">
<div class="activity_text">
{{=Core.Data.activity_detail.content}}
</div>
</div>
</div>
</div>
</div>
</div>
</script>
<script id='tpl_message_list_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p>没有消息.</p>
{{??}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li >
<a class="item" data-id="{{=item.id}}">
<span class="pull-right">{{=item.nickname}}</span>
<span class="pull-right text-info mar-r-10">{{=item.create_time}}</span>
<p>
<span class="title">{{=item.title}}</span> {{? item.read == 0}}<span class="statu">未读</span>{{?}}
</p>
</a>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/message/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_message_list" data-params-append="true" >点击加载更多帖子</a>
</li>
{{?}}
{{?}}
</script>
<script id='tpl_activity_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p>
{{??}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li >
<a class="item" href="#" data-id="{{=item.id}}">
<span class="pull-right act_time">{{=item.notice_time}}</span>
<span class="act_title{{? item.update_time.indexOf('刚刚') > -1}}new{{?}}">{{=item.title}}</span>
</a>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/sdk/notice/list?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_activity" data-params-append="true" >点击加载</a>
</li>
{{?}}
{{?}}
</script>
</div>
<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script>
<script type="text/javascript" src="js/zepto.min.js?20150923001"></script>
<script type="text/javascript" src="js/doT.min.js?20150923001" ></script>
<script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
});
</script>
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/login.min.js?2016111" ></script>
<script type="text/javascript" src="js/loader.min.js?20150923001"></script>
<script type="text/javascript" src="js/simpScroller-min.js"></script>
<script type="text/javascript" src="js/identity_id.js" ></script>
<script type="text/javascript">
window.onload = window.onresize = initMatching;
(function(){
getData('/sdk/login/json');
})();
simpScroller(document.querySelector(".horizontall"), {});
// $(document).ready(function(){
// setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000)
// })
</script>
</body>
</html>
\ No newline at end of file
/**
* 动态生成各游戏皮肤下对应的manifest文件。分别将带上修改时间戳的第三方库、业务逻辑js、
* sdk基本样式、指定皮肤样式、皮肤资源文件的路径添加到manifes文件中
* 并将修改时间更新到html文档的资源引用中
* 配置文件:config.js
* 生成文件:skin/xxxx/sdk.manifest
* 运行方法:node makefile.js
**/
var fs = require('fs'),
PATH = require('path'),
config = require('./config.js');
var target = config.target;
var concat_with_mtime = config.concat_with_mtime;
var base_js = config.base_js;
var base_img = config.images;
var htmls = config.htmls;
//读取三个html文件的内容,以便后面更新引用信息
var html_content = [];
for (i = 0, l = htmls.length; i < l; i++) {
html_content.push(fs.readFileSync(htmls[i], 'utf-8'));
}
function formatTime(mtime) {
var date = '';
date += mtime.getFullYear();
var month = mtime.getMonth() + 1;
month < 10 ? date += '0' + month : date += month;
var day = mtime.getDate();
day < 10 ? date += '0' + day : date += day;
var hour = mtime.getHours();
hour < 10 ? date += '0' + hour : date += hour;
var minute = mtime.getMinutes();
minute < 10 ? date += '0' + minute : date += minute;
return date;
}
var content = [];
var path, mtime, jsPath, reg;
content.push('CACHE MANIFEST');
content.push('');
var now = new Date();
content.push('#version=' + formatTime(now));
for(var i=0, l= htmls.length; i<l; i++){
path = htmls[i];
if(PATH.existsSync(path)){
// mtime = formatTime(fs.statSync(path).mtime);
content.push('/static/sdk/' + path);// + '?' + mtime);
}
}
for (i = 0, l = base_js.length; i < l; i++) {
path = base_js[i];
if (PATH.existsSync(path)) {
mtime = formatTime(fs.statSync(path).mtime);
content.push('/static/sdk/' + path + '?' + mtime);
//更新login.html, center.html, pay.html的引用信息的版本号
for (var j = 0, k = html_content.length; j < k; j++) {
reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+')
html_content[j] = html_content[j].replace(reg, path + '?' + mtime);
}
} else {
console.error('指定文件不存在:' + base_js[i]);
}
}
for (i = 0, l = concat_with_mtime.length; i < l; i++) {
path = concat_with_mtime[i];
if (PATH.existsSync(path)) {
mtime = formatTime(fs.statSync(path).mtime);
content.push('/static/sdk/' + path + '?' + mtime);
//更新login.html, center.html, pay.html的引用信息的版本号
for (j = 0, k = html_content.length; j < k; j++) {
reg = new RegExp(path.replace('/', '\\/') + '\\?\\d+')
html_content[j] = html_content[j].replace(reg, path + '?' + mtime);
}
} else {
console.error('指定文件不存在:' + path);
}
}
// 添加sdk基本图片资源
/*
var base_img_files = fs.readdirSync(base_img);
for(i=0,l=base_img_files.length; i<l; i++){
if(base_img_files[i].indexOf('.') == 0) continue;
path = base_img + '/' + base_img_files[i];
content.push('/static/sdk/' + path);
}
*/
//获取皮肤的最大mtime
/*
var skin_mtime = 0;
for(i=0, l= target.length; i<l; i++){
path = 'skin/' + target[i] + '/skin.css';
mtime = parseInt(formatTime(fs.statSync(path).mtime));
if(mtime > skin_mtime) skin_mtime = mtime;
}
*/
//在基础文件上添加对应皮肤的样式和所需要的图片
var skin_content;
for (i = 0, l = target.length; i < l; i++) {
path = 'skin/' + target[i];
skin_content = content.concat();
/*
skin_content.push('/static/sdk/' + path + '/skin.css' + '?' + skin_mtime);
*/
//更新login.html, center.html, pay.html的引用信息的版本号
for (j = 0, k = html_content.length; j < k; j++) {
reg = new RegExp('data-v="\\d+"');
html_content[j] = html_content[j].replace(reg, 'data-v="' + skin_mtime + '"');
}
//push the img fiels if exists
/*
var images = fs.readdirSync(path + '/img');
for (var j = 0, k = images.length; j < k; j++) {
if(images[j].indexOf('.') == 0) continue;
var img_path = path + '/img/' + images[j];
// mtime = formatTime(fs.statSync(img_path).mtime);
skin_content.push('/static/sdk/' + path + '/img/' + images[j]) //+ '?' + mtime);
}
*/
skin_content.push('NETWORK:');
skin_content.push('*');
skin_content = skin_content.join('\n');
fs.writeFileSync(path + '/sdk.manifest', skin_content);
}
content.push('NETWORK:');
content.push('*');
//生成基础的没有皮肤的缓存文件
fs.writeFileSync('skin/sdk.manifest', content.join('\n'));
//将对html文件引用信息的修改写回文件中
for(i=0, l=htmls.length; i<l; i++){
fs.writeFileSync(htmls[i], html_content[i]);
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<link href="skin/pay.css?v=20150318002" type="text/css" rel="stylesheet" />
<link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" />
<style>
.ios input[type="text"], .ios input[type="password"]{ width: auto; line-height: 84px;}
</style>
<title>
手游平台支付
</title>
</head>
<body>
<div class="mask">
<div class="container_load" id="loading">
<div class="content">
<div class="circle"></div>
<div class="circle1"></div>
</div>
</div>
<div class="alert alert-success hide" id="alert">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<span></span>
</div>
<!-- 首页模块 -->
<section id="home" class="hide" data-attr="dot" data-auth="1"></section>
<!-- end -->
<!-- 兑换元宝列表模块 -->
<section id="exchange" class="hide" data-attr="dot" data-auth="1"></section>
<!-- end -->
<!-- 充值方式列表模块 -->
<section id="channel_list" class="hide" data-attr="dot" data-auth="1"></section>
<!-- end -->
<!-- 充值操作模块 -->
<section id="pay" class="hide" data-attr="dot" data-auth="1"></section>
<!-- end -->
<!-- 客服问题列表模块 -->
<section id="kefu_list" class="hide" data-auth="1" data-attr="dot"></section>
<!-- end -->
<!-- 账号升级模块 -->
<section id="modify_pwd" class="hide" data-auth="1" data-attr="dot"></section>
<!-- end -->
<!-- 客服问题详细页面模块 -->
<section id="question_detail" class="hide" data-auth="1" data-attr="dot"></section>
<!-- 充值记录模块 -->
<section id="trade_record" class="hide" data-auth="1" >
<div class="header">
<span class="title">充值记录</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a>
<!-- <a class="btn pull-right" href="#proxy_record">代付记录</a> -->
</div>
<div class="container">
<div class="box_info_center">
<div id="wrapper" style="position:relative" class="scroll">
<div id="scroller">
<ol class="trade-list" data-role="ajax-html"
data-params-url="/trade/list/user?page_size=5" data-params-template="tpl_trade_record">
</ol>
</div>
</div>
</div>
</div>
</section>
<!-- 代付记录模块 -->
<section id="proxy_record" class="hide" data-auth="1">
<div class="header">
<span class="title">代付记录</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#trade_record">返回</a>
</div>
<div class="container">
<div class="box_info_center">
<div id="proxy_wrapper" style="position:relative" class="scroll">
<div id="proxy_scroller">
<ol class="trade-list" data-role="ajax-html" data-params-url="/trade/list/proxy?page_size=5" data-params-template="tpl_proxy_record">
</ol>
</div>
</div>
</div>
</div>
</section>
<section id="pay_feedback" class="hide" data-replace="1">
<div class="header">
<span class="title">充值问题</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#pay"></a>
<a class="btn-link posrgt" href="#kefu_list">在线客服</a>
</div>
<div class="container">
<div class="box_info_center">
<form class="ajax mar-t-10" method="post" action="/user/question/add">
<input type="hidden" name="game_id" data-replace="value" value="{app_id}"/>
<input type="hidden" name="q_type" value="2"/>
<input type="hidden" name="secret" value="1">
<textarea name="content" cols="40" rows="5" placeholder="请输入问题描述,字数限制在150内."></textarea>
<input type="submit" class="btn submit" value="提交" style="background: #ff9600;"/>
</form>
<p class="text-muted align-left">注:提交问题后,可通过在线客服,查看问题是否得到解决</p>
</div>
</div>
</section>
<!-- 代付模块 -->
<section id="pay_proxy" data-attr="dot" class="hide" data-auth="1"></section>
<!-- end -->
<!-- 充值结果模块 -->
<section id="pay_result" data-attr="dot" class="hide" data-auth="1"></section>
<!-- end -->
<!-- 确认付款 模块 -->
<!-- <section id="pay_confirm" data-attr="dot" class="hide" data-auth="1"></section> -->
<!-- end -->
<!-- 其他充值方式模块 -->
<section id="other" data-attr="dot" class="hide" data-auth="1"></section>
<!-- end -->
<!-- 邀请好友模块 -->
<section id="invite_friend" data-attr="dot" class="hide" data-auth="1"></section>
<!-- end -->
<!-- 验证码模块 -->
<section id="verify" data-attr="dot" class="hide" data-auth="1"></section>
<!-- end -->
<section id="pay_for" data-attr="dot" class="hide" data-auth="1"></section>
<section id="frame" data-attr="dot" class="hide" data-auth="1"></section>
<script id="frame_template" type="text/x-jquery-tmpl" >
<div class="header">
<span class="title">{{=Core.Data.frame_title}}</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a>
</div>
<div class="container" style="">
<div class="container_load in_frame" id="loading_frame" onclick="$(this).hide()">
<div class="content">
<div class="circle"></div>
<div class="circle1"></div>
</div>
</div>
<a class="btn scroll-btn scroll-up"><img src="skin/img/s_up.png"></a>
<a class="btn scroll-btn scroll-down"><img src="skin/img/s_down.png"></a>
<div class="ios_scroll">
<iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe>
</div>
</div>
</script>
<script id='home_template' type='text/x-jquery-tmpl'>
<div class="header">
<span class="title">充值中心</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a>
{{? Core.Data.pay_only != 1 }}
<a class="btn-link posrgt" href="#trade_record">充值记录</a>
{{?}}
</div>
<div class="container">
<div class="box_info_center">
<h2 class="align-left">
</h2>
<p class="align-left text-muted">
</p>
<br>
<p class="align-left text-success tips9133">
{{? Core.Data.pay_only != 1 }}
{{? Core.Data.is_guest == 1}}
亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。
{{??}}
{{?}}
{{?}}
</p>
<br>
<div class="amount_level align-left" >
<a href="javascript:Core.finishPay()" id="back-btn" class="btn larg conBtn " style="text-align: center;display:none">请返回游戏</a>
<br>
</div>
</div>
</div>
</script>
<script id='modify_pwd_template' type='text/x-jquery-tmpl'>
<div class="header">
<a class="iconfont icon-iconfontxiangyou poslft" href="##home"></a>
<span class="title">帐号升级</span>
</div>
<div class="container">
<div class="box_info_center">
{{? Core.Data.is_guest >= 1}}
<form action="/sdk/change_password" method="post" class="ajax " todo="modify_pwd_callback" >
<input type="text" class="old_pwd required larg" name="username" value="" required="required" placeholder="请设置登录帐号名" />
<input class="larg" name="newpwd" required type="password" placeholder="输入新密码" />
<input type="submit" class="btn larg" value="确认升级" autocomplete="off" />
</form>
<p class="text-warning align-left">游客账号是系统临时生成,存在风险,为了您的账号安全建议升级永久账号。</p>
{{??}}
<p class="text-success align-left">您的账号已经成功升级成手游平台永久账号。</p>
{{?}}
</div>
</div>
</script>
<script id="pay_for_template" type="text/x-jquery-tmpl" >
<div class="header">
<span class="title">找他人代付</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a>
<a class="btn-link posrgt" href="#proxy_record">代付记录</a>
</div>
<div class="container">
<div class="box_info_center">
<form id="pay_for_form" action="/sdk/pay" method="post" class="ajax" >
<input type="hidden" name="callback" value="{{=Core.Data.callback}}" />
<input type="hidden" name="userid" value="{{=Core.Data.user_id}}" />
<input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" />
<input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" />
<input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" />
<input type="hidden" name="money" value="{{=Core.Data.money}}" />
<p class="align-left" >
充值<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>
</p>
<div class="proxy_pay">
<p>
<input class="larg" type="text" data-key="pay_user" required="required" name="pay_user" placeholder="请输入代付人手游平台帐号" />
</p>
<p>
<input class="larg" type="text" name="pay_message" placeholder="给他留言···" />
</p>
<p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p>
</div>
</div>
</div>
</script>
<script id="exchange_template" type="text/x-jquery-tmpl" >
<div class="header">
<span class="title">兑换{{=Core.Data.game_unit_name}}</span>
{{? Core.Data.enter_amount && Core.Data.enter_amount >0}}
<a class="btn pull-left op-back op-primary" href="javascript:Core.finishPay()">返回游戏</a>
{{??}}
<a class="btn pull-left op-back op-primary" href="#home">修改数量</a>
{{?}}
<a class="btn pull-right" href="#trade_record">兑换记录</a>
</div>
<div class="container">
<div class="box_info_center">
<form id="exchange_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" >
<input type="hidden" name="callback" value="{{=Core.Data.callback}}" />
<input type="hidden" name="userid" value="{{=Core.Data.user_id}}" />
<input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" />
<input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" />
<input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" />
<input type="hidden" name="money" value="{{=Core.Data.money}}" />
<p class="align-left" >
当前可用游爱星为<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>个游爱星
</p>
<p class="align-left text-muted">
:<span class="text-info">1</span>颗游爱星可兑换<span class="text-info">{{=Core.Data.exchange_rate}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}}
</p>
<div class="verify align-left">
<input type="number" name="vdcode" id="vdcode" required="" placeholder="输入验证码">
<img id="vdimgck1" src="{{=Core.server}}/validate_code/" onclick="this.src=this.src+'?'+(new Date()).getTime()" style="cursor: pointer;" alt="看不清?点击更换" />
</div>
<hr/>
<div class="clearfix">
<a href="#channel_list&force" class="btn width100" >使用支付宝、银行卡、神州行充值</a>
</div>
</form>
</div>
</div>
</script>
<script id='channel_list_template' type='text/x-jquery-tmpl'>
<div class="header">
<span class="title">充值中心</span>
{{? Core.Data.enter_amount && Core.Data.enter_amount >= 0 }}
<a class="iconfont icon-iconfontxiangyou poslft" href="javascript:Core.finishPay()"></a>
{{??}}
<a class="btn-link poslft" href="#home">修改数量</a>
{{?}}
{{? Core.Data.pay_only != 1 }}
<a class="btn-link posrgt" href="#trade_record">充值记录</a>
{{?}}
</div>
<div class="container">
<div id="channel_list_wrapper" style="position:relative" class="scroll">
<div id="channel_list_scroller">
<div class="pay-info-cont clearfix">
<div class="iconfont icon-yonghutouxiang pull-left"></div>
<div class="user-msg pull-left align-left">
<h2>玩家:{{=Core.Data.username}}</h2>
<h2>ID:{{=Core.Data.user_id}}</h2>
<p>充值金额:<span>{{=Core.Data.money}}</span></p>
</div>
</div>
<div class="box_info_center">
<div class="channel_list align-left" >
{{? Core.Data.youai_star <= Core.Data.total_amount }}
<!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2"></span></a>-->
{{?}}
{{~Core.Data.game_pay_channel_list :item:index }}
{{?item.name}}
<a href="#" data-id="{{=item.id}}" class="btn channel btn-block clearfix">
<div class="image pull-left"><img src="{{=item.icon}}"/></div>
{{=item.name}} <i class="iconfont icon-xiangyou pull-right" style="color:#b5b5b6;font-size:24px;"></i></a>
{{?}}
{{~}}
{{? Core.Data.pay_only != 1 }}
{{? Core.Data.ad_game.length >= 1}}
{{??}}
{{?}}
{{?}}
</div>
<div class="warm-prompt align-left">
<h2>温馨提示</h2>
<p>* 充值过程中遇到问题,可<a href="#">联系客服</a></p>
<p>* {{=Core.Data.money}}={{=Core.Data.game_amount}} {{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}},充值一般1-10分钟即可到账,请放心充值。</p>
/*<p>
* 充值<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>元人民币.
</p>*/
</div>
{{? Core.Data.pay_only != 1 }}
<p class="align-left text-muted tips9133">
{{? Core.Data.vip > 0}}
{{??}}
{{?}}
</p>
{{?}}
</div>
</div>
</div>
</div>
</script>
<script id='pay_template' type='text/x-jquery-tmpl'>
<div class="header">
<span class="title">{{=Core.Data.current_pay_channel.name}}充值</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a>
<a class="btn-link posrgt" href="#pay_feedback">无法充值?</a>
</div>
<div class="container">
<div id="pay_panel_wrapper">
<div class="pay-info-cont clearfix">
<div class="iconfont icon-yonghutouxiang pull-left"></div>
<div class="user-msg pull-left align-left">
<h2>玩家:{{=Core.Data.username}}</h2>
<h2>ID:{{=Core.Data.user_id}}</h2>
<p>充值金额:<span>{{=Core.Data.money}}</span></p>
</div>
</div>
<div class="box_info_center">
<form id="pay_form" action="/sdk/pay" method="post" class="ajax" todo="feedback" >
<input type="hidden" name="callback" value="{{=Core.Data.callback}}" />
<input type="hidden" name="userid" value="{{=Core.Data.user_id}}" />
<input type="hidden" name="serverid" value="{{=Core.Data.server_id}}" />
<input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" />
{{? Core.Data.current_pay_channel }}
<input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" />
<input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" />
<input type="hidden" name="money" value="{{=Core.Data.money}}" />
<div class="require_input ">
{{? Core.Data.current_pay_channel.config['input_item'] }}
<p class="align-left">
<label>您选择了<span>{{=Core.Data.current_pay_channel.name}}</span>充值方式</label>
</p>
<p class="clearfix" style="margin:15px 0 20px">
<label class="pull-left">充值卡面额:</label>
<select class="card_amount larg pull-left" name="amount" >
<option value='选择金额' >选择金额</option>
{{~ Core.Data.current_pay_channel.config['amount_level'] :amount}}
{{? amount >= Core.Data.money }}
<option value="{{=amount}}" >{{=amount}}</option>
{{?}}
{{~}}
</select>
</p>
{{~ Core.Data.current_pay_channel.config['input_item'] :item:index }}
{{? item.name === 'card_num' }}
<p class="clearfix">
<label class="pull-left">充值卡号:</label>
<input type="text" required="" class="larg pull-left" name="{{=item.name}}" format="{{=item.format}}" title="{{=item.title}}" placeholder="{{=item.placeholder}}" />
</p>
{{?? item.name === 'card_pwd' }}
<p class="clearfix">
<label class="pull-left">充值密码:</label>
<input type="password" required class="larg pull-left" name="{{=item.name}}" title="{{=item.title}}" placeholder="{{=item.placeholder}}" />
</p>
{{?}}
{{~}}
<div class="clearfix">
<a href="#channel_list" class="btn-cancel pull-left w235 btn">取消</a>
<input class="larg btn btn-determine pull-right" style="width:235px; margin:0;" type="submit" value="确定" />
</div>
<div class="warm-prompt">
<h2>温馨提示</h2>
<p>* 请根据充值卡面额选择正确的充值金额,并确保卡号密码输入无误。</p>
<p>* 充值过程中遇到问题,<a href="#">可联系客服</a></p>
/*<p class="align-left text-muted select-info"></p>*/
</div>
{{?? }}
<div class="align-left">
充值<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>
</div>
<div class="align-left text-muted">:<span class="text-info">1</span>元人民币可以兑换<span class="text-info">{{=Core.Data.rate*Core.Data.exchange_rate}}</span>{{=Core.Data.game_unit}}{{=Core.Data.game_unit_name}}.</div>
<input class="larg btn zhifubaoBtn" type="submit" value="前往付款" />
{{?}}
</div>
{{?}}
</form>
</div>
</div>
</div>
</script>
<script id="pay_proxy_template" type="text/x-jquery-tmpl">
<div class="header">
<span class="title">确认代付</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#proxy_record"></a>
</div>
<div class="container">
{{? !Core.Data.temp.msg }}
<h4 class="align-left" >
来自<span class="text-info" >
{{=Core.Data.temp.game_name}}</span> - 【{{=Core.Data.temp.server_name}}】的
<span class="text-warning">{{=Core.Data.temp.role_name}}</span>
向你发起一笔代付,请你帮忙付款
<span class="text-warning" >
{{=Core.Data.temp.game_amount}}
{{=Core.Data.temp.game_amount_unit}}
{{=Core.Data.temp.game_amount_unit_name}}
</span>
</h4>
<form action="/pay/proxy/pay" method="post" class="ajax" data-todo="pay_proxy_callback" >
<div class="pay-proxy-info clearfix">
<div class="btn-group clearfix" >
<input type="hidden" name="id" value="{{=Core.Data.temp.trade_id}}" />
<button class="btn btn-payfor" type="submit">确认为他付款</button><br/>
or<br/>
<a class="ajax btn-undo" href="/pay/proxy/undo?id={{=Core.Data.temp.trade_id}}">拒绝付款</a>
</div>
<div class="desc">
<p>
可用游爱星:<span class="text-warning">{{=Core.Data.temp.amount}}</span>
</p>
<p>
应付游爱星:<span class="text-warning">{{=Core.Data.temp.youai_star}}</span>
<small>(1:{{=Core.Data.temp.exchange_rate}})</small>
</p>
{{?Core.Data.temp.pay_message != ''}}
<p class="pay-message">
<small>他说:{{=Core.Data.temp.pay_message}}</small>
</p>
{{?}}
</div>
</div>
</form>
<div class="alert align-left">
<small>为避免风险,建议和代付申请人通过电话等方式确认以上信息</small>
</div>
{{??}}
<h1>{{=Core.Data.temp.msg}}</h1>
<a class="btn larg" href="#back" >
返回
</a>
{{?}}
</div>
</script>
<script id='pay_result_template' type='text/x-jquery-tmpl'>
<div class="header">
<span class="title">支付结果</span>
</div>
<div class="container">
<p class="lead" style=" font-size:30px; text-align:center; margin:30px 0;">
{{=Core.Data.success_msg}}
</p>
<a href="javascript:Core.finishPay()" class="btn larg conBtn">继续游戏</a>
</div>
</script>
<script id="invite_friend_template" type="text/x-jquery-tmpl">
<div class="header">
<span class="title">分享得{{=Core.Data.game_unit_name}}</span>
<a class="iconfont icon-iconfontxiangyou poslft" href="#channel_list"></a>
</div>
<div class="container align-left">
<div class="box_info_center">
<div class="fs_box invite_box">
<h3 class="text-info">奖励说明:</h3>
</div>
</div>
</div>
</script>
<script id='other_template' type='text/x-jquery-tmpl'>
<div class="header">
<span class="title">免费获得{{=Core.Data.game_unit_name}}</span>
<a class="btn pull-left op-back op-primary" href="#channel_list">返回</a>
</div>
<div class="container align-left">
{{? Core.Data.ad_game.length >= 1}}
<div class="sec sec_invtite">
<p class="title-fs">方式一:下载指定游戏可获得{{=Core.Data.game_unit_name}}</p>
<ol class="other-pay">
{{~ Core.Data.ad_game :item:index}}
{{? item.id}}
<li>
<a href="/ad/get/star/?id={{=item.id}}" target="_bank">
<img src="{{=item.icon}}"/>
<h4>{{=item.name}}</h4>
<span>可获<strong class="text-info">{{=item.ad_prize}}</strong>游戏币</span>
</a>
</li>
{{?}}
{{~}}
</ol>
</div>
<div class="sec sec_invtite">
</div>
{{??}}
<div class="sec sec_invtite">
</div>
{{?}}
</div>
</script>
<script id="kefu_list_template" type="text/x-jquery-tmpl">
<div class="header">
<span class="title">在线客服</span>
{{? Core.start_page == 'kefu_list'}}
<a class="btn-link poslft" href="sdk://exit?action=center">返回游戏</a>
{{??}}
<a class="iconfont icon-iconfontxiangyou poslft" href="#pay_feedback"></a>
{{?}}
</div>
<div class="container">
<div class="box_info_center padding_box">
<div id="kefu_wrapper" style="position: relative" class="scroll">
<ol class="kefu-list list" data-role="ajax-html"
data-params-url="/user/question/list?page_size=10"
data-params-template="tpl_kefu_list">
</ol>
</div>
</div>
</div>
</script>
<script id="question_detail_template" type="text/x-jquery-tmpl">
<div class="header">
<span class="title">问题详细</span>
<a class="btn pull-left op-back" href="#kefu_list">返回</a>
</div>
<div class="container">
<div class="detail_scroller scroll" id="question_detail_scroller">
<div>
<div class="align-left question_del">
<h2>Q:{{=Core.Data.question_detail.q_type}}{{=Core.Data.question_detail.question}} <span class="q_time">{{=Core.Data.question_detail.create_time}}</span> </h2>
</div>
<hr>
<ol class="question-list list">
{{? Core.Data.question_detail.the_question_list.length == 1 }}
<p class="tip">客服MM还没回复...</p>
{{??}}
{{~ Core.Data.question_detail.the_question_list :item:index }}
{{? item.id}}
<li >
<span class="pull-right">{{=item.reply_time}}</span>
<span class="kefu text-warning">
客服-{{=item.nickname}}:
</span>
<div class="content">{{=item.answer}}
</div>
<p class="scroe">
{{? item.score != -1 }}
您的评价:&nbsp;&nbsp;<span class="btn">{{=item.score_name}}</span>
{{??}}
{{~ Core.Data.question_detail.score_map :qa:pos}}
{{? qa.key}}
<a href="/user/question/evaluate/?id={{=item.id}}&score={{=qa.key}}" class="btn ajax" data-todo="question_evaluate">{{=qa.val}}</a>
{{?}}
{{~}}
{{?}}
</p>
</li>
{{?}}
{{~ }}
{{? Core.Data.question_detail.page_num < Core.Data.question_detail.total_page}}
<li class="more">
<a class="btn" href="/user/question/{{=Core.Data.question_detail.id}}&format=json&page_size=5&page_num={{=(Core.Data.question_detail.page_num+1)}}.html" data-role="ajax-html" data-params-template="tpl_question_detail" data-params-append="true" >点击加载</a>
</li>
{{?}}
{{?}}
</ol>
</div>
</div>
</div>
</script>
<script id='tpl_kefu_list_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p>您好,手游平台客服MM全身心为您服务。请点击右上角的按钮输入您所遇到的问题,或者点击常见问题查看是否有您遇到的问题。</p>
{{??}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li >
<a class="item" href="" type="button" data-id="{{=item.id}}">
<span class="question_title">{{=item.question}}</span>
{{? item.status == 1 }}
<span class="statu statu_yes">已解答</span>
{{??}}
<span class="statu statu_no">未解答</span>
{{?}}
<span class="pull-right q_time">{{=item.create_time}}</span>
</a>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/user/question/list?format=json&page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_kefu_list" data-params-append="true" >点击加载</a>
</li>
{{?}}
{{?}}
</script>
<script id='tpl_question_detail_template' type='text/x-jquery-tmpl'>
{{~ it.model_list :item:index }}
{{? item.id}}
<li >
<span class="pull-right">{{=item.reply_time}}</span>
<span class="kefu text-warning">
客服-{{=item.nickname}}:
</span>
<div class="content ">{{=item.answer}}
</div>
<p class="score">
{{? item.score != -1 }}
您的评价:&nbsp;&nbsp;<span class="btn">{{=item.score_name}}</span>
{{??}}
{{~ it.score_map :qa:pos}}
{{? qa.key}}
<a href="/user/question/evaluate/?id={{=item.id}}&score={{=qa.key}}" class="btn ajax" data-todo="question_evaluate">{{=qa.val}}</a>
{{?}}
{{~}}
{{?}}
</p>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/user/question/{{=it.id}}&format=json&page_size=5&page_num={{=(it.page_num+1)}}.html" data-role="ajax-html" data-params-template="tpl_question_detail" data-params-append="true" >点击加载</a>
</li>
{{?}}
</script>
<script id='tpl_trade_record_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p>
{{??}}
{{? it.page_num == 1}}
<div class="pay-info-cont clearfix">
<div class="iconfont icon-yonghutouxiang pull-left"></div>
<div class="user-msg pull-left align-left">
<h2>玩家:{{=Core.Data.username}}</h2>
</div>
</div>
{{?}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li class="integral">
<div class="box">
<h2>
<i class="icon iconfont icon-shuangyuanquan"></i>
<div class="time"><h3>{{=item.last_firendlyTime}}</h3></div>
</h2>
<div class="textbox">
<div class="text">
<h3>
<strong>{{=item.server_name}}</strong><small>&lt;{{=item.role_name}}&gt;</small>
<span class="statu {{? item.get_status.indexOf('成功') > -1 }} text-success {{?? item.get_status.indexOf('拒绝')>-1 || item.get_status.indexOf('失败')>-1}} text-error{{??}} text-info{{?}}">
[{{? item.remark}}
<span class="text-error">{{=item.remark}}</span>
{{?}}
{{=item.get_status}}]
</span>
</h3>
<div class="txt">
<h3>获得{{=Core.Data.game_unit_name}}<strong>{{=item.game_amount}}</strong>{{=Core.Data.game_unit}}。</h3>
<p>订单:{{=item.id}}</>
</div>
<div class="position"><i class="iconfont icon-triangle-left-copy"></i></div>
</div>
</div>
</div>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/trade/list/user?page_size=5&page_num={{=(it.page_num+1)}}&game_id={{=it.search_profile.game_id}}&server_id={{=it.search_profile.server_id}}" data-role="ajax-html" data-params-template="tpl_trade_record" data-params-append="true" data-params-todo="refresh_iscorll" >下一页</a>
</li>
{{?}}
{{?}}
</script>
<script id='tpl_proxy_record_template' type='text/x-jquery-tmpl'>
{{? it.model_list.length == 1 }}
<p style="text-align:center; font-size:30px; margin:20px auto;">没记录...</p>
{{??}}
{{~ it.model_list :item:index }}
{{? item.id}}
<li>
<p class="detail">
<span class="statu {{? item.get_status.indexOf('成功') > -1 }} text-success {{?? item.get_status.indexOf('拒绝')>-1 || item.get_status.indexOf('失败')>-1}} text-error{{??}} text-info{{?}}">
[{{? item.status == 1 }}
<a class="btn op-payfor" href="#pay_proxy&id={{=item.id}}" data-id="{{=item.id}}">支付</a>
{{??}}
{{=item.get_status}}]
{{?}}
</span>
<strong>{{=item.game_name}}</strong><small>{{=item.server_name}}&lt;{{=item.role_name}}&gt;</small>
</p>
<p class="muted">消费游爱星<strong>{{=item.youai_star}}</strong>颗,获得{{=Core.Data.game_unit_name}}<strong>{{=item.game_amount}}</strong>{{=Core.Data.game_unit}}</p>
<p class="info"><small class="pull-right muted time_p">{{=item.last_firendlyTime}}</small>
<span class="order-text">订单:{{=item.id}}</span>
</p>
</li>
{{?}}
{{~ }}
{{? it.page_num < it.total_page}}
<li class="more">
<a class="btn" href="/trade/list/proxy?page_num={{=(it.page_num+1)}}" data-role="ajax-html" data-params-template="tpl_proxy_record" data-params-append="true" >下一页</a>
</li>
{{?}}
{{?}}
</script>
</div>
<script type="text/javascript" src="js/fastclick.min.1.0.js?201309041309"></script>
<script type="text/javascript" src="js/zepto.min.js?201309041309"></script>
<script type="text/javascript" src="js/doT.min.js?201309041309" ></script>
<script type="text/javascript" src="js/iscroll.min.1.0.js?201309041309" ></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
});
</script>
<script type="text/javascript" src="js/core.min.js?201504218002" ></script>
<script type="text/javascript" src="js/pay.min.js?201504218001" ></script>
<script type="text/javascript" src="js/loader.min.js?201504218001"></script>
<script type="text/javascript">
(function(){
getData('/sdk/pay/json');
})();
$(function(){
if (Core.isIos) {
$('meta[name="viewport"]').attr('content','width=800,maximum-scale=1,user-scalable=no');
}
});
</script>
</body>
</html>
date:2017-4-11
author
:lizenghua
instructions
:与星玩SDK同步
date:2017-4-12
author:lizenghua
instructions:修复当账户及密码为空时(本地存储的账号密码数据为空),通过密保找回密码时一直处于加载中无法跳转的问题
date:2017-4-21
author:lizenghua
instructions:
1、当用户是正式用户并绑定了手机后进行实名认证;身份证校验js:identity_id.js
改动的文件有:login.html、login.js(同步在sdk_xingwan、sdk_6)
2、改动注释了pay.js里面的911行到918行:进入sdk要购买的游戏币>0时强制进入渠道充值页面(已同步在sdk_xingwan、sdk_6)
date:2017-4-24
author:lizenghua
instructions:
1、处理绑定手机的手机验证规则(176),
2、手机找回密码中重置密码残留旧密码问题
date:2017-5-3
author:lizenghua
instructions:
1、注释掉pay.html中的“游爱星”兑换入口
2、处理支付方式切换中出现 input_item 为undefind 的bug (将383行的{{?}}移至435行)
3、去掉设置密保中select默认的下拉图标(login.css)
4、如果没有第三方登录则隐藏掉“第三方登录”字眼
date:2017-5-8
author:lizenghua
instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c改成$(this))
date:2017-5-12
author:lizenghua
instructions:修改充值的界面显示大小
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no,target-densitydpi=device-dpi" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<link href="skin/new_sdk.min.css?v=20150318002" type="text/css" rel="stylesheet" />
<link id="skin" data-v="20150318001" type="text/css" rel="stylesheet" />
<link href="skin/responsive.min.css?v=20150318001" type="text/css" rel="stylesheet" />
<title>
手游平台登录
</title>
</head>
<body>
<div class="mask">
<div class="container_load" id="loading">
<div class="content">
<div class="circle"></div>
<div class="circle1"></div>
</div>
</div>
<div class="alert alert-success hide" id="alert">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<span></span>
</div>
<section id="home" data-attr="dot" class="hide"></section>
<section id="frame" data-attr="dot" class="hide" ></section>
<script id="frame_template" type="text/x-jquery-tmpl" >
<div class="header">
<span class="title">{{=Core.Data.frame_title}}</span>
<a class="btn pull-left op-back" href="#main">返回</a>
</div>
<div class="container" style="">
<div class="container_load in_frame" id="loading_frame">
<div class="content">
<div class="circle"></div>
<div class="circle1"></div>
</div>
</div>
{{? Core.isIos}}<div class="ios_scroll">{{?}}
<iframe frameborder=0 src="{{=Core.Data.frame_src}}" scrolling="yes" width="100%" height="100%"></iframe>
{{? Core.isIos}}</div>{{?}}
</div>
</script>
<script id="home_template" type="text/x-jquery-tmpl">
<div class="header">
<span class="title">分享游戏</span>
<a class="btn pull-left op-back" href="sdk://exit?action=share">回到游戏</a>
</div>
<div class="container">
<div class="box_info_center">
<div class="share_box1">
<div class="share_game clearfix">
<img class="pull-left game_face" src="{{=Core.Data.icon || ''}}" height="75" width="75">
<textarea class="s_content">{{=Core.Data.content || '这款游戏还不错噢,一起来玩吧!'}}</textarea>
</div>
</div>
<div class="share_box2">
<div class="">
<h3 class="text-info">分享到</h3>
<ul class="other-login inline clearfix">
<li><a href="/sdk/share/game/qq/?app_id={{=Core.Data.app_id || ''}}" class="qq" title="QQ空间分享"></a></li>
<li><a href="/sdk/share/game/sina/?app_id={{=Core.Data.app_id || ''}}" class="sina" title="新浪微博分享"></a></li>
<li><a href="/sdk/share/game/tqq/?app_id={{=Core.Data.app_id || ''}}" class="tqq" title="腾讯微博分享"></a></li>
</ul>
<div class="invite_box">
<h3 class="text-info">奖励说明:</h3>
<p>
1.成功邀请好友一起玩游戏,您可获得<span class="text-info">5{{=Core.Data.game_unit_name}}</span>的奖励。
</p>
<p>
2.好友若充值(限前10),您可获得<span class="text-info">5%</span>充值奖励。
</p>
<p>
3.好友首次充值,因被您邀请可额外获得<span class="text-info">10%</span>充值返利。
</p>
</div>
</div>
</div>
</div>
</div>
</script>
</div>
<script type="text/javascript" src="js/fastclick.min.1.0.js?201309041309"></script>
<script type="text/javascript" src="js/zepto.min.js?201309041309"></script>
<script type="text/javascript" src="js/doT.min.js?201309041309" ></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
});
</script>
<script type="text/javascript" src="js/core.min.js?201403141112" ></script>
<script type="text/javascript">
(function(){
// Home模块
var Home = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(Home, Module);
Home.prototype.bind = function(){
var that = this;
that.$c.on('click', '.other-login a', function(e){
e.preventDefault();
//分享连接
var $tar = $(e.target);
var content = that.$c.find('.s_content').val();
$tar.attr('params', 'content=' + content);
Core.ajax_do($tar, function(data){
console.log(data);
if(data.code == 0){
if(data.msg.next_url){
// 需要重新授权
var src = data.msg.next_url;
if (Core.isFile) {
src = Core.server + src;
}
Core.Data.frame_title = $tar.attr('title');
Core.Data.frame_src = src;
Core.updateMod('frame');
} else {
//
Core.showTips(data.msg);
}
}
}, that);
});
}
Core.registerMod('home', Home);
var Frame = function(modId) {
Module.call(this, modId);
}
Core.inherit(Frame, Module);
Frame.prototype.show_after = function() {
var that = this;
var _des = Core.last_mod ? Core.last_mod : 'home';
this.$c.find('a.btn.pull-left').attr('href', '#' + _des);
this.$c.find('iframe')[0].onload = function() {
that.$c.find('#loading_frame').hide();
}
}
Core.registerMod('frame', Frame);
})();
</script>
<script type="text/javascript" src="js/loader.min.js?201401151617"></script>
<script type="text/javascript">
(function(){
window.isGetData = 1;
getData('/game/info/');
})();
</script>
</body>
</html>
\ No newline at end of file
@charset "utf-8";
html[data-useragent='ios'] .other-menu{display:none;}
/* CSS Document */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0; padding:0; }
body{ margin:0 auto; padding:0px;font:14px/1.5 微软雅黑,Microsoft Yahei; overflow-x:hidden; font-weight:normal;}
.clear{clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0; }
img{border:0;}
ol,ul{list-style:none; }
a{ color:#000; text-decoration:none}
*{ text-shadow:none}
.l{ float: left;}
section{
position: relative;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
overflow-x: hidden;
}
.l{ float: left;}
.hide{ display: none;}
a,input,textarea,select {
outline: 0;
}
a:focus {
outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
}
.red{ color: red;}
select{
-moz-appearance: none;
-webkit-appearance:none;
appearance:none;
}
/*字体图标*/
@font-face {font-family: "iconfont";
src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/
src: url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../font/iconfont.woff?t=1468997064') format('woff'), /* chrome, firefox */
url('../font/iconfont.ttf?t=1468997064') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('../font/iconfont.svg?t=1468997064#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;}
.icon-qq:before { content: "\e601"; font-size: 1.8em; color: #00beef;}
.icon-iconfontcha:before { content: "\e609"; }
.icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #00beef;}
.icon-weixin1:before { content: "\e603"; }
.icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #00beef;}
.icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 1.6em;}
.icon-iconfontcolor19:before { content: "\e60b"; }
.icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;}
.icon-triangle-l:before { content: "\e605"; }
.icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;}
.icon-weixin2:before { content: "\e606"; }
.icon-xiangyou:before { content: "\e60e"; }
.icon-fuxuankuangyixuanze:before { content: "\e607"; }
.icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 30px;}
.icon-icon3:before { content: "\e608"; }
.icon-fanhui:before { content: "\e610"; color: #00beef; font-size: 36px;}
.icon-yonghutouxiang:before { content: "\e611"; color: #c1c1c1; font-size: 75px;}
.icon-triangle-left-copy:before { content: "\e612"; color:#ddd; font-size: 1.8em;}
/*SDK背景box*/
.new-sdk-container{
position: relative;
background: #f6f6f6;
height: 100%;
}
html{
position: relative;
background: #f6f6f6;
height: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);/*禁用ios点击元素时的灰色背景*/
/*-webkit-user-modify: read-write-plaintext-only;*/
}
body{
width: 100%;
height: 100%;
background-size: 100%;
}
.mask{
position: relative;
height: 100%;
}
.redround{
display: inline-block;
width: 5px;
height: 5px;
background: red;
border-radius: 50px;
position: absolute;
right: 10px;
top: 10px;
}
.container.activity{
position: absolute;
left: 0;
top: 133x;
bottom: 0;
right: 0;
height: calc(100% - 134px);
}
.SDK-titlebox{
height: 33px;
background: #00beef;
}
/*SDK-logo*/
.new-sdk-container .new-sdk-logo{
text-align: center;
width:100%;
}
.new-sdk-container .new-sdk-logo img{
display: block;
width: 210px;
margin: 0 auto;
padding: 15px 0 0 0;
height:53px;
}
.new-sdk-container .new-sdk-box{
padding: 20px 37px;
border-top: 1px solid #c4c3c3;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.new-sdk-container .new-sdk-box .input{
margin-bottom: 15px;
border: 1px solid #c0c0c0;
/*box-shadow: 1px 2px 2px #c2c2c2 inset;*/
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
padding: 25px 0;
background: #fff;
box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box;
}
.new-sdk-container .new-sdk-box .input input{
display: inline-block;
width:100%;
background: none;
border: none;
color: #000;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
word-break:break-all;
height: 45px;
line-height: 45px;
vertical-align: middle;
margin: 20px 0;
}
.new-sdk-container .new-sdk-box .inputCode input,.new-sdk-container .new-sdk-box .inputCode .getCode{
width:100%;
background: none;
border: none;
color: #000;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
word-break:break-all;
}
/*#js_getcode{
height: 80px;
line-height: 80px;
}*/
/*.new-sdk-container .step-box .new-sdk-box .input input,.new-sdk-container .step-box .new-sdk-box .inputCode .getCode{
height: 80px;
line-height: 80px;
}*/
.new-sdk-container .new-sdk-box .inputCode .input{
float: left;
width: 55%;
padding: 0;
}
.new-sdk-container .new-sdk-box .inputCode .getCode{
width: 40%;
float: right;
color: #ff9600;
border: 1px solid #ff9600;
border-radius: 10px;
text-align: center;
}
.new-sdk-container .new-sdk-box .inputCode .getCode.disabled{
border: 1px solid #c0c0c0;
color: #c0c0c0;
cursor : none;
pointer-events: none;
}
.new-sdk-container .new-sdk-box p,.new-sdk-container .new-sdk-box p a{
color: #434343;
font-size: 24px;
font-family: "Microsoft YaHei","微软雅黑";
margin: 20px 0 0;
}
.new-sdk-container .new-sdk-box .acount-name p span.phoneMobile{
color: #434343;
}
.new-sdk-container .new-sdk-box p span{
color: #da8000;
}
.new-sdk-container .inline-btn{
overflow: auto;
zoom: 1;
width: 88%;
margin: 0px auto 25px auto;
}
.new-sdk-container .inline-btn li{
float: left;
width: 45%;
text-align: center;
background: #ff9600;
border-radius: 20px;
padding: 26px 0;
}
.new-sdk-container .inline-btn li:nth-child(2n+2){
float: right;
background: #00beef;
}
.new-sdk-container .login-inline-btn li{
background: #00beef;
}
.new-sdk-container .login-inline-btn li:nth-child(2n+2){
background: #ff9600;
}
.new-sdk-container .only-btn{
position: relative;
text-align: center;
width: calc(100% - 2em);
width: -moz-calc(100% - 2em);
width: -webkit-calc(100% - 2em);
padding: 10px 0;
/*background: #00beef;*/
border-radius: 10px;
margin:1.0em auto 0;
}
.new-sdk-container .only-btn a.btn-orange{
display: block;
width: 235px;
margin: 0 auto;
border-radius: 10px;
font-size: 30px;
padding: 25px 0;
}
.new-sdk-container .only-btn .readyed{
position: absolute;
right: 0;
top: 5px;
color: #000;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 18px;
}
.new-sdk-container .inline-btn a,.new-sdk-container .only-btn a{
display: block;
color: #fff;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
letter-spacing: 2px;
}
.new-sdk-container .inline-btn .btn{
display:inline-block;
border: 0;
background: #00beef;
color: #fff;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
letter-spacing: 2px;
cursor: pointer;
width: 100%;
vertical-align: middle;
border-radius: 20px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
}
.new-sdk-container .inline-btn .btn-orange{
background: #ff9600
}
.new-sdk-container .new-sdk-box .input select{
width: 100%;
height: 88px;
line-height: 88px;
background: none;
border: none;
color: #434343;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
}
.select2-container{
min-width: 100%;
}
.new-sdk-container .new-sdk-box .new-sdk-psw{
padding: 0 25px;
}
.new-sdk-container .new-sdk-box .input i{
display: inline-block;
width: 90px;
color: #000;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
font-style:normal;
}
.new-sdk-container .new-sdk-box .input label{
display: inline-block;
width: calc(100% - 65px);
width: -moz-calc(100% - 65px);
width: -webkit-calc(100% - 65px);
}
.new-sdk-container .new-sdk-box .new-sdk-psw input{
padding: 0;
text-align: left;
}
.new-sdk-container .new-sdk-box .new-sdk-lc{
margin:2em auto 0;
overflow: auto;
zoom: 1;
}
.new-sdk-container .new-sdk-box .new-sdk-lc .sleft{
float: left;
}
.new-sdk-container .new-sdk-lc .sleft .image{
width: 50px;
height: 50px;
position: relative;
}
.new-sdk-container .new-sdk-lc .sleft img{
max-height: 50px;
max-width: 50px;
width: auto;
height: auto;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
.new-sdk-container .new-sdk-lc .scenter{
float: left;
margin-left: 10px;
width: calc(100% - 180px);
width: -moz-calc(100% - 180px);
width: -webkit-calc(100% - 180px);
}
.new-sdk-container .new-sdk-lc .scenter p{
margin: 0;
color: #000;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
width: 100%;
overflow: hidden;
font-size: 14px;
}
.new-sdk-container .new-sdk-lc .scenter p a{
color: #0060b8;
}
.new-sdk-container .new-sdk-lc i{
float: right;
width: 27px;
height: 45px;
background: url(../images/new-sdk-icon.png) no-repeat 0 -152px;
margin: 4px 0;
transform: scale(0.8);
}
.new-sdk-container .new-sdk-box .new-sdk-psw i{
width: 200px;
height: 80px;
line-height: 80px;
float: left;
}
.new-sdk-container .new-sdk-box .new-sdk-psw label{
position: absolute;
left: 215px;
display: inline-block;
height: 80px;
line-height: 80px;
}
.new-sdk-container .new-sdk-lc .binding-link{
float: right;
margin: 0.5em 0;
}
.new-sdk-container .new-sdk-lc .binding-link a{
display: block;
background: #bceeff;
color: #000;
font-size: 14px;
font-family: "Microsoft YaHei","微软雅黑";
letter-spacing: 2px;
padding: 10px;
}
.new-sdk-container .new-sdk-login{
padding:1em;
}
.new-sdk-container .Account-Login .new-sdk-lc{
margin: 10px 0 0;
}
.new-sdk-container .Account-Login .new-sdk-lc .scenter{
width: calc(100% - 75px);
}
.new-sdk-container .account-btn{
overflow: auto;
zoom: 1;
width: 90%;
margin: 0 auto;
}
.new-sdk-container .account-btn li{
float: left;
margin: 10px 0;
width: 40%;
}
.new-sdk-container .account-btn li:nth-child(2n+2){
float: right;
}
.new-sdk-container .account-btn li a{
display: block;
color: #000;
font-size: 16px;
font-family: "Microsoft YaHei","微软雅黑";
background: #efefef;
text-align: center;
padding: 10px 0;
}
.new-sdk-container .account-btn li a:hover{
background: #bceeff;
}
.new-sdk-container .login-third {
width: 90%;
margin: 10px auto 0 auto;
}
.new-sdk-container .login-third .min-qq-icon {
display: block;
width: 33px;
height: 34px;
background: url("../images/icon.png") no-repeat -305px -108px;
float: left;
margin-right: 5px;
}
.new-sdk-container .login-third .title{
line-height: 29px;
margin: 15px 0;
}
.new-sdk-container .login-third .min-weibo-icon {
display: block;
width: 36px;
height: 29px;
background: url("../images/icon.png") no-repeat -305px -75px;
float: left;
margin-right: 5px;
}
.new-sdk-container .login-third .title p {
float: left;
color: #000;
font-size: 20px;
font-family: "Microsoft YaHei","微软雅黑";
}
.new-sdk-container .login-third .input-box {
width: 100%;
border-radius: 10px;
border: 2px solid #c2c2c2;
}
.new-sdk-container .login-third .login-third-input {
border: none;
width: calc(100% - 2em);
width: -moz-calc(100% - 2em);
width: -webkit-calc(100% - 2em);
padding: 1em;
border-bottom: 2px solid #c2c2c2;
font-size: 16px;
border-radius: 10px 10px 0 0;
}
.new-sdk-container .login-third .login-third-input:last-child {
border-bottom: none;
border-radius: 0 0 10px 10px;
}
.new-sdk-container .login-third .login-qq-submit{
background: #d90900;
width: 100%;
border-radius: 8px;
padding: 10px 0;
border: none;
color: #fff;
font-size: 16px;
font-family: "Microsoft YaHei","微软雅黑";
letter-spacing: 2px;
margin-top: 15px;
}
.new-sdk-container .login-third .QQ-submit{
background: #72c429;
}
.new-sdk-container .login-third-list {
width: 90%;
border-top: 1px solid #B1B1B1;
margin: 0 auto 0 auto;
}
.new-sdk-container .login-third-list .title {
text-align: center;
margin-top: 25px;
font-size: 20px;
color: #000;
font-family: "Microsoft YaHei","微软雅黑";
}
.new-sdk-container .login-third-list .third-list {
font-size: 20px;
width: 90%;
margin: 1em auto;
}
@media only screen and (min-width: 640px){
.new-sdk-container .login-third-list .third-list {
width: 50%;
}
}
.new-sdk-container .login-third-list .third-list li {
border-radius: 100%;
background: #fff;
float: left;
width: 130px;
height: 130px;
margin: 0 35px 0 35px;
}
.new-sdk-container .login-third-list .third-list li:nth-child(2n+2){
float: right;
}
.new-sdk-container .login-third-list .third-icon {
background: url("../images/icon.png") no-repeat;
margin: 10px auto 0;
}
.new-sdk-container .login-third-list .third-qq {
width: 85px;
height: 88px;
background-position: 0 -75px;
transform: scale(0.7);
}
.new-sdk-container .login-third-list .third-guest{
width: 85px;
height: 88px;
background-position: -219px -88px;
transform: scale(0.7);
}
.new-sdk-container .login-third-list .third-weibo {
width: 111px;
height: 88px;
background-position: -102px -69px;
transform: scale(0.7);
}
.new-sdk-container .login-third-list p {
text-align: center;
color: #000;
font-size: 14px;
}
/*登录*/
.new-sdk-container .new-sdk-main{
min-height: 14em;
width: 90%;
margin: 0 auto 0 auto;
}
.new-sdk-container .new-sdk-main .other-login{
margin: 17px auto;
line-height: 28px;
color: #434343;
font-size: 24px;
}
.new-sdk-container .new-sdk-main .other-login p{
float: left;
}
.new-sdk-container .new-sdk-main .other-login p a{
display: inline-block;
width: 45px;
height: 45px;
/*background: url(../images/new-sdk-icon.png) no-repeat;*/
margin-left: 15px;
vertical-align: bottom;
}
.new-sdk-container .new-sdk-main .other-login p a.wb{
background-position: 0 -50px;
}
.new-sdk-container .new-sdk-main .other-login p a.qq{
background: url(../images/login_icon.png) no-repeat 0 0;
}
.new-sdk-container .new-sdk-main .other-login p a.weixin{
background: url(../images/login_icon.png) no-repeat 0 -45px;
}
.new-sdk-container .new-sdk-main .other-login label{
float: right;
}
.new-sdk-container .new-sdk-main .other-login label a{
font-size: 18px;
}
.new-sdk-container .new-sdk-main .inputbox{
margin: 0 auto;
background: #fff;
border-radius: 10px;
padding: 30px 18px 24px 25px;
overflow: visible;
zoom: 1;
margin-top: 30px;
position: relative;
border: 1px solid #c0c0c0;
font-family:"Microsoft YaHei","微软雅黑";
color: #434343;
}
.new-sdk-container .new-sdk-main .inputbox .ileft{
float: left;
width: 90px;
min-width: 90px;
font-size: 30px;
font-family:"Microsoft YaHei","微软雅黑";
position: absolute;
line-height: 30px;
}
.new-sdk-container .new-sdk-main .inputbox .iright{
float: left;
width: calc(100% - 90px);
width: -moz-calc(100% - 90px);
width: -webkit-calc(100% - 90px);
margin-left: 90px;
}
.new-sdk-container .new-sdk-main .inputbox input{
width: calc(100% - 47px);
width: -moz-calc(100% - 47px);
width: -webkit-calc(100% - 47px);
font-size: 30px;
line-height: 30px;
border: none;
font-family: "Microsoft YaHei","微软雅黑";
white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;
}
.new-sdk-container .new-sdk-main .iright .bottom-icon{
position: absolute;
right: 0;
top: 5px;
width: 100px;
height: 90px;
}
.new-sdk-container .new-sdk-main .iright .bottom-icon i.iconfont{
position: absolute;
right: 25px;
top: 50%;
margin-top: -20px;
}
/*.new-sdk-container .new-sdk-main .iright .bottom-icon i{
display: block;
width: 33px;
height: 22px;
background: url(../images/new-sdk-icon.png) no-repeat 0 0;
}*/
.new-sdk-container input{
outline: medium;
}
.new-sdk-container .pull-box{
position:absolute;
top: 85px;
left: -1px;
border: 1px solid #c0c0c0;
border-top: 0;
border-radius: 0 0 20px 20px;
width: 100%;
font-size:16px;
z-index: 99;
background: #fff;
color: #333;
display: none;
font-family: 宋体;
max-height: 11em;
/*overflow-y: scroll;*/
height: 150px;
}
.new-sdk-container .pull-box ul{
margin-left: 65px;
}
.new-sdk-container .pull-box li{
text-indent: 15px;
margin: 5px 0;
color: #434343;
font-size: 30px;
}
.new-sdk-container .pull-box li a{
display: block;
}
/*忘记密码*/
.new-sdk-container .forget-password .function-list {
width: 100%;
margin: 10px auto;
font-size: 16px;
}
.new-sdk-container .forget-password .function-list li {
margin-top: 10px;
}
.new-sdk-container .forget-password .function-list li:first-child {
margin-top: 20px;
}
.new-sdk-container .forget-password .function-list-icon {
display: block;
width: 13px;
height: 13px;
background: url("../images/icon.png") no-repeat;
margin: 5px 10px 0 0;
}
.new-sdk-container .forget-password .function-list-icon-1 {
background-position: -245px -75px;
}
.new-sdk-container .forget-password .function-list-icon-2 {
background-position: -280px -75px;
}
.new-sdk-container .forget-password .function-list-content {
display: none;
margin: 5px 0 0 20px;
}
.new-sdk-container .forget-password .function-list-content .function-input {
width: calc(100% -20px);
width: -moz-calc(100% - 20px);
width: -webkit-calc(100% - 20px);
border: 1px solid #c2c2c2;
padding: 10px;
font-size: 16px;
}
.new-sdk-container .forget-password .function-list-content p {
color: #595757;
font-size: 16px;
margin: 0;
}
.login-box .forget-password .login-button {
margin-top: 10px;
}
.function-list .function-list-text{
float: left;
width: calc(100% -25px);
width: -moz-calc(100% - 25px);
width: -webkit-calc(100% - 25px);
word-break: break-all;
}
/*服务协议*/
.new-sdk-container .new-sdk-content{
width: calc(100% - 76);
width: -moz-calc(100% - 76);
width: -webkit-calc(100% - 76);
height: 300px;
border: 1px solid #c0c0c0;
border-right: none;
border-bottom: none;
margin: 25px 37px 15px;
overflow-y: scroll;
color: #000;
background: #fff;
-webkit-overflow-scrolling: touch;
}
@media only screen and (min-width: 100px) and (max-width: 640px) {
.new-sdk-container .new-sdk-content{
height: 250px;
}
}
.new-sdk-container .new-sdk-content h3 {
font-size: 28px;
font-weight: normal;
text-align: center;
margin: 5px 0 20px;
}
.new-sdk-container .new-sdk-content p, .new-sdk-container .new-sdk-content h4 {
font-size: 24px;
font-weight: normal;
padding: 0 20px;
}
.new-sdk-container .new-sdk-content p {
text-indent: 2em;
}
.new-sdk-container .agreement{
float: right;
font-size: 24px;
line-height: 20px;
margin-right: 32px;
}
.new-sdk-container .checkbox {
width: 24px;
height: 24px;
/*background: transparent url("../images/icon.png") no-repeat scroll 0% 0%;*/
margin: 0 10px;
display: inline-block;
}
.new-sdk-container .checkbox-2 {
background-position: -274px -7px;
}
/*填写注册*/
.new-sdk-container .checkbox-1 {
background-position: -234px -7px;
}
.new-sdk-container .ag-tx{
font-size: 24px;
margin: 20px 0 22px;
}
.new-sdk-container .ag-tx a{
color: #0078ff;
text-decoration: underline;
}
.margintop{
margin-top: 20px;
}
/* 消息框 */
#alert {
background:rgba(0, 0, 0, 0.65)!important; filter:Alpha(opacity=65);
position: absolute;
top: 50%;
left: 50%;
margin: auto 0;
width: 80%;
z-index: 1000;
line-height: 38px;
font-size: 30px;
margin-left: -40%;
text-align: center;
color: #c3c3c3;
border-radius: 10px;
padding: 10px 0px;
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.alert {
padding: 8px 35px 8px 14px;
font-size: 16px;
/* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);*/
background:rgba(250, 250, 250, 0.64);
/*border: 1px solid #fbeed5;*/
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.alert,
.alert h4 {
color: #c09853;
}
.alert h4 {
margin: 0;
}
.alert .close {
position: relative;
top: -2px;
right: 8px;
line-height: 20px;
}
.alert-success {
color:#009933;
/*border-bottom:2px solid #9f9f9f;*/
border-color: #d6e9c6;
text-shadow:none;
}
.alert-success h3 {
color: #468847;
}
.alert-danger,
.alert-error {
color:red;
text-shadow:none;
}
.alert-danger h3,
.alert-error h3 {
color: #b94a48;
}
.ios_scroll iframe{
min-height: 320px;
/*transform: scale(1.1);*/
}
/*用户中心*/
.clearfix:before,
.clearfix:after {
display: table;
line-height: 0;
content: "";
}
.clearfix:after {
clear: both;
}
.pull-left{ float: left;}
.pull-right{ float: right;}
.w_45{ width: 45%;}
.w_50{ width: 50%;}
.poslft{ position: absolute; left: 1em;}
.user-center{
position: relative;
text-align: center;
padding: 26px 0 18px;
border-bottom: 2px solid #fff;
color: #00beef;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 36px;
}
.user-center a{
position: absolute;
right: 27px;
bottom:7px;
color: #ff9600;
font-size: 24px;
padding:10px;
}
.user-center a.lefticon{
right: auto;
left: 37px;
}
.user-center-box{
border-top: 1px solid #c4c3c3;
padding: 0 37px 50px;
}
.user-center-box .top{
border-bottom: 2px solid #fff;
padding: 43px 0 40px;
}
.user-center-box .top .txt p{
color: #434343;
font-size: 30px;
white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;
width: 100%;
}
.user-center-box .top .inline-btn{
margin: 0;
width: 45%;
}
.user-center-box .top .inline-btn a{
border-radius: 10px;
text-align: center;
line-height: 85px;
font-size: 30px;
}
.user-center-box .bind-user{
border-top: 1px solid #c4c3c3;
padding: 30px 20px;
}
.user-center-box .bind-user .txt{
color:#949494;
font-size: 20px;
}
.user-center-box .bind-user .btn-bind{
font-size: 30px;
text-align: center;
line-height: 60px;
border: 1px solid #ff9600;
color: #ff9600;
border-radius: 10px;
background: none;
}
.user-center-box .bind-user .inline-btn{
margin: 0;
width: 35%;
overflow: initial;
margin-left: 10%;
}
.user-center-box .list-item{
border-left: 1px solid #c0c0c0;
border-top: 1px solid #c0c0c0;
}
.user-center-box .list-item li{
position:relative;float: left; width: 33.333%; background: #fff; border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; text-align: center; color: #434343; font-size: 30px; padding:30px 0;
}
.user-center-box .list-item li a{ display: block;}
.user-center-box .list-item .redround{
position: absolute;
top: 5px;
right: 5px;
background: #ff0000;
display: block;
width: 10px;
height: 10px;
border-radius: 100%;
}
.acount-name{
color: #434343;
font-size: 30px;
margin-bottom: 25px;
}
.user-center a.btn-link{
font-size: 24px;
bottom: 20px;
}
.new-sdk-container .activity{ border-top: 1px solid #c4c3c3;}
.new-sdk-container .activity-list li:not(.more){
padding: 20px;
border-bottom: 1px dashed #ddd;
}
.new-sdk-container .activity-list li:not(.more) a{
font-size: 26px;
}
.new-sdk-container .activity-list .act_time {
color: #999;
font-size: 24px;
}
.new-sdk-container .activity-list .act_title{white-space:nowrap; text-overflow:ellipsis; overflow:hidden; word-break:break-all;display: block;width: 80%;}
.new-sdk-container .activity-list li.more a{
display: block;
width: 235px;
margin: 20px auto;
text-align: center;
padding: 20px;
color: #fff;
font-size: 26px;
background: #00beef;
border-radius: 10px;
}
.new-sdk-container .activity .bor_b_h3{
border-bottom: 1px solid #e0e0e0;
background: #fff;
padding: 20px 0;
margin: 0 37px;
}
.new-sdk-container .activity .bor_b_h3 h3{
color: #000;
font-size: 26px;
font-family: "Microsoft YaHei","微软雅黑";
font-weight: normal;
}
.scroll{ height: 100%;}
.new-sdk-container .activity .bor_b_h3 .text-info{
color: #707070;
font-size: 24px;
font-family: "Microsoft YaHei","微软雅黑";
font-weight: normal;
margin-top: 5px;
}
.new-sdk-container .activity .activity_text{
color: #707070;
font-size: 26px;
padding: 20px;
font-family: "Microsoft YaHei","微软雅黑";
background: #fff;
}
.new-sdk-container .activity .activity_text img{
display: block;
width: 100%;
}
.new-sdk-container .pwd_box{ margin: 0 37px;}
.new-sdk-container .pwd_box li{
border: 1px solid #c0c0c0;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
padding: 20px 0;
margin-bottom: 20px;
background: #fff;
}
.new-sdk-container .pwd_box #mobile_get_pwd_form .inline-btn li{
border-radius: 20px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
padding: 0;
}
.new-sdk-container .pwd_box li a{
display: block;
color: #434343;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
text-align: center;
}
.pwd_box .step-box input{
background: #fff;
width: 100%;
padding: 25px 0;
border-radius: 10px;
border: 1px solid #c0c0c0;
text-align: center;
margin: 83px 0 91px 0;
font-size: 30px;
line-height: 30px;
box-shadow: none;
box-sizing: border-box;
appearance:button;
-moz-appearance:button; /* Firefox */
-webkit-appearance:button; /* Safari 和 Chrome */
}
.pwd_box .step-box a{
display: block;
text-align: center;
width: 235px;
background: #ff9600;
margin: 0 auto;
color: #fff;
padding: 25px 0;
border-radius: 10px;
font-size: 30px;
}
.pwd_box .step-box .pwd_txt{
padding: 45px 25px 35px;
border: 1px solid #c0c0c0;
background: #fff;
margin: 9px 0 38px;
border-radius: 10px;
}
.pwd_box .step-box .pwd_txt p{
color: #434343;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
}
.pwd_box .step-box .pwd_txt p a{
display: inline-block;
text-align: left;
width: auto;
background: none;
color: #434343;
padding: 0;
border-radius: none;
}
.new-sdk-box .question-input{
position: relative;
background: #fff;
border: 1px solid #c0c0c0;
border-radius: 10px;
padding: 25px 0;
text-align: center;
font-size: 30px;
color: #434343;
font-family: "Microsoft YaHei","微软雅黑";
}
.new-sdk-box .question-input i{
position: absolute;
right: 15px;
top: 27px;
}
.new-sdk-box .input input{
text-align: center;
}
.new-sdk-box .question-input p{
margin: 0;
font-size: 30px;
color: #434343;
font-family: "Microsoft YaHei","微软雅黑";
}
.mt10{ margin-top: 33px;}
.new-sdk-main .other-login p a.hide{ display: none;}
i.checkbx.icon-xuanzhong:before{ color: #999;}
.only-btn.inline-btn .agreement{
position: absolute;
right: 37px;top: 10px;
}
*:focus,* {outline: none;}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #b5b5b6;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 30px;
}
.new-sdk-container .new-sdk-main .other-login label a{
color: #434343;
font-size: 24px;
font-family: "Microsoft YaHei","微软雅黑";
vertical-align: -webkit-baseline-middle;
padding: 10px;
}
.pwd_box .step-box .question-input-box{
background: #fff;
padding: 25px 20px;
border-radius: 10px;
border: 1px solid #c0c0c0;
margin: 83px 0 91px 0;
}
.pwd_box .step-box .qib-txt{
width: 150px;
color: #434343;
font-size: 30px;
font-family: "Microsoft YaHei","微软雅黑";
}
.pwd_box .step-box .qib-input{
width: calc(100% - 150px);
}
.pwd_box .step-box .question-input-box input{
padding: 0;
line-height: 40px;
margin: 0;
border: none;
}
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
background-color: rgb(255, 255, 255) !important;
box-shadow: 0 0 0px 1000px white inset;
}
input:disabled{
background-color:#ffffff;
color:#434343;
}
.new-sdk-container .pull-box .drop-ul li{
border-bottom: 1px solid #ddd;
}
html[data-useragent='ios']
.other-menu{display:none;}
body{
margin:0px;
padding:0px;
font-family: "Microsoft YaHei","微软雅黑";
background-color:white;
text-align: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
/*overflow: hidden;*/
}
h1,h2,h3,h4{font-weight : normal; margin:5px 0px;}
p{margin:5px;line-height:28px;}
a, button, input, select{
-webkit-tap-highlight-color:rgba(255,0,0,0);outline:none;
}
a,input,textarea,select {
outline: 0;
}
a:focus {
outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
}
form{
position: relative;
}
input:-moz-placeholder,
textarea:-moz-placeholder {
color: #555;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
color: #555;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
color: #555;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: none;
}
html{
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#f7f7f7,endColorStr=#eee);
background: -moz-linear-gradient(top,#f7f7f7,#eee);
background: -webkit-gradient(linear, 0% 0%, 0% 100%,from(#f7f7f7), to(#eee));
background: -webkit-linear-gradient(top, #f7f7f7, #eee);
background: -o-linear-gradient(top, #f7f7f7, #eee);
position: relative;
height: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);/*禁用ios点击元素时的灰色背景*/
}
body{
background: #f6f6f6;
width: 100%;
height: 100%;
background-size: 100%;
}
select{
width:100%;
font-size:16px;
height:35px; line-height:33px; padding:2px 0;
font-family:"Microsoft YaHei","微软雅黑";
background-color: #fff;
border: 1px solid #CCCCCC;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
-webkit-appearance: listbox;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;}
.fix .ios_scroll{
margin-right: 50px;
width: auto;
}
.nofix .ios_scroll{
overflow: hidden;
}
.ios_scroll{
width: 100%;
height: 100%;
overflow: scroll;
z-index: 1;
-webkit-overflow-scrolling:touch;
}
.ios_scroll iframe{
z-index: 1;
}
.mask{
position: relative;
height: 100%;
/*overflow: hidden;*/
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
a.link{
color: #F00;
border-bottom: 1px solid #F00;
font-weight: bold;
}
.hide{ display: none;}
a:link, a:active, a:hover, a:visited,a:focus{
text-decoration:none;
}
a, button, input, select, li{
-webkit-tap-highlight-color:rgba(255,0,0,0);
}
.disable{
background-color:#DDDDDD;
}
a:disabled, input:disabled{
background-color:#666666;
}
.align-center{
text-align: center;
}
.container img{
max-width: 95%;
}
small, .small{font-size:16px;}
.mar-r-10{
margin-right: 10px;
}
.mar-t-10{
margin-top: 10px;
}
.relative{
position: relative;
}
.w-80{
width: 80%;
}
.w-20{
width: 20%;
}
/* 文字相关 */
p.text-muted{color: #999999; }
.text-warning{color: #DD1144;}
.text-error{color: #DD1144;}
.text-success{color:#0F820C;}
.text-info{color:#1174B7;}
/*对齐方式*/
.text-indent{text-indent: 1em;}
.align-left{text-align: left;}
.pull-right{float:right;}
.pull-left{float:left;}
.inline{display: inline;}
.inline-block{display: inline-block;}
.badge{
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
background-color: #b94a48;
border-radius: 10px;
}
.relative .badge{
position: absolute;
right: 5px;
top: 13px;
}
.badge.pay{
position: absolute;
right: -8px;
top: -6px;
}
/* 基本样式 END */
.clearfix:before,
.clearfix:after {
display: table;
line-height: 0;
content: "";
}
.clearfix:after {
clear: both;
}
p.lead{
text-align: left;
font-size: 18px;
min-height: 100px;
}
.larg{display:block;}
.container .larg{display:block;}
.header .btn.pull-left{
float: none;
position: absolute;
left: 8px;
margin-top: 8px;
}
.header .btn.pull-right{
float: none;
position: absolute;
right: 8px;
margin-top: 8px;
}
.fix .btn.scroll-btn{
display: inline-block;
}
.btn.scroll-btn{
border-radius:35px;
padding:0px;
display: none;
min-width: 35px;
position: absolute;
z-index: 10000;
right: 0px; height:35px;
}
.btn.scroll-up{
top: 40%;
margin-top: -60px;
}
.btn.scroll-down{
top: 57%;
}
/* 输入控件 */
input[type="text"], input[type="submit"], input[type="date"], input[type="email"]{
width:100%; display:block;line-height: normal;
margin: 10px 0px 10px 0;
}
label.enter_game{
margin-top: 8px;
font-size: 20px;
display: inline-block;
}
/*输入控件 END */
/*字体图标*/
/*字体图标*/
@font-face {font-family: "iconfont";
src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/
src: url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../font/iconfont.woff?t=1468997064') format('woff'), /* chrome, firefox */
url('../font/iconfont.ttf?t=1468997064') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('../font/iconfont.svg?t=1468997064#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.icon-weixin:before { content: "\e600"; font-size: 1.8em; color: #0bb515;}
.icon-qq:before { content: "\e601"; font-size: 1.8em; color: #0f9fcf;}
.icon-iconfontcha:before { content: "\e609"; }
.icon-qq1:before { content: "\e602"; font-size: 1.8em; color: #0f9fcf;}
.icon-weixin1:before { content: "\e603"; }
.icon-qq2:before { content: "\e604"; font-size: 1.8em; color: #0f9fcf;}
.icon-iconfontxiangyou:before { content: "\e60a"; color: #fff; font-size: 32px;}
.icon-iconfontcolor19:before { content: "\e60b"; }
.icon-xuanzhong:before { content: "\e60c"; color: #ff9600; font-size: 1.6em;}
.icon-triangle-l:before { content: "\e605"; }
.icon-shuangyuanquan:before { content: "\e60d"; color: #089b55;}
.icon-weixin2:before { content: "\e606"; }
.icon-xiangyou:before { content: "\e60e"; }
.icon-fuxuankuangyixuanze:before { content: "\e607"; }
.icon-xiangxia:before { content: "\e60f"; color: #ddd; font-size: 1.8em;}
.icon-icon3:before { content: "\e608"; }
.icon-fanhui:before { content: "\e610"; color: #949494; font-size: 2em;}
.icon-yonghutouxiang:before { content: "\e611"; color: #c1c1c1; font-size: 84px;}
.icon-triangle-left-copy:before { content: "\e612"; color:#ddd; font-size: 1.8em;}
/* 消息框 */
#alert {
background:rgba(0, 0, 0, 0.65)!important; filter:Alpha(opacity=65);
position: absolute;
top: 200px;
left: 50%;
margin: auto 0;
width: 80%;
z-index: 1000;
line-height: 38px;
font-size: 30px;
margin-left: -40%;
text-align: center;
color: #c3c3c3;
border-radius: 10px;
padding: 10px 0px;
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.close:hover,
.close:focus {
color: #000000;
text-decoration: none;
cursor: pointer;
opacity: 0.4;
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
/*.alert {
padding: 8px 35px 8px 14px;
font-size: 16px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
background:rgba(250, 250, 250, 0.64);
border: 1px solid #fbeed5;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}*/
.alert,
.alert h4 {
color: #c09853;
}
.alert h4 {
margin: 0;
}
.alert .close {
position: absolute;
top: -2px;
right: 8px;
line-height: 20px;
color: #fff;
}
.alert-success {
color:#009933;
text-shadow:none;
}
.alert-success h3 {
color: #468847;
}
.alert-danger,
.alert-error {
color:red;
text-shadow:none;
}
.alert-danger h3,
.alert-error h3 {
color: #b94a48;
}
/* 第三方登陆的 */
.other-login {
list-style: none outside none;
margin:0;
padding:0;zoom:0.8;
}
.other-login a { background-image:url(http://cdn.i9133.com/static/sdk/skin/img/share_2.png); background-color:#fff;
background-repeat:no-repeat;
display:inline-block;
margin: 0 12px 0px 0px;
height:69px;
width:70px;
padding:0px;
}
.other-login a.hide{
display: none;
}
.other-login li{
display:inline;
zoom:0.8;
}
.other-login a.sina {
background-position: 0 -211px;
}
.other-login a.douban {
background-position: 0 -96px;
}
.other-login a.renren {
background-position: 0 -70px;
}
.other-login a.taobao {
background-position: 0 0;
}
.other-login a.qq {
background-position: 0 -141px;
}
.other-login a.tqq {
background-position: 0 -281px;
}
.other-login a.wangyi {
background-position: 0 -192px;
}
.other-login a.twitter {
background-position: 0 -225px;
}
.other-login a.baidu {
background-position: 0 -350px;
}
.other-login a.google {background-position: 0 -493px;}
.other-login a.facebook{background-position: 0 -421px;}
/* 第三方登陆 END */
/* 角色信息 */
.account-info{
margin:auto;
text-align: left;
height:78px;
position: relative; margin-bottom:20px;
}
.account-info .desc{
margin-left:85px;
}
.account-info .desc p{
font-size: 16px;
line-height: 16px;
margin: 10px 0;
padding: 0;
}
.account-info img{
height: 75px;
position: absolute;
width: 75px;
}
/* 角色信息 END */
/* 单选框切换内容样式 */
ul.step-tab{
list-style:none;
padding:0px;
margin:auto;
text-align: left;
}
.step-tab li{
text-align: left;
margin-bottom:10px;
}
.step-tab li label{
display: block;
padding: 10px 0;
}
.step-tab li p, .setup-form li form{
font-size:14px;
margin-left: 20px;
}
/* 单选框切换内容样式 END */
/* 金额列表 样式 */
.amount_level{ margin-top:20px;}
.amount_level .btn, .amount_level a{
min-width:70px;
margin-left:30px;
margin-bottom:20px;
}
/* 金额列表 样式 */
/* 支付类型列表 */
.channel_list{
margin-top:10px;
}
.channel_list .btn, .channel_list a{
min-width: 120px;
margin-left:20px;
margin-bottom:10px;
text-align: center;
}
/* 支付类型列表 END */
/* 确认代付 */
.pay-proxy-info{
font-size:14px;
margin:auto;
text-align: left;
height: 100px;
}
.pay-proxy-info .desc{
margin-left:0px;
}
.pay-proxy-info .desc p{
font-size: 14px;
line-height: 16px;
margin: 5px 0;
padding: 0;
}
.pay-proxy-info .btn-group{
margin-left:10px;
float:right;}
/* 确认代付 END */
ol.list{
list-style-type:none;
padding: 0px;
margin:0;
line-height:25px;
text-align: left;
}
/*邀请列表*/
ol.invite-list li{
margin-bottom: 8px;
}
ol.invite-list li img{
width: 50px;
height: 50px;
}
ol.invite-list li div.item{
display: inline-block;
width: 100%;
}
/*客服中心*/
ol.kefu-list li a.item{
margin: 0;
padding: 7px 0;
cursor: pointer;
width : 100%;
display: inline-block;
}
ol.question-list li p{
margin-bottom: 0px;
}
ol.question-list .content{
padding: 5px 5px 0 5px;
}
ol.question-list .content>p{
margin:0;
}
ol.question-list li{
margin: 0;
padding: 7px 0;
width : 100%;
border-bottom: 1px solid #888;
display: inline-block;
}
ol.question-list li span.btn{
font-size: 14px;
line-height: 30px;
height: 30px;
cursor:default;
width: 80px;
text-align: center;
}
ol.question-list li span.kefu{
font-size: 16px;
}
ol.question-list li p.content{
text-indent: 1em;
font-size: 15px;
}
ol.question-list p > a{
font-size: 14px;
line-height: 30px;
height: 30px;
width: 80px;
text-align: center;
margin-right: 7px;
margin-top: 5px;
}
ol.question-list p> a:last-of-type{
margin-right: 0px;
}
/*end */
.statu{
color: #ffffff;
margin-right: 6px;
padding: 1px 5px;
font-size: 12px;
}
.statu_yes{
background: #A26737
}
.statu_no{
background: #950001
}
.reply{ border:1px solid #CCC; padding:2px 5px; margin-right:10px; }
.list li a.item{
margin: 0;
padding:10px 0;
cursor: pointer;
width : 100%;
display: inline-block; font-size:14px;
}
.list li a.item p{
margin: 0;
}
.item img{ margin-right:10px;}
/*活动与公告*/
#activity_detail .detail img{
max-width: 100%;
}
/*end */
/*奖励列表*/
ol.prize-list li p:first-child{
font-size: 16px;
margin: 5px 0px 0px 0px;
}
ol.prize-list li p.prize_content{
text-indent: 2em;
margin-top: 0px;
}
ol.prize-list li{
border-bottom: 1px solid #f8f8f8
}
hr{ display:none;}
/*end */
/* 支付记录列表 */
ol.trade-list{
list-style:none;
padding: 0px;
overflow: auto;
text-align: left;
}
ol.trade-list > li, ol.trade-list > li > p{
font-size:16px;
line-height: 20px;
}
ol li.more{
text-align: center;
}
ol.trade-list .detail{
background: none repeat scroll 0 0 #F3F3F3;
font-size: 16px;
line-height:35px;
height:35px;
margin-bottom: 5px;
position: relative;
padding:0px;
padding-left:8px;
}
.btn.btn_pri_block{ height:140px; line-height:140px;}
ol.trade-list .statu{
font-size: 24px;
position: absolute;
right: 5px;
}
ol.trade-list .detail .statu small{
color: red;
}
ol.trade-list .statu .btn{
background-color: #036BB4;
color: white;
height:30px;
line-height:30px;
display: block;
padding:0 30px;
}
/*ol.trade-list > li{border-bottom: 1px solid #dddddd; margin-bottom:10px; padding-bottom:10px;}*/
ol.trade-list > li p{ padding:8px 5px;}
ol.trade-list > li.more{border:0px;}
/* 支付记录列表 END */
/*用户可定义样式*/
/*自定义样式*/
.scroll{
height: 100%;
position: relative;
}
.scroll p{
margin-bottom: 0px;
}
.scroll ol{
padding-bottom: 10px;
margin-top: 0;
}
.scroll div div:last-child{
padding-bottom: 10px;
}
.container{
box-sizing: border-box;
/*overflow: hidden;*/
position: absolute;
top:64px;
left: 0px;
right: 0px;
bottom:0px;
/*background:url(http://cdn.i9133.com/static/sdk/skin/img/logo-sy.png) right bottom no-repeat;*/
/* 使之可以滚动 */
overflow-y: scroll;
/* 增加该属性,可以增加弹性,是滑动更加顺畅 */
-webkit-overflow-scrolling: touch;
}
.box_info_center{
height: 100%; margin:0 37px;
}
.container textarea{
height: 110px;
line-height: normal;
}
section{
position: relative;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.header{
height:64px;
line-height:64px;
text-align:center;
position: absolute;
top: 0;
left:0;
width: 100%;
box-sizing: border-box;
z-index: 100;
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#0d96ca,endColorStr=#11a9d3);
background:-moz-linear-gradient(top,#0d96ca,#11a9d3);
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#0d96ca), to(#11a9d3));
background: -webkit-linear-gradient(top, #0d96ca, #11a9d3);
background: -o-linear-gradient(top, #0d96ca, #11a9d3);
}
.header .btn {
background-image: -moz-linear-gradient(top,#036BB4,#036BB4 );
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#036BB4), to(#036BB4));
background-image: -webkit-linear-gradient(top, #036BB4, #036BB4);
background-image: -o-linear-gradient(top, #036BB4, #036BB4);
background-image: linear-gradient(to bottom, #036BB4, #036BB4);
background-color:#036BB4;
border:1px;
border-style:solid;
border-color:#003090;
margin: 5px 3px;
min-width:60px;
height:50px; line-height:50px;
text-align:center;
font-size:20px; text-shadow:-1px 1px 0 #582804;
}
.header .btn-link{
color: #fff;
font-size: 24px;
font-weight: normal;
}
.header .op-primary{
background-image: -moz-linear-gradient(top,#09AEA8,#09AEA8 );
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#09AEA8), to(#09AEA8));
background-image: -webkit-linear-gradient(top, #09AEA8, #09AEA8);
background-image: -o-linear-gradient(top, #09AEA8, #09AEA8);
background-image: linear-gradient(to bottom, #09AEA8, #09AEA8);
background-color:#09AEA8;
}
.header>.title{
font-size:32px;
color:white;
}
textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
background-color: #FFFFFF; padding:0px; color:#555;
border: 1px solid #CCCCCC;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
/*transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;*/
min-height:44px;
height:44px;
line-height:44px;
font-size:16px;
border-radius: 0;
-webkit-appearance: none;
font-family:"Microsoft YaHei","微软雅黑"; display:block; width:98%; line-height: normal;padding-left:8px; margin-bottom:10px;
}
.ios textarea,.ios input[type="text"],.ios input[type="password"],.ios input[type="datetime"],.ios input[type="datetime-local"],.ios input[type="date"],.ios input[type="month"],.ios input[type="time"],.ios input[type="week"],.ios input[type="number"],.ios input[type="email"],.ios input[type="url"],.ios input[type="search"],.ios input[type="tel"],.ios input[type="color"],.ios .uneditable-input{line-height: normal; width:100%;}
.btn{
background:#036bb4;
color : #FFFFFF;
display : inline-block;
font-size : 16px;
font-weight : normal;
cursor : pointer;
border :0;
-webkit-appearance: none;
border-radius:6px; height:44px; line-height:44px; padding:0px 10px; overflow: hidden;
}
.btn.larg{ padding:0px;border-radius:6px; height:50px; line-height:50px; font-family: "Microsoft YaHei","微软雅黑"; font-size:18px;}
.btn-small{
line-height: 32px;
height:32px;
font-size: 15px;
}
.btn-big{
height:75px;
line-height: 75px;
text-align: center;
padding:0px;
width:120px;
position: absolute;
right:0px;
top:0px;
font-size:20px; font-weight:bold;
}
.toolbar{
margin: 10px auto;
margin-right: auto;
}
.toolbar .btn{
margin-bottom:32px;
width:46%;
margin:0 0px 15px 0;
float:left;
border-radius:6px;
font-size:16px;
padding:0px;
}
div.input-control{
position:relative;
}
.drop-down{
width:55px;
height:55px;
position: absolute;
left:98%;
top:0px;
margin-left:-46px;
background: url(http://cdn.i9133.com/static/sdk/skin/img/toggle-down.png) center center no-repeat;
}
.ios .drop-down{ top:0px;}
.eg{ vertical-align:middle;}
ul.drop-ul{
width:96%;
border: 1px solid #aaaaaa;
background: #ffffff;
position: absolute;
z-index: 100;
color: #222222;
padding: 0;
margin: 0;
font-size: 1.1em;
top:47px;
}
ul.drop-ul li{
width: 100%;
margin: 0px;
padding: 3px;
list-style: none;
}
ul.drop-ul li a{
text-decoration: none;
display: block;
padding: 2px .4em;
line-height: 1.5;
min-height: 0;
font-weight: normal;
}
/*论坛模块*/
div.head{
margin-bottom: 5px;
border-bottom: 3px solid #ffe; padding-bottom:10px;
}
div.head span.num{
position: absolute;
left: 0px;
}
/*其他充值方式*/
div.sec{
margin-top: 16px;
}
ol.other-pay{
padding-left: 5px;
}
ol.other-pay li{
display:inline-block;
}
ol.other-pay li a{
display:inline-block;
text-align: center;
margin:5px 10px 5px 0;
padding: 0 5px;
cursor: pointer;
}
ol.other-pay li a:last-of-type{
margin: 5px 0px 5px 0;
}
ol.other-pay li a img{
width: 70px;
height: 70px;
}
.verify img{
vertical-align:middle; margin-right:15px;
}
.verify input[type=number]{
display: inline-block;
width: 155px;
min-height: 33px;
font-size: 20px;
height: 33px;
line-height: normal;
margin: 8px 15px 8px 0px;
vertical-align:middle;
}
.error_title{
margin: 20px;
}
/*check box*/
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.input-control.checkbox {
display: inline-block;
padding: 10px 0;
cursor: pointer;
}
.amount_level .btn,.channel_list .btn,.toolbar .btn{
margin:0 10px 15px 0;
}
.btn-block{
display: block;
}
/***默认头像***/
.user_face{ background:url(http://cdn.i9133.com/static/sdk/skin/img/user-face.jpg) center center no-repeat; position:absolute; background-size:50px; display:block; width:40px; height:40px; margin-right:10px; margin-top:10px; }
.topic-detail-list li{ margin-bottom:10px; }
.game_face{ background:url(http://cdn.i9133.com/static/sdk/skin/img/game_face_35.png) center center no-repeat; display:block;}
.level{ color:#F60; float:right; font-size:14px;}
.gz-zhanghao{ text-align:left; padding:5px; margin-bottom:10px;}
.gz-zhanghao .qq{ padding:5px 0px 5px 35px;background:url(http://cdn.i9133.com/static/sdk/skin/img/qq.png) left bottom no-repeat; }
.gz-zhanghao .weixin{ background:url(http://cdn.i9133.com/static/sdk/skin/img/weixin.png) left bottom no-repeat; padding:5px 0px 5px 35px}
.fs_box{ text-align:left; font-size:16px; }
.help-span{ font-size:20px; color:#f5c85d; font-family:Verdana, Geneva, sans-serif; font-weight:normal; padding-left:5px;}
.help-text{ font-size:22px; text-align:left; line-height:28px;}
p.forget{
margin: 8px 0;
}
p.forget *{
padding:8px 0;
}
.statu { background:none;border:0px;
font-size: 13px;
margin-right: 6px;
padding: 1px 5px;
color:#ff0000;
}
.muted strong{ color:#F00;}
.btn.width100{
width: 100%;
padding: 0;
box-sizing: border-box;
margin-top: 5px;
}
.btn-group { text-align:center;}
h1.error_title{
position: relative;
top:42%;
font-size: 28px;
}
input[type=text], input[type=password]{
line-height: normal;
}
/**sec_invtite**/
.sec_invtite p.title-fs{ padding:10px 15px;}
.sec_invtite p.title-fs a{ color:#F00; border-bottom:1px solid #F00; font-weight:bold;}
li.more .btn{ display:block;}
/*loading*/
/* Second Loadin Circle */
.container_load {
/*background: #161616 url(/static/http://cdn.i9133.com/static/sdk/skin/img/pattern_40.gif) top left repeat;*/
height: 100%;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
z-index: 1000;
}
.container_load.in_frame{
position: absolute;
width: 100%;
left: 0;
top: 0;
}
.container_load .content {margin:0 auto;position: relative;
left:0px;
top: 35%;}
.circle {
background-color: rgba(0,0,0,0);
border:5px solid rgba(0,183,229,0.9);
opacity:.9;
border-right:5px solid rgba(0,0,0,0);
border-left:5px solid rgba(0,0,0,0);
border-radius:50px;
box-shadow: 0 0 35px #2187e7;
width:50px;
height:50px;
margin:0 auto;
-moz-animation:spinPulse 1s infinite ease-in-out;
-webkit-animation:spinPulse 1s infinite linear;
animation:spinPulse 1s infinite linear;
}
.circle1 {
background-color: rgba(0,0,0,0);
border:5px solid rgba(0,183,229,0.9);
opacity:.9;
border-left:5px solid rgba(0,0,0,0);
border-right:5px solid rgba(0,0,0,0);
border-radius:50px;
box-shadow: 0 0 15px #2187e7;
width:30px;
height:30px;
margin:0 auto;
position:relative;
top:-50px;
-moz-animation:spinoffPulse 1s infinite linear;
-webkit-animation:spinoffPulse 1s infinite linear;
animation:spinoffPulse 1s infinite linear;
}
.tip_text{ margin-bottom:15px; margin-top:15px;}
/**客服**/
.question_del{ border-bottom:1px solid #503c2c; line-height:25px;}
.question_del h2{ font-weight:bold; font-size:16px; margin-bottom:15px; }
.q_time{ font-size:13px; font-weight:normal; color:#999; }
.tip{ font-size:13px;}
.padding_box{ padding-top:25px;}
.padding_box p{ padding-bottom:10px;}
/**平台消息**/
.activity-list li,.message-list li{ border-bottom:1px solid #655241;}
.activity-list li .pull-right,.message-list li .pull-right{ font-size:12px;}
.activity-list h3,.message-comm h3{ font-size:22px; margin-bottom:10px;}
.activity-comm .text-info,.message-comm .text-info{ font-size:12px;}
.activity-comm .bor_b_h3,.message-comm .bor_b_h3{ border-bottom:2px #655241 solid;}
.activity-comm .activity_text ,.message-comm .message_text{padding-top:15px; text-align:left;font-size:16px;text-indent:20px; line-height:28px; }
.activity-comm .activity_text p,.message-comm .message_text p{ text-indent:20px; line-height:28px; font-size:16px;}
.activity-list .act_time{ font-size:12px;}
/**居中**/
/***登录前***/
.box_info_center2{ width:600px; margin:0 auto;}
.box_info_center2 .login_case1{ background-color: #fff;border: 1px solid #036BB4;width:240px; float:left; display:block; margin-top:40px; }
.box_info_center2 .other-login li a{ width:80px; margin:0px; height:80px; background-image:url(http://cdn.i9133.com/static/sdk/skin/img/sdk_login.png); background-repeat:no-repeat; background-position:0px 0px ; float:left; }
.box_info_center2 .other-login li a.qq{ background-position:0px 0px ;}
.box_info_center2 .other-login li a.sina{ background-position:-80px 0px;}
.box_info_center2 .other-login li a.baidu{ background-position:-160px 0px;}
.box_info_center2 .login_case2{ margin-left:90px;}
.box_info_center2 .login_case_c{ padding:15px 10px; text-align:center; min-height:80px;}
.box_info_center2 .login_case_c p{ margin-bottom:10px;}
.login_case_c .text-info{ font-size:22px;}
.login_case_c .text-muted{ font-size:16px;}
.box_info_center2 .login_case_b{ padding:14px; border-top:1px solid #036BB4; color:#727474;}
.case_top{ height:80px; background:#036bb4; line-height:80px; font-size:22px; color:#fff;}
.login_case_c .login_case_btn{ display:block; height:44px; line-height:44px; border:1px solid #036BB4; background-color:#ecf0f1; }
.share_box1{ padding:10px 0px; text-align:left;}
.share_box1 img{ margin-right:10px; }
.share_game{ background-color:rgba(245,245,245, 0.5); padding:10px;}
.share_box2{ border-top:1px solid #f6f6f6; text-align:left; padding:5px 0px;}
.share_box2 h2{ font-weight:bold;}
@-moz-keyframes spinPulse {
0% { -moz-transform:rotate(160deg); opacity:0; box-shadow:0 0 1px #2187e7;}
50% { -moz-transform:rotate(145deg); opacity:1; }
100% { -moz-transform:rotate(-320deg); opacity:0; }
}
@-moz-keyframes spinoffPulse {
0% { -moz-transform:rotate(0deg); }
100% { -moz-transform:rotate(360deg); }
}
@-webkit-keyframes spinPulse {
0% { -webkit-transform:rotate(160deg); opacity:0; box-shadow:0 0 1px #2187e7; }
50% { -webkit-transform:rotate(145deg); opacity:1;}
100% { -webkit-transform:rotate(-320deg); opacity:0; }
}
@-webkit-keyframes spinoffPulse {
0% { -webkit-transform:rotate(0deg); }
100% { -webkit-transform:rotate(360deg); }
}
@keyframes spinoffPulse {
0% { transform:rotate(0deg); }
100% { transform:rotate(360deg); }
}
#share{
text-align: left;
margin: 20px 0px;
}
#share span{
display: inline-block;
height: 46px;
line-height: 46px;
vertical-align: top;
}
#share a {
width: 46px;
height: 46px;
display: inline-block;
background-image: url(http://cdn.i9133.com/static/sdk/skin/img/share.png);
background-repeat: no-repeat;
margin-right: 10px;
-webkit-transform: scale(1.2);
}
#share a.s_qzone{
background-position: 5px 4px
}
#share a.s_tsina{
background-position: 5px -36px
}
#share a.s_tqq{
background-position: 5px -76px;
}
.invite_box p{
margin: 5px 0;
font-size: 16px;
}
.invite_box h3{
margin-top: 18px;
}
.share_box1 .s_content{
width: 70%;
margin: 0px;
height: auto;
min-height: 73px;
}
.pay-info-cont{
padding: 10px 37px;
position: relative;
}
.pay-info-cont .player-info-cont{
border-right:1px solid black;
}
.pay-info-cont .player-info-cont .head-ico{
max-height: 50px;
max-width: 50px;
}
.pay-info-cont .player-info-cont span{
display: inline-block;
}
.topic-detail-list li .content{ padding-left:50px;font-size:16px;}
.time_p{ font-size:12px;}
.toolbar .btn:nth-of-type(even){ float:right; margin-right:0px; padding:0px;}
.qq_login .qq{ background:url(img/icon_qq.png) no-repeat; background-position:0px; display:block; height:80px; width:80px; background-size:auto 100%; border-radius:60px; margin:0 auto; }
/*媒介查询字体定义*/
@media screen and (max-width: 320px) {
body {font-size: 14px;}
h1{font-size: 20px;}
h2{font-size:18px;}
h3{font-size:16px;}
h4{ font-size:15px;}
p{ font-size: 14px;}
}
@media screen and (min-width: 320px) {
body {font-size: 14px;}
h1{font-size: 20px;}
h2{font-size:18px;}
h3{font-size:16px;}
h4{ font-size:15px;}
p{ font-size: 14px;}
}
@media screen and (min-width: 480px) {
body {font-size: 19px;}
h1{font-size: 21px;}
h2{font-size:19px;}
h3{font-size:17px;}
h4{ font-size:15px;}
p{ font-size: 16px;}
}
@media screen and (min-width: 640px) {
body {font-size: 24px;}
h1{font-size: 22px;}
h2{font-size:20px;}
h3{font-size:18px;}
h4{ font-size:16px;}
p{ font-size: 17px;}
}
@media screen and (min-width: 720px) {
body {font-size: 27px;}
h1{font-size: 26px;}
h2{font-size:24px;}
h3{font-size:20px;}
h4{ font-size:18px;}
p{ font-size: 20px;}
}
@media screen and (max-width: 600px){
.box_info_center2{ width:500px; margin:0 auto;}
.box_info_center2 .login_case2{ margin-left:15px;}
}
/*充值中心*/
.header .poslft{ position: absolute; left: 37px;}
.header .posrgt{ position: absolute; right: 37px;}
.channel_list .btn{
background: #fff;
border: 1px solid #ddd;
font-family: "Microsoft YaHei","微软雅黑";
color: #434343;
text-align: left;
font-size: 30px;
padding: 0 15px;
margin: 0 0 10px 0;
height: 77px;
line-height: 77px;
display: block;
}
.channel_list .image{
width: 77px; height: 67px; position: relative; margin-right: 30px; margin-top: 5px;
}
.channel_list .image img{
max-width:77px; max-height:67px;
position:absolute; left:0; right:0; top:0; bottom:0; width:auto; height:auto; margin:auto;
}
.warm-prompt { margin-top: 15px; background: #dcdddd; padding: 15px; }
.warm-prompt h2 { color: #ff0000; font-size: 20px; font-weight: normal; font-family: "Microsoft YaHei","微软雅黑"; }
.warm-prompt p { color: #535353; font-family: "Microsoft YaHei","微软雅黑"; font-size: 16px; margin: 0;}
.warm-prompt p a { color: #f39700; }
.pay-info-cont .user-msg { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; margin-left: 15px; width: calc(100% - 100px);}
.pay-info-cont .user-msg h2 { font-weight: normal; font-size: 24px; margin: 0; color: #949494; }
.pay-info-cont .user-msg p { font-size: 24px; color: #434343; margin: 0; line-height: normal;}
.pay-info-cont .user-msg p span { color: #f39700; }
/*充值记录*/
.integral .box{ border-left:2px solid #089b55; margin-left:100px; height:100%; padding:0 10px 20px;;}
.integral .box h2{ color:#6d6d6d; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; position:relative; }
.integral .box .text{ color:#717070; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:16px; padding:10px;background:#fff; border:1px solid #ddd; border-radius:5px; position:relative; margin-left:10px;}
.integral .box .text .position{ position:absolute; top:13px; left:-18px;}
.integral .box .text .position img{ width:10px;}
.integral .box .text h3{ color:#555; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:30px; border-bottom:1px solid #ddd; padding-bottom:10px;}
.integral .box .text .txt{ color:#9d9d9d; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:14px; padding-top:5px;}
.integral .box .text .txt h3{ margin-bottom: 0; border: none; color: #000; margin-bottom: 10px;}
.integral .box .text .txt p{ line-height: normal; padding: 0; margin: 0; font-size: 24px;}
.integral .box .text .txt strong{ color: #ff0000;}
.integral .box h2 .icon{ position:absolute; left:-20px; top:12px; width:17px; background:#fff; border-radius:20px;}
.integral .box h2 .time{ position:absolute; left:-110px; top:12px; width:100px; text-align:center;}
.integral .box .time h3{ color:#333; font-family:"Microsoft YaHei","微软雅黑"; font-weight:normal; font-size:22px; line-height:22px; margin: 0;}
#trade_record .user-msg h2{ line-height: 75px;}
.container form p { border: 1px solid #ddd; border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px; margin-bottom: 15px;padding: 0 17px;background: #fff; font-size: 30px; color: #434343; }
.container form p label,.container form p input,.container form p select{ height: 84px; line-height: 84px;}
.container form p span { color: #ff9600; }
.container form p input { border: none; font-size: 24px; height: 84px; line-height: 84px; width: calc(100% - 200px); width: -webkit-calc(100% - 200px); width: -moz-calc(100% - 200px); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; min-height: 30px; box-shadow: none; margin: 0;-webkit-appearance: none;}
.container form p select{border: none; box-shadow: none; width: calc(100% - 200px); font-size: 24px; padding: 0;}
.w235{ width: 235px;}
.container form .btn { height: 84px; line-height: 84px; display: block; color: #fff; font-family: "Microsoft YaHei","微软雅黑"; font-size: 30px; text-align: center; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; }
.container form .btn-cancel { background: #0f9fcf; }
.container form .btn-determine { background: #ff9600; }
.container .warm-prompt { margin: 15px 0; background: #dcdddd; padding: 17px 15px;}
.container .warm-prompt h2 { color: #ff0000; font-size: 20px; font-weight: normal; font-family: "Microsoft YaHei","微软雅黑"; text-align: left;}
.container .warm-prompt p { color: #000;font-family: "Microsoft YaHei","微软雅黑";font-size: 20px;padding: 0;margin-top: 5px;text-align: left;border: none; background: none;margin-bottom: 0;}
.container .warm-prompt p a { color: #ff9600; }
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
color: #b5b5b6;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 30px;
}
input:-moz-placeholder, textarea:-moz-placeholder {
color: #b5b5b6;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 30px;
}
input::-moz-placeholder, textarea::-moz-placeholder {
color: #b5b5b6;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 30px;
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
color: #b5b5b6;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 30px;
}
.box_info_center .require_input p input{
float: left;
/*width: auto;*/
}
.box_info_center .require_input select option,.box_info_center .require_input select{
color: #b5b5b6;
font-family: "Microsoft YaHei","微软雅黑";
font-size: 30px;
}
.container a.conBtn{
font-size: 30px;
width: 235px;
color: #fff;
margin: 0 auto;
height:84px;
line-height:84px;
background: #ff9600;
}
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
background-color: rgb(255, 255, 255) !important;
box-shadow: 0 0 0px 1000px white inset !important;
}
\ No newline at end of file
CACHE MANIFEST
#version=20151112001
/static/sdk_3/login.html?20151112001
/static/sdk_3/center.html?20151112001
/static/sdk_3/pay.html?20151112001
/static/sdk_3/share.html?20151112001
/static/sdk_3/js/fastclick.min.1.0.js?20151112001
/static/sdk_3/js/zepto.min.js?20151112001
/static/sdk_3/js/doT.min.js?20151112001
/static/sdk_3/js/iscroll.min.1.0.js?20151112001
/static/sdk_3/skin/login.css?20151112001
/static/sdk_3/skin/pay.css?20151112001
/static/sdk_3/js/core.min.js?20151112001
/static/sdk_3/js/loader.min.js?20151112001
/static/sdk_3/js/center.min.js?20151112001
/static/sdk_3/js/pay.min.js?20151112001
/static/sdk_3/js/login.min.js?20151112001
/static/sdk_3/images/login_icon.png?20151112001
/static/sdk_3/images/new-sdk-logo.png?20151112001
NETWORK:
*
\ No newline at end of file
#!/bin/sh
#js css压缩,生成更新包打包
CDN_SERVER='http://cdn.9133.com/static'
DIR_PATH="$( cd "$( dirname "$0" )" && pwd )"
echo "$DIR_PATH"
cd $DIR_PATH
VERSION=`cat version.txt`
DIR_NAME=${DIR_PATH##*/}
ZIP_FILE="${DIR_NAME}_${VERSION}.zip"
SAVE_DIR="dst"
MD5=''
echo $DIR_NAME
function make_new_zip_file {
cd $DIR_PATH
mkdir -pv dst
save_zip_file="${SAVE_DIR}/${ZIP_FILE}"
[ -f "$save_zip_file" ] && rm "$save_zip_file" && echo "rm $save_zip_file"
echo "zip $ZIP_FILE"
zip -x 'uglifyjs_sqwish.sh' -x 'v.txt' -x '*.svn/*' -x "${SAVE_DIR}/*" -x "${ZIP_FILE}" -r "${save_zip_file}" ./
MD5=`md5sum dst/${ZIP_FILE} |cut -d ' ' -f1`
}
function make_version_file {
make_new_zip_file
cd $DIR_PATH
URL="${CDN_SERVER}/${DIR_NAME}/${SAVE_DIR}/${ZIP_FILE}"
echo "${VERSION}|${MD5}|${URL}" > v.txt
cat v.txt
}
function uglifyjs_js_css {
cd $DIR_PATH
cd js/
for f in `ls *.js`;do
uglifyjs $f -m -o $f
done
cd ../skin
unalias mv
for f in `ls *.css`;do
if [ -f "$f" ];then
sqwish $f
new_f=`basename $f css`
new_f="$new_f""min.css"
echo " mv $new_f $f"
[ -f "$new_f" ] && mv $new_f $f
fi
done
cd ..
}
uglifyjs_js_css
make_version_file
SERVER_URL=http://sdk.uuufish.com
CDN_SERVER_URL=http://sdk.uuufish.com
SDK_TYPE=.sys_config_youyu
\ No newline at end of file