import Magix from 'magix' import * as View from '../../../view' // import * as Helper from 'dmp-new/views/mixins/helper' Magix.applyStyle('@./ctr-ppc-setting.less') export default View.extend({ tmpl: '@ctr-ppc-setting.html', init (options) { this.options = options }, async render () { let { cates, delivers, config } = this.options // 过滤掉直通车渠道 delivers = delivers.filter(item => item.value != '2') this.updater.digest({ config, cates, delivers }) }, 'cancel' (e) { this.options.dialog.close() }, 'confirm' (e) { this.options.dialog.afterClose(() => { this.options.callback() }) this.options.dialog.close() } })