index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="LikeReply">
  3. <page-navbar bgColor="#fff" title="点赞通知"></page-navbar>
  4. <view class="list fl-flex" v-for="(item, index) in 10" :key="index">
  5. <image
  6. src="/static/icon/QR57a.jpg"
  7. mode="scaleToFill"
  8. style="width: 100rpx; height: 100rpx"
  9. />
  10. <view class="line chelvc-flex-sub fl-flex-item">
  11. <view style="font-size: 30rpx; color: #333">
  12. <view class="fl-flex">
  13. <text>yizhiyang</text>
  14. <u-icon name="heart-fill" color="#fd746a" size="20" />
  15. <text>了我的动态</text>
  16. </view>
  17. <view class="f-s-20 text-gray" style="margin-top: 20rpx">2024/02/05</view>
  18. </view>
  19. <image src="/static/logo.png" mode="scaleToFill" />
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import { getEvaluateInform, clearInformFlag } from '@/api/client/message.js';
  26. export default {
  27. data() {
  28. return {
  29. queryParams: {
  30. // number:1,
  31. // size:10,
  32. paging: '1,10',
  33. counting: true,
  34. },
  35. };
  36. },
  37. mounted() {
  38. this.handlerInitList();
  39. },
  40. onShow() {
  41. clearInformFlag({ type: 'EVALUATE' }).then(res => {
  42. console.log('@@@res', res);
  43. });
  44. },
  45. methods: {
  46. handlerInitList() {
  47. getEvaluateInform(this.queryParams).then(res => {
  48. console.log('@@@@res', res);
  49. });
  50. },
  51. },
  52. };
  53. </script>
  54. <style lang="scss" scoped>
  55. .LikeReply {
  56. min-height: 100vh;
  57. padding: 10rpx 20rpx;
  58. background-color: #fff;
  59. .list {
  60. height: 130rpx;
  61. margin-bottom: 20rpx;
  62. padding: 0 30rpx;
  63. .line {
  64. padding-bottom: 20rpx;
  65. border-bottom: 2rpx solid #f2f2f2;
  66. > image {
  67. width: 140rpx;
  68. height: 100%;
  69. }
  70. }
  71. }
  72. }
  73. </style>