about.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <view class="center">
  3. <view class="img">
  4. <image src="../../static/img/logo.png" mode=""></image>
  5. </view>
  6. <view class="test_title">
  7. 关于我们
  8. </view>
  9. <view class="aboutBox">
  10. <view class="aboutBox-title" @click="qiehuan(0)">
  11. 公司介绍
  12. </view>
  13. <view class="aboutBox-title" @click="qiehuan(1)">
  14. 产品介绍
  15. </view>
  16. <view class="aboutBox-title" @click="qiehuan(2)">
  17. 联系我们
  18. </view>
  19. </view>
  20. <swiper :current="currentIndex" :duration="500">
  21. <swiper-item>
  22. <view class="swiper-item">
  23. 000000
  24. </view>
  25. </swiper-item>
  26. <swiper-item>
  27. <view class="swiper-item">
  28. 11111111111
  29. </view>
  30. </swiper-item>
  31. <swiper-item>
  32. <view class="swiper-item swiperRight">
  33. <view class="swiperRight-img">
  34. <image src="../../static/img/introduce.png" mode=""></image>
  35. <text>咨询电话:xxxxxxxx</text>
  36. <text>报修电话:xxxxxxxx</text>
  37. </view>
  38. </view>
  39. </swiper-item>
  40. </swiper>
  41. <aboutUs></aboutUs>
  42. </view>
  43. </template>
  44. <script>
  45. import {
  46. changeTaber
  47. } from '@/utils/tarberChange.js'
  48. import aboutUs from '@/components/introduce/introduce.vue'
  49. export default {
  50. components: {
  51. aboutUs
  52. },
  53. data() {
  54. return {
  55. indexList: [],
  56. topNavWidth: '12%', //设置导航默认宽度
  57. classIndex: 0, //当前进行中的活动
  58. itemWidht: 0, //顶部分类宽度
  59. loadingType: 'more', //加载更多状态
  60. actionClassInd: 0,
  61. page: 1,
  62. limit: 10,
  63. currentIndex: 0,
  64. }
  65. },
  66. onLoad() {
  67. // this.loadData();
  68. changeTaber(1)
  69. },
  70. methods: {
  71. async loadData() {
  72. const obj = this;
  73. },
  74. tabClass(item, index) {
  75. this.classIndex = index;
  76. this.actionClassId = index;
  77. let ls = this.indexList[this.actionClassInd]
  78. },
  79. qiehuan(index) {
  80. console.log(index)
  81. this.currentIndex = index * 1;
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang="scss">
  87. .img {
  88. margin: 17rpx 0 17rpx 41rpx;
  89. width: 208rpx;
  90. height: 52rpx;
  91. image {
  92. width: 100%;
  93. height: 100%;
  94. }
  95. }
  96. .test_title {
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. width: 100%;
  101. height: 60rpx;
  102. font-size: 22rpx;
  103. font-family: Adobe Heiti Std;
  104. font-weight: normal;
  105. color: #FFFFFF;
  106. background-color: #0165B5;
  107. }
  108. .class-box {
  109. background: #FFFFFF;
  110. white-space: nowrap;
  111. height: 78rpx;
  112. .item {
  113. text-align: center;
  114. display: inline-block;
  115. color: $font-color-base;
  116. margin: 26rpx 34rpx 15rpx 29rpx;
  117. background-color: #ffffff;
  118. line-height: 1;
  119. .time {
  120. font-family: PingFang SC;
  121. font-weight: bold;
  122. font-size: 30rpx;
  123. padding-bottom: 19rpx;
  124. &.action {
  125. color: #ff0000;
  126. border-bottom: 4rpx solid #FF0000;
  127. }
  128. }
  129. }
  130. }
  131. .aboutBox {
  132. display: flex;
  133. justify-content: space-between;
  134. width: 100%;
  135. height: 60rpx;
  136. .aboutBox-title {
  137. display: flex;
  138. justify-content: center;
  139. align-items: center;
  140. width: 33.3%;
  141. background: #127FD5;
  142. font-size: 22rpx;
  143. font-family: Adobe Heiti Std;
  144. font-weight: normal;
  145. color: #FFFFFF;
  146. line-height: 67rpx;
  147. }
  148. }
  149. .swiperRight{
  150. display: flex;
  151. flex-direction: column;
  152. justify-content: center;
  153. align-items: center;
  154. .swiperRight-img{
  155. margin-top:40rpx ;
  156. width: 560rpx;
  157. height: 270rpx;
  158. image{
  159. width: 100%;
  160. height: 100%;
  161. }
  162. }
  163. text{
  164. font-size: 10rpx;
  165. font-family: Adobe Heiti Std;
  166. font-weight: normal;
  167. color: #000000;
  168. line-height: 40rpx;
  169. }
  170. }
  171. </style>