index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="about">
  3. <view class="item" :style="{height: heightFarmat(item.height)}" v-for="(item, index) in imgList" :key="index">
  4. <image :src="item.imgUrl" mode="aspectFill" />
  5. </view>
  6. <view class="submit cu-btn block" @tap="navTo('/pages/contact/index')">
  7. 联系我们 <em></em>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. imgList: [
  16. {
  17. imgUrl: require('@/static/img/about/about_img1.png'),
  18. height: 1020
  19. },
  20. {
  21. imgUrl: require('@/static/img/about/about_img2.png'),
  22. height: 480
  23. },
  24. {
  25. imgUrl: require('@/static/img/about/about_img3.png'),
  26. height: 1022
  27. },
  28. {
  29. imgUrl: require('@/static/img/about/about_img4.png'),
  30. height: 1026
  31. },
  32. {
  33. imgUrl: require('@/static/img/about/about_img5.png'),
  34. height: 1020
  35. },
  36. {
  37. imgUrl: require('@/static/img/about/about_img6.png'),
  38. height: 1024
  39. },
  40. {
  41. imgUrl: require('@/static/img/about/about_img7.png'),
  42. height: 1024
  43. },
  44. {
  45. imgUrl: require('@/static/img/about/about_img8.png'),
  46. height: 1026
  47. },
  48. {
  49. imgUrl: require('@/static/img/about/about_img9.png'),
  50. height: 1026
  51. },
  52. {
  53. imgUrl: require('@/static/img/about/about_img10.png'),
  54. height: 1024
  55. },
  56. {
  57. imgUrl: require('@/static/img/about/about_img11.png'),
  58. height: 1024
  59. },
  60. {
  61. imgUrl: require('@/static/img/about/about_img12.png'),
  62. height: 1022
  63. },
  64. {
  65. imgUrl: require('@/static/img/about/about_img13.png'),
  66. height: 1022
  67. },
  68. {
  69. imgUrl: require('@/static/img/about/about_img14.png'),
  70. height: 906
  71. }
  72. ]
  73. }
  74. },
  75. computed: {
  76. heightFarmat(val) {
  77. return function(val) {
  78. return uni.upx2px(val) + 'px';
  79. }
  80. }
  81. },
  82. methods: {
  83. navTo(route) {
  84. this.$mRouter.push({
  85. route
  86. })
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="scss">
  92. .about {
  93. .item {
  94. image {
  95. width: 100%;
  96. height: 100%;
  97. vertical-align: middle;
  98. }
  99. }
  100. .submit {
  101. position: fixed;
  102. left: 50%;
  103. transform: translateX(-50%);
  104. bottom: 60upx;
  105. width: 532upx;
  106. height: 80upx;
  107. background: #FFFFFF;
  108. border-radius: 40upx;
  109. border: 2upx solid #333333;
  110. font-size: 32upx;
  111. font-family: PingFangSC-Medium, PingFang SC;
  112. font-weight: 500;
  113. color: #333333;
  114. line-height: 32upx;
  115. em {
  116. margin-left: 8px;
  117. width: 0;
  118. height: 0;
  119. border-top: 8upx solid transparent;
  120. border-right: 9upx solid transparent;
  121. border-bottom: 8upx solid transparent;
  122. border-left: 9upx solid transparent;
  123. border-left-color: #333333 ;
  124. }
  125. }
  126. }
  127. </style>