select_new.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <div class="flex">
  3. <div class="box">
  4. <router-link to="/user/new_article">
  5. <div class="item">
  6. <img src="~@/assets/quan/icon/new_article.png" alt="">
  7. <div>投稿文章</div>
  8. </div>
  9. </router-link>
  10. <router-link to="/user/new_video">
  11. <div class="item">
  12. <img src="~@/assets/quan/icon/new_video.png" alt="">
  13. <div>投稿视频</div>
  14. </div>
  15. </router-link>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. let container;
  21. let page = 1;
  22. export default {
  23. layout: "opacity_header",
  24. async asyncData() {
  25. return {
  26. title: `选择新建类型-程序员客栈`
  27. };
  28. },
  29. data() {
  30. return {};
  31. },
  32. mounted() {
  33. container = this.$refs.container;
  34. },
  35. methods: {},
  36. };
  37. </script>
  38. <style>
  39. body {
  40. background-color: white;
  41. }
  42. </style>
  43. <style lang='less' scoped>
  44. .flex {
  45. height: 100vh;
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: space-around;
  49. }
  50. .item {
  51. text-align: center;
  52. font-size: 0.3rem;
  53. font-family: PingFangSC-Semibold, PingFang SC;
  54. font-weight: 600;
  55. color: rgba(34, 34, 34, 1);
  56. line-height: 0.35rem;
  57. }
  58. .box {
  59. height: 5.5rem;
  60. display: flex;
  61. flex-direction: column;
  62. justify-content: space-around;
  63. }
  64. img {
  65. width: 1.88rem;
  66. height: 1.88rem;
  67. }
  68. </style>