{"action":"created","issue":{"url":"https://api.github.com/repos/NervJS/taro/issues/794","repository_url":"https://api.github.com/repos/NervJS/taro","labels_url":"https://api.github.com/repos/NervJS/taro/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/taro/issues/794/comments","events_url":"https://api.github.com/repos/NervJS/taro/issues/794/events","html_url":"https://github.com/NervJS/taro/issues/794","id":368457244,"node_id":"MDU6SXNzdWUzNjg0NTcyNDQ=","number":794,"title":"Image组件的onClick事件在小程序中没有问题, 但是在h5中点击事件没有反应","user":{"login":"wjjesse","id":18653890,"node_id":"MDQ6VXNlcjE4NjUzODkw","avatar_url":"https://avatars2.githubusercontent.com/u/18653890?v=4","gravatar_id":"","url":"https://api.github.com/users/wjjesse","html_url":"https://github.com/wjjesse","followers_url":"https://api.github.com/users/wjjesse/followers","following_url":"https://api.github.com/users/wjjesse/following{/other_user}","gists_url":"https://api.github.com/users/wjjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/wjjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjjesse/subscriptions","organizations_url":"https://api.github.com/users/wjjesse/orgs","repos_url":"https://api.github.com/users/wjjesse/repos","events_url":"https://api.github.com/users/wjjesse/events{/privacy}","received_events_url":"https://api.github.com/users/wjjesse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jinjinjin0731","id":17409735,"node_id":"MDQ6VXNlcjE3NDA5NzM1","avatar_url":"https://avatars1.githubusercontent.com/u/17409735?v=4","gravatar_id":"","url":"https://api.github.com/users/jinjinjin0731","html_url":"https://github.com/jinjinjin0731","followers_url":"https://api.github.com/users/jinjinjin0731/followers","following_url":"https://api.github.com/users/jinjinjin0731/following{/other_user}","gists_url":"https://api.github.com/users/jinjinjin0731/gists{/gist_id}","starred_url":"https://api.github.com/users/jinjinjin0731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinjinjin0731/subscriptions","organizations_url":"https://api.github.com/users/jinjinjin0731/orgs","repos_url":"https://api.github.com/users/jinjinjin0731/repos","events_url":"https://api.github.com/users/jinjinjin0731/events{/privacy}","received_events_url":"https://api.github.com/users/jinjinjin0731/received_events","type":"User","site_admin":false},"assignees":[{"login":"jinjinjin0731","id":17409735,"node_id":"MDQ6VXNlcjE3NDA5NzM1","avatar_url":"https://avatars1.githubusercontent.com/u/17409735?v=4","gravatar_id":"","url":"https://api.github.com/users/jinjinjin0731","html_url":"https://github.com/jinjinjin0731","followers_url":"https://api.github.com/users/jinjinjin0731/followers","following_url":"https://api.github.com/users/jinjinjin0731/following{/other_user}","gists_url":"https://api.github.com/users/jinjinjin0731/gists{/gist_id}","starred_url":"https://api.github.com/users/jinjinjin0731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinjinjin0731/subscriptions","organizations_url":"https://api.github.com/users/jinjinjin0731/orgs","repos_url":"https://api.github.com/users/jinjinjin0731/repos","events_url":"https://api.github.com/users/jinjinjin0731/events{/privacy}","received_events_url":"https://api.github.com/users/jinjinjin0731/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-10T01:18:57Z","updated_at":"2018-10-20T06:45:43Z","closed_at":null,"author_association":"NONE","body":"**问题描述**\r\nImage组件的onClick事件在小程序中没有问题, 但是在h5中点击事件没有反应\r\nView组件也试过了,同样的问题\r\n\r\n**复现步骤**\r\n[复现问题的步骤]\r\n1. Image组件的onClick事件在小程序中没有问题, 但是在h5中点击事件没有反应\r\n2. View组件也试过了,同样的问题\r\n3. 在h5端没有报任何错误信息\r\n\r\n\r\n[或者可以直接贴源代码，能贴文字就不要截图]\r\n\r\n```js\r\n// 这里可以贴代码\r\nbannerClick = (url, even) => {\r\n    console.log(url);\r\n    Taro.navigateTo({\r\n      url: url\r\n    });\r\n  };\r\n\r\n  render() {\r\n    return (\r\n      <Swiper\r\n        indicatorDots={this.props.indicatorDots}\r\n        indicatorColor={this.props.indicatorColor}\r\n        indicatorActiveColor={this.props.indicatorActiveColor}\r\n        autoplay={this.props.autoplay}\r\n        interval={this.props.interval}\r\n        duration={this.props.duration}\r\n        current={this.props.current}\r\n        circular={this.props.circular}\r\n        style={this.props.customStyle}\r\n        skipHiddenItemLayout={this.props.skipHiddenItemLayout}\r\n        displayMultipleItems={this.props.displayMultipleItems}\r\n        vertical={this.props.vertical}\r\n        onChange={this.props.onChange}\r\n        onAnimationfinish={this.props.onAnimationfinish}\r\n      >\r\n        {this.props.imgUrls.map((item, index) => {\r\n          return (\r\n            <SwiperItem key={index} >\r\n              <Image src={item.img} style={this.props.customImageStyle} onClick={this.bannerClick.bind(this, item.url)} />\r\n            </SwiperItem>\r\n          )\r\n        })}\r\n      </Swiper>\r\n    )\r\n  }\r\n```\r\n\r\n**期望行为**\r\n系统onClick事件可在h5端正常触发\r\n\r\n**报错信息**\r\n\r\n[这里请贴上你的**完整**报错截图或文字]\r\n\r\n**系统信息**\r\n\r\n - 操作系统: macOS High Sierra 10.13.6 (17G65)\r\n - Taro 版本 1.0.7\r\n - Node.js 版本 v10.10.0\r\n\r\n**补充信息**\r\n[可选]\r\n[根据你的调查研究，出现这个问题的原因可能在哪里？]\r\n"},"comment":{"url":"https://api.github.com/repos/NervJS/taro/issues/comments/431554845","html_url":"https://github.com/NervJS/taro/issues/794#issuecomment-431554845","issue_url":"https://api.github.com/repos/NervJS/taro/issues/794","id":431554845,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU1NDg0NQ==","user":{"login":"wjjesse","id":18653890,"node_id":"MDQ6VXNlcjE4NjUzODkw","avatar_url":"https://avatars2.githubusercontent.com/u/18653890?v=4","gravatar_id":"","url":"https://api.github.com/users/wjjesse","html_url":"https://github.com/wjjesse","followers_url":"https://api.github.com/users/wjjesse/followers","following_url":"https://api.github.com/users/wjjesse/following{/other_user}","gists_url":"https://api.github.com/users/wjjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/wjjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjjesse/subscriptions","organizations_url":"https://api.github.com/users/wjjesse/orgs","repos_url":"https://api.github.com/users/wjjesse/repos","events_url":"https://api.github.com/users/wjjesse/events{/privacy}","received_events_url":"https://api.github.com/users/wjjesse/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T06:45:43Z","updated_at":"2018-10-20T06:45:43Z","author_association":"NONE","body":"请问这个bug,什么时候会修复?"}}
{"actor":{"display_login":"wjjesse"}}