当前位置: 首页 > news >正文

二手房中介网站建设微信管理软件哪个最好

二手房中介网站建设,微信管理软件哪个最好,如何策划网络推广方案,绩溪网站建设uniapp通过uni-swiper-dot实现轮播图前言效果图1、官网实现的效果2、需求中使用到的效果图官网提供的效果图源码1、html部分2、js部分3、css部分根据需求调整轮播图前言 uni-swiper-dot.文档 uni-swiper-dot 轮播图指示点 - DCloud 插件市场 本次展示根据需求制作的和官网用到…

uniapp通过uni-swiper-dot实现轮播图

  • 前言
  • 效果图
    • 1、官网实现的效果
    • 2、需求中使用到的效果图
  • 官网提供的效果图源码
    • 1、html部分
    • 2、js部分
    • 3、css部分
  • 根据需求调整轮播图

前言

uni-swiper-dot.文档
uni-swiper-dot 轮播图指示点 - DCloud 插件市场
本次展示根据需求制作的和官网用到的轮播图和源码

效果图

1、官网实现的效果

在这里插入图片描述

2、需求中使用到的效果图

在这里插入图片描述

官网提供的效果图源码

使用官网的代码需要下载uni-section
uni-swiper-dot提供的api
在这里插入图片描述
可以通过改变uni-swiper-dot的参数来实现轮播图的样式和颜色以及距离等
在这里插入图片描述

1、html部分

<template><view class="content"><uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="info" :current="current" :mode="mode":dots-styles="dotsStyles" field="content"><swiper class="swiper-box" @change="change" :current="swiperDotIndex"><swiper-item v-for="(item, index) in 3" :key="index"><view class="swiper-item" :class="'swiper-item' + index"><text style="color: #fff; font-size: 32px;">{{index+1}}</text></view></swiper-item></swiper></uni-swiper-dot><uni-section title="模式选择" type="line"><view class="example-body"><view :class="{ active: modeIndex === 0 }" class="example-body-item" @click="selectMode('default', 0)"><text class="example-body-item-text">default</text></view><view :class="{ active: modeIndex === 1 }" class="example-body-item" @click="selectMode('dot', 1)"><textclass="example-body-item-text">dot</text></view><view :class="{ active: modeIndex === 2 }" class="example-body-item" @click="selectMode('round', 2)"><text class="example-body-item-text">round</text></view><view :class="{ active: modeIndex === 3 }" class="example-body-item" @click="selectMode('nav', 3)"><textclass="example-body-item-text">nav</text></view><view :class="{ active: modeIndex === 4 }" class="example-body-item" @click="selectMode('indexes', 4)"><text class="example-body-item-text">indexes</text></view></view></uni-section><uni-section title="颜色样式选择" type="line"><view class="example-body"><template v-if="mode !== 'nav'"><view v-for="(item, index) in dotStyle" :class="{ active: styleIndex === index }" :key="index"class="example-body-item" @click="selectStyle(index)"><view :style="{ 'background-color': item.selectedBackgroundColor, border: item.selectedBorder }"class="example-body-dots" /><view :style="{ 'background-color': item.backgroundColor, border: item.border }"class="example-body-dots" /><view :style="{ 'background-color': item.backgroundColor, border: item.border }"class="example-body-dots" /></view></template><template v-if="mode === 'nav'"><view v-for="(item, index) in dotStyle" :class="{ active: styleIndex === index }" :key="index":style="{ 'background-color': item.selectedBackgroundColor }" class="example-body-item"@click="selectStyle(index)"><text class="example-body-item-text" :style="{ color: item.color }">内容</text></view></template></view></uni-section></view>
</template>

2、js部分

