url="/jiapeng/portal-front/src/test">test

5 Commits (d3c16e959da92d78de2ecc266e813326282dbdad)

Auteur SHA1 Bericht Datum
  xuchunyang cf798863f7 修改邮箱绑定跳转链接 7 jaren geleden
  xuchunyang 1a0599dd45 添加登录判断方法 7 jaren geleden
  jiapeng c566b49a1f --增加邀请人 7 jaren geleden
  luyanan 5961a4e80a 新增注册时邮箱验证成功与失败的判断 7 jaren geleden
  jiapeng c5d9752792 --init 8 jaren geleden
portal-front - Gogs: Go Git Service

portal html css js resource

Invitation.html 3.8KB

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>科袖网,搭建企业与专家的桥梁</title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="../css/reset.css"> <link rel="stylesheet" href="../css/common.css"> <link rel="stylesheet" href="../css/share.css"> <style type="text/css"> html,body{min-height: auto;background: url(../images/wechat_bg_img_nor@3x.png) no-repeat;background-size:cover;background-attachment: fixed;} </style> </head> <body class="invitebody"> <div class="contentBody2" style="max-width: 640px;margin:auto;"> <div class="logobox"> <a class="logolink" href="javascript:;"> <img class="logoimg" src="../images/wechat_icon_logo_nor@3x.png" /> </a> </div> <form class="form-inline" role="form" style="width: 90%;margin:auto"> <!--填写表单信息--> <div class="formblock"> <div class="inviteTit"> <span></span> 邀请您加入「科袖」 </div> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control input_name" placeholder="请输入您的姓名" id="username" autocomplete="off"> </div> <div class="input-group"> <input type="phone" class="form-control input_phone" placeholder="请输入您的手机号码" id="userphone" autocomplete="off"> </div> <div class="input-group"> <input class="form-control input_code" type="text" placeholder="请输入验证码" id="code" autocomplete="off"> <button type="button" class="btn input-group-addon canPoint" id="obtain-code">获取验证码</button> </div> <div class="input-group"> <input type="password" class="form-control input_pwd" placeholder="请设置您的登录密码" id="password" autocomplete="off"> </div> </div> <div class="checkboxT checkReg"> <div class="checkBg"> 已同意 <a href="privacyApp.html" class="protocollink" target="_blank">科袖网用户协议</a> </div> </div> <button type="button" class="btn btn-lg btn-block canPoint" disabled id="regbtn">注册</button> </div> <!--注册成功时显示--> <div class="inviteSucceed displayNone"> <div class="inviteTit"> 注册成功!<br/>欢迎您加入「科袖」 </div> <a style="margin:60px 0 54px;" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app" class="btn btn-lg btn-block canPoint">点击下载「科袖」app</a> </div> <!--文档信息--> <div class="inforbox"> <img src="../images/wechat_bg_img_wenben_nor@3x.png" width="100%"/> <ul> <li> <img class="lefticon" src="../images/wechat_icon_pro_nor@3x.png"/> <div class="rightcon"> <h2>认证成为「科袖」专家</h2> <p>寻找企业合作,将您的科研价值变现!</p> </div> </li> <li> <img class="lefticon" src="../images/wechat_icon_xuqiu_nor@3x.png"/> <div class="rightcon"> <h2>发布研发需求</h2> <p>寻找专家帮您解决研发难题!</p> </div> </li> <li> <img class="lefticon" src="../images/wechat_icon_yaoqing_nor@3x.png"/> <div class="rightcon"> <h2>邀请好友加入</h2> <p>获取丰厚积分奖励,好礼随意换!</p> </div> </li> </ul> </div> </form> </div> <div class="bomb-box" style="display: none;"></div> <script type="text/javascript" src="../js/jquery-1.11.1.js" ></script> <script type="text/javascript" src="../js/jquery.cookie.js" ></script> <script type="text/javascript" src="../js/common.js" ></script> <script type="text/javascript" src="../js/invite-friends.js" ></script> </body> </html>
XMTT/markdown-wiki - Gogs: Go Git Service

1 Commitit (2d914b30acbb37ad671791c07c14a6c923e99fd8)

Tekijä SHA1 Viesti Päivämäärä
  huwhois 9f2d52e3d8 ace 编辑器补充 3 vuotta sitten
portal-front - Gogs: Go Git Service

portal html css js resource

