|
photoBrowserTouTiao模块(界面布局-第三方APP效果)demo示例
[复制链接]
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
- <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
- <title>title</title>
- <link rel="stylesheet" type="text/css" href="../css/api.css" />
- <style>
- html, body {
- height: 100%
- }
- body {
- background-color: #fff;
- margin: 0;
- }
- #wrap {
- height: 100%;
- position: relative;
- }
- #header {
- padding-top: 20px;
- background-color: #5082c2;
- height: 44px;
- position: relative;
- }
- #header h1 {
- font-size: 20px;
- height: 44px;
- line-height: 44px;
- margin: 0em;
- color: #fff;
- margin-left: 100px;
- margin-right: 100px;
- text-align: center;
- }
- #main {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-box-pack: center;
- }
- a.button {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-box-pack: center;
- -webkit-box-align: center;
- height: 32px;
- margin: 8px;
- background-color: rgba(240, 240, 240, 1.0);
- border-color: rgba(220, 220, 220, 1.0);
- border-width: 2px;
- border-style: solid;
- }
- a.active {
- background-color: rgba(240, 240, 240, 0.7);
- }
- </style>
- </head>
- <body>
- <a class="button" tapmode="active" onclick="fnOpen()">打开</a>
- </body>
- <script type="text/javascript" src="../script/api.js"></script>
- <script type="text/javascript">
- apiready = function() {};
- function fnOpen() {
- var photoBS_tt = api.require('photoBrowserTouTiao');
- photoBS_tt.open({
- hidden: {
- menu: true, //布尔类型;是否显示菜单按钮;默认:true
- input: true, //布尔类型;是否显示输入框;默认:true
- comment: true, //布尔类型;是否显示评论按钮;默认:true
- favorite: true, //布尔类型;是否显示收藏按钮;默认:true
- share: true, //布尔类型;是否弹显示分享按钮;默认:true
- publisher : true, //布尔类型;是否显示发布按钮;默认:true
- save: true //布尔类型;用户长按是否弹出保存图片按钮;默认:true
- },
- textStyles: {
- min: 20, //数字类型;描述文字显示最小区域占比;默认:20
- max: 40 //数字类型;描述文字显示最大区域占比;默认:40
- }
- }, function(ret, err) {
- if (ret.eventType == 'show') {
- photoBS_tt.setData({
- images: ['http://car0**.**/car/upload/2015/5/26/u_201505262311011004971112.jpg', 'http://car1**.**/car/upload/2015/5/26/u_201505262310564734971110.jpg',
- 'http://car0**.**/car/upload/2015/5/26/u_201505262310525374971112.jpg', 'http://car1**.**/car/upload/2015/5/26/u_201505262310352564971112.jpg'
- ],
- texts: ['别克GL8~是否真那么“寒酸”?', 'GL8的内饰:方向盘和别克旗下其他车型并无不同、另外T型操控台正中央的液晶屏集成了车载音响系统、地图导航功能和倒车影像功能,同时还支持DVD播放、内置硬盘、USB/AUX/SD卡外接音源。而GL8豪华商务车型中、还为后排乘客提供了液晶显示屏、更加体现了对商务人士的体贴照顾。配置了大灯照射高度调节、大灯自动清洗、真皮座椅、DVD、中控台液晶屏、定速巡航系统、GPS电子导航、多功能方向盘等贴心科技。',
- '如此!从这不难看出、GL8以上的配置它“寒酸”吗?不寒酸,为何说他寒酸?因为低廉的售价、村托了高性能超豪华的GL8!所谓寒酸、不过是低调的侧写、也终于知道洪金宝为何选择了它、正是般配了洪金宝低调的性格。用最低的消费购买最实用的物品、GL8是一款很理想的选择。', '太惊悚!你绝对看不出来,这种恐怖的怪物竟然是鱼!也英国王室最爱的鱼,它是以吸人血为生的“吸血鬼鱼”。不得不说,英国王室的口味真重!!'
- ],
- publisher: 'widget://res/default.jpg',
- comment: 520,
- favorite: true
- });
- } else {
- }
- });
- }
- </script>
- </html>
复制代码 photoBrowserTouTiao模块demo
|
本帖子中包含更多资源,您需要 登录 才可以下载或查看,没有帐号?立即注册
X
|