CarModelList.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view class="box">
  3. <view class="mainBox">
  4. <view @click="goSonGroup(item)" class="workBox2" v-for="(item,index) in itemList" :key="index">
  5. <view class="leftBox">
  6. <view class="oneBox">
  7. <view class="comtent2">
  8. <view class="left2">名称:</view>
  9. <view class="right2">{{item.caption}}</view>
  10. </view>
  11. <view class="comtent2">
  12. <view class="left2">车型:</view>
  13. <view class="right2">{{item.vin_11}}</view>
  14. </view>
  15. </view>
  16. <view class="oneBox">
  17. <view class="comtent2">
  18. <view class="left2">年份:</view>
  19. <view class="right2">{{item.year}}</view>
  20. </view>
  21. <view class="comtent2">
  22. <view class="left2" style="width: 28%;">发动机:</view>
  23. <view class="right2">{{item.engine_prefix}}</view>
  24. </view>
  25. </view>
  26. <view class="oneBox">
  27. <view class="comtent2">
  28. <view class="left2" style="width: 28%;">变数箱:</view>
  29. <view class="right2">{{item.trans}}</view>
  30. </view>
  31. <view class="comtent2">
  32. <view class="left2">地区:</view>
  33. <view class="right2">{{item.area}}</view>
  34. </view>
  35. </view>
  36. <view class="oneBox">
  37. <view class="comtent2">
  38. <view class="left2">配置:</view>
  39. <view class="right2">{{item.equips}}</view>
  40. </view>
  41. <view class="comtent2">
  42. <view class="left2">级别:</view>
  43. <view class="right2">{{item.grade}}</view>
  44. </view>
  45. </view>
  46. <view class="oneBox">
  47. <view class="comtent2">
  48. <view class="left2" style="width: 35%;">模型代码:</view>
  49. <view class="right2">{{item.model_code}}</view>
  50. </view>
  51. </view>
  52. </view>
  53. <image src="../../static/img/rightArrow.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. epc_id:'',
  63. partnum:'',
  64. itemData:{},
  65. itemList:[]
  66. }
  67. },
  68. onLoad(opt) {
  69. this.epc_id = opt.epc_id;
  70. this.partnum = opt.partnum;
  71. this.getItemData();
  72. },
  73. methods: {
  74. // 配件车型
  75. getItemData() {
  76. uni.showLoading({
  77. title: '加载中'
  78. });
  79. this.$http('advancedEpc/findApplicableModelsPc', {
  80. epc_id:this.epc_id,
  81. partnum:this.partnum
  82. }, 'GET').then(res => {
  83. uni.hideLoading();
  84. this.itemData = res.data.result;
  85. this.itemList = res.data.result.list;
  86. });
  87. },
  88. goSonGroup(item) {
  89. uni.navigateTo({
  90. url: 'SonGroup?epc_id=' + this.epc_id + '&token=' + item.token + '&param=' + item.param+ '&access_time=' + this.itemData.access_time
  91. })
  92. },
  93. }
  94. }
  95. </script>
  96. <style>
  97. .box {
  98. min-height: 100vh;
  99. background: #F4F5F7;
  100. padding-top: 20rpx;
  101. }
  102. .mainBox {
  103. background: #FFFFFF;
  104. }
  105. .oneBox{
  106. display: flex;
  107. justify-content: space-between;
  108. align-items: center;
  109. font-size: 26rpx;
  110. padding-bottom: 20rpx;
  111. }
  112. .comtent2 {
  113. display: flex;
  114. align-items: baseline;
  115. font-size: 26rpx;
  116. width: 50%;
  117. }
  118. .workBox2{
  119. background: #FFFFFF;
  120. border-bottom: 1rpx solid #EEEEEE;
  121. padding: 20rpx 24rpx 0rpx;
  122. display: flex;
  123. align-items: center;
  124. }
  125. .leftBox{
  126. width: calc(100vw - 20rpx);
  127. }
  128. .rightBox{
  129. width: 20rpx;
  130. }
  131. .left2 {
  132. width: 20%;
  133. color: #999999;
  134. white-space: nowrap;
  135. }
  136. .right2 {
  137. width: 80%;
  138. color: #333333;
  139. }
  140. </style>