xuchunyang bdf84638b6 编辑器组件 7 年之前
..
images bdf84638b6 编辑器组件 7 年之前
en.js bdf84638b6 编辑器组件 7 年之前
back-conference - Gogs: Go Git Service

后端

config.js 12KB

    /** * Created with JetBrains PhpStorm. * User: xuheng * Date: 12-8-8 * Time: 下午2:00 * To change this template use File | Settings | File Templates. */ var templates = [ { "pre":"pre0.png", 'title':lang.blank, 'preHtml':'<p class="ue_t">&nbsp;欢迎使用UEditor!</p>', "html":'<p class="ue_t">欢迎使用UEditor!</p>' }, { "pre":"pre1.png", 'title':lang.blog, 'preHtml':'<h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">深入理解Range</span></h1><p style="text-align:center;"><strong class=" ">UEditor二次开发</strong></p><h3><span class=" " style="font-family:幼圆">什么是Range</span></h3><p style="text-indent:2em;">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 </p><br /><h3><span class=" " style="font-family:幼圆">Range能干什么</span></h3><p style="text-indent:2em;">在“开始”选项卡上,通过从快速样式库中为所选文本选择一种外观,您可以方便地更改文档中所选文本的格式。</p>', "html":'<h1 class="ue_t" label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">[键入文档标题]</span></h1><p style="text-align:center;"><strong class="ue_t">[键入文档副标题]</strong></p><h3><span class="ue_t" style="font-family:幼圆">[标题 1]</span></h3><p class="ue_t" style="text-indent:2em;">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><h3><span class="ue_t" style="font-family:幼圆">[标题 2]</span></h3><p class="ue_t" style="text-indent:2em;">在“开始”选项卡上,通过从快速样式库中为所选文本选择一种外观,您可以方便地更改文档中所选文本的格式。 您还可以使用“开始”选项卡上的其他控件来直接设置文本格式。大多数控件都允许您选择是使用当前主题外观,还是使用某种直接指定的格式。 </p><h3><span class="ue_t" style="font-family:幼圆">[标题 3]</span></h3><p class="ue_t">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><p class="ue_t"><br /></p>' }, { "pre":"pre2.png", 'title':lang.resume, 'preHtml':'<h1 label="Title left" name="tl" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;"><span style="color:#e36c09;" class=" ">WEB前端开发简历</span></h1><table width="100%" border="1" bordercolor="#95B3D7" style="border-collapse:collapse;"><tbody><tr><td width="100" style="text-align:center;"><p><span style="background-color:transparent;">插</span><br /></p><p>入</p><p>照</p><p>片</p></td><td><p><span style="background-color:transparent;"> 联系电话:</span><span class="ue_t" style="background-color:transparent;">[键入您的电话]</span><br /></p><p><span style="background-color:transparent;"> 电子邮件:</span><span class="ue_t" style="background-color:transparent;">[键入您的电子邮件地址]</span><br /></p><p><span style="background-color:transparent;"> 家庭住址:</span><span class="ue_t" style="background-color:transparent;">[键入您的地址]</span><br /></p></td></tr></tbody></table><h3><span style="color:#E36C09;font-size:20px;">目标职位</span></h3><p style="text-indent:2em;" class=" ">WEB前端研发工程师</p><h3><span style="color:#e36c09;font-size:20px;">学历</span></h3><p><span style="display:none;line-height:0px;" id="_baidu_bookmark_start_26"></span></p><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[起止时间]</span> <span class="ue_t">[学校名称] </span> <span class="ue_t">[所学专业]</span> <span class="ue_t">[所获学位]</span></p></li></ol><h3><span style="color:#e36c09;font-size:20px;" class="ue_t">工作经验</span></h3><p><br /></p>', "html":'<h1 label="Title left" name="tl" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;"><span style="color:#e36c09;" class="ue_t">[此处键入简历标题]</span></h1><p><span style="color:#e36c09;"><br /></span></p><table width="100%" border="1" bordercolor="#95B3D7" style="border-collapse:collapse;"><tbody><tr><td width="200" style="text-align:center;" class="ue_t">【此处插入照片】</td><td><p><br /></p><p> 联系电话:<span class="ue_t">[键入您的电话]</span></p><p><br /></p><p> 电子邮件:<span class="ue_t">[键入您的电子邮件地址]</span></p><p><br /></p><p> 家庭住址:<span class="ue_t">[键入您的地址]</span></p><p><br /></p></td></tr></tbody></table><h3><span style="color:#e36c09;font-size:20px;">目标职位</span></h3><p style="text-indent:2em;" class="ue_t">[此处键入您的期望职位]</p><h3><span style="color:#e36c09;font-size:20px;">学历</span></h3><p><span style="display:none;line-height:0px;" id="_baidu_bookmark_start_26"></span></p><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入学校名称] </span> <span class="ue_t">[键入所学专业]</span> <span class="ue_t">[键入所获学位]</span></p></li><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入学校名称]</span> <span class="ue_t">[键入所学专业]</span> <span class="ue_t">[键入所获学位]</span></p></li></ol><h3><span style="color:#e36c09;font-size:20px;" class="ue_t">工作经验</span></h3><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入公司名称]</span> <span class="ue_t">[键入职位名称]</span> </p></li><ol style="list-style-type:lower-alpha;"><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li></ol><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入公司名称]</span> <span class="ue_t">[键入职位名称]</span> </p></li><ol style="list-style-type:lower-alpha;"><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li></ol></ol><p><span style="color:#e36c09;font-size:20px;">掌握技能</span></p><p style="text-indent:2em;"> &nbsp;<span class="ue_t">[这里可以键入您所掌握的技能]</span><br /></p>' }, { "pre":"pre3.png", 'title':lang.richText, 'preHtml':'<h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;" class="ue_t">[此处键入文章标题]</h1><p><img src="http://img.baidu.com/hi/youa/y_0034.gif" width="150" height="100" border="0" hspace="0" vspace="0" style="width:150px;height:100px;float:left;" />图文混排方法</p><p>图片居左,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居左对齐,然后即可在右边输入多行文</p><p><br /></p><p><img src="http://img.baidu.com/hi/youa/y_0040.gif" width="100" height="100" border="0" hspace="0" vspace="0" style="width:100px;height:100px;float:right;" /></p><p>还有没有什么其他的环绕方式呢?这里是居右环绕</p><p><br /></p><p>欢迎大家多多尝试,为UEditor提供更多高质量模板!</p>', "html":'<p><br /></p><h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;" class="ue_t">[此处键入文章标题]</h1><p><img src="http://img.baidu.com/hi/youa/y_0034.gif" width="300" height="200" border="0" hspace="0" vspace="0" style="width:300px;height:200px;float:left;" />图文混排方法</p><p>1. 图片居左,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居左对齐,然后即可在右边输入多行文本</p><p><br /></p><p>2. 图片居右,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居右对齐,然后即可在左边输入多行文本</p><p><br /></p><p>3. 图片居中环绕排版</p><p>方法:亲,这个真心没有办法。。。</p><p><br /></p><p><br /></p><p><img src="http://img.baidu.com/hi/youa/y_0040.gif" width="300" height="300" border="0" hspace="0" vspace="0" style="width:300px;height:300px;float:right;" /></p><p>还有没有什么其他的环绕方式呢?这里是居右环绕</p><p><br /></p><p>欢迎大家多多尝试,为UEditor提供更多高质量模板!</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p><br /></p>' }, { "pre":"pre4.png", 'title':lang.sciPapers, 'preHtml':'<h2 style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;text-align:center;" class="ue_t">[键入文章标题]</h2><p><strong><span style="font-size:12px;">摘要</span></strong><span style="font-size:12px;" class="ue_t">:这里可以输入很长很长很长很长很长很长很长很长很差的摘要</span></p><p style="line-height:1.5em;"><strong>标题 1</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以输入很多内容,可以图文混排,可以有列表等。</span></p><p style="line-height:1.5em;"><strong>标题 2</strong></p><ol style="list-style-type:lower-alpha;"><li><p class="ue_t">列表 1</p></li><li><p class="ue_t">列表 2</p></li><ol style="list-style-type:lower-roman;"><li><p class="ue_t">多级列表 1</p></li><li><p class="ue_t">多级列表 2</p></li></ol><li><p class="ue_t">列表 3<br /></p></li></ol><p style="line-height:1.5em;"><strong>标题 3</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个文字图文混排的</span></p><p style="text-indent:2em;"><br /></p>', 'html':'<h2 style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;text-align:center;" class="ue_t">[键入文章标题]</h2><p><strong><span style="font-size:12px;">摘要</span></strong><span style="font-size:12px;" class="ue_t">:这里可以输入很长很长很长很长很长很长很长很长很差的摘要</span></p><p style="line-height:1.5em;"><strong>标题 1</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以输入很多内容,可以图文混排,可以有列表等。</span></p><p style="line-height:1.5em;"><strong>标题 2</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个列表瞅瞅:</span></p><ol style="list-style-type:lower-alpha;"><li><p class="ue_t">列表 1</p></li><li><p class="ue_t">列表 2</p></li><ol style="list-style-type:lower-roman;"><li><p class="ue_t">多级列表 1</p></li><li><p class="ue_t">多级列表 2</p></li></ol><li><p class="ue_t">列表 3<br /></p></li></ol><p style="line-height:1.5em;"><strong>标题 3</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个文字图文混排的</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以多行</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">右边是图片</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">绝对没有问题的,不信你也可以试试看</span></p><p><br /></p>' } ];
