6 Commits (8b6060247cc882e5242677244f9e473a1d172d5d)

Author SHA1 Message Date
  lipengtao 4b091b04d6 评价历史修改星级 8 years ago
  lipengtao d3efeaabcf 历史评价修改图片显示问题 8 years ago
  lipengtao 3c4fd4d120 添加学生,企业专家,专家的模块,加上认证标示 8 years ago
  luyanan d1a68566fc 把图片定义成iconfont图标字体 8 years ago
  luyanan 4f3f3146a1 合作历史评价 8 years ago
  luyanan 8447338822 合作评价历史:朋涛 8 years ago
ekexiu.app - Gogs: Go Git Service

Nav apraksta

setup.js 1.8KB

    //设置 mui.ready(function() { /*定义全局变量*/ var removeId = document.getElementById("removeid"); var security = document.getElementById("security"); var userAgreement = document.getElementById("userAgreement"); var about = document.getElementById("about"); var kefu = document.getElementById("kefu"); /*账户与安全*/ security.addEventListener('tap',function(){ plus.nativeUI.showWaiting();//显示原生等待框 webviewShow = plus.webview.create("../html/security.html","../html/security.html"); }); /*关于科袖*/ about.addEventListener('tap',function(){ mui.openWindow({ url: '../html/aboutus.html', id: '../html/aboutus.html', show: { aniShow: "slide-in-right" } }); }); /*用户协议*/ userAgreement.addEventListener('tap',function(){ mui.openWindow({ url: '../html/privacy.html', id: '../html/privacy.html', show: { aniShow: "slide-in-right" } }); }); /*退出按钮*/ removeId.addEventListener('tap', function() { var btn = ["退出", "取消"]; mui.confirm("是否退出", "提示", btn, function(e) { if(e.index == 0) { plus.storage.removeItem("userid"); console.log('点击退出时id=='+plus.storage.getItem('userid')); //plus.cache.clear(); //plus.storage.clear(); var userId = "null"; mui.currentWebview.close(); mui.back(); var myaccountPage = plus.webview.getWebviewById('html/myaccount.html'); mui.fire(myaccountPage, 'closeUser', { id: userId }); var consultPage = plus.webview.getWebviewById('html/consultlist.html'); mui.fire(consultPage, 'exited', { id: userId }); } }); }); /*客服帮助*/ kefu.addEventListener('tap',function(){ mui.openWindow({ url: '../html/kefuhelp.html', id: '../html/kefuhelp.html', show: { aniShow: "slide-in-right" } }); }); });