carGroup.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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">
  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. getmodelList(){
  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. displacement:this.optdata.displacement
  46. },'post').then(res => {
  47. uni.hideLoading();
  48. this.carGroupList=res.data.carGroupList
  49. })
  50. },
  51. }
  52. }
  53. </script>
  54. <style scoped>
  55. .content{
  56. background: #F4F5F7;min-height: 100vh;
  57. }
  58. .top{
  59. display: flex;background: #ffffff;
  60. padding: 34rpx 24rpx;
  61. }
  62. .logoImg{
  63. width: 46rpx;
  64. height: 46rpx;
  65. }
  66. .topname{
  67. font-weight: 500;font-size: 28rpx;line-height: 46rpx;
  68. color: #1A1A1A;padding-left: 20rpx;
  69. }
  70. .tsImg{
  71. width: 27rpx;height: 28rpx;
  72. }
  73. .tsTxt{
  74. font-weight: 500;padding-left: 16rpx;
  75. color: #FFBF35;
  76. font-size: 28rpx;line-height: 28rpx;
  77. }
  78. .ts{
  79. padding: 36rpx 24rpx;display: flex;
  80. }
  81. .linebox{
  82. background: #ffffff;
  83. padding: 0 24rpx;
  84. }
  85. .line{
  86. border-bottom: 1rpx solid #EEEEEE;
  87. font-weight: 400;
  88. color: #333333;font-size: 26rpx;
  89. padding: 30rpx 0;
  90. }
  91. </style>