carGroup.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="content">
  3. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'车型选择'"></homenav>
  4. <view class="top">
  5. <image :src="optdata.logo" mode="" class="logoImg"></image>
  6. <view class="topname">
  7. {{optdata.brand}}-{{optdata.manufactor}}-{{optdata.carSeries}}-{{optdata.displacement}}
  8. </view>
  9. </view>
  10. <view class="ts">
  11. <image src="../../static/img/icon_xuanze.png" mode="" class="tsImg"></image>
  12. <view class="tsTxt">请选择车型</view>
  13. </view>
  14. <view class="linebox">
  15. <view class="line" v-for="(item,index) in carGroupList" @click="goItem(item)">
  16. {{item.title}}
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import homenav from "../../components/homenav/nav.vue"
  23. export default {
  24. components: {
  25. homenav
  26. },
  27. data() {
  28. return {
  29. brand:'',
  30. manufactor:'',
  31. carSeries:'',
  32. logo:'',
  33. optdata:'',
  34. carGroupList:[],
  35. iStatusBarHeight:'',
  36. }
  37. },
  38. onLoad(opt) {
  39. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  40. this.optdata=opt;
  41. this.getmodelList();
  42. },
  43. methods: {
  44. goItem(e){
  45. uni.navigateTo({
  46. url:'/pages/index/byItem?nLevelID='+e.carModelInfo.nLevelID+'&logo='+this.optdata.logo+'&manufactor='+this.optdata.manufactor+'&carSeries='+this.optdata.carSeries+'&brand='+this.optdata.brand+'&value='+e.value+'&id='+e.id
  47. })
  48. },
  49. getmodelList(){
  50. uni.showLoading({ title: '加载中'});
  51. this.$http('matchingByOpen/queryCarModelGroupPackage', {
  52. brand:this.optdata.brand,
  53. manufactor:this.optdata.manufactor,
  54. carSeries:this.optdata.carSeries,
  55. displacement:this.optdata.displacement
  56. },'post').then(res => {
  57. uni.hideLoading();
  58. this.carGroupList=res.data.carGroupList
  59. })
  60. },
  61. }
  62. }
  63. </script>
  64. <style scoped>
  65. .content{
  66. background: #F4F5F7;min-height: 100vh;
  67. }
  68. .top{
  69. display: flex;background: #ffffff;
  70. padding: 34rpx 24rpx;
  71. }
  72. .logoImg{
  73. width: 46rpx;
  74. height: 46rpx;
  75. }
  76. .topname{
  77. font-weight: 500;font-size: 28rpx;line-height: 46rpx;
  78. color: #1A1A1A;padding-left: 20rpx;
  79. }
  80. .tsImg{
  81. width: 27rpx;height: 28rpx;
  82. }
  83. .tsTxt{
  84. font-weight: 500;padding-left: 16rpx;
  85. color: #FFBF35;
  86. font-size: 28rpx;line-height: 28rpx;
  87. }
  88. .ts{
  89. padding: 36rpx 24rpx;display: flex;
  90. }
  91. .linebox{
  92. background: #ffffff;
  93. padding: 0 24rpx;
  94. }
  95. .line{
  96. border-bottom: 1rpx solid #EEEEEE;
  97. font-weight: 400;
  98. color: #333333;font-size: 26rpx;
  99. padding: 30rpx 0;
  100. }
  101. </style>