CarDetail.vue 1.6 KB

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