CarDetail.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="box">
  3. <view class="mainBox">
  4. <view class="workBox2" v-for="(item,index) in chexingMesList" :key="index">
  5. <view class="titleBox">{{item.title}}</view>
  6. <view v-for="(v,index2) in item.content" :key="index2">
  7. <view class="comtent2">
  8. <view class="left2">{{v.k}}</view>
  9. <view class="right2">{{v.v}}</view>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. chexingMesList:[],
  21. }
  22. },
  23. onLoad(opt) {
  24. var list = uni.getStorageSync('chexingMesList');
  25. this.chexingMesList = list[0].views;
  26. console.log('list',this.chexingMesList);
  27. },
  28. methods: {
  29. }
  30. }
  31. </script>
  32. <style>
  33. .box {
  34. min-height: 100vh;
  35. background: #F4F5F7;
  36. padding-top: 20rpx;
  37. padding-bottom: constant(safe-area-inset-bottom);
  38. padding-bottom: env(safe-area-inset-bottom);
  39. }
  40. .mainBox {
  41. background: #FFFFFF;
  42. min-height: 100vh;
  43. }
  44. .titleBox{
  45. font-size: 30rpx;
  46. color: #333333;
  47. font-weight: bold;
  48. padding-bottom: 20rpx;
  49. }
  50. .comtent2 {
  51. display: flex;
  52. align-items: baseline;
  53. font-size: 26rpx;
  54. padding-bottom: 20rpx;
  55. }
  56. .workBox2{
  57. background: #FFFFFF;
  58. border-bottom: 1rpx solid #EEEEEE;
  59. padding: 20rpx 24rpx 0rpx;
  60. }
  61. .left2 {
  62. width: 40%;
  63. color: #999999;
  64. }
  65. .right2 {
  66. width: 60%;
  67. color: #333333;
  68. margin-right: 10rpx;
  69. }
  70. </style>