index.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <template>
  2. <div class="application-center">
  3. <!-- 顶部横幅区域 -->
  4. <div class="banner">
  5. <div class="banner-content">
  6. <h1 class="banner-title">应用中心</h1>
  7. <p class="banner-description">
  8. 收集、管理区级应用的访问地址、使用单位、使用情况等。
  9. 区委办局、街镇、居村应基于区级节点开展区级时空应用建设。
  10. </p>
  11. <el-button type="primary" class="enter-button" @click="handleEnterClick">点击进入</el-button>
  12. </div>
  13. </div>
  14. <!-- 示范应用区域 -->
  15. <div class="demo-applications">
  16. <div class="section-title">
  17. <h2>示范应用</h2>
  18. <div class="title-line"></div>
  19. </div>
  20. <div class="applications-grid" >
  21. <div v-for="item in applications" :key="item.id">
  22. <div class="application-card">
  23. <div class="card-image">
  24. <img :src="curUrl + item.c_picture" :alt="item.c_jsdw" />
  25. </div>
  26. <h3 class="card-title"> {{ item.c_jsdw }}</h3>
  27. <div class="card-info">
  28. <p><strong>访问类型:</strong> {{ item.type }}</p>
  29. <p><strong>建设单位:</strong> {{ item.jsdw }}</p>
  30. <p><strong>建设时间:</strong> {{ item.createTime }}</p>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <!-- <div class="applications-grid">
  36. <div class="application-card">
  37. <div class="card-image">
  38. <img src="~@/assets/images/common/app-bg-3.png" alt="青浦区环境自动监测信息化平台" />
  39. </div>
  40. <h3 class="card-title">青浦区环境自动监测信息化平台</h3>
  41. <div class="card-info">
  42. <p><strong>访问类型:</strong>公开</p>
  43. <p><strong>建设单位:</strong>青浦区环境局</p>
  44. <p><strong>建设时间:</strong>2024.10.25</p>
  45. </div>
  46. </div>
  47. <div class="application-card">
  48. <div class="card-image">
  49. <img src="~@/assets/images/common/app-bg-4.png" alt="青浦区消防救援支队一网统管平台" />
  50. </div>
  51. <h3 class="card-title">青浦区消防救援支队一网统管平台</h3>
  52. <div class="card-info">
  53. <p><strong>访问类型:</strong>公开</p>
  54. <p><strong>建设单位:</strong>青浦区环境局</p>
  55. <p><strong>建设时间:</strong>2024.10.25</p>
  56. </div>
  57. </div>
  58. </div> -->
  59. </div>
  60. </div>
  61. </template>
  62. <script>
  63. import appCenter from "@/api/appCenter";
  64. import moment from 'moment';
  65. export default {
  66. name: "ApplicationCenter",
  67. data() {
  68. return {
  69. applications:[],
  70. curUrl:systemConfig.dmsDataProxy
  71. }
  72. },
  73. mounted() {
  74. this.initData()
  75. },
  76. methods: {
  77. handleEnterClick() {
  78. this.$router.push('appCenter');
  79. },
  80. initData() {
  81. let requestParams = {
  82. columnId: systemConfig.columnIds[0], // 应用中心栏目id(示范应用)
  83. states: 0,
  84. pageSize: 999,
  85. page: 0
  86. };
  87. appCenter.getDmsDataList(requestParams).then(res => {
  88. if (res.code === 200) {
  89. this.applications = res.content.data.map(item => ({
  90. ...item,
  91. type: item.c_fwlx === 0 ? '禁用' : '公开',
  92. createTime: moment(item.create_time).format('YYYY-MM-DD')
  93. }))
  94. // console.log(this.applications);
  95. }else{
  96. this.applications = [];
  97. }
  98. })
  99. },
  100. }
  101. }
  102. </script>
  103. <style lang="less" scoped>
  104. .application-center {
  105. width: 100%;
  106. min-height: 100vh;
  107. background-color: #08224a;
  108. color: #ffffff;
  109. overflow-x: hidden;
  110. }
  111. /* 顶部横幅样式 */
  112. .banner {
  113. width: 100%;
  114. height: calc(100vh - 120px);
  115. background: url(~@/assets/images/common/u720.png) no-repeat center center;
  116. background-size: cover;
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. position: relative;
  121. overflow: hidden;
  122. &::before {
  123. content: '';
  124. position: absolute;
  125. top: 0;
  126. left: 0;
  127. width: 100%;
  128. height: 100%;
  129. background: rgba(8, 34, 74, 0.7);
  130. z-index: 1;
  131. }
  132. .banner-content {
  133. position: relative;
  134. z-index: 2;
  135. text-align: center;
  136. max-width: 800px;
  137. padding: 0 20px;
  138. }
  139. .banner-title {
  140. font-size: 64px;
  141. font-weight: bold;
  142. letter-spacing: 0.5rem;
  143. margin-bottom: 20px;
  144. color: #ffffff;
  145. text-align: left;
  146. text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  147. }
  148. .banner-description {
  149. font-size: 22px;
  150. line-height: 1.8;
  151. margin-bottom: 40px;
  152. margin-top: 70px;
  153. text-align: left;
  154. color: rgba(255, 255, 255, 0.9);
  155. }
  156. .enter-button {
  157. padding: 12px 36px;
  158. font-size: 18px;
  159. border-radius: 10px;
  160. background-color: #1890ff;
  161. border: none;
  162. transition: all 0.3s ease;
  163. &:hover {
  164. background-color: #40a9ff;
  165. transform: translateY(-2px);
  166. box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
  167. }
  168. }
  169. }
  170. /* 示范应用区域样式 */
  171. .demo-applications {
  172. padding: 60px 20px;
  173. // max-width: 1400px;
  174. width: 80%;
  175. margin: 0 auto;
  176. .section-title {
  177. text-align: center;
  178. margin-bottom: 60px;
  179. h2 {
  180. font-size: 36px;
  181. font-weight: bold;
  182. margin-bottom: 15px;
  183. color: #ffffff;
  184. }
  185. .title-line {
  186. width: 80px;
  187. height: 3px;
  188. background-color: #1890ff;
  189. margin: 0 auto;
  190. }
  191. }
  192. .applications-grid {
  193. display: grid;
  194. grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  195. gap: 30px;
  196. margin: 60px 0 60px 0px;
  197. .application-card {
  198. background: rgba(24, 144, 255, 0.1);
  199. border: 1px solid rgba(24, 144, 255, 0.3);
  200. border-radius: 8px;
  201. overflow: hidden;
  202. transition: all 0.3s ease;
  203. &:hover {
  204. transform: translateY(-5px);
  205. box-shadow: 0 10px 30px rgba(24, 144, 255, 0.3);
  206. border-color: rgba(24, 144, 255, 0.6);
  207. }
  208. .card-image {
  209. width: 100%;
  210. height: 200px;
  211. overflow: hidden;
  212. img {
  213. width: 100%;
  214. height: 100%;
  215. object-fit: cover;
  216. transition: transform 0.3s ease;
  217. }
  218. &:hover img {
  219. transform: scale(1.05);
  220. }
  221. }
  222. .card-title {
  223. font-size: 18px;
  224. font-weight: bold;
  225. padding: 20px 20px 15px;
  226. margin: 0;
  227. color: #ffffff;
  228. border-bottom: 1px solid rgba(24, 144, 255, 0.3);
  229. }
  230. .card-info {
  231. padding: 15px 20px 20px;
  232. font-size: 14px;
  233. // color: rgba(255, 255, 255, 0.8);
  234. color: #ffffff;
  235. p {
  236. margin: 8px 0;
  237. line-height: 1.6;
  238. strong {
  239. // color: rgba(24, 144, 255, 0.9);
  240. color: #ffffff;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. }
  247. /* 响应式设计 */
  248. @media (max-width: 768px) {
  249. .banner {
  250. height: 400px;
  251. .banner-title {
  252. font-size: 36px;
  253. }
  254. .banner-description {
  255. font-size: 14px;
  256. }
  257. .enter-button {
  258. padding: 10px 28px;
  259. font-size: 16px;
  260. }
  261. }
  262. .demo-applications {
  263. padding: 40px 15px;
  264. .section-title h2 {
  265. font-size: 28px;
  266. }
  267. .applications-grid {
  268. grid-template-columns: 1fr;
  269. gap: 20px;
  270. }
  271. }
  272. }
  273. </style>