autoParts.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view>
  3. <view style="position: fixed;top: 0;background-color: #FD4B09;">
  4. <view style="width: 90%;margin: 0 auto;padding: 20rpx 0;display: flex;">
  5. <u--text color="#fff" :lines="1"
  6. :text="`${params.brand} ${params.seriesName} ${params.engine} ${params.modelYear} ${params.modelName}`">
  7. </u--text>
  8. <u-icon name="home" color="#fff" size="48rpx" @click="reLaunch"></u-icon>
  9. </view>
  10. </view>
  11. <view style="margin-top: 110rpx;">
  12. <u--form labelPosition="left" :labelStyle="{color: '#fd4b09'}" :model="form" ref="form" labelWidth="150rpx"
  13. style="margin-top: 10rpx;padding-bottom: 130rpx;">
  14. <view style="width: calc(96%);margin: 0 auto;background-color: #fff;border-radius: 20rpx;">
  15. <u-cell-group :border="false">
  16. <u-cell :border="false" center title="轮胎规格" arrow-direction="down">
  17. <view slot="icon" style="width: 10rpx;height: 35rpx;background-color: #fd4b09;"></view>
  18. </u-cell>
  19. </u-cell-group>
  20. <view style="padding: 0 25rpx;">
  21. <u-form-item label="前轮胎" prop="cname" borderBottom>
  22. <u-input v-model="form.frontTireSpecification" inputAlign="right" border="none"
  23. disabledColor="#ffffff" disabled/>
  24. </u-form-item>
  25. <u-form-item label="后轮胎" prop="attn" borderBottom>
  26. <u-input v-model="form.rearTireSpecification" inputAlign="right" border="none"
  27. disabledColor="#ffffff" disabled/>
  28. </u-form-item>
  29. </view>
  30. </view>
  31. </u--form>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import {
  37. detail
  38. } from '@/api/views/vehicle/brand.js'
  39. export default {
  40. data() {
  41. return {
  42. displacementList: [],
  43. annualStyle: false,
  44. params: {},
  45. form:{}
  46. }
  47. },
  48. onLoad(params) {
  49. this.params = {
  50. ...params
  51. }
  52. detail({id:this.params.id}).then(res=>{
  53. this.form = res.data
  54. })
  55. },
  56. methods: {
  57. reLaunch(){
  58. uni.switchTab({
  59. url: '/pages/tabBar/home'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .box-c,
  67. .child {
  68. display: flex;
  69. flex: 1;
  70. }
  71. .list {
  72. &__item {
  73. @include flex;
  74. padding: 6px 12px;
  75. align-items: center;
  76. justify-content: space-between;
  77. &__user-name {
  78. font-size: 32rpx;
  79. color: $u-main-color;
  80. }
  81. &__user-tel {
  82. font-size: 32rpx;
  83. margin-right: 20rpx;
  84. color: $u-main-color;
  85. }
  86. }
  87. &__footer {
  88. color: $u-tips-color;
  89. font-size: 14px;
  90. text-align: center;
  91. margin: 15px 0;
  92. }
  93. }
  94. </style>