| | |
| | | vc.extends({ |
| | | data:{ |
| | | serviceBindingInfo:{ |
| | | $step:'', |
| | | $step:{}, |
| | | index:0, |
| | | infos:[] |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | vc.component._initStep(); |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on("serviceBinding", "notify", function(_info){ |
| | | vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index] = _info; |
| | | }); |
| | | |
| | | }, |
| | | methods:{ |
| | |
| | | time: 500, |
| | | title: ["选择应用", "选择服务", "确认绑定"] |
| | | }); |
| | | //vc.component.serviceBindingInfo.step = $step.getIndex(); |
| | | vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex(); |
| | | }, |
| | | _prevStep:function(){ |
| | | vc.component.serviceBindingInfo.$step.prevStep(); |
| | | //vc.component.serviceBindingInfo.step = $step.getIndex(); |
| | | vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex(); |
| | | }, |
| | | _nextStep:function(){ |
| | | var _currentData = vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index]; |
| | | if( _currentData == null || _currentData == undefined){ |
| | | vc.message("请选择相关信息"); |
| | | return ; |
| | | } |
| | | vc.component.serviceBindingInfo.$step.nextStep(); |
| | | //vc.component.serviceBindingInfo.step = $step.getIndex(); |
| | | vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex(); |
| | | } |
| | | } |
| | | }); |