introduce.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <!-- 组件名称 -->
  3. <view class="aboutUs">
  4. <text>地址:浙江省台州市路桥区路北街道珠光街199号 213室 (环飞龙湖科创生态圈首聚地)</text>
  5. <view class="betWeen">
  6. <text>电脑:0576-82528889</text>
  7. <text>邮箱:163312@qq.com</text>
  8. <text>邮编:318050</text>
  9. </view>
  10. <text>备案号:浙ICP备2021004458号</text>
  11. <view class="erweima">
  12. <view class="img">
  13. <image src="../../static/img/erweima.png" mode=""></image>
  14. </view>
  15. <text>扫一扫关注我们</text>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. //定义一个对象
  22. props:{
  23. aboutUs:Object
  24. },
  25. //(是在用到这个组件时的页面这样做) 如果有data数据,封装,需要在上放html中声明一下 例:data{1,2,3,45} html:<view :data = "data"></view>
  26. }
  27. </script>
  28. <style lang="scss">
  29. .aboutUs {
  30. position: relative;
  31. display: flex;
  32. flex-direction: column;
  33. align-items: center;
  34. justify-content: center;
  35. width: 100%;
  36. height: 132rpx;
  37. background: #127FD5;
  38. text {
  39. font-size: 14rpx;
  40. font-family: Adobe Heiti Std;
  41. font-weight: normal;
  42. color: #FFFFFF;
  43. }
  44. .between {
  45. display: flex;
  46. justify-content: space-around;
  47. text {
  48. font-size: 14rpx;
  49. font-family: Adobe Heiti Std;
  50. font-weight: normal;
  51. color: #FFFFFF;
  52. }
  53. }
  54. .erweima {
  55. position: absolute;
  56. right: 10rpx;
  57. bottom: 5rpx;
  58. display: flex;
  59. flex-direction: column;
  60. justify-content: center;
  61. align-items: center;
  62. .img {
  63. width: 56rpx;
  64. height: 52rpx;
  65. image {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. }
  70. text {
  71. font-size: 12rpx;
  72. font-family: Adobe Heiti Std;
  73. font-weight: normal;
  74. color: #FFFFFF;
  75. }
  76. }
  77. }
  78. </style>