| | 1 | |---------------- |
| | 2 | {{{#!th height="30" width="200" |
| | 3 | 功能 |
| | 4 | }}} |
| | 5 | {{{#!th height="30" width="600" |
| | 6 | API |
| | 7 | }}} |
| | 8 | {{{#!th height="30" width="200" |
| | 9 | 备注 |
| | 10 | }}} |
| | 11 | |---------------- |
| | 12 | {{{#!th height="30" width="200" |
| | 13 | 用户到达/离开[[BR]] |
| | 14 | 当前页面时触发 |
| | 15 | }}} |
| | 16 | {{{#!th height="30" width="600" |
| | 17 | app:Magazine.trigger(1)/Magazine.trigger(0)[[BR]] |
| | 18 | html:Magazine.addEvent(1,func)/ Magazine.addEvent(0,func) |
| | 19 | }}} |
| | 20 | {{{#!th height="30" width="200" |
| | 21 | |
| | 22 | }}} |
| | 23 | |---------------- |
| | 24 | {{{#!th height="30" width="200" |
| | 25 | 新浪微博分享 |
| | 26 | }}} |
| | 27 | {{{#!th height="30" width="600" |
| | 28 | sinaweibo: |
| | 29 | }}} |
| | 30 | {{{#!th height="30" width="200" |
| | 31 | |
| | 32 | }}} |
| | 33 | |---------------- |
| | 34 | {{{#!th height="30" width="200" |
| | 35 | 腾讯微博分享 |
| | 36 | }}} |
| | 37 | {{{#!th height="30" width="600" |
| | 38 | qqweibo: |
| | 39 | }}} |
| | 40 | {{{#!th height="30" width="200" |
| | 41 | |
| | 42 | }}} |
| | 43 | |---------------- |
| | 44 | {{{#!th height="30" width="200" |
| | 45 | QQ空间分享 |
| | 46 | }}} |
| | 47 | {{{#!th height="30" width="600" |
| | 48 | qzone: |
| | 49 | }}} |
| | 50 | {{{#!th height="30" width="200" |
| | 51 | |
| | 52 | }}} |
| | 53 | |---------------- |
| | 54 | {{{#!th height="30" width="200" |
| | 55 | 微信分享 |
| | 56 | }}} |
| | 57 | {{{#!th height="30" width="600" |
| | 58 | weixinshare:?title=分享文案&icon=图标&url=分享链接 |
| | 59 | }}} |
| | 60 | {{{#!th height="30" width="200" |
| | 61 | url默认使用itunes下载地址 |
| | 62 | }}} |
| | 63 | |---------------- |
| | 64 | {{{#!th height="30" width="200" |
| | 65 | 朋友圈分享 |
| | 66 | }}} |
| | 67 | {{{#!th height="30" width="600" |
| | 68 | wxfriendshare:?title=分享文案&icon=图标&url=分享链接 |
| | 69 | }}} |
| | 70 | {{{#!th height="30" width="200" |
| | 71 | url默认使用itunes下载地址 |
| | 72 | }}} |
| | 73 | |---------------- |
| | 74 | {{{#!th height="30" width="200" |
| | 75 | 调用APP分享组件 |
| | 76 | }}} |
| | 77 | {{{#!th height="30" width="600" |
| | 78 | appshare://?title=分享文案&icon=图标&url=分享链接&sinatail=新浪尾巴&qqtail=腾讯微博尾巴[[BR]] |
| | 79 | 尾巴用于区分分享文案当中新浪与腾讯区别 |
| | 80 | }}} |
| | 81 | {{{#!th height="30" width="200" |
| | 82 | url默认使用itunes下载地址 |
| | 83 | }}} |
| | 84 | |---------------- |
| | 85 | {{{#!th height="30" width="200" |
| | 86 | 成功发送微博后触发 |
| | 87 | }}} |
| | 88 | {{{#!th height="30" width="600" |
| | 89 | app:Magazine.trigger(2,{username:123,shareType:2})[[BR]] |
| | 90 | html:Magazine.addEvent(2,func)/ Magazine.addEvent(2,func(args){args[0].username})[[BR]] |
| | 91 | [[BR]] |
| | 92 | shareType:[[BR]] |
| | 93 | PCShareToSinaWeibo=1, /* 新浪微博 */ [[BR]] |
| | 94 | PCShareToQQWeibo=2, /* QQ微博 */ [[BR]] |
| | 95 | PCShareToQZone=3, /* QQ空间 */ [[BR]] |
| | 96 | PCShareToWeixin=4, /* 微信 */ [[BR]] |
| | 97 | PCShareToQQ=5, /* QQ */ |
| | 98 | }}} |
| | 99 | {{{#!th height="30" width="200" |
| | 100 | |
| | 101 | }}} |
| | 102 | |---------------- |
| | 103 | {{{#!th height="30" width="200" |
| | 104 | 热区点击分享后终止触发 |
| | 105 | }}} |
| | 106 | {{{#!th height="30" width="600" |
| | 107 | app:Magazine.trigger(3) |
| | 108 | }}} |
| | 109 | {{{#!th height="30" width="200" |
| | 110 | |
| | 111 | }}} |
| | 112 | |---------------- |
| | 113 | {{{#!th height="30" width="200" |
| | 114 | 页面调用登录模块 |
| | 115 | }}} |
| | 116 | {{{#!th height="30" width="600" |
| | 117 | login: |
| | 118 | }}} |
| | 119 | {{{#!th height="30" width="200" |
| | 120 | |
| | 121 | }}} |
| | 122 | |---------------- |
| | 123 | {{{#!th height="30" width="200" |
| | 124 | 热区点击登录完成 |
| | 125 | }}} |
| | 126 | {{{#!th height="30" width="600" |
| | 127 | app:Magazine.trigger(4,{“user_id”:xxxxxxxx}) |
| | 128 | }}} |
| | 129 | {{{#!th height="30" width="200" |
| | 130 | |
| | 131 | }}} |
| | 132 | |---------------- |
| | 133 | {{{#!th height="30" width="200" |
| | 134 | 保存图片 |
| | 135 | }}} |
| | 136 | {{{#!th height="30" width="600" |
| | 137 | saveimage:article-xxx/picture.png |
| | 138 | }}} |
| | 139 | {{{#!th height="30" width="200" |
| | 140 | |
| | 141 | }}} |
| | 142 | |---------------- |
| | 143 | {{{#!th height="30" width="200" |
| | 144 | 全屏组图 |
| | 145 | }}} |
| | 146 | {{{#!th height="30" width="600" |
| | 147 | groupimage:image_path |
| | 148 | }}} |
| | 149 | {{{#!th height="30" width="200" |
| | 150 | |
| | 151 | }}} |
| | 152 | |---------------- |
| | 153 | {{{#!th height="30" width="200" |
| | 154 | 打开iTunes链接 |
| | 155 | }}} |
| | 156 | {{{#!th height="30" width="600" |
| | 157 | http://itunes.apple.com/cn/app/id415249203?mt=8 |
| | 158 | }}} |
| | 159 | {{{#!th height="30" width="200" |
| | 160 | |
| | 161 | }}} |
| | 162 | |---------------- |
| | 163 | {{{#!th height="30" width="200" |
| | 164 | 调用内嵌浏览器 |
| | 165 | }}} |
| | 166 | {{{#!th height="30" width="600" |
| | 167 | url_path#CustomBrowser |
| | 168 | }}} |
| | 169 | {{{#!th height="30" width="200" |
| | 170 | |
| | 171 | }}} |
| | 172 | |---------------- |
| | 173 | {{{#!th height="30" width="200" |
| | 174 | 弹出菜单 |
| | 175 | }}} |
| | 176 | {{{#!th height="30" width="600" |
| | 177 | url:http://PassOnClickEvent |
| | 178 | }}} |
| | 179 | {{{#!th height="30" width="200" |
| | 180 | |
| | 181 | }}} |
| | 182 | |---------------- |
| | 183 | {{{#!th height="30" width="200" |
| | 184 | 跳转文章 |
| | 185 | }}} |
| | 186 | {{{#!th height="30" width="600" |
| | 187 | url:http://article-123/page-0 |
| | 188 | }}} |
| | 189 | {{{#!th height="30" width="200" |
| | 190 | |
| | 191 | }}} |
| | 192 | |---------------- |
| | 193 | {{{#!th height="30" width="200" |
| | 194 | 看评论 |
| | 195 | }}} |
| | 196 | {{{#!th height="30" width="600" |
| | 197 | magazineComments:1 |
| | 198 | }}} |
| | 199 | {{{#!th height="30" width="200" |
| | 200 | |
| | 201 | }}} |
| | 202 | |---------------- |
| | 203 | {{{#!th height="30" width="200" |
| | 204 | 写评论 |
| | 205 | }}} |
| | 206 | {{{#!th height="30" width="600" |
| | 207 | magazineComments:2 |
| | 208 | }}} |
| | 209 | {{{#!th height="30" width="200" |
| | 210 | |
| | 211 | }}} |
| | 212 | |---------------- |
| | 213 | {{{#!th height="30" width="200" |
| | 214 | 播放音乐 |
| | 215 | }}} |
| | 216 | {{{#!th height="30" width="600" |
| | 217 | backgroundaudio:?src=article-123/music.mp3&opt=play&volume=0.4&tTime=30&autostop=0[[BR]] |
| | 218 | src 音频参数[[BR]] |
| | 219 | opt 操作play pause stop[[BR]] |
| | 220 | volume 音量[[BR]] |
| | 221 | currentTime 在音频的哪一秒开始播放[[BR]] |
| | 222 | autostop 自动关闭 1或0 |
| | 223 | }}} |
| | 224 | {{{#!th height="30" width="200" |
| | 225 | |
| | 226 | }}} |
| | 227 | |---------------- |
| | 228 | {{{#!th height="30" width="200" |
| | 229 | 外部链接打开应用 |
| | 230 | }}} |
| | 231 | {{{#!th height="30" width="600" |
| | 232 | url: openapps://pcauto://xxx |
| | 233 | }}} |
| | 234 | {{{#!th height="30" width="200" |
| | 235 | |
| | 236 | }}} |
| | 237 | |---------------- |
| | 238 | {{{#!th height="30" width="200" |
| | 239 | 广告点击统计 |
| | 240 | }}} |
| | 241 | {{{#!th height="30" width="600" |
| | 242 | adclick:本田广告 |
| | 243 | }}} |
| | 244 | {{{#!th height="30" width="200" |
| | 245 | |
| | 246 | }}} |
| | 247 | |---------------- |
| | 248 | {{{#!th height="30" width="200" |
| | 249 | 写邮件 |
| | 250 | }}} |
| | 251 | {{{#!th height="30" width="600" |
| | 252 | herf="mailto:abc@pconline.com.cn?subject=%3F%3D&boby=你好3D"[[BR]] |
| | 253 | 其中subject、和boby内[[BR]] |
| | 254 | %3F : ?[[BR]] |
| | 255 | %3D : = |
| | 256 | }}} |
| | 257 | {{{#!th height="30" width="200" |
| | 258 | |
| | 259 | }}} |
| | 260 | |---------------- |
| | 261 | {{{#!th height="30" width="200" |
| | 262 | 锁屏旋转 |
| | 263 | }}} |
| | 264 | {{{#!th height="30" width="600" |
| | 265 | 锁屏:lockrotation:1[[BR]] |
| | 266 | 恢复:lockrotation:0 |
| | 267 | }}} |
| | 268 | {{{#!th height="30" width="200" |
| | 269 | |
| | 270 | }}} |
| | 271 | |---------------- |
| | 272 | {{{#!th height="30" width="200" |
| | 273 | app(非html)视频自动播放 |
| | 274 | }}} |
| | 275 | {{{#!th height="30" width="600" |
| | 276 | abc.mp4/Y[[BR]] |
| | 277 | abc.mp4/N |
| | 278 | }}} |
| | 279 | {{{#!th height="30" width="200" |
| | 280 | |
| | 281 | }}} |
| | 282 | |---------------- |
| | 283 | {{{#!th height="30" width="200" |
| | 284 | 传入页面url参数 |
| | 285 | }}} |
| | 286 | {{{#!th height="30" width="600" |
| | 287 | 设备 machine、设备方向 statusBarOrientation、方向 orientation、版本号 app_version、iOS系统 os_version、太平洋账号ID user_id |
| | 288 | }}} |
| | 289 | {{{#!th height="30" width="200" |
| | 290 | |
| | 291 | }}} |