vehInfo.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <u-popup :show="isShow" @close="close" :closeOnClickOverlay="false" :overlay="false" :closeable="true" :round="10">
  3. <view class="container">
  4. <view class="info">
  5. <view class="info-head">
  6. <view>
  7. {{renderItem(item,'label','--')}}
  8. </view>
  9. </view>
  10. <view class="info-body">
  11. <view class="item">
  12. <image :src="$getImages('/assetsMobile/images/index/collect/address.png')" class="icon"></image>
  13. <view class="label">地址:</view>
  14. <view class="value">{{renderItem(item,'address','--')}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </u-popup>
  20. </template>
  21. <script>
  22. import {isArray,clone,isObject } from 'lodash'
  23. import {getImages} from '@/plugins/images'
  24. import {copyProps,clearProps} from '@/utils/gdtq.js'
  25. export default {
  26. props: {
  27. /* item: {
  28. type: Object,
  29. default: () => {}
  30. } */
  31. },
  32. data() {
  33. return {
  34. isShow: false,
  35. item: {}
  36. }
  37. },
  38. computed: {
  39. },
  40. mounted() {
  41. },
  42. methods: {
  43. show(e) {
  44. this.item = e;
  45. console.log(e,'eeeee')
  46. this.isShow= true;
  47. },
  48. close() {
  49. this.isShow = false
  50. },
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .container {
  56. // background: #fff;
  57. // padding: 52rpx 48rpx;
  58. font-size: 28rpx;
  59. // min-height: 360rpx;
  60. .info {
  61. border-radius: 20rpx;
  62. background: #fff;
  63. margin: 52rpx 48rpx 28rpx;
  64. // padding: 0 44rpx;
  65. &-head{
  66. display: flex;
  67. view {
  68. font-family: PingFangSC, PingFang SC;
  69. font-weight: 600;
  70. font-size: 32rpx;
  71. color: #000000;
  72. text-align: left;
  73. font-style: normal;
  74. padding: 0 ;
  75. width: auto;
  76. }
  77. }
  78. &-body {
  79. overflow: hidden;
  80. .item {
  81. margin: 20rpx 0;
  82. display: flex;
  83. font-family: PingFangSC, PingFang SC;
  84. font-weight: 400;
  85. font-size: 28rpx;
  86. .icon {
  87. width: 28rpx;
  88. height: 28rpx;
  89. margin-top: 4rpx;
  90. margin-right: 20rpx;
  91. }
  92. .label {
  93. color: #999999;
  94. }
  95. .value {
  96. color: #333333;
  97. flex: 1;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. </style>