portal-front - Gogs: Go Git Service

portal html css js resource

cmp-staffList.js 5.8KB

    $(document).ready(function() { $(".onlogin .headnavbtn li").eq(0).addClass("navcurrent"); var id = $.cookie('orgId'); /*判断企业是否认证*/ function companyAuthStatus() { $.ajax({ url: "/ajax/org/authStatus", type: "GET", timeout: 10000, dataType: "json", data: { "id": id }, success: function(data, textState) { if(data.success) { if(data.data == 3) { $("#staff").show(); } else { $("#identityState").show(); $("#costf").html("员工管理"); } } }, error: function(XMLHttpRequest, textStats, errorThrown) { $.MsgBox.Alert('提示', '服务器请求失败') } }) } companyAuthStatus(); /*获取企业认证的用户*/ function UnauthorizedUser() { $.ajax({ url: "/ajax/professor/qaOrgAuth", type: "GET", timeout: 10000, dataType: "json", data: { "orgId": id, "orgAuth": 1 }, success: function(data, textState) { if(data.success) { console.log(data); var $data = data.data; UnauthorizedUserHtml($data, "#authorizedUserList", 0); } }, error: function(XMLHttpRequest, textStats, errorThrown) { $.MsgBox.Alert('提示', '服务器请求失败') } }) } UnauthorizedUser() /*企业认证用户html*/ function UnauthorizedUserHtml() { var arr = new Array(); for(var i = 0; i < arguments[0].length; i++) { var img, tiof, deor, otex; if(arguments[0][i].hasHeadImage) { img = "/images/head/" + arguments[0][i].id + "_l.jpg"; } else { img = "../images/default-photo.jpg" } if(arguments[0][i].title) { if(arguments[0][i].office) { tiof = arguments[0][i].title + " ," + arguments[0][i].office; } else { tiof = arguments[0][i].title; } } else { if(arguments[0][i].office) { tiof = arguments[0][i].office; } else { tiof = ""; } } if(arguments[0][i].department) { if(arguments[0][i].orgName) { deor = arguments[0][i].department + " ," + arguments[0][i].orgName; } else { deor = arguments[0][i].department; } } else { if(arguments[0][i].orgName) { deor = arguments[0][i].orgName; } else { deor = ""; } } if(arguments[2] == 1) { otex = "待认证"; } else { otex = "移除"; } var oString = "<li>" oString += "<div class='leftlogo floatL userRadius'>" oString += "<img class='headPhoto' src='" + img + "' width='100%'>" oString += "</div>" oString += "<div class='rightinfo staffinfo floatL'>" oString += "<p class='h3Font'>" + arguments[0][i].name + "</p>" oString += "<p class='h5Font ellipsisSty'>" + tiof + "</p>" oString += "<p class='h5Font ellipsisSty'>" + deor + "</p>" oString += "</div>" oString += "<button type='button' class='frmtype fontLink btnPosition cmpColor headRadius' data-id='" + arguments[0][i].id + "'>" + otex + "</button>" oString += "</li>" $(arguments[1]).append(oString); } } /*移除企业员工*/ $("#authorizedUserList").on("click", "button", function() { var oDataId = $(this).attr("data-id"); var oDa = $(this); $.ajax({ url: "/ajax/professor/removeOrgAuth", type: "POST", timeout: 10000, dataType: "json", data: { "id": oDataId, }, success: function(data, textState) { if(data.success) { oDa.parents("li").remove(); } }, error: function(XMLHttpRequest, textStats, errorThrown) { $.MsgBox.Alert('提示', '服务器请求失败') } }) }) /*检验邮箱*/ $("#mail").on("blur", function() { var oMail = $(this).val(); var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; if(oMail.trim().length == 0) { $.MsgBox.Alert('提示', '请输入您企业员工的邮箱地址'); return; } if(!gunf.test(oMail.trim())) { $.MsgBox.Alert('提示', '请输入正确的邮箱地址'); } }) $("button:contains('邀请')").on("click", function() { var oMail = $("#mail").val(); var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; if(oMail.trim().length == 0) { $.MsgBox.Alert('提示', '请输入您企业员工的邮箱地址'); return; } if(!gunf.test(oMail.trim())) { $.MsgBox.Alert('提示', '请输入正确的邮箱地址'); return; } else { /*验证邮箱是否注册*/ $.ajax({ url: "/ajax/isReg", type: "GET", timeout: 10000, dataType: "json", data: { "key": oMail }, success: function(data, textState) { if(data.success) { if(data.data) { $.ajax({ url: "/ajax/inviteStaffMail", type: "GET", timeout: 10000, dataType: "json", data: { "orgId": id, "mail": oMail }, success: function(data, textState) { if(data.success) { if(data.data) { $.MsgBox.Alert('提示', '已发送邀请邮件'); $("#mb_msgicon").css({ "background-image": "url(images/sign_icon_chenggong_nor.png)", "background-size": "cover" }); $("#mail").val(""); } } else { $.MsgBox.Alert('提示', data.msg); } }, error: function(XMLHttpRequest, textStats, errorThrown) { $.MsgBox.Alert('提示', '服务器请求失败') } }) } else { $.MsgBox.Alert('提示', "该邮箱已注册账户"); } } else { $.MsgBox.Alert('提示', data.msg); } }, error: function(XMLHttpRequest, textStats, errorThrown) { $.MsgBox.Alert('提示', '服务器请求失败') } }) } }) })
