Changes between Initial Version and Version 1 of api


Ignore:
Timestamp:
09/11/2014 04:15:58 PM (12 years ago)
Author:
huozhenhua
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • api

    v1 v1  
     1|---------------- 
     2{{{#!th height="30" width="200" 
     3功能 
     4}}} 
     5{{{#!th height="30" width="600" 
     6API 
     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" 
     17app:Magazine.trigger(1)/Magazine.trigger(0)[[BR]] 
     18html: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" 
     28sinaweibo: 
     29}}} 
     30{{{#!th height="30" width="200" 
     31 
     32}}} 
     33|---------------- 
     34{{{#!th height="30" width="200" 
     35腾讯微博分享 
     36}}} 
     37{{{#!th height="30" width="600" 
     38qqweibo: 
     39}}} 
     40{{{#!th height="30" width="200" 
     41 
     42}}} 
     43|---------------- 
     44{{{#!th height="30" width="200" 
     45QQ空间分享 
     46}}} 
     47{{{#!th height="30" width="600" 
     48qzone: 
     49}}} 
     50{{{#!th height="30" width="200" 
     51 
     52}}} 
     53|---------------- 
     54{{{#!th height="30" width="200" 
     55微信分享 
     56}}} 
     57{{{#!th height="30" width="600" 
     58weixinshare:?title=分享文案&icon=图标&url=分享链接  
     59}}} 
     60{{{#!th height="30" width="200" 
     61url默认使用itunes下载地址 
     62}}} 
     63|---------------- 
     64{{{#!th height="30" width="200" 
     65朋友圈分享 
     66}}} 
     67{{{#!th height="30" width="600" 
     68wxfriendshare:?title=分享文案&icon=图标&url=分享链接  
     69}}} 
     70{{{#!th height="30" width="200" 
     71url默认使用itunes下载地址 
     72}}} 
     73|---------------- 
     74{{{#!th height="30" width="200" 
     75调用APP分享组件 
     76}}} 
     77{{{#!th height="30" width="600" 
     78appshare://?title=分享文案&icon=图标&url=分享链接&sinatail=新浪尾巴&qqtail=腾讯微博尾巴[[BR]] 
     79尾巴用于区分分享文案当中新浪与腾讯区别 
     80}}} 
     81{{{#!th height="30" width="200" 
     82url默认使用itunes下载地址 
     83}}} 
     84|---------------- 
     85{{{#!th height="30" width="200" 
     86成功发送微博后触发 
     87}}} 
     88{{{#!th height="30" width="600" 
     89app:Magazine.trigger(2,{username:123,shareType:2})[[BR]] 
     90html:Magazine.addEvent(2,func)/ Magazine.addEvent(2,func(args){args[0].username})[[BR]] 
     91[[BR]] 
     92shareType:[[BR]] 
     93PCShareToSinaWeibo=1,       /* 新浪微博 */ [[BR]] 
     94PCShareToQQWeibo=2,         /* QQ微博 */ [[BR]] 
     95PCShareToQZone=3,                  /* QQ空间 */ [[BR]] 
     96PCShareToWeixin=4,               /* 微信 */ [[BR]] 
     97PCShareToQQ=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" 
     107app: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" 
     117login: 
     118}}} 
     119{{{#!th height="30" width="200" 
     120 
     121}}} 
     122|---------------- 
     123{{{#!th height="30" width="200" 
     124热区点击登录完成 
     125}}} 
     126{{{#!th height="30" width="600" 
     127app: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" 
     137saveimage: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" 
     147groupimage: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" 
     157http://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" 
     167url_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" 
     177url: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" 
     187url: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" 
     197magazineComments: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" 
     207magazineComments: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" 
     217backgroundaudio:?src=article-123/music.mp3&opt=play&volume=0.4&tTime=30&autostop=0[[BR]] 
     218src                  音频参数[[BR]] 
     219opt                 操作play pause stop[[BR]] 
     220volume           音量[[BR]] 
     221currentTime    在音频的哪一秒开始播放[[BR]] 
     222autostop        自动关闭 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" 
     232url: 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" 
     242adclick:本田广告 
     243}}} 
     244{{{#!th height="30" width="200" 
     245 
     246}}} 
     247|---------------- 
     248{{{#!th height="30" width="200" 
     249写邮件 
     250}}} 
     251{{{#!th height="30" width="600" 
     252herf="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" 
     273app(非html)视频自动播放 
     274}}} 
     275{{{#!th height="30" width="600" 
     276abc.mp4/Y[[BR]] 
     277abc.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}}}