carConfiguration.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view class="content">
  3. <view class="topNavBox">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="indexnav">
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../static/img/navbackbs.png" mode="aspectFit" class="backImg" @click="goback"></image>
  9. <view class="navsx"></view>
  10. <image src="../../static/img/navhomebs.png" mode="" class="homeImg" @click="gohome"></image>
  11. </view>
  12. <view class="zdyNavTitle">车辆配置</view>
  13. <view style="width: 250rpx;"></view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  18. <view style="height: 43px;"></view>
  19. <view class="top" v-if="loading">
  20. <view class="carBrand">{{info.brand}}</view>
  21. <view class="carName">{{info.manufactor}}-{{info.carSeries}}-{{info.salesName}}</view>
  22. </view>
  23. <view class="box" v-if="loading">
  24. <view class="line">
  25. <view class="lineLeft">品牌</view>
  26. <view class="lineRight">{{info.brand}}</view>
  27. </view>
  28. <view class="line">
  29. <view class="lineLeft">车型</view>
  30. <view class="lineRight">{{info.carModel}}</view>
  31. </view>
  32. <view class="line">
  33. <view class="lineLeft">销售名称</view>
  34. <view class="lineRight">{{info.salesName}}</view>
  35. </view>
  36. <view class="line">
  37. <view class="lineLeft">款型年份</view>
  38. <view class="lineRight">{{info.listedYear}}</view>
  39. </view>
  40. <view class="line">
  41. <view class="lineLeft">生产年份</view>
  42. <view class="lineRight">{{info.productionYear}}</view>
  43. </view>
  44. <view class="line">
  45. <view class="lineLeft">停产年份</view>
  46. <view class="lineRight">{{info.discontinuationYear}}</view>
  47. </view>
  48. <view class="line">
  49. <view class="lineLeft">排量</view>
  50. <view class="lineRight">{{info.brakeoilqty}}</view>
  51. </view>
  52. <view class="line">
  53. <view class="lineLeft">进气形式</view>
  54. <view class="lineRight">{{info.intakeForm}}</view>
  55. </view>
  56. <view class="line">
  57. <view class="lineLeft">燃油类型</view>
  58. <view class="lineRight">{{info.fuelLabeling}}</view>
  59. </view>
  60. <view class="line">
  61. <view class="lineLeft">发动机型号</view>
  62. <view class="lineRight">{{info.engineDescription}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. import homenav from "../../components/homenav/nav.vue"
  69. export default {
  70. components: {
  71. homenav
  72. },
  73. data() {
  74. return {
  75. nLevelIDs:'',
  76. info:'',
  77. loading:false,
  78. iStatusBarHeight:'',
  79. }
  80. },
  81. onLoad(opt) {
  82. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  83. this.nLevelIDs=opt.nLevelID;
  84. this.queryCarModelBynLevelID()
  85. },
  86. methods: {
  87. queryCarModelBynLevelID(){
  88. uni.showLoading({ title: '加载中'});
  89. this.loading=false;
  90. this.$http('matchingByOpen/queryCarModelBynLevelID', {
  91. nLevelIDs:this.nLevelIDs,
  92. },'POST').then(res => {
  93. uni.hideLoading();
  94. this.info=res.data;
  95. this.loading=true;
  96. })
  97. },
  98. goback() {
  99. uni.navigateBack({
  100. delta: 1
  101. })
  102. },
  103. gohome(){
  104. /* uni.switchTab({
  105. url:'../../pages/index/index'
  106. }) */
  107. uni.navigateTo({
  108. url:'/pages/index/index'
  109. })
  110. },
  111. }
  112. }
  113. </script>
  114. <style scoped>
  115. .topNavBox{
  116. background: #D53533;
  117. width: 750rpx;
  118. position: fixed;
  119. top: 0;
  120. left: 0;
  121. z-index: 11;
  122. background: url('http://dmsphoto.66km.com.cn/thFiles/F421B62E-7B51-4AD9-AB01-A28A2FB21FCF.png') no-repeat;
  123. background-size: 100%;
  124. }
  125. .indexnav{
  126. height: 44px;
  127. line-height: 44px;
  128. text-align: center;
  129. font-size: 36rpx;
  130. color: #FFFFFF;
  131. }
  132. .top{
  133. background: url('http://dmsphoto.66km.com.cn/thFiles/AFCBDA6F-03C0-46C0-9090-9A34C125D140.png') no-repeat;
  134. background-size: 100%;
  135. width: 750rpx;height: 250rpx;
  136. background-position: right bottom;
  137. }
  138. .carBrand{
  139. font-weight: 500;font-size: 44rpx;
  140. color: #FFFFFF;padding-left: 24rpx;
  141. line-height: 62rpx;padding-top: 30rpx;
  142. }
  143. .carName{
  144. font-weight: 400;font-size: 28rpx;
  145. color: #FFFFFF;padding-left: 24rpx;
  146. line-height: 40rpx;padding-top: 26rpx;
  147. padding-right: 24rpx;
  148. }
  149. .box{
  150. width: 750rpx;
  151. background: #FFFFFF;
  152. padding-top: 20rpx;
  153. border-radius: 24rpx 24rpx 0rpx 0rpx;
  154. margin-top: -40rpx;
  155. }
  156. .line{
  157. display: flex;font-size: 28rpx;line-height: 40rpx;padding: 20rpx 24rpx;
  158. }
  159. .lineLeft{
  160. color: #999999;width: 180rpx;
  161. }
  162. .lineRight{
  163. color: #3C3C3C;
  164. }
  165. .zdyNav{
  166. height: 44px;
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. }
  171. .backImg{
  172. width: 44rpx;
  173. height: 44rpx;
  174. /* margin-left: 10rpx; */
  175. /* margin-right: 20rpx; */
  176. }
  177. .navsx{
  178. width: 2rpx;
  179. height: 44rpx;
  180. background: #e1e1e1;
  181. margin: 0 26rpx 0rpx 18rpx;
  182. }
  183. .homeImg{
  184. width: 44rpx;
  185. height: 44rpx;
  186. }
  187. .zdyNavLeft{
  188. display: flex;
  189. align-items: center;
  190. border: 1px solid #e1e1e1;
  191. margin-left: 15rpx;
  192. border-radius: 35rpx;
  193. padding: 10rpx 23rpx 8rpx 13rpx;
  194. }
  195. .zdyNavTitle{
  196. width: 100vw;
  197. height: 44px;
  198. text-align: center;
  199. font-size: 34rpx;
  200. line-height: 44px;
  201. }
  202. </style>