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

82 lines
1.5 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="works" @click="$emit('click')">
  3. <userHeadItem :item="item"/>
  4. <daynamicInfo :item="item"/>
  5. <view class="bottom">
  6. <view class="browse">
  7. {{ item.isBrowse }}浏览
  8. </view>
  9. <view class="browse">
  10. {{ item.isComment }}条评论
  11. </view>
  12. <view class="phone"
  13. v-if="item.phone"
  14. @click.stop="callPhone">
  15. <image src="/static/image/home/phone.png" mode=""></image>
  16. 联系{{ ta[item.sex] }}
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import mixinsSex from '@/mixins/sex.js'
  23. import userHeadItem from '@/components/list/dynamic/userHeadItem.vue'
  24. import daynamicInfo from '@/components/list/dynamic/daynamicInfo.vue'
  25. export default {
  26. mixins: [mixinsSex],
  27. components : {
  28. userHeadItem,
  29. daynamicInfo,
  30. },
  31. props: {
  32. item: {},
  33. },
  34. data() {
  35. return {
  36. }
  37. },
  38. methods: {
  39. callPhone(){
  40. uni.makePhoneCall({
  41. phoneNumber: this.item.phone
  42. })
  43. },
  44. },
  45. }
  46. </script>
  47. <style scoped lang="scss">
  48. .works {
  49. margin: 40rpx 20rpx;
  50. background-color: #fff;
  51. padding: 40rpx;
  52. border-radius: 20rpx;
  53. box-shadow: 0 0 6rpx 6rpx #00000011;
  54. .bottom {
  55. display: flex;
  56. margin-top: 20rpx;
  57. font-size: 24rpx;
  58. .browse {
  59. margin: 0rpx 30rpx;
  60. color: rgb(132, 132, 132);
  61. }
  62. .phone{
  63. background-color: rgba($uni-color, 0.2);
  64. color: $uni-color;
  65. padding: 8rpx 16rpx;
  66. border-radius: 10rpx;
  67. margin-left: auto;
  68. image{
  69. width: 20rpx;
  70. height: 20rpx;
  71. }
  72. }
  73. }
  74. }
  75. </style>