carGroup.vue 2.2 KB

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