recodeDetails.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <meta name="format-detection"content="telephone=no">
  8. <title>浏览记录详情</title>
  9. <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
  10. <link rel="stylesheet" href="../../css/projeck.css">
  11. <style media="screen">
  12. body,html{
  13. margin: 0;
  14. background: #fff;
  15. }
  16. *{
  17. box-sizing: border-box;
  18. outline: none;
  19. }
  20. .note{
  21. border-bottom: 20px solid #ECF0F1;
  22. padding-bottom: 20px;
  23. }
  24. .note:last-child{
  25. border-bottom: 0 solid #ECF0F1;
  26. padding-bottom: 0;
  27. }
  28. .noneMargin:last-child{
  29. margin-bottom: 20px
  30. }
  31. /*header*/
  32. .top {
  33. text-align: center;
  34. margin: 20px;
  35. }
  36. .top .icon {
  37. text-align: center;
  38. }
  39. .note-name, .note-time {
  40. font-size: 18px;
  41. line-height: 30px;
  42. color: #2c3e50;
  43. }
  44. .top .name {
  45. font-size: 18px;
  46. color: #7f8c8d;
  47. }
  48. /*状态*/
  49. .m-card{
  50. padding: 0 15px;
  51. }
  52. .m-card .header {
  53. margin: 0 -15px;
  54. line-height: 40px;
  55. border-bottom: 1px solid #ECF0F1;
  56. background-color: #ECF0F1;
  57. font-size: 18px;
  58. position: relative;
  59. }
  60. .m-card .header span {
  61. margin-left: 15px;
  62. color: #2980B9;
  63. padding: 2px 0 2px 10px;
  64. }
  65. .m-card .header:after{
  66. content: '';
  67. position: absolute;
  68. top:8px;
  69. left: 14px;
  70. width: 3px;
  71. height: 60%;
  72. background: #3498DB;
  73. }
  74. .cell-item {
  75. display: -webkit-flex;
  76. display: flex;
  77. justify-content: flex-start;
  78. position: relative;
  79. overflow: hidden;
  80. margin: 15px 0;
  81. }
  82. .m-cell {
  83. background-color: #FFF;
  84. position: relative;
  85. z-index: 1;
  86. }
  87. /*.m-cell:after {*/
  88. /* content: '';*/
  89. /* position: absolute;*/
  90. /* z-index: 0;*/
  91. /* bottom: 0;*/
  92. /* left: 0;*/
  93. /* width: 100%;*/
  94. /* height: 1px;*/
  95. /* border-bottom: 1px solid #B2B2B2;*/
  96. /* -webkit-transform: scaleY(0.5);*/
  97. /* transform: scaleY(0.5);*/
  98. /* -webkit-transform-origin: 0 100%;*/
  99. /* transform-origin: 0 100%;*/
  100. /*}*/
  101. /*记录项*/
  102. .cell-left {
  103. width: 30%;
  104. font-size: 16px;
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. white-space: wrap;
  108. color: #333;
  109. display: -webkit-box;
  110. display: -webkit-flex;
  111. display: -ms-flexbox;
  112. display: flex;
  113. -webkit-box-align: center;
  114. -webkit-align-items: center;
  115. -ms-flex-align: center;
  116. align-items: center;
  117. }
  118. .cell-right{
  119. display: flex;
  120. font-weight: bold;
  121. -webkit-justify-content: flex-start;
  122. justify-content: flex-start;
  123. text-align: left;
  124. width: 70%;
  125. min-height: 1rem;
  126. color: #525252;
  127. font-size: 16px;
  128. padding-right: 0.24rem;
  129. padding-left: 10px;
  130. }
  131. .m-card .m-cell .cell-title {
  132. width: 30%;
  133. color: #333;
  134. font-size: 16px;
  135. margin: 10px 0;
  136. }
  137. .m-card .m-cell .cell-content {
  138. color: #525252;
  139. font-size:16px;
  140. font-weight: bold;
  141. margin: 10px 0;
  142. padding: 0 5px;
  143. width: 70%;
  144. }
  145. .call-centers{
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. }
  150. .m-card .card-box .title {
  151. font-size: 16px;
  152. margin: 10px 0;
  153. }.m-card .card-box .content {
  154. padding: 10px;
  155. border-width: 2px;
  156. border-style: dashed;
  157. border-color: #ECF0F1;
  158. margin-bottom: 5px;
  159. }
  160. /*file*/
  161. .card-box{
  162. margin-bottom: 15px;
  163. }
  164. .card-box .content .file-item {
  165. display: inline-block;
  166. padding: 10px;
  167. width: 32%;
  168. vertical-align: top;
  169. text-align: center;
  170. height: 100px;
  171. }
  172. .card-box .content .file-item img {
  173. margin: 0 auto;
  174. width: 40px;
  175. }
  176. .card-box .content .file-item p {
  177. margin-top: 10px;
  178. width: 100%;
  179. font-size: 14px;
  180. color: #7f8c8d;
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. display: -webkit-box;
  184. -webkit-line-clamp: 2;
  185. line-clamp: 2;
  186. -webkit-box-orient: vertical;
  187. }
  188. /*img*/
  189. .m-card .card-box .img-list> .img-item {
  190. display: inline-block;
  191. width: 32%;
  192. }
  193. .card-box .img-list .img-item {
  194. position: relative;
  195. display: inline-block;
  196. }
  197. .card-box .img-list .img-item img {
  198. z-index: 0;
  199. height: 27vw;
  200. width: 27vw;
  201. object-fit: cover;
  202. border-radius: 5px;
  203. }
  204. /*检查项*/
  205. /*提交按钮*/
  206. .submitBtn{
  207. width:100%;
  208. color:#fff;
  209. position: fixed;bottom: 0;left:0;
  210. z-index:100;
  211. margin: 0;
  212. height: 55px;
  213. line-height: 55px;
  214. font-size: 18px;
  215. background: #009fe8
  216. }
  217. /*浏览记录*/
  218. .browse-item{
  219. padding: 15px;
  220. position: relative;
  221. }
  222. .browse-item:after{
  223. content: '';
  224. position: absolute;
  225. bottom: 0;
  226. left: 0;
  227. width: 100%;
  228. height: 1px;
  229. background: #ECF0F1;
  230. }
  231. .header-ico{
  232. width: 40px;
  233. height: 40px;
  234. border-radius: 50%;
  235. line-height: 40px;
  236. text-align: center;
  237. object-fit: cover;
  238. margin-right: 10px;
  239. font-size: 13px;
  240. }
  241. .browse-time{
  242. font-size: 13px;
  243. color: #BDC3C7;
  244. line-height: 1.5;
  245. }
  246. .personal-info,.browse-num{
  247. color: #2C3E50;
  248. font-size: 13px;
  249. font-style: normal;
  250. }
  251. .browse-title{
  252. color: #333;
  253. font-size: 16px;
  254. padding: 15px 0 ;
  255. position: relative;
  256. width: 100%;
  257. padding-left: 25px;
  258. }
  259. .browse-title:before{
  260. content: '';
  261. position: absolute;
  262. top: 13px;
  263. left: 14px;
  264. width: 3px;
  265. height: 26px;
  266. background: #009fe8;
  267. }
  268. .browse-title:after{
  269. content: '';
  270. position: absolute;
  271. bottom: 0;
  272. left: 0;
  273. width: 100%;
  274. height: 1px;
  275. background: #ECF0F1;
  276. }
  277. /*返回当前二维码*/
  278. .backQrcode{
  279. width: 45px;
  280. height: 45px;
  281. -webkit-border-radius: 50%;
  282. -moz-border-radius: 50%;
  283. border-radius: 50%;
  284. border: 1px solid #f2f2f2;
  285. position: fixed;
  286. bottom: 50px;
  287. right: 20px;
  288. z-index: 9999;
  289. background: #fff;
  290. opacity: 1;
  291. transition: .5s;
  292. text-align: center;
  293. padding: 5px;
  294. }
  295. .backQrcode img{
  296. width: 100%;
  297. height: 100%;
  298. }
  299. /*position*/
  300. .flex-starts{
  301. display: flex;
  302. justify-content: space-between;
  303. white-space: nowrap;
  304. align-items: center;
  305. }
  306. .flex-spaces{
  307. display: flex;
  308. justify-content: space-between;
  309. white-space: nowrap;
  310. align-items: center;
  311. }
  312. .ico-map{
  313. width: 25px;
  314. height: 25px;
  315. background: url("../../icon/position.png") no-repeat;
  316. background-position: center;
  317. background-size: cover;
  318. }
  319. .more-icon{
  320. width: 20px;
  321. height: 20px;
  322. background: url("../../image/more.png") no-repeat;
  323. background-position: center;
  324. background-size: cover;
  325. }
  326. .position{
  327. padding: 5px 15px;
  328. border-radius: 50px;
  329. background: #F0F0F0;
  330. font-size: 14px;
  331. margin-top:10px;
  332. }
  333. .map1{
  334. color: #009FE8;
  335. margin-bottom: 5px;
  336. text-align: left;
  337. }
  338. .map-name {
  339. width: 78%;
  340. }
  341. .names{
  342. width: 85%;
  343. white-space: normal;
  344. }
  345. </style>
  346. </head>
  347. <body>
  348. <div class="g-flexview" id="g_flexview"></div>
  349. </body>
  350. </html>
  351. <script type="text/template" id="recordTemplate">
  352. {{?it.recordInstanceList !=null}}
  353. {{ for (var i = 0;i<it.recordInstanceList.length;i++) { }}
  354. <div class="note" id="note${recordInstanceList[r].id}">
  355. <div class="top recordInfo">
  356. <div class="icon"><img src="../../icon/0001.png"></div>
  357. <div class="note-name">{{=it.recordInstanceList[i].templateName}}</div>
  358. <div class="note-time">{{=it.recordInstanceList[i].createDate}}</div>
  359. <div class="name">{{=it.recordInstanceList[i].createName}}</div>
  360. {{?it.recordInstanceList[i].spName}}
  361. <div class="position flex-spaces" onclick="openMaps('{{=it.recordInstanceList[i].lng}}','{{=it.recordInstanceList[i].lat}}')">
  362. <div class="map-name flex-starts">
  363. <i class="ico-map"></i>
  364. <div class="names">
  365. <p class="map1">{{=it.recordInstanceList[i].spName}}</p>
  366. </div>
  367. </div>
  368. <p class="more-icon"></p>
  369. </div>
  370. {{?}}
  371. </div>
  372. <!--状态-->
  373. {{? it.recordInstanceList[i].recordStatusInstanceList != null && it.recordInstanceList[i].recordStatusInstanceList != ""}}
  374. <div class="m-card">
  375. <div class="header"><span>状态</span></div>
  376. <div class="content">
  377. <div class="m-cell statusItem">
  378. {{ for (var j = 0;j<it.recordInstanceList[i].recordStatusInstanceList.length;j++) { }}
  379. <div class="cell-item">
  380. <div class="cell-left">{{=it.recordInstanceList[i].recordStatusInstanceList[j].statusName}}</div>
  381. <div class="cell-right" id="statusP${recordInstanceList[r].id+u}">
  382. {{ for (var u = 0;u<it.recordInstanceList[i].recordStatusInstanceList[j].recordStatusInstanceItemList.length;u++) { }}
  383. <span style="color:{{=it.recordInstanceList[i].recordStatusInstanceList[j].recordStatusInstanceItemList[u].statusColor}};">
  384. {{=it.recordInstanceList[i].recordStatusInstanceList[j].recordStatusInstanceItemList[u].statusContent}}
  385. </span>
  386. {{ } }}
  387. </div>
  388. </div>
  389. {{ } }}
  390. </div>
  391. </div>
  392. </div>
  393. {{?}}
  394. {{?it.recordInstanceList[i].statusName != ""}}
  395. <div class="m-card">
  396. <div class="header"><span>状态</span></div>
  397. <div class="content">
  398. <div class="m-cell">
  399. <div class="cell-item">
  400. <div class="cell-left">{{=it.recordInstanceList[i].statusName}}</div>
  401. <div class="cell-right"><span class="blue">{{=it.recordInstanceList[i].statusContent}}</span></div>
  402. </div>
  403. </div>
  404. </div>
  405. </div>
  406. {{?}}
  407. <!--记录项-->
  408. {{?it.recordInstanceList[i].inputList != null && it.recordInstanceList[i].inputList != ""}}
  409. {{ for(var prop in it.recordInstanceList[i].inputList) { }}
  410. <div class="m-card">
  411. <div class="header">
  412. <span>{{=prop==""?'记录项':prop}}</span>
  413. </div>
  414. <div class="content contents">
  415. {{ for (var t = 0;t<it.recordInstanceList[i].inputList[prop].length;t++) { }}
  416. {{? it.recordInstanceList[i].inputList[prop][t].inputType === 'photo' && it.recordInstanceList[i].inputList[prop][t].values !=""}}
  417. <div class="card-box">
  418. <div class="title">{{=it.recordInstanceList[i].inputList[prop][t].inputName}}:</div>
  419. <div class="content">
  420. <div class="my-gallery img-list" data-pswp-uid="1">
  421. {{ for (var s = 0;s<it.recordInstanceList[i].inputList[prop][t].values.length;s++) { }}
  422. <div class="img-dv img-item" onclick="browseImg('{{=i}}','{{=it.recordInstanceList[i].inputList[prop][t].values}}')">
  423. <a href="javascript:;">
  424. <img src="{{=it.recordInstanceList[i].inputList[prop][t].values[s]}}?x-oss-process=style/img-200">
  425. </a>
  426. </div>
  427. {{ } }}
  428. </div>
  429. </div>
  430. </div>
  431. {{?? it.recordInstanceList[i].inputList[prop][t].inputType === 'file' && it.recordInstanceList[i].inputList[prop][t].values !=""}}
  432. <div class="card-box">
  433. <div class="title">{{=it.recordInstanceList[i].inputList[prop][t].inputName}}:</div>
  434. <div class="content">
  435. <div class="file-list">
  436. {{ for (var f = 0;f<it.recordInstanceList[i].inputList[prop][t].values.length;f++) { }}
  437. <div class="file-item" onclick="browseFile('{{=it.recordInstanceList[i].inputList[prop][t].values[f].substr(0,it.recordInstanceList[i].inputList[prop][t].values[f].lastIndexOf('-'))}}')">
  438. <a href="javascript:;">
  439. <img src="../../icon/{{=it.recordInstanceList[i].inputList[prop][t].values[f].substr(it.recordInstanceList[i].inputList[prop][t].values[f].lastIndexOf(".")+1)}}.png">
  440. <p>{{=it.recordInstanceList[i].inputList[prop][t].values[f].substr(it.recordInstanceList[i].inputList[prop][t].values[f].lastIndexOf('-')+1)}}</p>
  441. </a>
  442. </div>
  443. {{ } }}
  444. </div>
  445. </div>
  446. </div>
  447. {{?? it.recordInstanceList[i].inputList[prop][t].inputType === 'video' && it.recordInstanceList[i].inputList[prop][t].values !=""}}
  448. <div class="card-box">
  449. <div class="title">{{=it.recordInstanceList[i].inputList[prop][t].inputName}}:</div>
  450. <div class="content vedios">
  451. <video controls webkit-playsinline="true" class="video" style="width: 100%;height: 200px;">
  452. <source src="{{=it.recordInstanceList[i].inputList[prop][t].values[0]}}">
  453. </video>
  454. </div>
  455. </div>
  456. {{?? it.recordInstanceList[i].inputList[prop][t].inputType === 'mp3' && it.recordInstanceList[i].inputList[prop][t].values !=""}}
  457. <div class="card-box" style="margin-bottom: 15px;">
  458. <div class="title titleAudio">{{=it.recordInstanceList[i].inputList[prop][t].inputName}}:</div>
  459. <div class="audio_a" style="position: relative;">
  460. <audio id="audio_src" controls style="width:100%;">
  461. <source src="{{=it.recordInstanceList[i].inputList[prop][t].values[0]}}">
  462. </audio>
  463. </div>
  464. </div>
  465. </div>
  466. {{?? it.recordInstanceList[i].inputList[prop][t].values !=""}}
  467. <div class="m-cell recordItem">
  468. <div class="cell-item">
  469. <div class="cell-title">{{=it.recordInstanceList[i].inputList[prop][t].inputName}}:</div>
  470. <div class="cell-content">
  471. <span class="normal">{{=it.recordInstanceList[i].inputList[prop][t].values.join(',')}}</span>
  472. </div>
  473. </div>
  474. </div>
  475. {{?}}
  476. {{ } }}
  477. </div>
  478. </div>
  479. {{ } }}
  480. {{?}}
  481. <!--检查项-->
  482. {{?it.recordInstanceList[i].checkItemMap != null && it.recordInstanceList[i].checkItemMap != ""}}
  483. <div class="m-card inspectItems">
  484. <div class="header">
  485. <span>检查项</span>
  486. </div>
  487. <div class="content">
  488. {{ for(var key in it.recordInstanceList[i].checkItemMap) { }}
  489. <div class="m-cell inspectItem">
  490. <div class="cell-item">
  491. <div class="cell-title" style="width: 80%">{{=it.recordInstanceList[i].checkItemMap[key][0].groupName}}</div>
  492. <div class="cell-content call-centers" style="width:20%;">
  493. {{ for (var c = 0;c<it.recordInstanceList[i].checkItemMap[key].length;c++) { }}
  494. <span class="normal">{{=it.recordInstanceList[i].checkItemMap[key][c].itemValue ===""?"暂无内容":it.recordInstanceList[i].checkItemMap[key][c].itemValue}}</span>
  495. {{ } }}
  496. </div>
  497. </div>
  498. </div>
  499. {{ } }}
  500. </div>
  501. </div>
  502. {{?}}
  503. </div>
  504. {{ } }}
  505. {{?}}
  506. <div class="browse-wrap" id="browse_items"></div>
  507. {{?it.pageRecord != null}}
  508. <button type="button" class="btn-block btn-primary submitBtn" onclick="nextStep('{{=it.pageRecord.templateName}}','{{=it.pageId}}','{{=it.pageRecord.id}}','{{=it.recordParentId}}')">{{=it.pageRecord.templateName}}</button>
  509. {{=bottom()}}
  510. {{?}}
  511. <!--返回当前二维码-->
  512. <div class="backQrcode" onclick="backQrcode('{{=it.pageId}}','{{=it.pageName}}')">
  513. <img src="../../icon/qrcode.png" alt="">
  514. </div>
  515. </script>
  516. <script type="text/template" id="browseTl">
  517. <label class="browse-title">浏览记录</label>
  518. <ul class="browse-items" style="margin-bottom:35px;">
  519. {{~it:value}}
  520. <li class="browse-item flex-space">
  521. <div class="flex-start">
  522. {{?value.img == null}}
  523. <p class="header-ico" style="background:#{{=Math.random().toString(16).slice(2,8)}}">
  524. {{=value.name.substr(value.name.length-1)}}
  525. </p>
  526. {{??}}
  527. <img src="{{=value.img.substr(value.img, 4) == 'http'?value.img:urlImgUrl+value.img}}" class="header-ico" alt="">
  528. {{?}}
  529. <div class="browse-time" style="margin-right:10px">
  530. <p class="personal-info">{{=value.name}}</p>
  531. <p class="personal-info">{{=value.department}}</p>
  532. </div>
  533. <div class="browse-time">
  534. <p>最近:{{=value.lastDate.substr(5)}}</p>
  535. <p>首次:{{=value.createDate.substr(5)}}</p>
  536. </div>
  537. </div>
  538. <i class="browse-num">{{=value.count}}次</i>
  539. </li>
  540. {{~}}
  541. </ul>
  542. </script>
  543. <script type="text/javascript" src="../../script/api.js"></script>
  544. <script type="text/javascript" src="../../script/doT.min.js"></script>
  545. <script src="../../script/zepto.js" charset="utf-8"></script>
  546. <script src="../../script/config.js" charset="utf-8"></script>
  547. <script type="text/javascript">
  548. var name= "",uuid="",organizationIds="";
  549. apiready = function () {
  550. var info = $api.getStorage('data');
  551. name = JSON.parse(info).data.user.name;
  552. uuid = JSON.parse(info).data.user.staff_num;
  553. organizationIds = JSON.parse(info).data.user.section_id;
  554. recodeDetails(api.pageParam.recordParentId);
  555. // 返回二维码
  556. scrollBottom()
  557. };
  558. function recodeDetails(id) {
  559. var params = {
  560. recordParentId:id,
  561. departmentId:organizationIds
  562. }
  563. $http.requestShowProgress(UrlRouter.getRecordInstanceDetailList,'get',params)
  564. .then(ret=>{
  565. if (ret.code == '200') {
  566. $apis.html(g_flexview,'#recordTemplate',ret.data)
  567. // 添加浏览记录
  568. var param={
  569. recordParentId:id,
  570. userId:uuid
  571. }
  572. return $http.requestData(UrlRouter.addRecordUser,'post',param)
  573. }
  574. })
  575. .then(ret=>{
  576. // console.log(JSON.stringify(ret));
  577. browseNum(id)
  578. })
  579. .catch(err=>{})
  580. }
  581. function bottom() {
  582. $api.css($api.dom('.g-flexview'), 'padding-bottom: 30px;');
  583. return "";
  584. }
  585. // 文件浏览
  586. function browseFile(paths) {
  587. var flag = true;
  588. if (paths.substr(paths.lastIndexOf(".")+1) == 'zip'&& paths.substr(paths.lastIndexOf(".")+1) == 'rar') {
  589. flag = false;
  590. }else {
  591. api.showProgress({
  592. title: '提示',
  593. text: '打开文件中...',
  594. });
  595. }
  596. api.download({
  597. url: paths,
  598. report: true,
  599. cache: true,
  600. allowResume: true
  601. }, function(ret, err) {
  602. if (ret.state == 1) {
  603. api.hideProgress();
  604. if (flag) {
  605. var superFile = api.require('superFile');
  606. superFile.open({path:ret.savePath});
  607. }
  608. setTimeout(function () {
  609. api.toast({
  610. msg: '下载成功',
  611. duration: 2000,
  612. location: 'top'
  613. });
  614. },100)
  615. }
  616. });
  617. }
  618. // 图片浏览
  619. function browseImg(i,value) {
  620. var imageBrowser = api.require('imageBrowser');
  621. imageBrowser.openImages({
  622. imageUrls: value.split(','),
  623. activeIndex:i,
  624. showList:false
  625. });
  626. }
  627. // 如果有下一步执行次方法
  628. function nextStep(title,pageId,pageRecordId,recordTrueID) {
  629. var param= {
  630. pageId: pageId,
  631. pageRecordId: pageRecordId,
  632. createBy: uuid,
  633. createName: name,
  634. recordTrueID: recordTrueID,
  635. organizationIds:organizationIds
  636. }
  637. $event.openTabLayout('addRecode','addRecode',title,param);
  638. }
  639. // 浏览人数
  640. function browseNum(recordParentId) {
  641. $http.fnReuestDataNologing(UrlRouter.getRecordUserById+recordParentId,'','get','',function (ret, err) {
  642. if (ret.code === '200') {
  643. $apis.html(browse_items,'#browseTl',ret.data);
  644. }
  645. })
  646. }
  647. // 返回二维码js
  648. function scrollBottom() {
  649. var window1 = $(window).height();
  650. var documents = $(document).height();
  651. if (window1 == documents) {
  652. $(".backQrcode").css({bottom:'50px',opacity:'1'})
  653. return false;
  654. }
  655. $(window).on('scroll',function(){
  656. if($(window).scrollTop()>=10){
  657. $(".backQrcode").css({bottom:'50px',opacity:'1'})
  658. }
  659. else if ($(window).scrollTop() <= 50) {
  660. $(".backQrcode").css({bottom:'0',opacity:'0'})
  661. }
  662. });
  663. }
  664. // 返回二维码
  665. function backQrcode(id,title) {
  666. var param={
  667. pageId:id,
  668. title:title
  669. }
  670. $event.openWin('browseQrcode_win'+Math.random(),'browseQrcode_win',param,'');
  671. }
  672. // 打开地图
  673. function openMaps(lon,lat) {
  674. $event.openTabLayout('map','map','',{lon:lon,lat:lat})
  675. }
  676. </script>