1、新建payment然后新建一个文件夹叫$+id
2、路由配置
注意component和path的配置
{name: '支付方式', path: '/payment/:oid', component: './payment/$oid/index', hideInMenu: true},
3、传值
router.push('/payment/' + localStorage.oid)
4、payment页面接收值
const {match: {params: {oid}}} = this.props;