请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
123下一页
返回列表 发新帖
显示全部楼层
177
帖子
0
勋章
1万+
Y币

photoBrowserTouTiao模块(界面布局-第三方APP效果)demo示例

[复制链接]
发表于 2018-1-29 17:56:51
  1. <!DOCTYPE html>
  2. <html>

  3. <head>
  4.         <meta charset="utf-8">
  5.         <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  6.         <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7.         <title>title</title>
  8.         <link rel="stylesheet" type="text/css" href="../css/api.css" />
  9.         <style>
  10.                 html, body {
  11.                                 height: 100%
  12.                         }
  13.                         body {
  14.                                 background-color: #fff;
  15.                                 margin: 0;
  16.                         }
  17.                         #wrap {
  18.                                 height: 100%;
  19.                                 position: relative;
  20.                         }
  21.                         #header {
  22.                                 padding-top: 20px;
  23.                                 background-color: #5082c2;
  24.                                 height: 44px;
  25.                                 position: relative;
  26.                         }
  27.                         #header h1 {
  28.                                 font-size: 20px;
  29.                                 height: 44px;
  30.                                 line-height: 44px;
  31.                                 margin: 0em;
  32.                                 color: #fff;
  33.                                 margin-left: 100px;
  34.                                 margin-right: 100px;
  35.                                 text-align: center;
  36.                         }
  37.                         #main {
  38.                                 display: -webkit-box;
  39.                                 -webkit-box-orient: vertical;
  40.                                 -webkit-box-pack: center;
  41.                         }
  42.                         a.button {
  43.                                 display: -webkit-box;
  44.                                 -webkit-box-orient: vertical;
  45.                                 -webkit-box-pack: center;
  46.                                 -webkit-box-align: center;
  47.                                 height: 32px;
  48.                                 margin: 8px;
  49.                                 background-color: rgba(240, 240, 240, 1.0);
  50.                                 border-color: rgba(220, 220, 220, 1.0);
  51.                                 border-width: 2px;
  52.                                 border-style: solid;
  53.                         }
  54.                         a.active {
  55.                                 background-color: rgba(240, 240, 240, 0.7);
  56.                         }
  57.         </style>
  58. </head>

  59. <body>
  60.         <a class="button" tapmode="active" onclick="fnOpen()">打开</a>
  61. </body>
  62. <script type="text/javascript" src="../script/api.js"></script>
  63. <script type="text/javascript">
  64.         apiready = function() {};
  65.         function fnOpen() {
  66.                 var photoBS_tt = api.require('photoBrowserTouTiao');
  67.                 photoBS_tt.open({
  68.                         hidden: {
  69.                                 menu: true, //布尔类型;是否显示菜单按钮;默认:true
  70.                                 input: true, //布尔类型;是否显示输入框;默认:true
  71.                                 comment: true, //布尔类型;是否显示评论按钮;默认:true
  72.                                 favorite: true, //布尔类型;是否显示收藏按钮;默认:true
  73.                                 share: true, //布尔类型;是否弹显示分享按钮;默认:true
  74.                                 publisher : true, //布尔类型;是否显示发布按钮;默认:true
  75.                                 save: true //布尔类型;用户长按是否弹出保存图片按钮;默认:true
  76.                         },
  77.                         textStyles: {
  78.                                 min: 20, //数字类型;描述文字显示最小区域占比;默认:20
  79.                                 max: 40 //数字类型;描述文字显示最大区域占比;默认:40
  80.                         }
  81.                 }, function(ret, err) {
  82.                         if (ret.eventType == 'show') {
  83.                                 photoBS_tt.setData({
  84.                                         images: ['http://car0**.**/car/upload/2015/5/26/u_201505262311011004971112.jpg', 'http://car1**.**/car/upload/2015/5/26/u_201505262310564734971110.jpg',
  85.                                                 'http://car0**.**/car/upload/2015/5/26/u_201505262310525374971112.jpg', 'http://car1**.**/car/upload/2015/5/26/u_201505262310352564971112.jpg'
  86.                                         ],
  87.                                         texts: ['别克GL8~是否真那么“寒酸”?', 'GL8的内饰:方向盘和别克旗下其他车型并无不同、另外T型操控台正中央的液晶屏集成了车载音响系统、地图导航功能和倒车影像功能,同时还支持DVD播放、内置硬盘、USB/AUX/SD卡外接音源。而GL8豪华商务车型中、还为后排乘客提供了液晶显示屏、更加体现了对商务人士的体贴照顾。配置了大灯照射高度调节、大灯自动清洗、真皮座椅、DVD、中控台液晶屏、定速巡航系统、GPS电子导航、多功能方向盘等贴心科技。',
  88.                                                 '如此!从这不难看出、GL8以上的配置它“寒酸”吗?不寒酸,为何说他寒酸?因为低廉的售价、村托了高性能超豪华的GL8!所谓寒酸、不过是低调的侧写、也终于知道洪金宝为何选择了它、正是般配了洪金宝低调的性格。用最低的消费购买最实用的物品、GL8是一款很理想的选择。', '太惊悚!你绝对看不出来,这种恐怖的怪物竟然是鱼!也英国王室最爱的鱼,它是以吸人血为生的“吸血鬼鱼”。不得不说,英国王室的口味真重!!'
  89.                                         ],
  90.                                         publisher: 'widget://res/default.jpg',
  91.                                         comment: 520,
  92.                                         favorite: true
  93.                                 });
  94.                         } else {
  95.                         }
  96.                 });

  97.         }
  98. </script>

  99. </html>
复制代码
photoBrowserTouTiao模块demo

本帖子中包含更多资源,您需要 登录 才可以下载或查看,没有帐号?立即注册

X
177
帖子
0
勋章
1万+
Y币
         
18
帖子
1
勋章
106
Y币
支持支持,顺便拿云币
2
帖子
0
勋章
7
Y币

up~~up~~up~~~
0
帖子
0
勋章
Y币
谢谢分享!!!!!!!
0
帖子
0
勋章
Y币
谢谢分享!!!!!!!
谢谢分享 66666666
15
帖子
0
勋章
444
Y币
:):)
4
帖子
0
勋章
35
Y币
希望大家能够认真学习,快速的应用到实战开发当中来,
1
帖子
0
勋章
6
Y币
支持支持,要是有预览图就更好了
123下一页
您需要登录后才可以回帖 登录

本版积分规则