solitaireHead.js 712 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. var status = require('../../utils/index.js');
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. community: {
  8. type: Object,
  9. value: {
  10. "head_id": 0,
  11. "community_name": "团长",
  12. "head_name": "社区",
  13. "avatar": ""
  14. }
  15. },
  16. showShare: {
  17. type: Boolean,
  18. value: false
  19. }
  20. },
  21. /**
  22. * 组件的初始数据
  23. */
  24. data: {
  25. groupInfo: {
  26. group_name: '社区',
  27. owner_name: '团长'
  28. }
  29. },
  30. attached() {
  31. let that = this;
  32. status.setGroupInfo().then((groupInfo) => {
  33. that.setData({ groupInfo })
  34. });
  35. },
  36. methods: {
  37. shareQuan: function(){
  38. this.triggerEvent('share');
  39. }
  40. }
  41. })