displacement.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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}}
  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 displacementList" @click="gocarGroup(item)">
  15. {{item}}
  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. displacementList:[],
  32. }
  33. },
  34. onLoad(opt) {
  35. this.optdata=opt;
  36. this.getdisplacementList()
  37. },
  38. methods: {
  39. getdisplacementList(){
  40. uni.showLoading({ title: '加载中'});
  41. this.$http('matchingByOpen/queryCarModelGroupPackage', {
  42. brand:this.optdata.brand,
  43. manufactor:this.optdata.manufactor,
  44. carSeries:this.optdata.carSeries
  45. },'POST').then(res => {
  46. uni.hideLoading();
  47. this.displacementList=res.data.displacementList
  48. })
  49. },
  50. gocarGroup(item){
  51. uni.navigateTo({
  52. url:'/pages/index/carGroup?logo='+this.optdata.logo+'&manufactor='+this.optdata.manufactor+'&carSeries='+this.optdata.carSeries+'&brand='+this.optdata.brand+'&displacement='+item
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped>
  59. .content{
  60. background: #F4F5F7;min-height: 100vh;
  61. }
  62. .top{
  63. display: flex;background: #ffffff;
  64. padding: 34rpx 24rpx;
  65. }
  66. .logoImg{
  67. width: 46rpx;
  68. height: 46rpx;
  69. }
  70. .topname{
  71. font-weight: 500;font-size: 28rpx;line-height: 46rpx;
  72. color: #1A1A1A;padding-left: 20rpx;
  73. }
  74. .tsImg{
  75. width: 27rpx;height: 28rpx;
  76. }
  77. .tsTxt{
  78. font-weight: 500;padding-left: 16rpx;
  79. color: #FFBF35;
  80. font-size: 28rpx;line-height: 28rpx;
  81. }
  82. .ts{
  83. padding: 36rpx 24rpx;display: flex;
  84. }
  85. .linebox{
  86. background: #ffffff;
  87. padding: 0 24rpx;
  88. }
  89. .line{
  90. border-bottom: 1rpx solid #EEEEEE;
  91. font-weight: 400;
  92. color: #333333;font-size: 26rpx;
  93. padding: 30rpx 0;
  94. }
  95. </style>