diff --git a/public/components/frame/addStaffView/addStaffView.html b/public/components/frame/addStaffView/addStaffView.html
index d863438a4..7bf3f958b 100644
--- a/public/components/frame/addStaffView/addStaffView.html
+++ b/public/components/frame/addStaffView/addStaffView.html
@@ -76,7 +76,7 @@
diff --git a/public/components/frame/addStaffView/addStaffView.js b/public/components/frame/addStaffView/addStaffView.js
index 1d0708adf..9db2fe3ee 100644
--- a/public/components/frame/addStaffView/addStaffView.js
+++ b/public/components/frame/addStaffView/addStaffView.js
@@ -35,11 +35,11 @@
},
_initEvent: function() {
- vc.on('addStaffViewInfo', 'onIndex',
+ vc.on('addStaffView', 'onIndex',
function(_index) {
vc.component.addStaffViewInfo.index = _index;
- if(_index == 3){
+ if(_index == 2){
$that._initAddStaffMedia();
}
});
@@ -145,7 +145,7 @@
canvas.height = video.videoHeight;
canvas.getContext('2d').drawImage(video, 0, 0);
var data = canvas.toDataURL('image/jpeg',1.0);
- vc.component.addStaffViewInfo.staffPhoto = data;
+ vc.component.addStaffViewInfo.photo = data;
//document.getElementById('photo').setAttribute('src', data);
}
},