import Magix from 'magix' import View from '../../../../view' Magix.applyStyle('@./index.less') export default View.extend({ tmpl: '@index.html', init (options) { this.options = options this.observeLocation(['brandId', 'date', 'period']) }, render () { // const loc = Magix.Router.parse() this.updater.digest({ loading: true, topBarCallback: async (dataObj) => { // dataObj: 接口相关入参参数都在dataObj里 dataObj.loading = false this.updater.set(dataObj) if (!dataObj.brandId) { return this.updater.digest({}) } // 概览数据 // const data = await this.getData() this.updater.digest({ // data }) } }) } })