home-bottom.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="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备18763546号-1粤公网安备3209875867489384628号</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. .container {
  50. display: flex;
  51. box-sizing: border-box;
  52. flex-direction: column;
  53. width: 100%;
  54. height: 205px;
  55. background-color: #2A2832;
  56. padding: 25px 50px;
  57. .info{
  58. display: flex;
  59. width: 100%;
  60. height: 104px;
  61. justify-content: space-between;
  62. .info_left{
  63. display: flex;
  64. flex-direction: column;
  65. width: 100%;
  66. height: 100%;
  67. margin-right: 15px;
  68. .info_left_box{
  69. color: #ffffff;
  70. margin-top: 10px;
  71. }
  72. }
  73. .info_right{
  74. display: flex;
  75. flex-direction: column;
  76. width: 90px;
  77. height: 100%;
  78. .info_right_box{
  79. color: #ffffff;
  80. margin-top: 10px;
  81. }
  82. }
  83. }
  84. .companyDescribe{
  85. margin-top: 32px;
  86. font-size: 18px;
  87. font-weight: 400;
  88. text-align: center;
  89. color: #49A5E9;
  90. }
  91. }
  92. </style>