|
[App引擎]
求助:图片轮播scrollPicture
[复制链接]
- var obj = api.require('scrollPicture');
- var arrayPath = new Array();
- arrayPath[0] = 'widget://res/scrollPicture_01.jpg';
- arrayPath[1] = 'widget://res/scrollPicture_02.jpg';
- arrayPath[2] = 'http://f.hiphotos**.**/image/pic/item/4e4a20a4462309f7bdca9423710e0cf3d7cad65d.jpg';
- arrayPath[3] = 'widget://res/scrollPicture_04.jpg';
- arrayPath[4] = 'widget://res/scrollPicture_05.jpg';
- var arrayTitle = new Array();
- arrayTitle[0] = 'widget://res/scrollPicture_01.jpg';
- arrayTitle[1] = 'widget://res/scrollPicture_02.jpg';
- arrayTitle[2] = 'http://f.hiphotos**.**/image/pic/item/4e4a20a4462309f7bdca9423710e0cf3d7cad65d.jpg';
- arrayTitle[3] = 'widget://res/scrollPicture_04.jpg';
- arrayTitle[4] = 'widget://res/scrollPicture_05.jpg';
- obj.open({
- placeHoldImg:'widget://res/scrollPicture_placehoder.png',
- subtitle:{
- titles:arrayTitle
- },
- control:{
- position:0
- }
- },function(ret,err){
- if(ret.status){
- ret.click;
- }else{
- ret.index;
- }
- });
复制代码
|
|