"id": $.cookie("userid") }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, //超时设置 async: false, success: function(data) { //console.log(JSON.stringify(data)); var $info = data.data || {}; if(data.success && data.data) { authStatusExpert = $info.authStatusExpert; authStatus = $info.authStatus; //console.log(authStatusExpert) if(authStatusExpert == -1) { $("#identProcess").text("很遗憾,您没有通过认证。"); $("#identts").text("请更换符合要求的认证材料再试试。"); $("#identBtn").show().text("重新认证"); } else if(authStatusExpert == 0) { $("#identProcess").text("成为科袖认证专家用户,与企业开展合作,将您的科研价值变现!"); $("#identProcess").css({ "width": "300px" }); $("#identBtn").show().text("开始认证"); } else if(authStatusExpert == 1) { $("#identProcess").text("认证信息提交成功!"); $("#identts").text("我们将尽快对您的信息进行认证,通过后您将成为科袖认证专家,获得特殊功能权限!"); } else if(authStatusExpert == 2) { $("#identProcess").text("我们正在对您的材料进行认证,请稍等片刻。"); $("#identProcess").css({ "width": "280px" }); } else if(authStatusExpert == 3) { $("#identProcess").text("恭喜您已成为科袖认证专家!"); $("#identts").text("在【我的工作台】可以查看发布中的需求,与企业展开合作,将科研价值变现。"); $("#identBtn").show().text("进入[我的工作台]"); $("#identBtn").on("click", function() { window.location.href = "workspaces.html"; }) } if(authStatus == 3) { if(authStatusExpert == -1 || authStatusExpert == 0) { $("#identBtn").on("click", function() { $(".IdentityState,.realname").hide(); $(".IdentityUp").show(); $(".subUp").addClass("expertSubmit"); }) } } else if(authStatus == -1 || authStatus == 0) { if(authStatusExpert == -1 || authStatusExpert == 0) { $("#identBtn").on("click", function() { $(".IdentityState").hide(); $(".IdentityUp").show(); $(".subUp").addClass("realnameSubmit"); }) } } else if(authStatus == 1 || authStatus == 2) { $("#identBtn").hide(); $("#identProcess").text("我们正在对您的材料进行认证,请稍等片刻。"); $("#identProcess").css({ "width": "280px" }); } } }, error: function() { $.MsgBox.Alert('消息', '服务器链接超时'); return; } }); } /*提交专家认证图片*/ function expertimg(temp) { $.ajax("/ajax/authApply/expert", { data: { "professorId": $.cookie("userid"), "fns": temp }, dataType: 'json', //数据格式类型 type: 'post', //http请求类型 async: false, timeout: 10000, //超时设置 traditional: true, //传数组必须加这个 success: function(data) { //console.log(JSON.stringify(data)); if(data.success) { $(".IdentityUp").hide(); $(".IdentityState").show(); location.reload(true); } }, error: function() { $.MsgBox.Alert('消息', '服务器链接超时'); } }); } /*提交实名认证图片*/ function realnameimg(temp2) { $.ajax("/ajax/authApply/realName", { data: { "professorId": $.cookie("userid"), "fns": temp2 }, dataType: 'json', //数据格式类型 type: 'post', //http请求类型 async: false, timeout: 10000, //超时设置 traditional: true, //传数组必须加这个 success: function(data) { //console.log(JSON.stringify(data)); if(data.success) { $(".IdentityUp").hide(); $(".IdentityState").show(); location.reload(true); } }, error: function() { $.MsgBox.Alert('消息', '服务器链接超时'); } }); } ekexiu.app - Gogs: Go Git Service

説明なし

