wall_info.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="container" style="margin: 10rpx 0;">
  3. <view @tap="onDetails">
  4. <view class="flex-y-center mb-20">
  5. <image class="type-image mr-20" :src="`/static/img/ic-wall-type-${itemInfo.type}.png`" mode=""></image>
  6. <view>
  7. <view class="info-dzi mb-10 fs-24">Lalala·北京大学</view>
  8. <view class="info-xzi">
  9. <text>98楼</text>
  10. <text>3-23 13:22:04</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="info-dzi f-s-22 f-w-300 mb-20">
  15. 有没有一起玩吃鸡手游的🙋🏻‍♀️🙋🏻‍♀️,我是新手得多多包涵,找个有耐心,不嫌我菜的温柔男生。
  16. </view>
  17. </view>
  18. <view class="flex-y-center">
  19. <view @tap="onDetails">
  20. <text class='iconfont icon-dianzan' style="font-size: 24rpx;margin-right: 10rpx;"></text>
  21. <text class="info-xzi f-s-22">124</text>
  22. </view>
  23. <view @tap="onLikes" class="ml-38">
  24. <text class='iconfont icon-dizhixinxi ' style="font-size: 24rpx;margin-right: 10rpx;"></text>
  25. <text class="info-xzi f-s-22">16</text>
  26. </view>
  27. </view>
  28. <wall-reply ref="replyRef"></wall-reply>
  29. </view>
  30. </template>
  31. <script>
  32. import wallReply from './wall_reply.vue'
  33. let app = getApp();
  34. export default {
  35. components: {
  36. wallReply
  37. },
  38. props: {
  39. itemInfo: {
  40. type: Object,
  41. default: {}
  42. },
  43. onUrl: {
  44. type: Boolean,
  45. default: true
  46. }
  47. },
  48. data() {
  49. return {}
  50. },
  51. onLoad(options) {},
  52. onShow() {
  53. },
  54. methods: {
  55. onDetails() {
  56. if (this.onUrl) {
  57. uni.navigateTo({
  58. url: `/pages/confession_wall/wall_details_info/index`
  59. })
  60. } else {
  61. this.$refs.replyRef.visible = true; // 调用子组件的方法显示对话框
  62. }
  63. },
  64. onLikes() {
  65. console.log('点赞')
  66. }
  67. },
  68. mounted() {
  69. },
  70. }
  71. </script>
  72. <style scoped lang="scss">
  73. .container {
  74. overflow: hidden;
  75. position: relative;
  76. background-color: #fff;
  77. border-radius: 23rpx;
  78. padding: 20rpx;
  79. }
  80. .info-xzi {
  81. font-weight: 400;
  82. font-size: 19rpx;
  83. color: #999999;
  84. }
  85. .info-dzi {
  86. font-weight: 500;
  87. font-size: 23rpx;
  88. color: #141414;
  89. }
  90. .type-image {
  91. width: 58rpx;
  92. height: 58rpx;
  93. }
  94. </style>