:joy: hi,
I come from China, my English is not very good!Forgive me。
Is this I use the $ionicGesture binding tap event performed twice with on - tap to perform version is used in the two rc - 4 don't know why.
can you help me to look at what is?Thank you very much!
var listener = function (e) {
var item = angular.fromJson($attrs[‘userSelectCheckboxClick’]);
if (item[‘isDept’]) {
//, {reload: true, location: ‘replace’} - -这里不能加刷新 不然 返回失效 不知道为毛
$state.go(‘onSelect.dept’, {deptCode: item[‘id’]});
} else {
//如果存在就移除 不存在就添加
if (!item[‘checked’]) {
var index = Util.JsonGetIndex(UserSelectData.multiSelectValue, ‘id’, item[‘id’]);
UserSelectData.multiSelectValue = Util.arrayDel(UserSelectData.multiSelectValue, index) || [];
} else {
UserSelectData.multiSelectValue.push(item);
}
}
console.log(UserSelectData);
e.stopPropagation();
};
var gesture = $ionicGesture.on('tap', listener, $element);
scope.$on('$destroy', function () {
$ionicGesture.off(gesture, 'tap', listener);
});