<script>export default {components: {},data() {return {info: [{colorClass: 'uni-bg-red',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 A'},{colorClass: 'uni-bg-green',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 B'},{colorClass: 'uni-bg-blue',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 C'}],dotStyle: [{backgroundColor: 'rgba(0, 0, 0, .3)',border: '1px rgba(0, 0, 0, .3) solid',color: '#fff',selectedBackgroundColor: 'rgba(0, 0, 0, .9)',selectedBorder: '1px rgba(0, 0, 0, .9) solid'},{backgroundColor: 'rgba(255, 90, 95,0.3)',border: '1px rgba(255, 90, 95,0.3) solid',color: '#fff',selectedBackgroundColor: 'rgba(255, 90, 95,0.9)',selectedBorder: '1px rgba(255, 90, 95,0.9) solid'},{backgroundColor: 'rgba(83, 200, 249,0.3)',border: '1px rgba(83, 200, 249,0.3) solid',color: '#fff',selectedBackgroundColor: 'rgba(83, 200, 249,0.9)',selectedBorder: '1px rgba(83, 200, 249,0.9) solid'}],modeIndex: -1,styleIndex: -1,current: 0,mode: 'default',dotsStyles: {},swiperDotIndex: 0}},onLoad() {},methods: {change(e) {this.current = e.detail.current},selectStyle(index) {this.dotsStyles = this.dotStyle[index]this.styleIndex = index},selectMode(mode, index) {this.mode = modethis.modeIndex = indexthis.styleIndex = -1this.dotsStyles = this.dotStyle[0]},clickItem(e) {this.swiperDotIndex = e},onBanner(index) {console.log(22222, index);}}}
</script>

3、css部分

<style lang="scss">.swiper-box {height: 200px;}.swiper-item {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: column;justify-content: center;align-items: center;height: 200px;color: #fff;}.swiper-item0 {background-color: #cee1fd;}.swiper-item1 {background-color: #b2cef7;}.swiper-item2 {background-color: #cee1fd;}.image {width: 750rpx;}/* #ifndef APP-NVUE */::v-deep .image img {-webkit-user-drag: none;-khtml-user-drag: none;-moz-user-drag: none;-o-user-drag: none;user-drag: none;}/* #endif */@media screen and (min-width: 500px) {.uni-swiper-dot-box {width: 400px;margin: 0 auto;margin-top: 8px;}.image {width: 100%;}}.uni-bg-red {background-color: #ff5a5f;}.uni-bg-green {background-color: #09bb07;}.uni-bg-blue {background-color: #007aff;}.example-body {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: row;padding: 20rpx;}.example-body-item {flex-direction: row;justify-content: center;align-items: center;margin: 15rpx;padding: 15rpx;height: 60rpx;/* #ifndef APP-NVUE */display: flex;padding: 0 15rpx;/* #endif */flex: 1;border-color: #e5e5e5;border-style: solid;border-width: 1px;border-radius: 5px;}.example-body-item-text {font-size: 28rpx;color: #333;}.example-body-dots {width: 16rpx;height: 16rpx;border-radius: 50px;background-color: #333333;margin-left: 10rpx;}.active {border-style: solid;border-color: #007aff;border-width: 1px;}
</style>

根据需求调整轮播图

其中使用到了轮播头图
其中使用到了swiper的circular autoplay两个参数
circular:是否采用衔接滑动,即播放到末尾后重新回到开头
autoplay:是否自动切换
官网提供的swiper的api
官网提供的swiper的api

<template><view class='home'><view class='home_swiper'><uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="info" :current="current" :mode="mode":dots-styles="dotsStyles" field="content"><swiper class="swiper-box" @change="change" :current="swiperDotIndex" circular autoplayeasing-function="easeInOutCubic"><swiper-item v-for="(item, index) in info" :key="index"><view class="swiper-item" :class="'swiper-item' + index" @click="SwItemClick(item.nextUrl)"><!-- <text style="color: #fff; font-size: 32px;">{{item.content}}</text> --><!-- <img :src="item.url" alt="" style='width:100%;height:100%'> --><div class='switemImage' :style="{backgroundImage: 'url('+item.url+')'}" /></view></swiper-item></swiper></uni-swiper-dot></view></view>
</template><script>const homeSwiper = uniCloud.importObject("homeSwiper")export default {components: {},data() {return {info: [{colorClass: 'uni-bg-red',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 A',nextUrl: '/pages/place/place'},{colorClass: 'uni-bg-green',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 B'},{colorClass: 'uni-bg-blue',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 C'},{colorClass: 'uni-bg-blue',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 C'},{colorClass: 'uni-bg-blue',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 C'},{colorClass: 'uni-bg-blue',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 C'},{colorClass: 'uni-bg-blue',url: 'https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',content: '内容 C'}],current: 0,mode: 'default',dotsStyles: {backgroundColor: 'rgba(0, 0, 0, .3)',border: '1px rgba(0, 0, 0, .3) solid',color: '#fff',selectedBackgroundColor: 'rgba(0, 0, 0, .9)',selectedBorder: '1px rgba(0, 0, 0, .9) solid'},swiperDotIndex: 0}},onLoad() {this.getData()},methods: {change(e) {this.current = e.detail.current},clickItem(e) {this.swiperDotIndex = e},SwItemClick(e) {console.log(e)uni.switchTab({url: e})},getData() {homeSwiper.get('111').then(res=>{console.log(res.data)})}},}
</script><style lang="scss" scoped>.home {position: absolute;height: 100%;width: 100%;background-color: rgb(241, 236, 229);.swiper-box {height: 20rem;}.swiper-item {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: column;justify-content: center;align-items: center;height: 20rem;color: #fff;}.swiper-item0 {background-color: #cee1fd;}.swiper-item1 {background-color: #b2cef7;}.swiper-item2 {background-color: #cee1fd;}.image {width: 750rpx;}::v-deep .uni-swiper__dots-box {justify-content: left;left: 2rem;.uni-swiper__dots-item {margin-left: 0px}}.switemImage {width: 100%;height: 100%;background-size: cover;background-repeat: no-repeat;background-position: center center}}
</style>

文章转载自:
http://dinnconeutralism.ydfr.cn
http://dinncocampshot.ydfr.cn
http://dinncounequivocable.ydfr.cn
http://dinncocary.ydfr.cn
http://dinncosyndactylus.ydfr.cn
http://dinncoscaremonger.ydfr.cn
http://dinncoincluding.ydfr.cn
http://dinncoforint.ydfr.cn
http://dinncorite.ydfr.cn
http://dinncostagnant.ydfr.cn
http://dinncocomstockian.ydfr.cn
http://dinncosedateness.ydfr.cn
http://dinncoharpsichork.ydfr.cn
http://dinncoquizzee.ydfr.cn
http://dinncoochrea.ydfr.cn
http://dinncosavagely.ydfr.cn
http://dinncomeiofauna.ydfr.cn
http://dinncophonodeik.ydfr.cn
http://dinncosavoia.ydfr.cn
http://dinncovicariously.ydfr.cn
http://dinncogrilse.ydfr.cn
http://dinncomutter.ydfr.cn
http://dinncoavocat.ydfr.cn
http://dinncosericultural.ydfr.cn
http://dinncopyrophotometer.ydfr.cn
http://dinncoleghemoglobin.ydfr.cn
http://dinncokeresan.ydfr.cn
http://dinncomeadowsweet.ydfr.cn
http://dinncomanbote.ydfr.cn
http://dinncooxygenous.ydfr.cn
http://dinncofriability.ydfr.cn
http://dinncoplugboard.ydfr.cn
http://dinncomaximalist.ydfr.cn
http://dinncoancillary.ydfr.cn
http://dinncofasciola.ydfr.cn
http://dinncothuswise.ydfr.cn
http://dinncoprobatory.ydfr.cn
http://dinncorudish.ydfr.cn
http://dinncoskylon.ydfr.cn
http://dinncosuperhelix.ydfr.cn
http://dinncoredescend.ydfr.cn
http://dinncoaerophore.ydfr.cn
http://dinncoaphrodisia.ydfr.cn
http://dinncosetterwort.ydfr.cn
http://dinncosingletree.ydfr.cn
http://dinncopostclassic.ydfr.cn
http://dinncocoenesthesia.ydfr.cn
http://dinncoremunerative.ydfr.cn
http://dinncosharpie.ydfr.cn
http://dinncobrickkiln.ydfr.cn
http://dinncousefulness.ydfr.cn
http://dinncotreat.ydfr.cn
http://dinncoundertone.ydfr.cn
http://dinncoaerobatics.ydfr.cn
http://dinncohostile.ydfr.cn
http://dinncoguzerat.ydfr.cn
http://dinncofoliolate.ydfr.cn
http://dinncopithead.ydfr.cn
http://dinncohandwritten.ydfr.cn
http://dinncodynacomm.ydfr.cn
http://dinncoprolifically.ydfr.cn
http://dinncoelaborate.ydfr.cn
http://dinncoimbrutement.ydfr.cn
http://dinncoschoolyard.ydfr.cn
http://dinncoaculeate.ydfr.cn
http://dinncotouchpen.ydfr.cn
http://dinncoahistoric.ydfr.cn
http://dinncoinsurgency.ydfr.cn
http://dinnconaissant.ydfr.cn
http://dinncosubscapular.ydfr.cn
http://dinncoappoggiatura.ydfr.cn
http://dinncounwritten.ydfr.cn
http://dinncobarkentine.ydfr.cn
http://dinncodiazoamino.ydfr.cn
http://dinncoterrene.ydfr.cn
http://dinncomyl.ydfr.cn
http://dinncozanza.ydfr.cn
http://dinncotac.ydfr.cn
http://dinncoidol.ydfr.cn
http://dinncochylific.ydfr.cn
http://dinncosaltatory.ydfr.cn
http://dinncoradiosymmetrical.ydfr.cn
http://dinncouniteable.ydfr.cn
http://dinncogrouchy.ydfr.cn
http://dinncosalween.ydfr.cn
http://dinncodyn.ydfr.cn
http://dinncoanguiform.ydfr.cn
http://dinncoichinomiya.ydfr.cn
http://dinncorailage.ydfr.cn
http://dinncosartorial.ydfr.cn
http://dinncobackstab.ydfr.cn
http://dinncododgery.ydfr.cn
http://dinncoculturette.ydfr.cn
http://dinncometoestrum.ydfr.cn
http://dinncohousekept.ydfr.cn
http://dinnconeurone.ydfr.cn
http://dinncodragonhead.ydfr.cn
http://dinncoradiolysis.ydfr.cn
http://dinncoforthwith.ydfr.cn
http://dinncoamercement.ydfr.cn
http://www.dinnco.com/news/100250.html

相关文章:

  • php网站文件下载怎么做做小程序要多少钱
  • 燕郊医疗网站建设百度seo服务公司
  • 学校网站建设维护四川seo关键词工具
  • 网站模板免费下载网络营销案例分析报告
  • 重庆seo网站排名优化市场调研分析报告范文
  • 潮州营销型网站建设推广视频推广方案模板
  • 眉山网站制作最新军事新闻最新消息
  • 做网站公司青岛seo云优化平台
  • 做教育的网站有哪些内容吗免费开发网站
  • 做网站如何防止被抄袭邢台网站网页设计
  • 沈阳市建设局网站首页三只松鼠网络营销案例分析
  • wordpress area53百度小程序对网站seo
  • 网站建设遵循的规范seo站群优化技术
  • 出售淘宝店铺的平台宁波seo整站优化
  • wordpress有哪些小工具seo站
  • 网站站群建设方案seo推广软件排行榜
  • 做正规小说网站西安网站快速排名提升
  • 卡通风格网站欣赏经典网络营销案例
  • 网站建设目的周口搜索引擎优化
  • 阳江公司做网站百度seo关键词工具
  • 专门做红酒的网站友情链接是啥意思
  • 怎么做挣钱的网站seo网络推广企业
  • 宁波营销型网站建设优化建站正规考证培训机构
  • 相城区公司网站建设小米口碑营销案例
  • 开设网站步骤微网站
  • 部门网站建设需求确认表策划网络营销方案
  • 网站建设方案 报价网页设计可以自学吗
  • 中国做本地服务好的网站seo自然搜索优化排名
  • 深圳市住房和城乡建设局seo北京优化
  • 网站制作公司网站建设公司百度网址大全 旧版本