import Magix from 'magix' import * as View from '../../../view' Magix.applyStyle('@./blank.less') export default View.extend({ tmpl: '@blank.html', init(options) { this.options = options }, render() { const { dialog } = this.options this.updater.digest({ params: { // noTabs: [1, 3], hasTabs: [1, 2, 3, 4], dialog, onlyDmpSource: true, maxCount: 2, bizCode: 'video', crowdIds: ['100000'], callback: bizCrowds => { console.log('confirm get bizCrowds', bizCrowds) }, // 平台精选的入参 hotCrowdsParams: { // topicSceneType: 1, // 直通车单独接入榜单,1:大促,2:场景 hasPremium: false, maxCount: 3, // 默认10 bizCode: 'video', // campaignId: 33333, //计划id, adgroupId: 11233, // 单元ID // countCallback: (count) => { // console.log('count: ', count) // }, dmpCrowds: [ { crowdId: 3001, discount: '120' } ], params: { marketTargetList: [111, 222], properties: { campaignGroupId: 112312, a: 'casdfsdf', bo: 2, infoList: [ { a: 1, b: 2 } ] } } } } }) }, async 'confirm'(e) { const vf = Magix.Vframe.get('bpBizCrowds') const { crowds, errMsg } = await vf.invoke('getBizCrowds') if (errMsg) { return this._alert('提示', errMsg) } console.log('invoke get bizCrowds', crowds) this.options.dialog.close() } })