homePage.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <template>
  2. <view class="box">
  3. <!-- 自定义导航 -->
  4. <view class="zdyNavBox">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback">
  9. </image>
  10. </view>
  11. <view class="zdyNavTitle">车型件</view>
  12. <!-- <view class="zdyNavRight"></view> -->
  13. <!-- <view style="width: 10rpx;"></view> -->
  14. </view>
  15. </view>
  16. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  17. <view style="height: 44px;"></view>
  18. <view class="top">{{title}}</view>
  19. <view class="mainBox">
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import searchBox from '@/components/searchBox/searchBox.vue'
  25. export default {
  26. components: {
  27. searchBox
  28. },
  29. data() {
  30. return {
  31. title: '大众 > 迈腾 > 2022 > 市场一',
  32. iStatusBarHeight: '',
  33. cangList: [1,2,3,4,5,6,7,8],
  34. sonTitle: '发动机',
  35. searchValue: '',
  36. }
  37. },
  38. onLoad() {
  39. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  40. },
  41. methods: {
  42. search(val) {
  43. // console.log(val);
  44. this.searchValue = val
  45. },
  46. gomodelThree() {
  47. uni.navigateTo({
  48. url: 'modelThree'
  49. })
  50. },
  51. goOemSearch() {
  52. uni.navigateTo({
  53. url: 'OemSearch'
  54. })
  55. },
  56. blueBack(){
  57. uni.navigateBack({})
  58. },
  59. goback() {
  60. console.log('返回');
  61. uni.navigateBack({})
  62. },
  63. }
  64. }
  65. </script>
  66. <style>
  67. .box {
  68. min-height: 100vh;
  69. background: #ffffff;
  70. }
  71. .zdyNavBox {
  72. width: 100vw;
  73. background: #FFFFFF;
  74. position: fixed;
  75. top: 0;
  76. left: 0;
  77. z-index: 9999999;
  78. }
  79. .zdyNav {
  80. height: 44px;
  81. display: flex;
  82. justify-content: space-between;
  83. align-items: center;
  84. }
  85. .backImg {
  86. width: 44rpx;
  87. height: 44rpx;
  88. margin-left: 10rpx;
  89. margin-right: 20rpx;
  90. }
  91. .homeImg {
  92. width: 44rpx;
  93. height: 44rpx;
  94. }
  95. .zdyNavLeft {
  96. display: flex;
  97. align-items: center;
  98. }
  99. .zdyNavTitle {
  100. height: 44px;
  101. background: #FFFFFF;
  102. text-align: center;
  103. font-size: 34rpx;
  104. line-height: 44px;
  105. }
  106. .zdyNavRight {
  107. height: 44px;
  108. background: #FFFFFF;
  109. text-align: center;
  110. font-size: 28rpx;
  111. line-height: 44px;
  112. color: #3F90F7;
  113. margin-right: 24rpx;
  114. }
  115. .top {
  116. color: #FFFFFF;
  117. font-size: 28rpx;
  118. padding: 24rpx;
  119. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  120. }
  121. .mainBox {
  122. background: #FFFFFF;
  123. }
  124. .maintitle {
  125. font-size: 28rpx;
  126. font-family: PingFangSC-Medium, PingFang SC;
  127. font-weight: 500;
  128. color: #333333;
  129. text-align: center;
  130. line-height: 88rpx;
  131. border-bottom: 1px solid #EEEEEE;
  132. position: relative;
  133. }
  134. .blueBackImg {
  135. width: 25rpx;
  136. height: 24rpx;
  137. margin-top: 4rpx;
  138. }
  139. .backBox {
  140. display: flex;
  141. position: absolute;
  142. left: 23rpx;
  143. top: 28rpx;
  144. }
  145. .backTxt {
  146. color: #3F90F7;
  147. font-weight: 400;
  148. font-size: 24rpx;
  149. line-height: 33rpx;
  150. }
  151. .mainLineJt {
  152. width: 25rpx;
  153. height: 24rpx;
  154. margin-top: 8rpx;
  155. }
  156. .mainLine {
  157. display: flex;
  158. border-bottom: 1px solid #EEEEEE;
  159. padding: 29rpx 24rpx;
  160. }
  161. .lineName {
  162. font-size: 26rpx;
  163. font-family: PingFangSC-Regular, PingFang SC;
  164. font-weight: 500;
  165. color: #333333;
  166. line-height: 40rpx;
  167. width: 570rpx;
  168. word-wrap: break-word;
  169. /*强制换行*/
  170. overflow: hidden;
  171. /*超出隐藏*/
  172. text-overflow: ellipsis;
  173. /*隐藏后添加省略号*/
  174. white-space: nowrap;
  175. /*强制不换行*/
  176. }
  177. .lineIMg {
  178. width: 110rpx;
  179. height: 110rpx;
  180. }
  181. .lineRIght {
  182. padding-left: 20rpx;
  183. }
  184. .lineBm {
  185. font-size: 24rpx;
  186. font-family: PingFangSC-Regular, PingFang SC;
  187. font-weight: 400;
  188. color: #999999;
  189. padding: 10rpx 0;
  190. }
  191. .linejs {
  192. font-size: 24rpx;
  193. font-family: PingFangSC-Regular, PingFang SC;
  194. font-weight: 400;
  195. color: #999999;
  196. width: 570rpx;
  197. word-wrap: break-word;
  198. /*强制换行*/
  199. overflow: hidden;
  200. /*超出隐藏*/
  201. text-overflow: ellipsis;
  202. /*隐藏后添加省略号*/
  203. white-space: nowrap;
  204. /*强制不换行*/
  205. }
  206. </style>