slider 和 indicator 都是 weex 的内置组件,且 indicator 是 slider 的子组件。

1.报错处理

原因解析:indicator 样式页面渲染慢

解决方案:indicator 的样式写为 内联样式

2.Guide.vue

<!-- 引导页 -->
<template>
<div class="wrap">
<!-- 轮播图 -->
<slider class="slider" auto-play="true" interval="5000" >
<div class="slider-pages" v-for="item in itemList">
<image class="thumb" :src="item.pictureUrl" resize="stretch"></image>
</div>
<!-- 指示器 style="width:720px;height:30px;" -->
<indicator class="indicator"></indicator>
</slider>
<!-- 开始体验 -->
<text class='btn' @click="goStart">{{txt}}</text>
</div>
</template> <style scoped>
.wrap{
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #2B2D2F;
}
/*轮播图*/
.slider {
width: 750px;
height: 1000px;
background-color: transparent;
align-items: center;
justify-content: center;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
}
/*轮播图 图片*/
.slider-pages {
flex-direction: row;
width: 720px;
height: 1000px;
align-items: center;
justify-content: center;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
}
.thumb {
width: 720px;
height: 1280px;
align-items: center;
justify-content: center;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
}
/*轮播图 指示器*/
.indicator {
position: absolute;
top: 970px;
width: 720px;
height: 30px;
item-color: #dddddd;
item-selected-color: rgb(40, 96, 144);
}
/*开始体验 按钮*/
.btn{
width: 300px;
height: 60px;
margin-top: 20px;
background-color:#0096FF;
font-size:25px;
height:60px;
font-weight: bold;
align-items: center;
justify-content: center;
border-radius: 50;
color:#FFFFFF;
}
</style> <script>
export default {
data() {
return {
txt:"开始体验",
itemList: [
{title: 'A', pictureUrl: 'https://duqian291902259.github.io/dusan/oair/bg1.png'},
{title: 'B', pictureUrl: 'https://duqian291902259.github.io/dusan/oair/bg2.png'},
{title: 'C', pictureUrl: 'https://duqian291902259.github.io/dusan/oair/bg1.png'}
]
}
},
methods: {
goStart() {
// 页面跳转
this.$router.push({path:'/splash'});
}
}
}
</script>

3.效果图

weex 引导页(guide)页面的更多相关文章

  1. Page Visibility(网页可见性) API与登录同步引导页实例页面

    页面1  HTML代码: <p id="loginInfo"></p> JS代码: (function() {     if (typeof pageVis ...

  2. app引导页(背景图片切换加各个页面动画效果)

    前言:不知不觉中又加班到了10点半,整个启动页面做了一天多的时间,一共有三个页面,每个页面都有动画效果,动画效果调试起来麻烦,既要跟ios统一,又要匹配各种不同的手机,然后产品经理还有可能在中途改需求 ...

  3. ViewPager打造轮播图(Banner)\引导页(Guide)

    今年7月时,在Github发布了一个开源的Banner库,虽然Star不多,但还是有少部分人使用. Banner效果:  昨天,有使用此库的同学提出需求,想在引导页的时候用这个库并且最后一页有进入按钮 ...

  4. 网页引导:jQuery插件实现的页面功能介绍引导页效果

    现在很多网站不仅是介绍,更多的是有一些功能,怎么样让客户快速的知道网站有哪些功能呢?这里pagewalkthrough.js插件能帮我们实现,它是一个轻量级的jQuery插件,它可以帮助我们创建一个遮 ...

  5. IOS引导页拨动4张图片最后一张停三秒进入主页,页面推送

    // //  ViewController.m // // //  Created by 张艳锋 on 15/8/26. //  Copyright (c) 2015年 张艳锋. All rights ...

  6. [Android实例] app引导页(背景图片切换加各个页面动画效果)(申明:来源于网络)

    [Android实例] app引导页(背景图片切换加各个页面动画效果)(申明:来源于网络) 地址: http://www.eoeandroid.com/thread-918356-1-1.html h ...

  7. jQuery插件实现的页面功能介绍引导页效果

    新产品上线或是改版升级,我们会在用户第一次使用产品时建立一个使用向导,引导用户如何使用产品,如使用演示的方式逐一介绍界面上的功能模块,从而提升了用户体验和产品的亲和力. Helloweba.com之前 ...

  8. ViewPager实现引导页

    1. 要使用ViewPager,必须要创建 PagerAdapter. 这里创建一个 ViewPagerAdapter来继承PagerAdapter public class ViewPagerAda ...

  9. 网站引导页插件intro.js 的用法

    intro.js是一个用于制作网页引导效果的js插件,用法很简单,intro.js.v2.0.rar 1.在需要的页面添加引用 intro.js introjs.css 这两个文件已经足够,但是文件夹 ...

随机推荐

  1. 创建虚拟机、安装centos系统,xshell连接虚拟机

    创建虚拟机 文件--->新建虚拟机--->自定义最高级 选择虚拟机兼容性: workstation12.0:限制少,而且兼容的多 稍后安装操作系统 选择Linux系统 可选择centos7 ...

  2. [转]ARM平台下独占访问指令LDREX和STREX

    参考:ARM平台下独占访问指令LDREX和STREX的原理与使用详解 全文转载如下: 为了实现线程间同步,一般都要在执行关键代码段之前加互斥(Mutex)锁,且在执行完关键代码段之后解锁.为了实现所谓 ...

  3. Oracle中Restore和Recovery的区别

    一.参考解释一 在Oracle的备份与恢复的知识点中,经常会出现Restore 和 Recovery两个词. 由于这两个词在字典中的解释很接近,困扰了我很久.直到我在Oracle的官方文档中看到了以下 ...

  4. SQLAlchemy常用操作

    Models 只是配置和使用比较简单,因为他是Django自带的ORM框架,也正是因为是Django原生的,所以兼容性远远不如SQLAlchemy 真正算得上全面的ORM框架必然是我们的SQLAlch ...

  5. Knockout v3.4.0 中文版教程-4-通过监控数组工作

    2.通过监控数组工作 1. 监控数组 如果你想检测或者响应一个对象的改变,你用observables.如果你想检测和响应一个集合的改变,使用observableArray.这个在很多情况下都非常有用, ...

  6. 7,数据类型转换,set 集合,和深浅copy

    str转换成list  用split list转换成str  用join tuple转换成list tu1 = (1,2,3) li = list(tu1)(强转) tu2 = tuple(li)(强 ...

  7. js 获取json对象的Key、value

    <script type="text/javascript"> getJson('age'); function getJson(key){ var jsonObj={ ...

  8. 五、docker配置镜像加速器之阿里云

    1 配置docker加速器 实在忍受不了pull的速度--------- 访问网址: https://dev.aliyun.com/search.html 点击管理中心: 根据操作稳定配置:

  9. 关于面试总结-SQL经典面试题

    关于面试总结6-SQL经典面试题 前言 用一条SQL 语句查询xuesheng表每门课都大于80 分的学生姓名,这个是面试考sql的一个非常经典的面试题 having和not in 查询 xueshe ...

  10. HDU 3341 Lost's revenge

    Lost's revenge Time Limit: 5000ms Memory Limit: 65535KB This problem will be judged on HDU. Original ...