identity-up.js 5.5KB

    mui.plusReady(function() { var userid = plus.storage.getItem('userid'); var self = plus.webview.currentWebview(); var usertype = self.usertype; //var authapplyid; console.log(self.usertype); console.log(userid); $('#submit').on("click", function() { var imglen = $(".image-item img").length; if(imglen == 0) { plus.nativeUI.toast("请上传能够证明您身份的相关证件", toastStyle); } else { plus.nativeUI.showWaiting(); typename(userid, usertype); } }) }) //添加认证申请信息 function typename(userid, usertype) { mui.ajax(baseUrl + "/ajax/authApply", { data: { "professorId": userid, "applyType": usertype }, dataType: 'json', //数据格式类型 type: 'post', //http请求类型 async: false, timeout: 10000, //超时设置 success: function(data) { if(data.success) { var identityPage = plus.webview.getWebviewById('../html/identity.html'); plus.webview.close(identityPage); console.log(data.data); var authapplyid = data.data; mui(".image-item img").each(function() { var base64 = this.getAttribute("data-preview-src"); console.log(base64); typeimg(authapplyid, base64); }); plus.nativeUI.closeWaiting(); mui.back(); var securityPage = plus.webview.getWebviewById('html/security.html'); mui.fire(securityPage,'sPage', { //phonetel:phoneName.value }); plus.webview.open(securityPage); } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); return; } }); } //添加申请认证图片 function typeimg(authapplyid, base64) { mui.ajax(baseUrl + "/ajax/authImage", { data: { "authApplyId": authapplyid, "base64": base64 }, dataType: 'json', //数据格式类型 type: 'post', //http请求类型 async: false, timeout: 10000, //超时设置 success: function(data) { console.log(JSON.stringify(data)); if(data.success) { plus.nativeUI.toast("认证图片上传成功", toastStyle); } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); return; } }); } //选取图片的来源,拍照和相册 function showActionSheet() { var actionbuttons = [{ title: "拍照" }, { title: "相册选取" }]; var actionstyle = { title: "选择照片", cancel: "取消", buttons: actionbuttons }; plus.nativeUI.actionSheet(actionstyle, function(e) { if(e.index == 1) { getImage(); } else if(e.index == 2) { galleryImg(); } }); } //获取相册照片 function galleryImg() { plus.gallery.pick(function(e) { //alert(e.files.length); var zm = 0; setTimeout(file, 200); function file() { plus.io.resolveLocalFileSystemURL(e.files[zm], function(entry) { // console.log(entry.toLocalURL()) uploadHead(entry.toLocalURL()) }, function(e) { plus.nativeUI.toast("读取拍照文件错误:" + e.message); }); zm++; if(zm < e.files.length) { setTimeout(file, 200); } } }, function(e) { console.log("取消选择图片"); }, { filename: "_doc/camera/", filter: "image", multiple: true }); } //拍照 function getImage(divid) { var cmr = plus.camera.getCamera(); cmr.captureImage(function(p) { //alert(p);//_doc/camera/1467602809090.jpg plus.io.resolveLocalFileSystemURL(p, function(entry) { console.log(entry.toLocalURL()) uploadHead(entry.toLocalURL()) }, function(e) { plus.nativeUI.toast("读取拍照文件错误:" + e.message); }); }, function(e) {}, { filename: "_doc/camera/", index: 1 }); } //上传图片 function uploadHead(imgPath) { console.log("imgPath = " + imgPath); mainImage = imgPath; //mainImage.style.width = "60px"; //mainImage.style.height = "60px"; var image = new Image(); image.src = imgPath; image.onload = function() { var imgData = getBase64Image(image); console.log(imgData); showImgDetail(imgData, mainImage); } } //将图片压缩转成base64 function getBase64Image(img) { var canvas = document.createElement("canvas"); var width = img.width; var height = img.height; // calculate the width and height, constraining the proportions /* if (width > height) { if (width > 100) { height = Math.round(height *= 100 / width); width = 100; } } else { if (height > 100) { width = Math.round(width *= 100 / height); height = 100; } } */ canvas.width = width; /*设置新的图片的宽度*/ canvas.height = height; /*设置新的图片的长度*/ var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0, width, height); /*绘图*/ var dataURL = canvas.toDataURL("image/jpeg", 0.8); return dataURL.replace("data:image/jpeg;base64,", ""); } //删除图片 mui(document).on("click", '.del', function() { var $this = $(this); var bts = ["是", "否"]; plus.nativeUI.confirm("是否删除图片?", function(e) { var i = e.index; if(i == 0) { $this.parent().remove(); } }, "删除图片", bts); }); //拼接图片样式 function showImgDetail(newsrc, oldsrc) { var html = ""; html += '<div class="image-item">'; html += ' <img id="picBig" data-preview-src="' + newsrc + '" data-preview-group="1" src="' + oldsrc + '"/>'; html += ' <span class="del">'; html += ' <div class="fa fa-times-circle">X</div>'; html += ' </span>'; html += '</div>'; $("#F_CKJLBS").append(html); }
portal-front - Gogs: Go Git Service

portal html css js resource

xuchunyang bdf84638b6 编辑器组件 7 ans auparavant
..
link.html bdf84638b6 编辑器组件 7 ans auparavant
console-front - Gogs: Go Git Service

Keine Beschreibung

XMTT 32c91545bc 修复bug vor 6 Jahren
..
data.js 0cefce6cfa 用户信息管理添加新增账户、修改账户信息功能 vor 7 Jahren
details.js 32c91545bc 修复bug vor 6 Jahren
edit.js 32c91545bc 修复bug vor 6 Jahren
eduEdit.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
eduNew.js da6af5a8ff 11 vor 7 Jahren
honorEdit.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
honorNew.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
index.js 32c91545bc 修复bug vor 6 Jahren
jobEdit.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
jobNew.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
new.js 32c91545bc 修复bug vor 6 Jahren
projectEdit.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
projectNew.js 03134d384d 用户信息管理界面中的用户编辑 vor 7 Jahren
bulomakaka/ekexiu.app - Gogs: Go Git Service

3 Commits (9a1914b689dcd55750467acbc32c996a80740a5c)

Autor SHA1 Nachricht Datum
  dell 09d53fb2c2 重提: vor 8 Jahren
  dell 37b1359ec4 1.咨询职称,职位,机构显示细节 vor 8 Jahren
  dell 98b9ade7a5 意见反馈,投诉建议,常见问题,联系客服的上传 vor 8 Jahren
portal-front - Gogs: Go Git Service

portal html css js resource

qa-show.html 9.8KB

     <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>浏览问答-科袖网</title> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" /> <link type="text/css" href="css/bootstrap.min.css" rel="stylesheet"> <link type="text/css" href="css/zoomify.min.css" rel="stylesheet"> <link type="text/css" href="css/common.css" rel="stylesheet"> <link type="text/css" href="css/genindex.css" rel="stylesheet"> <link type="text/css" href="css/leaveWord.css" rel="stylesheet"> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> </head> <body> <header id="header"> <script src="js/header.js"></script> </header> <div id="container"> <div class="containerCon"> <div class="contentCon clearfix"> <div class="leftconBox leftconBoxbg floatL"> <div class="list-main scroll-view"> <section class="listbg list_content"> <ul class="tagList"> <!--<li><span class="h2Font">快递分类设计稿既然</span></li>--> </ul> <div class="item_detail" id="questionId"> <h3 class="h1Font hWeight" id="questionTit"></h3> <div class="list_con" id="questionCnt"></div> <ul class="list_image"><li><span class="imgspan"></span></li></ul> <div class="list_hander clearfix" data-type="1"> <div class="goSpan floatL"> <span class="go-answer">我来回答</span> <span class="invite-answer">邀请回答</span> </div> <div class="operateBlock bottomShow floatL"> <ul class="clearfix"> <li><span>阅读量</span> <span id="pageview"></span></li> <li><span>关注 </span><span id="attenCountQ"></span><em class="operateicon operateicon2 icon-collect" id="attention"></em></li> <li> <span>分享到</span> <a href="" id="weibo" target="_blank"><em class="operateicon operateicon2 icon-sina"></em></a> <em class="operateicon operateicon2 icon-wechat shareWeixin"> <div class="shareCode clearfix"> <div class="floatL" id="qrcode"></div> <div class="shareWord floatR"> <p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p> </div> </div> </em> </li> </ul> </div> <div class="operateBlock tip-offs floatR"> <span id="jubao">举报</span> </div> </div> </div> </section> <section class="listbg list-hold answerQu displayNone"><!--回答框--></section> <section class="listbg list-hold request-qa displayNone"><!--邀请列表--> <div class="searchRw clearfix"> <h4 class="floatL">邀请其他用户,获得更多答案</h4> <div class="searchA floatR"> <input type="text" placeholder="搜索您想邀请的人" class="search-txt floatL" id="searchAval"> <div class="search-btn floatL" id="searchAbtn"> <span class="search-icon"></span> </div> </div> </div> <div class="requestLc"> <ul id="requestA"> <!--<li> <div class="flexCenter qa-owner"> <div class="owner-head useHead"></div> <div class="owner-info"> <div class="owner-name"><span>张某某</span><em class="authiconNew authicon-pro" title="科袖认证专家"></em></div> <div class="owner-tit ellipsisSty h2Font">职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构</div> </div> <div class="goSpan"><span class="yaoqing">邀请回答</span></div> </div> </li>--> </ul> <button class="js-load-more"></button> </div> </section> <section class="list-main-group show-list-allAn"> <div class="listbg"> <div class="list-hold-count"> <span><em id="replyCount"></em>个回答</span> <ul> <li class="active" data-type="1"><span>默认</span></li> <li data-type="2"><span>最新</span></li> </ul> </div> </div> <div class="list-hold"> <div class="list-hold-list"> <ul class="myAllneeds partLine" id="curAnswers"> <!--<li class="list-qa"> <div class="madiaInfo"> <div class="flexCenter qa-owner"> <div class="owner-head useHead"></div> <div class="owner-info"> <div class="owner-name"><span>张某某</span><em class="authiconNew authicon-pro" title="科袖认证专家"></em></div> <div class="owner-tit ellipsisSty h2Font">职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构</div> </div> <div class="goSpan"> <span class="attenSpan">关注</span> </div> </div> <p class="qa-con ellipsisSty-3">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进, 想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进, 想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出 </p> <div class="item_info"> <span class="time">发布于 20分钟之前</span> </div> <div class="list_hander clearfix"> <div class="holdSpan floatL"> <div class="zan"><em class="hold-icon icon-zan"></em><span>45</span></div> <div class="cai"><em class="hold-icon icon-cai"></em></div> </div> <div class="operateBlock bottomShow floatL"> <ul class="clearfix"> <li><span>留言</span> <span class="leaveMsgCount">1000</span></li> <li class="attention"><span>收藏</span> <em class="operateicon operateicon2 icon-collect" id="collectBtn"></em></li> <li> <span>分享到</span> <a class="weiboQA" href="" target="_blank"><em class="operateicon operateicon2 icon-sina"></em></a> <em class="operateicon operateicon2 icon-wechat shareWeixin"> <div class="shareCode clearfix"> <div class="floatL qrcodeQA"></div> <div class="shareWord floatR"> <p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p> </div> </div> </em> </li> </ul> </div> <div class="operateBlock tip-offs floatR"> <span>举报</span> </div> </div> </div> </li>--> </ul> <!--加载更多按钮--> <button class="js-load-more"></button> </div> </div> </section> <section class="list-main-group show-list-thisAn"> <div class="list-hold"> <div class="list-hold-list zhidingAn"> <ul class="myAllneeds partLine" id="topAnshow"></ul> </div> <div class="otherAn displayNone"> <div class="split-line"></div> <div class="list-hold-list"> <ul class="myAllneeds partLine" id="otherAnshow"></ul> <!--加载更多按钮--> <button class="js-load-more"></button> </div> </div> </div> </section> </div> </div> <div class="rightconBox floatR"> <div class="conItem advertBox advertItem"></div> <div class="conBlock conItem displayNone"> <div class="form-item"> <div class="aboutTit">等您回答</div> <div class="form-result form-M0 currentArt currentArt2"> <ul id="waitingA"> </ul> </div> </div> </div> </div> </div> </div> </div> <!--反馈建议--> <script type="text/javascript" src="js/correctBack.js"></script> <footer> <script type="text/javascript" src="js/footer.js"></script> </footer> <script type="text/javascript" src="js/jquery.cookie.js"></script> <script type="text/javascript" src="js/jquery.similar.msgbox.js"></script> <script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script> <script type="text/javascript" src="js/ueditor/ueditor.config.js"></script> <script type="text/javascript" src="js/ueditor/ueditor.all.js"> </script> <script type="text/javascript" src="js/jquery.page.js"></script> <script type="text/javascript" src="js/public/baseUtil.js"></script> <script type="text/javascript" src="js/public/genCom.js"></script> <script type="text/javascript" src="js/answerLeaveW.js"></script> <script type="text/javascript" src="js/public/zoomify.js"></script> <script type="text/javascript" src="js/qa-show.js"></script> <script type="text/javascript" src="js/quickLogin.js"></script> <script type="text/javascript"> $(function () { addscript("ad_common"); }); </script> </body> </html>
Sign In - Gogs: Go Git Service

Sign In