xyhzx.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>四平市政府</title>
  6. <link rel="stylesheet" href="css/basic.css" />
  7. <script type="text/javascript" src="images/jquery-1.8.3.min.js" ></script>
  8. <script type="text/javascript" src="images/basic.js" ></script>
  9. <script type="text/javascript" src="js/basic.js" ></script>
  10. <script type="text/javascript" src="images/unslider-min.js" ></script>
  11. <script type="text/javascript" src="js/idealDic/idealDicInclude.js"></script>
  12. <script src="js/mui.min.js"></script>
  13. <script type="text/javascript">
  14. </script>
  15. <script>
  16. var userid='';
  17. var username='';
  18. (function($){
  19. $.getUrlParam = function(name)
  20. {
  21. var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
  22. var r = window.location.search.substr(1).match(reg);
  23. if (r!=null) return unescape(r[2]); return null;
  24. }
  25. })(jQuery);
  26. $(function(){
  27. userid=localStorage.getItem("userid");
  28. username=localStorage.getItem("username");
  29. var param="{'userid':'"+userid+"'}";
  30. if(userid!=null&&userid!=""){
  31. mui.post(DengluUrl+'login_appAction!duijieMethod.action',{
  32. name:"findUserByUserid",
  33. param:param
  34. },function(data){
  35. if(data.userLevel==1){
  36. $("#renzheng").empty();
  37. $("#renzheng").html("<p>你好,"+data.name.replace(data.name.substring(0,1),"*")+"</p><p>"+username.replace(username.substring(3,7),"****")+"</p><p>未认证</p>");
  38. }else if(data.userLevel==2){
  39. $("#renzheng").empty();
  40. $("#renzheng").html("<p>你好,"+data.name.replace(data.name.substring(0,1),"*")+"</p><p>"+username.replace(username.substring(3,7),"****")+"</p><p>初级认证</p>");
  41. }else if(data.userLevel==3){
  42. $("#renzheng").empty();
  43. $("#renzheng").html("<p>你好,"+data.name.replace(data.name.substring(0,1),"*")+"</p><p>"+username.replace(username.substring(3,7),"****")+"</p><p>高级认证</p>");
  44. }
  45. localStorage.setItem("mobilePhone",data.mobilePhone);
  46. localStorage.setItem("idCard",data.idCard);
  47. localStorage.setItem("homeAddress",data.homeAddress);
  48. localStorage.setItem("officerLicense",data.officerLicense);
  49. localStorage.setItem("passport",data.passport);
  50. localStorage.setItem("driverLicense",data.driverLicense);
  51. localStorage.setItem("permitLicense",data.permitLicense);
  52. localStorage.setItem("userLevel",data.userLevel);
  53. localStorage.setItem("name",data.name);
  54. },'json')
  55. }
  56. });
  57. function initss(){
  58. mui(".xtximg").on("tap","dl",function(e){
  59. if(userid!=null&&username!=null){
  60. mui.openWindow({
  61. url: 'grxx.html',
  62. id:'grxx.html',
  63. styles:{top:'0px', bottom:'0px'},
  64. extras:{
  65. uid:userid
  66. },
  67. createNew:true
  68. });
  69. return;
  70. }
  71. var id=$(this).attr("id");
  72. mui.openWindow({
  73. url: 'login.html',
  74. id:id,
  75. styles:{top:'0px', bottom:'0px'},
  76. createNew:true
  77. });
  78. });
  79. document.getElementById('dqbb').addEventListener('tap',function(){
  80. mui.openWindow({
  81. url: 'dqbb.html',
  82. id:'dqbb.html',
  83. styles:{top:'0px', bottom:'0px'},
  84. createNew:true
  85. });
  86. })
  87. mui(".yhzxp").on("tap","p",function(e){
  88. var id=$(this).attr("id");
  89. if(id == "wzyjzj"){
  90. mui.openWindowWithTitle({
  91. url:'http://www.siping.gov.cn/hd/yjzj/zfwzyjzj/appyjzj/',
  92. id:id,
  93. styles:{top:'0px', bottom:'0px'},
  94. createNew:true
  95. },{
  96. /* title:{//标题配置
  97. text:"商品详情",//标题文字
  98. },*/
  99. back:{//左上角返回箭头
  100. image:{
  101. base64Data:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAb1BMVEUAAAAAev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8Aev8AAACubimgAAAAI3RSTlMAGfUTGfQTGPMSGPIYGhgaGBsXGxcbFxwXHBccFhwWHRYdHWufDPQAAAABYktHRACIBR1IAAAAB3RJTUUH4QETEBwooeTlkQAAAJVJREFUSMft1EkSgkAQRNFGUXFWHBDBibr/HTUwD5B/48Ig1y+io7u6MqUhf5hsNEY+j5hMgZ/FJ8Xc9ovos3T96utjbfqN/Nb0O/m96Uv5g+mP8ifTn+Ur01/ka9Nf5RvTt/I309/lH6Z/yr9Mn+Q71/MT8B34K/E58Enzv8R/K98HvnF8p3lr8F7izce7lbf3kJ/lDQp9HdBhgg3PAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTAxLTE5VDE2OjI4OjQwKzA4OjAwpTDFwQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wMS0xOVQxNjoyODo0MCswODowMNRtfX0AAAAASUVORK5CYII='
  102. },
  103. click:function(){
  104. mui.plusReady(function(){
  105. plus.webview.getWebviewById(id).evalJS("plus.key.addEventListener('backbutton',function(){plus.webview.getWebviewById('detail').close();})");//重写返回事件
  106. })
  107. var wev = plus.webview.getWebviewById(id);
  108. console.log('guanbi');
  109. wev.close();
  110. }
  111. }
  112. }) // gywm
  113. }else if(id == "gywm"){
  114. mui.openWindow({
  115. url: 'news.html?doc_id=25817',
  116. id:'news.html',
  117. styles:{top:'0px', bottom:'0px'},
  118. createNew:true
  119. });
  120. }else if(id == "tcdl"){
  121. tuichu();
  122. }else if(id == "wdys"){
  123. mui.openWindow({
  124. url: 'bsfw_wdys_list.html',
  125. id:'1234111',
  126. styles:{top:'0px', bottom:'0px'},
  127. createNew:true
  128. });
  129. }else if(id == "wdzx" || id == "wdyy" || id == "wdbj" || id == "wdsc"){
  130. alert("功能暂未开放,敬请期待!");
  131. }
  132. });
  133. }
  134. function tuichu(){
  135. if(userid==null&&username==null){
  136. mui.alert('您还未登陆');
  137. }else if(confirm("确定退出吗?")){
  138. localStorage.clear();
  139. var id=$("#tcdl").attr("id");
  140. mui.openWindow({
  141. url: 'login.html',
  142. id:id,
  143. styles:{top:'0px', bottom:'0px'},
  144. createNew:true
  145. });
  146. }
  147. }
  148. window.addEventListener('loginReload',function(event){
  149. location.reload();
  150. plus.webview.currentWebview().id
  151. });
  152. </script>
  153. </head>
  154. <body onload="initss();">
  155. <!--头部-->
  156. <!--头部结束-->
  157. <!--中间内容开始-->
  158. <div class="yhzx">
  159. <div class="txdiv" style="top: 0px;">
  160. <div class="xtx" id="tx">
  161. <div class="xtximg">
  162. <dl id="denglu">
  163. <dt><img src="images/yhzx_04.png"></dt>
  164. <dd id="renzheng">
  165. <!--<p>你好XXX!</p>
  166. <p>183541545</p>
  167. <p>初级认证</p>-->
  168. <p>请登陆</p>
  169. </dd>
  170. </dl>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="yhzxp">
  175. <p id="wdzx"><img src="images/yhzx_07.png" />我的咨询<i></i></p>
  176. <div class="clear"></div>
  177. <p id="wdyy"><img src="images/yhzx_10.png" />我的预约<i></i></p>
  178. <div class="clear"></div>
  179. <p id="wdys"><img src="images/yhzx_12.png" />我的预审<i></i></p>
  180. <div class="clear"></div>
  181. <p id="wdbj"><img src="images/yhzx_14.png" />我的办件<i></i></p>
  182. <div class="clear"></div>
  183. <p id="wdsc"><img src="images/yhzx_16.png" />我的收藏<i></i></p>
  184. <div class="clear"></div>
  185. <p id="wzyjzj"><img src="images/yhzx_18.png" />意见建议<i></i></p>
  186. <div class="clear"></div>
  187. <p id="gywm"><img src="images/yhzx_05.png" />关于我们<i></i></p>
  188. <div class="clear"></div>
  189. <p id="dqbb"><img src="images/yhzx_09.png" />当前版本<i></i></p>
  190. <p id="tcdl" class="tcbtn"><input type="button" value="退出登陆" class="btn" id='tcdl'></p>
  191. </div>
  192. </div>
  193. <!--中间内容结束-->
  194. <!--底部-->
  195. <!--<div class="footernav">
  196. <ul>
  197. <li class="active"><a href="#">
  198. <img src="images/spzf_72-24.png"alt="" />
  199. <h6>首页</h6>
  200. </a></li>
  201. <li><a href="#">
  202. <img src="images/spzf_72.png" alt="" />
  203. <h6>市政府</h6>
  204. </a></li>
  205. <li><a href="#">
  206. <img src="images/spzf_75.png" alt="" />
  207. <h6>办事大厅</h6>
  208. </a></li>
  209. <li><a href="#">
  210. <img src="images/spzf_76.png" alt="" />
  211. <h6>用户中心</h6>
  212. </a></li>
  213. </ul>
  214. </div>-->
  215. </body>
  216. </html>