home-bottom.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="bottom_container">
  3. <view class="info">
  4. <view class="info_left">
  5. <view class="info_left_box" v-for="(item, index) in leftList" :key="index">
  6. {{ item }}
  7. </view>
  8. </view>
  9. <view class="info_right">
  10. <view class="info_right_box" v-for="(item, index) in rightList" :key="index"
  11. @click="clickToRight(index)">
  12. {{ item }}
  13. </view>
  14. </view>
  15. </view>
  16. <view class="companyDescribe">xxxx网络有限公司粤ICP备xxxxx号-1粤公网安备xxxxxxxxxxxxxxxxx号</view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. leftList: ["地址:广东省广州市番禺区xxxxxxxxxx",
  24. "邮箱:xxxxxx@163.com",
  25. "电话:xxxxxxxxxx、xxxxxxxxxx"],
  26. rightList:['关于我们', '服务条款', '隐私政策']
  27. }
  28. },
  29. methods: {
  30. clickToRight(index) {
  31. switch (index){
  32. case 0:
  33. console.log('关于我们')
  34. break;
  35. case 1:
  36. console.log('服务条款')
  37. break;
  38. case 2:
  39. console.log('隐私政策')
  40. break;
  41. default:
  42. break;
  43. }
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. .bottom_container {
  50. display: flex;
  51. box-sizing: border-box;
  52. flex-direction: column;
  53. width: 100%;
  54. // height: 350px;
  55. padding: 25px 50px;
  56. background-color: #2A2832;
  57. .info{
  58. display: flex;
  59. box-sizing: border-box;
  60. width: 100%;
  61. // height: 104px;
  62. justify-content: space-between;
  63. .info_left{
  64. display: flex;
  65. flex-direction: column;
  66. width: 100%;
  67. height: 100%;
  68. margin-right: 15px;
  69. .info_left_box{
  70. color: #ffffff;
  71. margin-top: 10px;
  72. }
  73. }
  74. .info_right{
  75. display: flex;
  76. flex-direction: column;
  77. width: 90px;
  78. height: 100%;
  79. .info_right_box{
  80. color: #ffffff;
  81. margin-top: 10px;
  82. }
  83. }
  84. }
  85. .companyDescribe{
  86. margin-top: 32px;
  87. font-size: 18px;
  88. font-weight: 400;
  89. text-align: center;
  90. color: #49A5E9;
  91. margin-bottom: 50px;
  92. }
  93. }
  94. </style>