瑶都万能墙
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.

96 lines
1.5 KiB

5 months ago
3 months ago
5 months ago
3 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
3 months ago
5 months ago
  1. <template>
  2. <view class="bottom">
  3. <!-- 浏览 -->
  4. <view class="browse">
  5. {{ item.isBrowse }}
  6. <view class="bontt">
  7. <uv-icon name="eye-fill"></uv-icon>
  8. </view>
  9. </view>
  10. <!-- 评论 -->
  11. <view class="browse">
  12. {{ item.isComment }}
  13. <view class="bontt">
  14. <uv-icon name="chat-fill"></uv-icon>
  15. </view>
  16. </view>
  17. <!-- 点赞 -->
  18. <view class="browse" @click="onUpClick">
  19. {{ item.isUp || 0 }}
  20. <view class="bontt">
  21. <uv-icon name="thumb-up-fill"></uv-icon>
  22. </view>
  23. </view>
  24. <!-- 分享 -->
  25. <view class="browse" @click="onDownClick">
  26. {{ item.isDown || 0 }}
  27. <view class="bontt">
  28. <uv-icon name="attach"></uv-icon>
  29. </view>
  30. </view>
  31. <callPhone
  32. :phone="item.phone"
  33. :type="type"
  34. :phoneTitle="title"
  35. :pid="item.id"
  36. :sexName="item.sex" />
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. }
  44. },
  45. computed : {
  46. title(){
  47. let key = {
  48. 0 : 'userName',
  49. }
  50. return this.item[key[this.type]]
  51. },
  52. },
  53. props: {
  54. item: {},
  55. type : {},
  56. },
  57. methods: {
  58. //点赞
  59. onUpClick(){
  60. console.log("点击了点赞")
  61. },
  62. //分享
  63. onDownClick(){
  64. console.log("点击了分享")
  65. }
  66. }
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .bottom {
  71. display: flex;
  72. margin-top: 20rpx;
  73. font-size: 24rpx;
  74. .browse {
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. margin: 0rpx 30rpx;
  79. color: rgb(132, 132, 132);
  80. margin-left: 10rpx;
  81. }
  82. .bontt {
  83. margin: 0rpx 5rpx;
  84. }
  85. }
  86. </style>