|---------------- {{{#!th height="30" width="200" 功能 }}} {{{#!th height="30" width="600" API }}} {{{#!th height="30" width="200" 备注 }}} |---------------- {{{#!th height="30" width="200" 用户到达/离开[[BR]] 当前页面时触发 }}} {{{#!th height="30" width="600" app:Magazine.trigger(1)/Magazine.trigger(0)[[BR]] html:Magazine.addEvent(1,func)/ Magazine.addEvent(0,func) }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 新浪微博分享 }}} {{{#!th height="30" width="600" sinaweibo: }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 腾讯微博分享 }}} {{{#!th height="30" width="600" qqweibo: }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" QQ空间分享 }}} {{{#!th height="30" width="600" qzone: }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 微信分享 }}} {{{#!th height="30" width="600" weixinshare:?title=分享文案&icon=图标&url=分享链接 }}} {{{#!th height="30" width="200" url默认使用itunes下载地址 }}} |---------------- {{{#!th height="30" width="200" 朋友圈分享 }}} {{{#!th height="30" width="600" wxfriendshare:?title=分享文案&icon=图标&url=分享链接 }}} {{{#!th height="30" width="200" url默认使用itunes下载地址 }}} |---------------- {{{#!th height="30" width="200" 调用APP分享组件 }}} {{{#!th height="30" width="600" appshare://?title=分享文案&icon=图标&url=分享链接&sinatail=新浪尾巴&qqtail=腾讯微博尾巴[[BR]] 尾巴用于区分分享文案当中新浪与腾讯区别 }}} {{{#!th height="30" width="200" url默认使用itunes下载地址 }}} |---------------- {{{#!th height="30" width="200" 成功发送微博后触发 }}} {{{#!th height="30" width="600" app:Magazine.trigger(2,{username:123,shareType:2})[[BR]] html:Magazine.addEvent(2,func)/ Magazine.addEvent(2,func(args){args[0].username})[[BR]] [[BR]] shareType:[[BR]] PCShareToSinaWeibo=1, /* 新浪微博 */ [[BR]] PCShareToQQWeibo=2, /* QQ微博 */ [[BR]] PCShareToQZone=3, /* QQ空间 */ [[BR]] PCShareToWeixin=4, /* 微信 */ [[BR]] PCShareToQQ=5, /* QQ */ }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 热区点击分享后终止触发 }}} {{{#!th height="30" width="600" app:Magazine.trigger(3) }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 页面调用登录模块 }}} {{{#!th height="30" width="600" login: }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 热区点击登录完成 }}} {{{#!th height="30" width="600" app:Magazine.trigger(4,{“user_id”:xxxxxxxx}) }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 保存图片 }}} {{{#!th height="30" width="600" saveimage:article-xxx/picture.png }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 全屏组图 }}} {{{#!th height="30" width="600" groupimage:image_path }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 打开iTunes链接 }}} {{{#!th height="30" width="600" http://itunes.apple.com/cn/app/id415249203?mt=8 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 调用内嵌浏览器 }}} {{{#!th height="30" width="600" url_path#CustomBrowser }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 弹出菜单 }}} {{{#!th height="30" width="600" url:http://PassOnClickEvent }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 跳转文章 }}} {{{#!th height="30" width="600" url:http://article-123/page-0 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 看评论 }}} {{{#!th height="30" width="600" magazineComments:1 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 写评论 }}} {{{#!th height="30" width="600" magazineComments:2 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 播放音乐 }}} {{{#!th height="30" width="600" backgroundaudio:?src=article-123/music.mp3&opt=play&volume=0.4&tTime=30&autostop=0[[BR]] src 音频参数[[BR]] opt 操作play pause stop[[BR]] volume 音量[[BR]] currentTime 在音频的哪一秒开始播放[[BR]] autostop 自动关闭 1或0 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 外部链接打开应用 }}} {{{#!th height="30" width="600" url: openapps://pcauto://xxx }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 广告点击统计 }}} {{{#!th height="30" width="600" adclick:本田广告 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 写邮件 }}} {{{#!th height="30" width="600" herf="mailto:abc@pconline.com.cn?subject=%3F%3D&boby=你好3D"[[BR]] 其中subject、和boby内[[BR]] %3F : ?[[BR]] %3D : = }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 锁屏旋转 }}} {{{#!th height="30" width="600" 锁屏:lockrotation:1[[BR]] 恢复:lockrotation:0 }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" app(非html)视频自动播放 }}} {{{#!th height="30" width="600" abc.mp4/Y[[BR]] abc.mp4/N }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 传入页面url参数 }}} {{{#!th height="30" width="600" 设备 machine、设备方向 statusBarOrientation、方向 orientation、版本号 app_version、iOS系统 os_version、太平洋账号ID user_id }}} {{{#!th height="30" width="200" }}} |---------------- {{{#!th height="30" width="200" 家居杂志安卓版JS回调app接口方法 }}} {{{#!th height="30" width="600" app: webView增加接口:addJavascriptInterface(toChild, "touchToChild");(tochild:接口对象,touchToChild:js回调接口对象名称) JS:JS端调用接口方法;window.touchToChild.changdChildTouchPermission(X);(X可以传值true或者false,true代表拦截app端触摸事件,将触控权限保留在JS端;false代表将触控权限交由给app端控 制) }}} {{{#!th height="30" width="200" }}}