div>

14 Commits (841eb2e59f78d19f10fb3c24b85fc42c252a512f)

Autor SHA1 Mensaje Fecha
  luyanan 1508365599 发现和文章发布留言时间展示格式规则统一 %!s(int64=7) %!d(string=hace) años
  luyanan 5c058fe202 显示时间规则,相关资源文章专家有数据显示无数据隐藏 %!s(int64=7) %!d(string=hace) años
  xuchunyang 8bfe150fa1 发现添加企业资源 %!s(int64=7) %!d(string=hace) años
  xuchunyang da95d80730 企业文章 %!s(int64=7) %!d(string=hace) años
  xuchunyang 3a4a6235a5 修改资源链接 %!s(int64=7) %!d(string=hace) años
  xuchunyang b6869e6276 修改文章链接 %!s(int64=7) %!d(string=hace) años
  luyanan b007df703d 添加顶部导航栏定位一直悬浮效果 %!s(int64=7) %!d(string=hace) años
  xuchunyang 5017c98cd6 修改:1、发现板块,资源图片没显示,2.企业账户,重置密码,第二步,文字“激活邮件已发送至”改为“密码重置邮件已发送至” %!s(int64=7) %!d(string=hace) años
  xuchunyang 73625a3cce 修改发现发布时间 %!s(int64=7) %!d(string=hace) años
  xuchunyang 4d81259be3 企业认证ie端修改 %!s(int64=7) %!d(string=hace) años
  xuchunyang 1a0599dd45 添加登录判断方法 %!s(int64=7) %!d(string=hace) años
  xuchunyang f38d76a756 发现修改 %!s(int64=7) %!d(string=hace) años
  xuchunyang 06f7a357e3 发现修改 %!s(int64=7) %!d(string=hace) años
  xuchunyang 840f5a7051 新新增发现列表页面 %!s(int64=7) %!d(string=hace) años
ekexiu.app - Gogs: Go Git Service

Aucune description

resinforupdate.js 5.6KB

    mui.ready(function() { mui.plusReady(function() { var userid = plus.storage.getItem('userid'); var self = plus.webview.currentWebview(); document.getElementById("userimg").setAttribute("resouFlag", self.reFlag); console.log(document.getElementById("userimg").getAttribute("resouFlag")) var resourceId = self.resourceId; window.addEventListener("resourceMess", function(event) { resourceMess(); }) //查询学术领域 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 resourceMess = function() { mui.ajax(baseUrl + "/ajax/resource/" + resourceId, { "type": "get", "async": true, "success": function(data) { var y = JSON.stringify(data); console.log(y); if(data.success) { var $data = data.data; plus.nativeUI.closeWaiting(); self.show("slide-in-right", 150); //资源基本信息 if($data.images.length) { document.getElementById("userimg").src = baseUrl + '/images/resource/' + $data.resourceId + '.jpg'; } var oRes = document.getElementsByClassName("listtit2"); oRes[0].innerText = $data.resourceName; oRes[1].innerText = $data.supportedServices; if($data.subject) { subjectShow($data.subject); } else { document.getElementById("subModify").innerText = "点击添加" } //应用行业 if($data.industry) { industryShow($data.industry); } else { document.getElementById("indModify").innerText = "点击添加" } //详细介绍 if($data.descp) { document.getElementById("descp1").innerText = $data.descp; } else { document.getElementById("desModify").innerText = "点击添加" } //合作备注 if($data.cooperationNotes) { document.getElementById("cooperationNotes").innerText = $data.cooperationNotes; } } else { plus.nativeUI.toast("服务器链接超时", toastStyle); return; } } }); } if(resourceId) { resourceMess(); } document.getElementById("mess").addEventListener("click", function() { plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/updateinfo-res01.html", "updateinfo-res01.html", {}, { rsId: resourceId, reFlag: self.reFlag }); //后台创建webview并打开show.html web.addEventListener("loaded", function() {}, false); }); document.getElementById("subject").addEventListener("click", function() { var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/updateinfo-res02.html", "updateinfo-res02.html", {}, { rsId: resourceId }); //后台创建webview并打开show.html web.addEventListener("loaded", function() {}, false); }); document.getElementById("industry").addEventListener("click", function() { var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/updateinfo-res03.html", "updateinfo-res03.html", {}, { rsId: resourceId }); //后台创建webview并打开show.html web.addEventListener("loaded", function() {}, false); }); document.getElementById("descp").addEventListener("click", function() { var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/updateinfo-res04.html", "updateinfo-res04.html", {}, { rsId: resourceId, reFlag: self.reFlag }); //后台创建webview并打开show.html web.addEventListener("loaded", function() {}, false); }); document.getElementById("cooperation").addEventListener("click", function() { var nwaiting = plus.nativeUI.showWaiting(); var web = plus.webview.create("../html/updateinfo-res05.html", "updateinfo-res05.html", {}, { rsId: resourceId }); //后台创建webview并打开show.html web.addEventListener("loaded", function() {}, false); }); //删除资源 document.getElementsByClassName("exitbtn")[0].addEventListener("click", function() { $.ajax({ "url": baseUrl + "/ajax/resource/" + resourceId, "type": "DELETE", "success": function($data) { if($data.success) { if(self.reFlag == 0) { var web = plus.webview.getWebviewById("html/proinforupdate.html"); mui.fire(web, "newId"); mui.back(); } else if(self.reFlag == 1) { var web = plus.webview.getWebviewById("html/companyUpdata.html"); mui.fire(web, "newId"); mui.back(); } else if(self.reFlag == 2) { var web = plus.webview.getWebviewById("html/studentUpdata.html"); mui.fire(web, "newId"); mui.back(); } } else { plus.nativeUI.toast("服务器链接超时", toastStyle); } } }); }); }); });