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', 'crowdId', 'benchmarkId']) }, async render () { // const loc = Magix.Router.parse() this.updater.digest({ loading: true, topBarCallback: async (dataObj) => { // dataObj: 接口相关入参参数都在dataObj里 this.updater.set({ params: dataObj, loading: false }) if (!dataObj.brandId) { return this.updater.digest({}) } this.updater.digest({}) } }) } })