多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 相关代码如下: ``` function set_welcome(index,adv,callback) { download(adv[index],function(ret) { arr_wel.push(ret); if((index+1)<adv.length) { set_welcome(index+1,adv,callback); } else { var obj=api.require('UIScrollPicture'); obj.open( { rect:{x:0,y:0,w:api.winWidth,h:api.winHeight}, data:{paths:arr_wel}, placeholderImg:arr_wel[0], contentMode:'scaleToFill', interval:10000, auto:false, loop: false, fixedOn:'', fixed: true, styles: { indicator: { align:'center', color:'#393939', activeColor:'#f39915' } }, }, function(ret, err) { if(ret.status) { if(ret.eventType=='click') { if(ret.index==(arr_wel.length-1)) { var obj = api.require('UIScrollPicture'); obj.close(); if(is_define(callback)) { callback(); } } } } }); } }) } ``` 相关示例: 相关图片: