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;