ekexiu.app - Gogs: Go Git Service

Nenhuma Descrição

proinforupdate.js 11KB

    mui.ready(function() { mui.plusReady(function() { var userid = plus.storage.getItem('userid'); var oImg=document.getElementsByTagName("img")[0]; var personalMaterial=document.getElementsByClassName('personalMaterial'); var personSummary=document.getElementsByClassName("breifinfo")[0]; var fl; window.addEventListener("newId",function(event){ fl=event.detail.rd; personalMaterial[1].parentNode.style.display = "block"; personalMaterial[2].parentNode.style.display = "block"; personalMaterial[3].parentNode.style.display = "block"; personalMaterial[4].parentNode.style.display = "block"; personalMaterial[5].parentNode.style.display = "block"; personalMaterial[6].parentNode.style.display = "block"; personalMaterial[7].parentNode.style.display = "block"; personalMessage(); }) //查询学术领域 var subjectShow = function (data){ if(data != undefined && data.length != 0 ){ var subs = new Array(); if(data.indexOf(',')) { subs = data.split(','); }else { subs[0] = data; } if(subs.length>0) { var html = []; for (var i = 0; i < subs.length; i++) { html.push("<li>"+subs[i]+"</li>"); }; document.getElementsByClassName("infosubject")[0].innerHTML=html.join(''); } } } //查询应用行业 var industryShow = function (data){ if(data != undefined && data.length != 0 ){ var subs = new Array(); if(data.indexOf(',')) { subs = data.split(','); }else { subs[0] = data; } if(subs.length>0) { var html = []; for (var i = 0; i < subs.length; i++) { html.push("<li>"+subs[i]+"</li>"); }; document.getElementsByClassName("infoapply")[0].innerHTML=html.join(''); } } } //查询研究方向 var getRecords = function($researchAreaLogs, caption) { var ret = []; var t = 0; for(var i = 0; i < $researchAreaLogs.length; i++) { if(caption == $researchAreaLogs[i].caption) { ret[t] = { id: $researchAreaLogs[i].opreteProfessorId, img: $researchAreaLogs[i].hasHeadImage } t++; } } return ret; } var researchAreaShow = function($datas, $datarecords) { if($datas != undefined && $datas.length != 0) { var html = []; for(var i = 0; i < $datas.length; ++i) { var $data = $datas[i]; var $photos = []; //获取头像 if($datarecords.length > 0) { $photos = getRecords($datarecords, $data.caption); } var isAgree = -1; for(var j = 0; j < $photos.length; j++) { if(userid == $photos[j].id) isAgree++; } if(isAgree) { var showDiv = "<div class='listbox'><div class='listbrowse mui-ellipsis'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><div class='likenum'>"; } else { var showDiv = "<div class='listbox'><div class='listbrowse mui-ellipsis'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><div class='likenum'>"; } if($photos.length > 0) { for(var j = 0; j < $photos.length; ++j) { if($photos[j].hasHeadImage) { showDiv += "<span class='likepeople headRadius'><img class='like-h' src='../images/head/" + $photos[j] + "_s.jpg'></span>"; } else { showDiv += "<span class='likepeople headRadius'><img class='like-h' src='../images/default-photo.jpg'></span>"; } } } if($photos.length >= 3) { showDiv += "<span class='mui-icon iconfont icon-more likepeople likemore headRadius'></span>"; } showDiv += "</div></div></div>"; html.push(showDiv); } document.getElementsByClassName("reserachMess")[0].innerHTML = html.join('') } } //获取个人的信息 function personalMessage() { mui.ajax(baseUrl + "/ajax/professor/info/" + userid, { dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, //超时设置 success: function(data) { if(!fl){ plus.nativeUI.closeWaiting(); plus.webview.currentWebview().show("slide-in-right", 150); } var $data = data.data; personalMaterial[0].innerText = $data.name; //头像 if($data.hasHeadImage) { oImg.src = baseUrl + "/images/head/" + $data.id + "_l.jpg"; } //基本信息 // if(!$data.authType) { // document.getElementsByClassName('authword')[0].innerText = "未认证"; // document.getElementsByClassName('authword')[0].style.backgroundColor = "#cccccc"; // } if($data.office) { personalMaterial[1].innerText = $data.office; } else { personalMaterial[1].parentNode.style.display = "none"; } if($data.title) { personalMaterial[2].innerText = $data.title; } else { personalMaterial[2].parentNode.style.display = "none"; } if($data.department) { personalMaterial[3].innerText = $data.department; } else { personalMaterial[3].parentNode.style.display = "none"; } if($data.orgName) { personalMaterial[4].innerText = $data.orgName; } else { personalMaterial[4].parentNode.style.display = "none"; } if($data.address) { personalMaterial[5].innerText =$data.province+" "+$data.address; } else { personalMaterial[5].parentNode.style.display = "none"; } if($data.phone) { personalMaterial[6].innerText = $data.phone; } else { personalMaterial[6].parentNode.style.display = "none"; } if($data.email) { personalMaterial[7].innerText = $data.email; } else { personalMaterial[7].parentNode.style.display = "none"; } //个人简介 if($data.descp) { personSummary.innerHTML = $data.descp; } //学术领域 if($data.subject) { subjectShow($data.subject); } //研究方向 if($data.researchAreas.length) { researchAreaShow($data.researchAreas, $data.editResearchAreaLogs); } //应用行业 if($data.industry) { industryShow($data.industry); } //我的资源 if($data.resources.length) { resource($data.resources, $data.resources.length); } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); return; } }); } //我的所有资源、 function resource(oDa, n) { var $data = oDa; var html = []; for(var i = 0; i < n; i++) { var string = '<li class="mui-table-view-cell mui-media listitem" resouId=' + $data[i].resourceId + '>' string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox ResImgBox2">' if($data[i].images.length) { string += '<img class="resImg headRadius" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">' } else { string += '<img class="resImg headRadius" src="../images/default-resource.jpg">' } string += '</div><div class="mui-media-body" style="width:60%">' string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:24px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>' string += '<p class="listtit2">' + $data[i].supportedServices + '</p>' string += '<p class="listtit3 resbrief">' if($data[i].descp) { string += $data[i].descp; } string += '</p></div></a></li>' html.push(string); } document.getElementById("resourceList").innerHTML = html.join(''); } //个人信息修改 document.getElementsByClassName("updatebox")[0].addEventListener("tap", function() { var nwaiting = plus.nativeUI.showWaiting(); //显示原生等待框 var arr = { name: personalMaterial[0].innerText, office: personalMaterial[1].innerText, title: personalMaterial[2].innerText, orgName: personalMaterial[3].innerText, department: personalMaterial[4].innerText, address: personalMaterial[5].innerText } webviewShow = plus.webview.create("../html/updateinfo1.html", "../html/updateinfo1.html", {}, arr); //后台创建webview并打开show.html webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件 // nwaiting.close(); //新webview的载入完毕后关闭等待框 // webviewShow.show("slide-in-right", 150); //把新webview窗体显示出来,显示动画效果为速度150毫秒的右侧移入动画 }, false); }); document.getElementsByClassName("updatebox")[1].addEventListener("tap", function() { var nwaiting = plus.nativeUI.showWaiting(); //显示原生等待框 var arr = { descp: personSummary.innerText, flag:2 } webviewShow = plus.webview.create("../html/updateinfo2.html", "updateinfo2.html", {}, arr); //后台创建webview并打开show.html webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件 nwaiting.close(); //新webview的载入完毕后关闭等待框 webviewShow.show("slide-in-right", 150); //把新webview窗体显示出来,显示动画效果为速度150毫秒的右侧移入动画 }, false); }); var page = mui.preload({ url: "../html/updateinfo3.html", id: "updateinfo3.html" }) document.getElementsByClassName("updatebox")[2].addEventListener("tap", function() { page.show("slide-in-right", 150); }); var page1 = mui.preload({ url: "../html/updateinfo4.html", id: "updateinfo4.html" }) document.getElementsByClassName("updatebox")[3].addEventListener("tap", function() { page1.show("slide-in-right", 150); }); var page2 = mui.preload({ url: "../html/updateinfo5.html", id: "updateinfo5.html" }) document.getElementsByClassName("updatebox")[4].addEventListener("tap", function() { page2.show("slide-in-right", 150); }); //添加我的资源 document.getElementsByClassName("addinfobox")[0].addEventListener("tap", function() { var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/updateinfo-res01.html", "updateinfo-res01.html",{},{reFlag:0}); //后台创建webview并打开show.html web.addEventListener("loaded", function() { plus.nativeUI.closeWaiting(); web.show("slide-in-right", 150); }, false); }); //修改我的资源 mui("#resourceList").on("tap", "li", function() { var resouId = this.getAttribute("resouId"); var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/resinforupdate.html", "resinforupdate.html", {}, { resourceId: resouId, reFlag:0 }); //后台创建webview并打开show.html web.addEventListener("loaded", function() { }, false); }) //修改详细页面 document.getElementsByClassName("gotonext2")[0].addEventListener("tap", function() { var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/proinforupdate-more.html", "proinforupdate-more.html"); //后台创建webview并打开show.html web.addEventListener("loaded", function() {}, false); }); personalMessage(); }); });
Internal Server Error - Gogs: Go Git Service

500


Application Version: 0.9.13.0318

console-front - Gogs: Go Git Service

暫無描述

mootools-adapter.js 2.2KB

    /* Highcharts JS v3.0.6 (2013-10-04) MooTools adapter (c) 2010-2013 Torstein Hønsi License: www.highcharts.com/license */ (function(){var e=window,h=document,f=e.MooTools.version.substring(0,3),i=f==="1.2"||f==="1.1",j=i||f==="1.3",g=e.$extend||function(){return Object.append.apply(Object,arguments)};e.HighchartsAdapter={init:function(a){var b=Fx.prototype,c=b.start,d=Fx.Morph.prototype,e=d.compute;b.start=function(b,d){var e=this.element;if(b.d)this.paths=a.init(e,e.d,this.toD);c.apply(this,arguments);return this};d.compute=function(b,c,d){var f=this.paths;if(f)this.element.attr("d",a.step(f[0],f[1],d,this.toD));else return e.apply(this, arguments)}},adapterRun:function(a,b){if(b==="width"||b==="height")return parseInt($(a).getStyle(b),10)},getScript:function(a,b){var c=h.getElementsByTagName("head")[0],d=h.createElement("script");d.type="text/javascript";d.src=a;d.onload=b;c.appendChild(d)},animate:function(a,b,c){var d=a.attr,f=c&&c.complete;if(d&&!a.setStyle)a.getStyle=a.attr,a.setStyle=function(){var a=arguments;this.attr.call(this,a[0],a[1][0])},a.$family=function(){return!0};e.HighchartsAdapter.stop(a);c=new Fx.Morph(d?a:$(a), g({transition:Fx.Transitions.Quad.easeInOut},c));if(d)c.element=a;if(b.d)c.toD=b.d;f&&c.addEvent("complete",f);c.start(b);a.fx=c},each:function(a,b){return i?$each(a,b):Array.each(a,b)},map:function(a,b){return a.map(b)},grep:function(a,b){return a.filter(b)},inArray:function(a,b,c){return b?b.indexOf(a,c):-1},offset:function(a){a=a.getPosition();return{left:a.x,top:a.y}},extendWithEvents:function(a){a.addEvent||(a.nodeName?$(a):g(a,new Events))},addEvent:function(a,b,c){typeof b==="string"&&(b=== "unload"&&(b="beforeunload"),e.HighchartsAdapter.extendWithEvents(a),a.addEvent(b,c))},removeEvent:function(a,b,c){typeof a!=="string"&&a.addEvent&&(b?(b==="unload"&&(b="beforeunload"),c?a.removeEvent(b,c):a.removeEvents&&a.removeEvents(b)):a.removeEvents())},fireEvent:function(a,b,c,d){b={type:b,target:a};b=j?new Event(b):new DOMEvent(b);b=g(b,c);if(!b.target&&b.event)b.target=b.event.target;b.preventDefault=function(){d=null};a.fireEvent&&a.fireEvent(b.type,b);d&&d(b)},washMouseEvent:function(a){if(a.page)a.pageX= a.page.x,a.pageY=a.page.y;return a},stop:function(a){a.fx&&a.fx.cancel()}}})();
ekexiu.app - Gogs: Go Git Service

Sin Descripción

picture-upload.html 1.7KB

    <!doctype html> <html> <head> <meta charset="UTF-8"> <title>头像上传</title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link href="../css/mui.min.css" rel="stylesheet" /> <style type="text/css"> *{margin:0;padding: 0;} body,html{background-color:#000;position:relative;width:100%;height:100%;overflow: hidden;} .canvas_img,.canvas,.canvas_div,.canvas_btn,.canvas_bg{position: absolute;} .canvas_div,.canvas_bg{left:0;top:0;bottom:0;right:0;} .canvas_img{z-index:1;} .canvas_bg{background-color: rgba(0,0,0,.6);z-index:2;} .canvas{left:25px ;border:1px solid #fff;top:30px;z-index:100; } .canvas_div{z-index:999;} .canvas_btn {bottom:0;left:0;right:0;height:50px;background-color: #fff;z-index:1000;} .canvas_btn a{float:left;color:#222;width:60px;line-height:50px;text-decoration: none;text-align: center;} .canvas_btn .canvas_ok{float:right;} .canvas_save:active{color:#fff;} </style> </head> <body> <input type="hidden" name="img_base64" id="img_base64" value="" /> <img id="canvas_img" src="" class="canvas_img" /> <div class="canvas_bg"></div> <canvas id="canvas" class="canvas"></canvas> <div id="canvas_div" class="canvas_div"></div> <div class="canvas_btn"> <a href="javascript:void(0);" class="canvas_cancel mui-action-back">取消</a> <a href="javascript:void(0);" class="canvas_ok" id="canvas_ok">完成</a> </div> <script src="../js/public/mui.min.js"></script> <script src="../js/public/base.js"></script> <script src="../js/public/exif.js"></script> <script src="../js/picture-upload.js"></script> </body> </html>
console-front - Gogs: Go Git Service

暫無描述

XMTT ba43c6a729 文章编辑 7 年之前
..
map.html ba43c6a729 文章编辑 7 年之前
show.html ba43c6a729 文章编辑 7 年之前
jiapeng/portal-front - Gogs: Go Git Service

6 Commits (479500f72c4dbfe77c4d4e856659b646479fd382)

Autor SHA1 Nachricht Datum
  xuchunyang f2dcb036d1 新增入驻科袖证明 vor 7 Jahren
  xuchunyang dda7258146 找回企业账号 vor 7 Jahren
  xuchunyang 8f9ff86911 新增企业认证 vor 7 Jahren
  happy 6e8af56f15 企业页面 vor 7 Jahren
  xuchunyang efe56275a2 修改路径 vor 7 Jahren
  luyanan b6bd5b21dc 改变企业版访问层级目录 vor 7 Jahren
jiapeng/portal-front - Gogs: Go Git Service

1 Commitit (683324d6eec9cd6bc9d00f5819831c8c1b8159f3)

Tekijä SHA1 Viesti Päivämäärä
  xuchunyang bdf84638b6 编辑器组件 7 vuotta sitten
Sign In - Gogs: Go Git Service

Sign In