index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view >
  3. <car-common mytitle="消息" :noback="false" ref="common"></car-common>
  4. <scroll-view v-show="recordList.length" :style="'height: '+clientHeight+'px;'" scroll-y="true" @scrolltolower="lower">
  5. <template v-for="item in recordList">
  6. <view class="new-time">
  7. {{item.sendTime}}
  8. </view>
  9. <view class="new-item" @click="gotoInfo(item)">
  10. <view class="new-head">
  11. <h4>补缴车票通知</h4>
  12. <p>已经过您的预定下车站点,请重新选择下车站点并补缴车票。</p>
  13. </view>
  14. <view class="new-main">
  15. <view class="new-main-row">
  16. <p>站点:</p><span>{{item.stationName}}</span>
  17. </view>
  18. <view class="new-main-row">
  19. <p>线路:</p><span>{{item.routeName}}</span>
  20. </view>
  21. <view class="new-main-row">
  22. <p>状态:</p><span>{{item.statusName}}</span>
  23. </view>
  24. </view>
  25. <view class="new-foot" >
  26. <p style="color: red;">点击补票</p>
  27. <u-icon name="arrow-right" color="#999" size="28"></u-icon>
  28. </view>
  29. </view>
  30. </template>
  31. </scroll-view>
  32. <view v-show="isLoading&&recordList.length==0" style="text-align:center;margin-top: 80px;" >
  33. <img src="static/img/blankpage.png" style="width: 50%;" alt="" >
  34. <view>暂无信息</view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import api from './index.js'
  40. export default api;
  41. </script>
  42. <style>
  43. page{
  44. background-color: #f7f7f7;
  45. }
  46. </style>
  47. <style scoped lang="scss">
  48. .new-time{
  49. text-align: center;
  50. margin-top:10px;
  51. color:#999;
  52. }
  53. .new-item{
  54. box-shadow:3px 3px 3px rgba(0,0,0,0.1);
  55. background-color: #fff;
  56. margin: 10px;
  57. border-radius: 10px;
  58. border: 1px solid #eee;
  59. .new-head{
  60. padding: 10px;
  61. h4{
  62. font-size: 16px;
  63. }
  64. p{
  65. color:#999;
  66. margin-top: 3px;
  67. }
  68. }
  69. .new-main{
  70. padding: 10px;
  71. .new-main-row{
  72. display: flex;
  73. align-items: center;
  74. margin-bottom: 10px;
  75. p{
  76. width: 60px;
  77. color:#999;
  78. }
  79. }
  80. }
  81. .new-foot{
  82. padding: 10px;
  83. border-top: 1px solid #eee;
  84. display: flex;
  85. justify-content: space-between;
  86. align-items: center;
  87. }
  88. }
  89. </style>