12345678910111213141516171819202122232425262728293031323334353637383940 |
- import {formTypes} from "../../../../model/enum";
- import {toast} from "../../../../utils/utils";
- import Route from "../../../../model/route";
- Component({
- properties: {
- show: Boolean
- },
- data: {},
- methods: {
- toPublishNeeds(e) {
- Route.toCommunityForm(formTypes.NEEDS, "", "", "", {
- publish: (res) => {
- this.triggerEvent("publish", res)
- }
- })
- },
- toPublishHot(e) {
- Route.toCommunityForm(formTypes.HOT, "", "", "", {
- publish: (res) => {
- this.triggerEvent("publish", res)
- }
- })
- },
- toPublishCommunity(e) {
- // toast('正在建设中...')
- this.triggerEvent('close');
- },
- toPublishTypical(e) {
- Route.toCommunityForm(formTypes.TYPICAL, "", "", "", {
- publish: (res) => {
- this.triggerEvent("publish", res)
- }
- })
- },
- onClickHide(e) {
- this.triggerEvent('close')
- },
- }
- })
|