ZZDianXin_UI - 郑州电信 演示

User-personal.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" href="css/mui.min.css">
  10. <link rel="stylesheet" href="css/iconfont.css" />
  11. <style>
  12. html,
  13. body {
  14. background-color: #efeff4;
  15. }
  16. .mui-views,
  17. .mui-view,
  18. .mui-pages,
  19. .mui-page,
  20. .mui-page-content {
  21. position: absolute;
  22. left: 0;
  23. right: 0;
  24. top: 0;
  25. bottom: 0;
  26. width: 100%;
  27. height: 100%;
  28. background-color: #efeff4;
  29. }
  30. .mui-pages {
  31. top: 46px;
  32. height: auto;
  33. }
  34. .mui-scroll-wrapper,
  35. .mui-scroll {
  36. background-color: #efeff4;
  37. }
  38. .mui-page.mui-transitioning {
  39. -webkit-transition: -webkit-transform 300ms ease;
  40. transition: transform 300ms ease;
  41. }
  42. .mui-page-left {
  43. -webkit-transform: translate3d(0, 0, 0);
  44. transform: translate3d(0, 0, 0);
  45. }
  46. .mui-ios .mui-page-left {
  47. -webkit-transform: translate3d(-20%, 0, 0);
  48. transform: translate3d(-20%, 0, 0);
  49. }
  50. .mui-bar-nav {
  51. background-color: #00a1cb;
  52. }
  53. .mui-navbar {
  54. position: fixed;
  55. right: 0;
  56. left: 0;
  57. z-index: 10;
  58. height: 44px;
  59. background-color: #00a1cb;
  60. }
  61. .mui-navbar .mui-bar {
  62. position: absolute;
  63. background: transparent;
  64. text-align: center;
  65. }
  66. .mui-android .mui-navbar-inner.mui-navbar-left {
  67. opacity: 0;
  68. }
  69. .mui-ios .mui-navbar-left .mui-left,
  70. .mui-ios .mui-navbar-left .mui-center,
  71. .mui-ios .mui-navbar-left .mui-right {
  72. opacity: 0;
  73. }
  74. .mui-navbar .mui-btn-nav {
  75. -webkit-transition: none;
  76. transition: none;
  77. -webkit-transition-duration: .0s;
  78. transition-duration: .0s;
  79. }
  80. .mui-navbar .mui-bar .mui-title {
  81. display: inline-block;
  82. width: auto;
  83. }
  84. .mui-page-shadow {
  85. position: absolute;
  86. right: 100%;
  87. top: 0;
  88. width: 16px;
  89. height: 100%;
  90. z-index: -1;
  91. content: '';
  92. }
  93. .mui-page-shadow {
  94. background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
  95. background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
  96. }
  97. .mui-navbar-inner.mui-transitioning,
  98. .mui-navbar-inner .mui-transitioning {
  99. -webkit-transition: opacity 300ms ease, -webkit-transform 300ms ease;
  100. transition: opacity 300ms ease, transform 300ms ease;
  101. }
  102. .mui-page {
  103. display: none;
  104. }
  105. .mui-pages .mui-page {
  106. display: block;
  107. }
  108. .mui-page .mui-table-view:first-child {
  109. margin-top: 15px;
  110. }
  111. .mui-page .mui-table-view:last-child {
  112. margin-bottom: 30px;
  113. }
  114. .mui-table-view {
  115. margin-top: 20px;
  116. }
  117. .mui-table-view span.mui-pull-right {
  118. color: #999;
  119. }
  120. .mui-table-view-divider {
  121. background-color: #efeff4;
  122. font-size: 14px;
  123. }
  124. .mui-table-view-divider:before,
  125. .mui-table-view-divider:after {
  126. height: 0;
  127. }
  128. .head {
  129. height: 40px;
  130. }
  131. #head {
  132. line-height: 40px;
  133. }
  134. .head-img {
  135. width: 40px;
  136. height: 40px;
  137. }
  138. #head-img1 {
  139. position: absolute;
  140. bottom: 10px;
  141. right: 40px;
  142. width: 40px;
  143. height: 40px;
  144. }
  145. .update {
  146. font-style: normal;
  147. color: #999999;
  148. margin-right: -25px;
  149. font-size: 15px
  150. }
  151. .mui-fullscreen {
  152. position: fixed;
  153. z-index: 20;
  154. background-color: #000;
  155. }
  156. .mui-ios .mui-navbar .mui-bar .mui-title {
  157. position: static;
  158. }
  159. .mui-title {
  160. color: #fff!important;
  161. }
  162. #img1 {
  163. width: 100%;
  164. }
  165. .mui-grid-view.mui-grid-9 .mui-table-view-cell {
  166. padding: 11px 10px;
  167. }
  168. .Content .mui-media-body {
  169. width: 50%;
  170. }
  171. .mui-icon {
  172. font-size: 24px!important;
  173. vertical-align: sub;
  174. }
  175. .Blue {
  176. color: #1775c2;
  177. }
  178. /*图标颜色*/
  179. .yellow {
  180. color: #f68d20;
  181. }
  182. .blue {
  183. color: #1775C2;
  184. }
  185. .blues {
  186. color: #1677be;
  187. }
  188. .green {
  189. color: #008a4d;
  190. }
  191. .red {
  192. color: #e4415d;
  193. }
  194. .Content {
  195. background-color: #fff;
  196. }
  197. .Content-title {
  198. margin-left: 8px;
  199. }
  200. .Content-title h5 {
  201. margin: 0;
  202. line-height: 34px;
  203. color: #797979;
  204. font-weight: 700;
  205. }
  206. .size-16 {
  207. font-size: 16px;
  208. }
  209. .size-14 {
  210. font-size: 14px;
  211. }
  212. .Left-icon {
  213. width: 20%;
  214. line-height: 40px;
  215. margin-right: 3px;
  216. }
  217. .mui-pull-left h4 {
  218. font-size: 13px;
  219. margin-bottom: 8px;
  220. }
  221. .mui-pull-left h5 {
  222. font-size: 12px;
  223. }
  224. #IMG-box {
  225. background-color: #fff;
  226. }
  227. .Common-box li {
  228. display: none;
  229. }
  230. .red {
  231. color: #ff1b41;
  232. }
  233. .marquee {
  234. overflow: hidden;
  235. line-height: 40px;
  236. background-color: #fff;
  237. margin-bottom: 8px;
  238. }
  239. .marquee-span {
  240. font-size: 14px;
  241. color: #797979;
  242. font-weight: 700;
  243. }
  244. .Icon {
  245. /*height: 30px; */
  246. padding: 5px;
  247. /* width: 30px; */
  248. border-radius: 50%;
  249. width: 34px;
  250. margin: 0 auto;
  251. }
  252. .Icon i {
  253. color: #fff;
  254. }
  255. .icon-1 {
  256. background-color: #ff9600;
  257. }
  258. .icon-2 {
  259. background-color: #4692f8;
  260. }
  261. .icon-3 {
  262. background-color: #ff784b;
  263. }
  264. .icon-4 {
  265. background-color: #7068e2;
  266. }
  267. .icon-7 {
  268. background-color: #1bce8d;
  269. }
  270. .icon-6 {
  271. background-color: #f26665;
  272. }
  273. </style>
  274. </head>
  275. <body>
  276. <!--页面主内容区开始-->
  277. <div class="mui-content">
  278. <!--banner-->
  279. <div id="IMG-box">
  280. <img id="img1" src="../img/banner.png" class="">
  281. </div>
  282. <div class="marquee">
  283. <div style="float: left;" class="Content-title">
  284. <span class="marquee-span">
  285. <i class='red mui-icon iconfont icon-gonggao01'></i>
  286. 最新消息:
  287. </span>
  288. </div>
  289. <div style="float: left; width: 60%;" class="Ga">
  290. <!--<h5 class="mui-ellipsis">
  291. <marquee class="mui-ellipsis" style="height: 20px; font-size: 12px; color:#e43926" direction="up" scrollamount="1" color="#e43926">滚动字幕内容滚动字幕内容滚动内容滚动内容滚动内容滚动滚动内容滚动滚动内容滚动滚动内容滚动</marquee>
  292. </h5>-->
  293. </div>
  294. </div>
  295. <!--主体-->
  296. <div class='Content' style="margin-bottom: 8px;">
  297. <!--<div class="Content-title">
  298. <h5 style="margin-top: 0;"><span class="blues" style="margin-right: 5px;"><i class='mui-icon iconfont icon-gongdan'></i></span><span>工单管理</span></h5>
  299. </div>-->
  300. <!--领导查看-->
  301. <ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Dispatch_">
  302. <li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
  303. <a href="javascript:;" class="Seach" data-index="0">
  304. <div class="Icon icon-1"><i class="mui-icon iconfont icon-check1 "></i></div>
  305. <div class="mui-media-body">查询工单</div>
  306. </a>
  307. </li>
  308. <li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
  309. <a href="javascript:;" class="Report" data-index="0">
  310. <div class="Icon icon-1"><i class="mui-icon iconfont icon-bianji "></i></div>
  311. <div class="mui-media-body">提出诉求</div>
  312. </a>
  313. </li>
  314. </ul>
  315. </div>
  316. </div>
  317. </body>
  318. <script src="js/mui.min.js "></script>
  319. <script src="js/zepto.js"></script>
  320. <script src="js/huayi.config.js"></script>
  321. <script>
  322. mui.init();
  323. alert("ddd");
  324. mui.plusReady(function() {
  325. var token = localStorage.getItem("token");
  326. var usercode = localStorage.getItem("user"); //获取本地存储
  327. //报表查看
  328. $(".Report").on('tap', function() {
  329. var nwaiting = plus.nativeUI.showWaiting();
  330. webviewShow = plus.webview.create("User-personWorkAdd.html"); //后台创建webview并打开show.html
  331. webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件
  332. nwaiting.close(); //新webview的载入完毕后关闭等待框
  333. webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
  334. }, false);
  335. })
  336. //报表查看
  337. $(".Seach").on('tap', function() {
  338. var nwaiting = plus.nativeUI.showWaiting();
  339. webviewShow = plus.webview.create("User-personaList.html"); //后台创建webview并打开show.html
  340. webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件
  341. nwaiting.close(); //新webview的载入完毕后关闭等待框
  342. webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
  343. }, false);
  344. })
  345. var Code_;
  346. var NewCode_;
  347. var server = huayi.config.callcenter_url + "ApplicationsRefresh/GetInfo?"; //获取升级描述文件服务器地址
  348. plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
  349. console.log("当前应用版本:"+wgtinfo.version+"---"+plus.runtime.version);
  350. localStorage.setItem("Code",wgtinfo.version)//缓存保存版本号;
  351. Code_= localStorage.getItem("Code");
  352. $('.update').text(Code_);
  353. });
  354. mui.ajax(server, {
  355. data: {
  356. isNew: true,
  357. token: token
  358. },
  359. dataType: 'json', //服务器返回json格式数据
  360. type: 'post', //HTTP请求类型
  361. timeout: 10000, //超时时间设置为10秒;
  362. headers: {
  363. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  364. },
  365. success: function(data) {
  366. if(data.state == "success") {
  367. NewCode_ = data.data.F_VersionCode;
  368. localStorage.setItem("Code",NewCode_); //缓存保存版本号;
  369. // alert(Code_);
  370. // alert(NewCode_);
  371. if(Code_!= NewCode_){
  372. var Codes=localStorage.setItem("Code",NewCode_);
  373. plus.nativeUI.confirm("1:修改添加工单详情地址bug", function(event) {
  374. var tapIndex = event.index;
  375. if(tapIndex == 0) {
  376. console.log(data);
  377. plus.runtime.openURL(data.data.F_DownUrl);
  378. } else {
  379. mui.toast("取消更新");
  380. }
  381. }, "提示", ["立即更新", "取消", ])
  382. }
  383. } else {
  384. mui.toast(data.message);
  385. }
  386. },
  387. error: function(data) {
  388. //异常处理;
  389. console.log(data.message);
  390. }
  391. })
  392. })
  393. </script>
  394. </html>