import { wxRequestPost, wxGetSetting } from "@utils/promise-wx-api"; import { doAfterLogin } from "@utils/tools"; import promiseWxApi from "@utils/promise-wx-api"; const app = getApp() Component({ // behaviors: [ computedBehavior, commonBehavior], properties: {}, data: { groupId:"", iniLoaded: false, }, lifetimes: { attached: async function () { }, detached: function () { }, }, //computed: {}, //watch: {}, methods: { onLoad(options) { console.log(options.gid) let groupId = options.gid this.setData({ groupId }) this.init() }, async init(){ await doAfterLogin(); }, }, });