index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <div class="w_1200">
  6. <el-col :span="24" class="common one">
  7. <el-col :span="12" class="left"> 左侧 </el-col>
  8. <el-col :span="12" class="left"> 右侧 </el-col>
  9. </el-col>
  10. <el-col :span="24" class="common two">
  11. <el-col :span="12" class="left"> 左侧 </el-col>
  12. <el-col :span="12" class="left"> 右侧 </el-col>
  13. </el-col>
  14. </div>
  15. </el-col>
  16. </el-row>
  17. </div>
  18. </template>
  19. <script>
  20. import { mapState, createNamespacedHelpers } from 'vuex';
  21. export default {
  22. name: 'index',
  23. props: {},
  24. components: {},
  25. data: function () {
  26. return {};
  27. },
  28. created() {},
  29. methods: {},
  30. computed: {
  31. ...mapState(['user']),
  32. },
  33. metaInfo() {
  34. return { title: this.$route.meta.title };
  35. },
  36. watch: {
  37. test: {
  38. deep: true,
  39. immediate: true,
  40. handler(val) {},
  41. },
  42. },
  43. };
  44. </script>
  45. <style lang="less" scoped>
  46. .main {
  47. min-height: 500px;
  48. margin: 10px 0 0 0;
  49. .common {
  50. margin: 0 0 10px 0;
  51. .left {
  52. width: 49.5%;
  53. height: 500px;
  54. overflow: hidden;
  55. box-shadow: 0 0 4px #409eff;
  56. border-radius: 10px;
  57. margin: 0 10px 10px 0;
  58. padding: 10px;
  59. }
  60. .left:nth-child(2n) {
  61. margin: 0 0 10px 0;
  62. }
  63. }
  64. }
  65. </style>