import { getCategoryList } from '../../../services/good/fetchCategoryList'; Page({ data: { list: [], }, async init() { try { const result = await getCategoryList(); this.setData({ list: result, }); } catch (error) { console.error('err:', error); } }, handleClick(e) { console.log(e); }, onLoad() { this.init(true); }, });