group-item.vue 954 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="group-item" @click="showGroupInfo()">
  3. <head-image :name="group.remark"
  4. :url="group.headImage" :size="90"></head-image>
  5. <view class="group-name">
  6. <view>{{ group.remark}}</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: "group-item",
  13. data() {
  14. return {}
  15. },
  16. methods:{
  17. showGroupInfo(){
  18. uni.navigateTo({
  19. url:"/pages/group/group-info?id="+this.group.id
  20. })
  21. },
  22. },
  23. props: {
  24. group: {
  25. type: Object
  26. }
  27. }
  28. }
  29. </script>
  30. <style scope lang="scss">
  31. .group-item {
  32. height: 100rpx;
  33. display: flex;
  34. margin-bottom: 1rpx;
  35. position: relative;
  36. padding: 10rpx;
  37. padding-left: 20rpx;
  38. align-items: center;
  39. background-color: white;
  40. white-space: nowrap;
  41. &:hover {
  42. background-color: #eeeeee;
  43. }
  44. .group-name {
  45. font-size: 32rpx;
  46. padding-left: 20rpx;
  47. font-weight: 600;
  48. text-align: left;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. }
  52. }
  53. </style>