开放平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

myApp.vue 5.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <div>
  3. <div class="bulletin-box">
  4. <div class="bulletin-left">公告</div>
  5. <div
  6. v-swiper:mySwiper="swiperOption"
  7. class="swiperWrap"
  8. style="height: 32px"
  9. >
  10. <div class="swiper-wrapper">
  11. <div
  12. class="swiper-slide"
  13. v-for="(banner, index) in banners"
  14. :key="index"
  15. >
  16. {{ banner.content }}
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="app-box">
  22. <div class="app-head">
  23. <span class="head-title">我的应用</span>
  24. <div class="found-app">
  25. <div class="primary-button">创建应用</div>
  26. </div>
  27. <div class="item-input">
  28. <el-input
  29. v-model="searchValue"
  30. size="mini"
  31. placeholder="输入关键词搜索"
  32. ></el-input>
  33. <div class="item-button">
  34. <div class="primary-button">搜索</div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="app-content">
  39. <div class="content-box">
  40. <div class="left-font" style="background: #2f89fc">嗨</div>
  41. <div class="content-font">
  42. <p class="p1">Google App</p>
  43. <p class="p2">创建于2020-12-12</p>
  44. <p class="p3">应用内包含25个API</p>
  45. </div>
  46. <div class="right-details">
  47. <div class="primary-button">查看详情</div>
  48. </div>
  49. </div>
  50. <div class="content-box">
  51. <div class="left-font" style="background: #f06292">GO</div>
  52. <div class="content-font">
  53. <p class="p1">Google App</p>
  54. <p class="p2">创建于2020-12-12</p>
  55. <p class="p3">应用内包含25个API</p>
  56. </div>
  57. <div class="right-details">
  58. <div class="primary-button">查看详情</div>
  59. </div>
  60. </div>
  61. <div class="content-box">
  62. <div class="left-font" style="background: #6fa5b1">智</div>
  63. <div class="content-font">
  64. <p class="p1">Google App</p>
  65. <p class="p2">创建于2020-12-12</p>
  66. <p class="p3">应用内包含25个API</p>
  67. </div>
  68. <div class="right-details">
  69. <div class="primary-button">查看详情</div>
  70. </div>
  71. </div>
  72. <div class="content-box">
  73. <div class="left-font" style="background: #ff4646">莺</div>
  74. <div class="content-font">
  75. <p class="p1">Google App</p>
  76. <p class="p2">创建于2020-12-12</p>
  77. <p class="p3">应用内包含25个API</p>
  78. </div>
  79. <div class="right-details">
  80. <div class="primary-button">查看详情</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="app-bottom">已全部加载完毕</div>
  85. </div>
  86. </div>
  87. </template>
  88. <script>
  89. export default {
  90. meta: { title: "我的应用" },
  91. data() {
  92. return {
  93. searchValue: "",
  94. banners: [
  95. {
  96. content:
  97. "[12-11] 重磅消息!智莺上线Api市场专区!免费提供多样玩法专题,助力流量变现",
  98. },
  99. {
  100. content:
  101. "[12-12] 重磅消息!智莺上线Api市场专区!免费提供多样玩法专题,助力流量变现",
  102. },
  103. {
  104. content:
  105. "[12-13] 重磅消息!智莺上线Api市场专区!免费提供多样玩法专题,助力流量变现",
  106. },
  107. {
  108. content:
  109. "[12-14] 重磅消息!智莺上线Api市场专区!免费提供多样玩法专题,助力流量变现",
  110. },
  111. ],
  112. swiperOption: {
  113. direction: "vertical",
  114. autoplay: true,
  115. loop: true,
  116. },
  117. };
  118. },
  119. methods: {
  120. handleSelect(key, keyPath) {
  121. this.$router.push({
  122. path: key,
  123. params: { data: "query" },
  124. });
  125. },
  126. handleOpen: function () {},
  127. handleClose: function () {},
  128. },
  129. };
  130. </script>
  131. <style lang="scss" scoped>
  132. .app-box {
  133. padding: 20px;
  134. background: #fff;
  135. border-radius: 14px;
  136. height: 100%;
  137. }
  138. .app-head {
  139. width: 100%;
  140. height: 34px;
  141. display: flex;
  142. margin-bottom: 20px;
  143. align-items: center;
  144. .head-title {
  145. color: #333333;
  146. padding: 0 20px;
  147. font-size: 20px;
  148. height: 20px;
  149. line-height: 20px;
  150. border-left: 4px solid #1890ff;
  151. box-sizing: border-box;
  152. }
  153. .found-app {
  154. width: 76px;
  155. height: 34px;
  156. font-size: 14px;
  157. }
  158. .item-input {
  159. width: 350px;
  160. height: 34px;
  161. box-sizing: border-box;
  162. border-radius: 6px;
  163. display: flex;
  164. background: #f7f8fa;
  165. margin-left: auto;
  166. align-items: center;
  167. font-size: 14px;
  168. .item-button {
  169. width: 70px;
  170. height: 100%;
  171. }
  172. }
  173. }
  174. .app-content {
  175. width: 100%;
  176. display: flex;
  177. flex-wrap: wrap;
  178. justify-content: space-between;
  179. .content-box {
  180. width: 48.8%;
  181. box-sizing: border-box;
  182. background: #ffffff;
  183. border-radius: 14px;
  184. border: 1px solid #eeeeee;
  185. height: 130px;
  186. margin-bottom: 20px;
  187. padding: 20px;
  188. display: flex;
  189. .left-font {
  190. width: 90px;
  191. height: 90px;
  192. text-align: center;
  193. line-height: 90px;
  194. font-size: 32px;
  195. color: #fff;
  196. border-radius: 14px;
  197. margin-right: 20px;
  198. }
  199. .content-font {
  200. .p1 {
  201. color: #333333;
  202. font-size: 20px;
  203. line-height: 26px;
  204. margin: 0 0 4px;
  205. }
  206. .p2 {
  207. color: #1890ff;
  208. margin: 0;
  209. font-size: 14px;
  210. }
  211. .p3 {
  212. margin: 20px 0 0 0;
  213. color: #999999;
  214. font-size: 16px;
  215. line-height: 21px;
  216. }
  217. }
  218. .right-details {
  219. width: 98px;
  220. height: 34px;
  221. margin: auto 0 0 auto;
  222. font-size: 14px;
  223. }
  224. }
  225. }
  226. .app-bottom {
  227. text-align: center;
  228. font-size: 16px;
  229. color: #999999;
  230. }
  231. </style>