Skip to content

Instantly share code, notes, and snippets.

@jackyshan
Created December 17, 2016 03:27
Show Gist options
  • Save jackyshan/c7cee86ce3b92c0a4255e313a2b83b82 to your computer and use it in GitHub Desktop.
Save jackyshan/c7cee86ce3b92c0a4255e313a2b83b82 to your computer and use it in GitHub Desktop.
官网购一键购链接弹出
defineClass("YTPlatWebsiteDetailViewController", {
//instance method definitions
webViewDidStartLoad: function(webView) {
self.progressView().setProgress_animated(0.9, true)
self.buyBtn().setSelected(true)
},
webViewDidFinishLoad: function(webView) {
self.progressView().setProgress_animated(1.0, true)
self.buyBtn().setSelected(true)
}
}, {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment