海南旅游项目 前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.7 KiB

  1. <template>
  2. <view>
  3. <view class="card" v-for="(item, index) in list" :key="index" @click="$url('/pages/message/detail')">
  4. <view class="lf-row-between lf-m-b-20">
  5. <view class="lf-color-black lf-flex">
  6. <text class="hot"></text>
  7. <text class="lf-font-28 lf-m-l-10">收到一条新消息</text>
  8. </view>
  9. <view class="lf-color-gray lf-font-22">2021-7-6 23:34:53 </view>
  10. </view>
  11. <view class="lf-font-24 lf-color-555">南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳</view>
  12. </view>
  13. <!-- 加载 -->
  14. <view class="loading-more">
  15. <text v-if="list.length" :class="{'loading-more-text': loadingClass}">{{ loadingText }}</text>
  16. <lf-nocontent v-else></lf-nocontent>
  17. </view>
  18. <!-- 回到顶部 -->
  19. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data(){
  25. return {
  26. list: [1, 2],
  27. loadingClass: true,
  28. loadingText: '正在加载中'
  29. }
  30. },
  31. onLoad(){
  32. },
  33. methods: {
  34. },
  35. onReachBottom(){
  36. },
  37. onPullDownRefresh(){
  38. uni.stopPullDownRefresh();
  39. }
  40. }
  41. </script>
  42. <style>
  43. page{
  44. background-color: #F6F6F6;
  45. }
  46. </style>
  47. <style lang="scss" scoped="scoped">
  48. .card{
  49. margin: 0 auto;
  50. margin-top: 30rpx;
  51. width: 686rpx;
  52. height: max-content;
  53. background-color: #FFFFFF;
  54. padding: 20rpx;
  55. border-radius: 20rpx;
  56. box-sizing: border-box;
  57. .hot{
  58. display: inline-block;
  59. margin-right: 10rpx;
  60. width: 15rpx;
  61. height: 15rpx;
  62. border-radius: 50rpx;
  63. background-color: #FF0000;
  64. }
  65. }
  66. .lf-font-22{
  67. font-size: 22rpx;
  68. }
  69. </style>