|
- function openCarousel() {
- videoPicture.openCarousel({
- rect: {
- x: 0,
- y: 65,
- w: 700,
- h: 430,
- fixedOn: 'home_shop_details_win', //固定在名为'index_frm'的frame上
- // fixed:false //跟随网页滚动
- },
- data: [{
- imageUrl: 'http://img**.**/3332-1518523974124-26',
- type: 1, //1:视频 2:图片 如果是带视频的轮播。第一个必须是视频
- videoUrl: 'https://v-cdn**.**.cn/123468.mp4'
- }, {
- imageUrl: 'http://img**.**/3332-1518523974126-29',
- type: 2,
- }, {
- imageUrl: 'http://img**.**/3332-1518523974125-28',
- type: 2,
- }, {
- imageUrl: 'http://img**.**/3332-1518523974125-27',
- type: 2,
- }, {
- imageUrl: 'http://img**.**/3332-1518523974124-26',
- type: 2,
- }, {
- imageUrl: 'http://img**.**/3332-1518523974124-26',
- type: 1,
- }]
- }, function(ret, err) {
- alert(JSON.stringify(ret));
- });
- }
复制代码 |
|