community-pop.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {formTypes} from "../../../../model/enum";
  2. import {toast} from "../../../../utils/utils";
  3. import Route from "../../../../model/route";
  4. Component({
  5. properties: {
  6. show: Boolean
  7. },
  8. data: {},
  9. methods: {
  10. toPublishNeeds(e) {
  11. Route.toCommunityForm(formTypes.NEEDS, "", "", "", {
  12. publish: (res) => {
  13. this.triggerEvent("publish", res)
  14. }
  15. })
  16. },
  17. toPublishHot(e) {
  18. Route.toCommunityForm(formTypes.HOT, "", "", "", {
  19. publish: (res) => {
  20. this.triggerEvent("publish", res)
  21. }
  22. })
  23. },
  24. toPublishCommunity(e) {
  25. // toast('正在建设中...')
  26. this.triggerEvent('close');
  27. },
  28. toPublishTypical(e) {
  29. Route.toCommunityForm(formTypes.TYPICAL, "", "", "", {
  30. publish: (res) => {
  31. this.triggerEvent("publish", res)
  32. }
  33. })
  34. },
  35. onClickHide(e) {
  36. this.triggerEvent('close')
  37. },
  38. }
  39. })