1008010507_run.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
  4. <% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
  5. <!DOCTYPE html >
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <link rel="stylesheet" href="/apps/space/css/SpaceIcon/iconfont.css">
  12. <link rel="stylesheet" href="/css/mobile.animate.css">
  13. <link rel="stylesheet" href="/css/ckeditor.css">
  14. <link rel="stylesheet" href="/apps/space/plug-in/mescroll/dist/mescroll.min.css">
  15. <link rel="stylesheet" href="/apps/space/plug-in/vant/index.css">
  16. <link rel="stylesheet" href="/apps/space/plug-in/mobileSelect/css/mobileSelect.css">
  17. <link rel="stylesheet" href="/css/mobile.style.css">
  18. <script>var space = { vars: {} };</script>
  19. <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
  20. <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script>
  21. <script src="/apps/space/plug-in/vant/vant.min.js" type="text/javascript" charset="utf-8"></script>
  22. <script src="/apps/space/plug-in/dayjs/dayjs.min.js" type="text/javascript" charset="utf-8"></script>
  23. <script src="/apps/space/plug-in/mescroll/dist/mescroll.js"></script>
  24. <script src="/apps/space/plug-in/layer-v3.1.1/layer.js"></script>
  25. <script src="/apps/space/plug-in/mobileSelect/js/mobileSelect.js"></script>
  26. <script src="/js/space.mobile.core.js" type="text/javascript" charset="utf-8"></script>
  27. <script src="/js/space.vue.subassembly.js" type="text/javascript" charset="utf-8"></script>
  28. <script src="/js/space.mobile.recycle.js" type="text/javascript" charset="utf-8"></script>
  29. <style>
  30. .mobile-home{
  31. padding: 10px;
  32. }
  33. .mobile-home-card{
  34. background-color: #fff;
  35. border-radius: 6px;
  36. margin-bottom: 10px;
  37. overflow: hidden;
  38. }
  39. .van-swipe img{
  40. width: 100%;
  41. }
  42. .van-swipe p{
  43. width: 100%;
  44. display: -webkit-box;
  45. -webkit-box-orient: vertical;
  46. -webkit-line-clamp: 1;
  47. overflow: hidden;
  48. height: 36px;
  49. line-height: 36px;
  50. padding: 0 10px;
  51. box-sizing: border-box;
  52. text-align: center;
  53. }
  54. .van-swipe__indicators{
  55. bottom: 48px;
  56. }
  57. /* 快捷按钮 */
  58. .grid {
  59. text-align: center;
  60. padding: 10px;
  61. }
  62. .grid ul {
  63. display: flex;
  64. flex-wrap: wrap;
  65. }
  66. .grid li {
  67. width: 25%;
  68. padding: 10px 0;
  69. }
  70. .grid li:hover a {
  71. color: #409EFF;
  72. }
  73. .grid dt {
  74. background-color: #409EFF;
  75. border-radius: 4px;
  76. width: 50px;
  77. height: 50px;
  78. line-height: 50px;
  79. margin: 0 auto;
  80. }
  81. .grid dt i {
  82. font-size: 30px;
  83. color: #fff;
  84. vertical-align: middle;
  85. }
  86. .grid dd {
  87. margin-top: 8px;
  88. }
  89. /* 头部 */
  90. .mobile-home-top{
  91. display: flex;
  92. background-color: #1989fa;
  93. color: #fff;
  94. padding: 0 12px;
  95. }
  96. .mobile-home-left,
  97. .mobile-home-center,
  98. .mobile-home-right{
  99. /* display: inline-block; */
  100. line-height: 54px;
  101. flex: auto;
  102. text-align: center;
  103. }
  104. .mobile-home-left{
  105. overflow: hidden;
  106. text-overflow:ellipsis;
  107. white-space: nowrap;
  108. text-align: left;
  109. }
  110. .mobile-home-left img{
  111. width: 30px;
  112. height: 30px;
  113. border-radius: 3px;
  114. vertical-align: middle;
  115. }
  116. .mobile-home-left span{
  117. position: relative;
  118. }
  119. .mobile-home-left span i,
  120. .function-module dt b{
  121. position: absolute;
  122. top: -2px;
  123. right: -2px;
  124. width: 6px;
  125. height: 6px;
  126. border-radius: 50%;
  127. background-color: #ee0a24;
  128. }
  129. .mobile-home-right{
  130. text-align: right;
  131. }
  132. .mobile-home-right i{
  133. font-size: 22px;
  134. vertical-align: middle;
  135. margin-top: -6px;
  136. }
  137. .mobile-home-right .van-badge__wrapper{
  138. line-height: initial;
  139. }
  140. /* 主功能模块 */
  141. .function-module dt{
  142. border-radius: 50%;
  143. position: relative;
  144. }
  145. .function-module dt b{
  146. width: 8px;
  147. height: 8px;
  148. top: 0;
  149. right: 0;
  150. }
  151. .mobile-home-tipText {
  152. padding: 12px;
  153. position: relative;
  154. }
  155. .mobile-home-tipText ul{
  156. width: calc(100% - 25px);
  157. }
  158. .mobile-home-tipText ul li{
  159. width: 100%;
  160. display: -webkit-box;
  161. -webkit-box-orient: vertical;
  162. -webkit-line-clamp: 1;
  163. overflow: hidden;
  164. height: 28px;
  165. line-height: 28px;
  166. }
  167. .mobile-home-tipText ul span{
  168. color: #999;
  169. }
  170. .mobile-home-tipText ul i{
  171. vertical-align: middle;
  172. }
  173. .mobile-home-tipText-right{
  174. position: absolute;
  175. top: 0;
  176. right: 0;
  177. height: 100%;
  178. padding-right: 12px;
  179. width: 20px;
  180. }
  181. .mobile-home-tipText-right i{
  182. font-size: 18px;
  183. color: #999;
  184. position: absolute;
  185. left: 50%;
  186. top: 50%;
  187. transform: translate(-50%, -50%);
  188. }
  189. </style>
  190. <title>个人首页</title>
  191. </head>
  192. <body class="body-bg-gray">
  193. <div v-cloak id="space-content">
  194. <div class="content-wrap">
  195. <div class="mobile-home-top">
  196. <div class="mobile-home-left">
  197. <img src="${appUser.iconPath}" alt=""/>
  198. <span>
  199. ${appUser.post.name}
  200. <!-- <i class="dot"></i> -->
  201. </span>
  202. </div>
  203. <!-- <div class="mobile-home-center">
  204. <van-search v-model="searchValue" placeholder="请输入搜索关键词" background="#1989fa"></van-search>
  205. </div> -->
  206. <div class="mobile-home-right">
  207. <van-badge :dot="!isViewAll">
  208. <van-icon name="bell" onclick='<app:token name='sys.system_message_list' page='10527' type='appwin' params='{rowCountPerPage: "20"}' end='space.vue.getMsgNotReadFlag' />'></van-icon>
  209. </van-badge>
  210. </div>
  211. </div>
  212. <div class="mobile-home">
  213. <!-- 轮播 -->
  214. <div class="mobile-home-card">
  215. <van-swipe :autoplay="3000" indicator-color="white">
  216. <van-swipe-item>
  217. <a href="javascript:;">
  218. <img src="/apps/space/images/homepage/img1.png" alt="">
  219. <p>
  220. 智能化办公-语音智能办公助手,为组织每位成员配备了一位7×24小时智能助手
  221. </p>
  222. </a>
  223. </van-swipe-item>
  224. <van-swipe-item>
  225. <a href="javascript:;">
  226. <img src="/apps/space/images/homepage/img2.png" alt="">
  227. <p>全程电子化-契约锁为企业构建“智能、高效、简捷、安全、合规、具有法律效力”企业运营体系</p>
  228. </a>
  229. </van-swipe-item>
  230. <van-swipe-item>
  231. <a href="javascript:;">
  232. <img src="/apps/space/images/homepage/img3.png" alt="">
  233. <p>智能化办公-语音智能办公助手,为组织每位成员配备了一位7×24小时智能助手</p>
  234. </a>
  235. </van-swipe-item>
  236. <van-swipe-item>
  237. <a href="javascript:;">
  238. <img src="/apps/space/images/homepage/img4.png" alt="">
  239. <p>全程电子化-契约锁为企业构建“智能、高效、简捷、安全、合规、具有法律效力”企业运营体系</p>
  240. </a>
  241. </van-swipe-item>
  242. <van-swipe-item>
  243. <a href="javascript:;">
  244. <img src="/apps/space/images/homepage/img5.png" alt="">
  245. <p>
  246. 智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公
  247. </p>
  248. </a>
  249. </van-swipe-item>
  250. </van-swipe>
  251. </div>
  252. <!-- 主功能模块 -->
  253. <div class="mobile-home-card">
  254. <div class="grid function-module">
  255. <ul>
  256. <li>
  257. <a href="javascript:;">
  258. <dl>
  259. <dt >
  260. <i class="spaceicon icon-yanzhongchengdu"></i>
  261. <b class="dot"></b>
  262. </dt>
  263. <dd>
  264. 服务提醒
  265. </dd>
  266. </dl>
  267. </a>
  268. </li>
  269. <li>
  270. <a href="javascript:;">
  271. <dl>
  272. <dt >
  273. <i class="spaceicon icon-monday"></i>
  274. <b class="dot"></b>
  275. </dt>
  276. <dd>
  277. 日程
  278. </dd>
  279. </dl>
  280. </a>
  281. </li>
  282. <li>
  283. <a href="javascript:;">
  284. <dl>
  285. <dt >
  286. <i class="spaceicon icon-statement"></i>
  287. </dt>
  288. <dd>
  289. 待办
  290. </dd>
  291. </dl>
  292. </a>
  293. </li>
  294. <li>
  295. <a href="javascript:;">
  296. <dl>
  297. <dt >
  298. <i class="spaceicon icon-unit2"></i>
  299. </dt>
  300. <dd>
  301. 工作台
  302. </dd>
  303. </dl>
  304. </a>
  305. </li>
  306. </ul>
  307. </div>
  308. </div>
  309. <!-- 自定义卡片 -->
  310. <div class="mobile-home-card" v-if="articleRanking.length > 0">
  311. <div class="mobile-home-tipText">
  312. <ul>
  313. <li v-for="(item,index) in articleRanking" :key="index" v-if="index < 2" @click="articleInfo(item.articleid)" >
  314. <a href="javascript:;">
  315. <i class="spaceicon icon-roundness2"></i>
  316. {{item.title}}
  317. <span>{{item.releaseTime}}</span>
  318. </a>
  319. </li>
  320. </ul>
  321. <div class="mobile-home-tipText-right" onclick='url_error'>
  322. <i class="spaceicon icon-right"></i>
  323. </div>
  324. </div>
  325. </div>
  326. <!-- 快捷方式 -->
  327. <div class="mobile-home-card" v-show="${subassemblyList.size() > 0}">
  328. <div class="grid">
  329. <ul>
  330. <c:forEach items="${subassemblyList }" var="item">
  331. <li onclick='<app:token page='${item.zjid}' type='appwin' />'>
  332. <a href="javascript:;">
  333. <dl>
  334. <dt style="background-color: ${item.tb_bjs};">
  335. <i class="${item.tb}" style="color: ${item.tb_zts};"></i>
  336. </dt>
  337. <dd>
  338. ${item.mc}
  339. </dd>
  340. </dl>
  341. </a>
  342. </li>
  343. </c:forEach>
  344. </ul>
  345. </div>
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. </body>
  351. <script type="text/javascript">
  352. space.vue = new Vue({
  353. el: space.appContent,
  354. data: function() {
  355. return {
  356. // 文章排行
  357. articleRanking: [],
  358. searchValue: '',
  359. isViewAll: true, //消息是否全读
  360. }
  361. },
  362. created: function () {
  363. var that = this;
  364. // 获取是否有未读的消息
  365. that.getMsgNotReadFlag();
  366. // 文章排行
  367. space.utils.ajax({
  368. url: "<app:token name='website.website_visit_articleHot' />",
  369. dataType: 'json',
  370. callback: function (resp) {
  371. that.articleRanking = resp.data;
  372. }
  373. });
  374. },
  375. methods: {
  376. articleInfo: function(id) {
  377. space.plugin.appWindow.show({
  378. title: '详情',
  379. position: 'right',
  380. url: '<app:token name='website.article_info' page='10106' />',
  381. param: {
  382. "articleid": id
  383. }
  384. });
  385. },
  386. //获取是否有未读的消息
  387. getMsgNotReadFlag: function() {
  388. var that = this;
  389. space.utils.ajax({
  390. url: '<app:token name='sys.system_message_not_read' />',
  391. dataType: 'json',
  392. loadLayer: false,
  393. callback: function(data) {
  394. if(data.code == "success") {
  395. that.isViewAll = !data.notReadFlag;
  396. }else{
  397. space.message.error("消息接口异常");
  398. }
  399. }
  400. });
  401. },
  402. },
  403. })
  404. </script>
  405. <script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
  406. <script type="text/javascript">space.vars.pageHashCode = "fGwae/3hdb7WFrOSR8ys4Q==";</script>
  407. <script type="text/javascript">removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
  408. </html>