carConfiguration.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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.manufactor}}</view>
  27. </view>
  28. <view class="line">
  29. <view class="lineLeft">品牌</view>
  30. <view class="lineRight">{{info.brand}}</view>
  31. </view>
  32. <view class="line">
  33. <view class="lineLeft">车型</view>
  34. <view class="lineRight">{{info.carModel}}</view>
  35. </view>
  36. <view class="line">
  37. <view class="lineLeft">销售名称</view>
  38. <view class="lineRight">{{info.salesName}}</view>
  39. </view>
  40. <view class="line">
  41. <view class="lineLeft">款型年份</view>
  42. <view class="lineRight">{{info.listedYear}}</view>
  43. </view>
  44. <view class="line">
  45. <view class="lineLeft">上市年份</view>
  46. <view class="lineRight">{{info.productionYear}}</view>
  47. </view>
  48. <view class="line">
  49. <view class="lineLeft">停产年份</view>
  50. <view class="lineRight">{{info.discontinuationYear}}</view>
  51. </view>
  52. <view class="line">
  53. <view class="lineLeft">排量</view>
  54. <view class="lineRight">{{info.displacement}}</view>
  55. </view>
  56. <view class="line">
  57. <view class="lineLeft">底盘号</view>
  58. <view class="lineRight">{{info.chassisNum}}</view>
  59. </view>
  60. <view class="line">
  61. <view class="lineLeft">进气形式</view>
  62. <view class="lineRight">{{info.intakeForm}}</view>
  63. </view>
  64. <view class="line">
  65. <view class="lineLeft">燃油类型</view>
  66. <view class="lineRight">{{info.fuelLabeling}}</view>
  67. </view>
  68. <view class="line">
  69. <view class="lineLeft">发动机型号</view>
  70. <view class="lineRight">{{info.engineDescription}}</view>
  71. </view>
  72. <view class="line">
  73. <view class="lineLeft">发动机启停技术</view>
  74. <view class="lineRight">{{info.startStop}}</view>
  75. </view>
  76. <view class="line">
  77. <view class="lineLeft">变速箱描述</view>
  78. <view class="lineRight">{{info.transmissionDescription}}</view>
  79. </view>
  80. <view class="line">
  81. <view class="lineLeft">档位数</view>
  82. <view class="lineRight">{{info.gearsNum}}</view>
  83. </view>
  84. <view class="line">
  85. <view class="lineLeft">排放标准</view>
  86. <view class="lineRight">{{info.emissionStandard}}</view>
  87. </view>
  88. <view class="line">
  89. <view class="lineLeft">进气形式</view>
  90. <view class="lineRight">{{info.intakeForm}}</view>
  91. </view>
  92. <view class="line">
  93. <view class="lineLeft">气缸容积</view>
  94. <view class="lineRight">{{info.cylinderVolume}}</view>
  95. </view>
  96. <view class="line">
  97. <view class="lineLeft">最大功率</view>
  98. <view class="lineRight">{{info.maxPower}}</view>
  99. </view>
  100. <view class="line">
  101. <view class="lineLeft">最大马力</view>
  102. <view class="lineRight">{{info.maxHorsepower}}</view>
  103. </view>
  104. <view class="line">
  105. <view class="lineLeft">最大功率</view>
  106. <view class="lineRight">{{info.maxHorsepower}}</view>
  107. </view>
  108. <view class="line">
  109. <view class="lineLeft">驱动形式</view>
  110. <view class="lineRight">{{info.drivingForm}}</view>
  111. </view>
  112. <view class="line">
  113. <view class="lineLeft">变速箱类型</view>
  114. <view class="lineRight">{{info.transmissionType}}</view>
  115. </view>
  116. <view class="line">
  117. <view class="lineLeft">车身型式</view>
  118. <view class="lineRight">{{info.bodyType}}</view>
  119. </view>
  120. <view class="line">
  121. <view class="lineLeft">车门数</view>
  122. <view class="lineRight">{{info.doorsNum}}</view>
  123. </view>
  124. <view class="line">
  125. <view class="lineLeft">气缸排列形式</view>
  126. <view class="lineRight">{{info.cylinderArrangement}}</view>
  127. </view>
  128. <view class="line">
  129. <view class="lineLeft">气缸数</view>
  130. <view class="lineRight">{{info.cylinderNum}}</view>
  131. </view>
  132. <view class="line">
  133. <view class="lineLeft">国产合资进口类型</view>
  134. <view class="lineRight">{{info.domesticJointventureImportedType}}</view>
  135. </view>
  136. </view>
  137. </view>
  138. </template>
  139. <script>
  140. import homenav from "../../components/homenav/nav.vue"
  141. export default {
  142. components: {
  143. homenav
  144. },
  145. data() {
  146. return {
  147. nLevelIDs:'',
  148. info:'',
  149. loading:false,
  150. iStatusBarHeight:'',
  151. }
  152. },
  153. onLoad(opt) {
  154. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  155. this.nLevelIDs=opt.nLevelID;
  156. this.queryCarModelBynLevelID()
  157. },
  158. methods: {
  159. queryCarModelBynLevelID(){
  160. uni.showLoading({ title: '加载中'});
  161. this.loading=false;
  162. this.$http('matchingByOpen/queryCarModelBynLevelID', {
  163. nLevelIDs:this.nLevelIDs,
  164. },'POST').then(res => {
  165. uni.hideLoading();
  166. this.info=res.data;
  167. this.loading=true;
  168. })
  169. },
  170. goback() {
  171. uni.navigateBack({
  172. delta: 1
  173. })
  174. },
  175. gohome(){
  176. /* uni.switchTab({
  177. url:'../../pages/index/index'
  178. }) */
  179. uni.navigateTo({
  180. url:'/pages/index/index'
  181. })
  182. },
  183. }
  184. }
  185. </script>
  186. <style scoped>
  187. .topNavBox{
  188. background: #D53533;
  189. width: 750rpx;
  190. position: fixed;
  191. top: 0;
  192. left: 0;
  193. z-index: 11;
  194. background: url('http://dmsphoto.66km.com.cn/thFiles/5F251610-E452-47FE-8EE5-3C3AC74E081F.png') no-repeat;
  195. background-size: 100%;
  196. }
  197. .indexnav{
  198. height: 44px;
  199. line-height: 44px;
  200. text-align: center;
  201. font-size: 36rpx;
  202. color: #FFFFFF;
  203. }
  204. .top{
  205. background: url('http://dmsphoto.66km.com.cn/thFiles/5F251610-E452-47FE-8EE5-3C3AC74E081F.png') no-repeat;
  206. background-size: 100%;
  207. width: 750rpx;height: 250rpx;
  208. background-position: right bottom;
  209. }
  210. .carBrand{
  211. font-weight: 500;font-size: 44rpx;
  212. color: #FFFFFF;padding-left: 24rpx;
  213. line-height: 62rpx;padding-top: 30rpx;
  214. }
  215. .carName{
  216. font-weight: 400;font-size: 28rpx;
  217. color: #FFFFFF;padding-left: 24rpx;
  218. line-height: 40rpx;padding-top: 26rpx;
  219. padding-right: 24rpx;
  220. }
  221. .box{
  222. width: 750rpx;
  223. background: #FFFFFF;
  224. padding-top: 20rpx;
  225. border-radius: 24rpx 24rpx 0rpx 0rpx;
  226. margin-top: -40rpx;
  227. }
  228. .line{
  229. display: flex;font-size: 28rpx;line-height: 40rpx;padding: 20rpx 24rpx;
  230. }
  231. .lineLeft{
  232. color: #999999;width: 180rpx;
  233. }
  234. .lineRight{
  235. color: #3C3C3C;
  236. }
  237. .zdyNav{
  238. height: 44px;
  239. display: flex;
  240. justify-content: space-between;
  241. align-items: center;
  242. }
  243. .backImg{
  244. width: 44rpx;
  245. height: 44rpx;
  246. /* margin-left: 10rpx; */
  247. /* margin-right: 20rpx; */
  248. }
  249. .navsx{
  250. width: 2rpx;
  251. height: 44rpx;
  252. background: #e1e1e1;
  253. margin: 0 26rpx 0rpx 18rpx;
  254. }
  255. .homeImg{
  256. width: 44rpx;
  257. height: 44rpx;
  258. }
  259. .zdyNavLeft{
  260. display: flex;
  261. align-items: center;
  262. border: 1px solid #e1e1e1;
  263. margin-left: 15rpx;
  264. border-radius: 35rpx;
  265. padding: 10rpx 23rpx 8rpx 13rpx;
  266. }
  267. .zdyNavTitle{
  268. width: 100vw;
  269. height: 44px;
  270. text-align: center;
  271. font-size: 34rpx;
  272. line-height: 44px;
  273. }
  274. </style>