1008010507_edit.jsp 9.8 KB

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