1234567891011121314151617181920212223242526272829303132333435 |
- const app = getApp(),
- {
- globalData: {
- WxParse,
- util: {
- regeneratorRuntime,
- api: {
- clubDetails
- },
- request: {
- get
- }
- }
- }
- } = app;
- Page({
- async onLoad({
- id
- }) {
- let {
- organizeName: title = "",
- organizeContent: content = "",
- _err
- } = await get(clubDetails, {
- id
- })
- _err || WxParse.wxParse('content', 'html', content, this)
- this.setData({
- title
- })
- },
- })
|