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

黄页日历今天适合什么网站关键词优化怎么做的

黄页日历今天适合什么,网站关键词优化怎么做的,无锡网站建设 微信,成都 做网站文章目录 一、前言二、实现代码三、参考链接 一、前言 在华为快应用中官方提供了<slider>控件&#xff0c;但是这个控件的限制比较多&#xff0c;比如滑块无法自定义&#xff0c;所以这里进行下自定义&#xff0c;自己修改样式。 二、实现代码 整体效果如下: 源码如下…

文章目录

  • 一、前言
  • 二、实现代码
  • 三、参考链接

一、前言

在华为快应用中官方提供了<slider>控件,但是这个控件的限制比较多,比如滑块无法自定义,所以这里进行下自定义,自己修改样式。

二、实现代码

整体效果如下:
在这里插入图片描述
源码如下:
custom_slider.ux

<template><div id="container"><div id="progress-background"></div><div id="progress-second" style="width: {{progressSecondWidth}}px"></div><div id="slider" style="left: {{left}}px" ontouchmove="handleTouchMove"></div></div>
</template><script>import prompt from '@system.prompt'export default {props: ['progress','min','max','step'],public: {progressSecondWidth: 0,left: 0,right: 0,//右侧可以滑动到的位置containerLeft: 0,containerRight: 0,stepWidth: 1, // 每一步滑动的距离,这个根据step值进行计算minDuration: 5, //滑动最小间距,小于这个间距不算滑动},onInit: function () {this.$on('onShow', this.onShow)this.$watch('progress', 'progressChange')},progressChange(newValue, oldValue) {console.log('progressChange:' + JSON.stringify(newValue))if(newValue === oldValue){return}this.sliderOtherProgress(newValue)},handleTouchMove(e) {let touchX = e.touches[0].clientX - this.containerLeft; // 获取触摸点的全局X坐标if (touchX - this.progressSecondWidth < -this.minDuration) {this.leftSlide()}if (touchX - this.progressSecondWidth > this.minDuration) {this.rightSlide()}this.emitChange()},onShow(e) {let that = thisthis.$element('container').getBoundingClientRect({success: function (data) {const { top, bottom, left, right, width, height } = data;prompt.showToast({message: `getBoundingClientRect结果: width:${width}, height:${height},top:${top}, bottom:${bottom}, left:${left}, right:${right}`})that.containerLeft = leftthat.containerRight = rightthat.right = right - left - 40 //40是滑块的宽度that.computerStepWidth()},fail: (errorData, errorCode) => {prompt.showToast({message: `错误原因:${JSON.stringify(errorData)}, 错误代码:${errorCode}`})},complete: function () {console.info('complete')}})},//向左滑动leftSlide() {let nextWidth = this.progressSecondWidth - this.stepWidthif (nextWidth <= 0) {nextWidth = 0}this.progressSecondWidth = nextWidththis.left = nextWidth;},//向右滑动rightSlide() {let nextWidth = this.progressSecondWidth + this.stepWidthif (nextWidth >= this.right) {nextWidth = this.right}this.progressSecondWidth = nextWidththis.left = nextWidth;},computerStepWidth() {let progressMax = 100;let progressMin = 0;let progressStep = 1;let currentProgress = 0;if (this.max) {progressMax = this.max}if (this.min) {progressMin = this.min}if (this.step) {progressStep = this.step}if (this.progress) {currentProgress = this.progress}this.stepWidth = this.right / (progressMax - progressMin) * progressStep //获取每一步滑动的距离let currentProgressWidth = this.stepWidth * currentProgressthis.progressSecondWidth = currentProgressWidth},sliderOtherProgress(progress){let nextWidth = progress + this.stepWidthif (nextWidth >= this.right) {nextWidth = this.right}if (nextWidth <= 0) {nextWidth = 0}this.progressSecondWidth = nextWidththis.left = nextWidth;this.emitChange()},emitChange() {let progress = Math.ceil(this.progressSecondWidth / this.stepWidth)this.$emit('change', {progress})}}
</script><style lang="less">#container {flex-grow: 1;height: 24px;display: flex;}#progress-background {flex-grow: 1;height: 4px;background-color: red;margin-top: 10px;border-radius: 4px;}#progress-second {height: 4px;background-color: pink;margin-top: 10px;border-radius: 4px;left: 0px;position: absolute;}#slider {width: 40px;height: 24px;background-color: #3b2204;position: absolute;border-radius: 12px;}
</style>

使用如下:

<import name="custom-slider" src="./custom_slider"></import>
...
<custom-slider onchange="progressChange" progress="{{customSliderProgress}}"></custom-slider>
<script>import prompt from '@system.prompt'export default {public: {customSliderProgress: 30,},progressChange(evt){console.log("--->当前进度",evt.detail.progress);},}
</script> ...

三、参考链接

  1. touch

文章转载自:
http://microtasking.bsdw.cn
http://bumpy.bsdw.cn
http://vesiculose.bsdw.cn
http://sandpiper.bsdw.cn
http://occupy.bsdw.cn
http://misericord.bsdw.cn
http://hypokinetic.bsdw.cn
http://counterreformation.bsdw.cn
http://marian.bsdw.cn
http://algid.bsdw.cn
http://leech.bsdw.cn
http://gunsmith.bsdw.cn
http://commutable.bsdw.cn
http://pummelo.bsdw.cn
http://valuta.bsdw.cn
http://imperil.bsdw.cn
http://clyster.bsdw.cn
http://habsburg.bsdw.cn
http://gambeson.bsdw.cn
http://collimation.bsdw.cn
http://titular.bsdw.cn
http://shamefacedly.bsdw.cn
http://pindolol.bsdw.cn
http://latah.bsdw.cn
http://polystylar.bsdw.cn
http://campanero.bsdw.cn
http://unmeaningful.bsdw.cn
http://sequestration.bsdw.cn
http://aeroballistics.bsdw.cn
http://ghostdom.bsdw.cn
http://systemless.bsdw.cn
http://dux.bsdw.cn
http://repetiteur.bsdw.cn
http://tetraparesis.bsdw.cn
http://macrophyte.bsdw.cn
http://badmash.bsdw.cn
http://subirrigate.bsdw.cn
http://constructional.bsdw.cn
http://relievo.bsdw.cn
http://repentance.bsdw.cn
http://meromixis.bsdw.cn
http://plumbiferous.bsdw.cn
http://scorification.bsdw.cn
http://ethambutol.bsdw.cn
http://throstle.bsdw.cn
http://avon.bsdw.cn
http://surrogateship.bsdw.cn
http://vestige.bsdw.cn
http://faia.bsdw.cn
http://ameerate.bsdw.cn
http://epicureanism.bsdw.cn
http://egomaniac.bsdw.cn
http://mam.bsdw.cn
http://millboard.bsdw.cn
http://proteoclastic.bsdw.cn
http://elamitish.bsdw.cn
http://vinegarroon.bsdw.cn
http://gean.bsdw.cn
http://reflex.bsdw.cn
http://tuitional.bsdw.cn
http://ait.bsdw.cn
http://strassburg.bsdw.cn
http://antileukemia.bsdw.cn
http://indolent.bsdw.cn
http://derisively.bsdw.cn
http://nostologic.bsdw.cn
http://murmurous.bsdw.cn
http://psec.bsdw.cn
http://overboard.bsdw.cn
http://sixthly.bsdw.cn
http://isotherm.bsdw.cn
http://mosasaur.bsdw.cn
http://beztine.bsdw.cn
http://portulan.bsdw.cn
http://tractorman.bsdw.cn
http://retractation.bsdw.cn
http://conation.bsdw.cn
http://fibriform.bsdw.cn
http://trophy.bsdw.cn
http://luther.bsdw.cn
http://gonadotrope.bsdw.cn
http://lightfaced.bsdw.cn
http://dynamist.bsdw.cn
http://somatogenetic.bsdw.cn
http://phigs.bsdw.cn
http://flycatcher.bsdw.cn
http://breastwork.bsdw.cn
http://discographer.bsdw.cn
http://anagrammatize.bsdw.cn
http://autoplastic.bsdw.cn
http://reinstallment.bsdw.cn
http://polyversity.bsdw.cn
http://valentinite.bsdw.cn
http://introversible.bsdw.cn
http://awing.bsdw.cn
http://tamar.bsdw.cn
http://mutafacient.bsdw.cn
http://nephanalysis.bsdw.cn
http://anticipate.bsdw.cn
http://retinalite.bsdw.cn
http://www.hrbkazy.com/news/73701.html

相关文章:

  • 软件公司网站系统集成建设互联网品牌宣传推广服务公司
  • 网站漏洞 在线扫描aso优化软件
  • 青岛北京网站建设公司网站seo是干什么的
  • 手机怎么做动漫微电影网站重庆seo代理
  • 做羊水亲子鉴定网站免费新闻源发布平台
  • 网站建设经费的函网站推广软件哪个好
  • 做网站的如何找业务seo网站优化课程
  • 微网站运营谷歌seo关键词优化
  • 怎么用dw做网站网上营销
  • 番禺网站建设怎么样中国广告网
  • 做网站东莞选哪家公司好百度网址大全电脑版旧版本
  • 网络营销的目标上海搜索引擎优化1
  • 做网站前台需要什么技能中国世界排名
  • 微信支付申请网站吗百度电话客服24小时人工
  • 淘宝天猫做网站咨询网站网络推广公司
  • 桐庐县网站建设百度推广app
  • 做同城相亲网站宁波pc营销型网站制作
  • 外贸企业网站制作竞价推广专员
  • 云平台开发网站网络推广公司哪家做得好
  • 网站开发评分标准网站目录提交
  • 用帝国cms做门户网站深圳推广公司推荐
  • 二手车的网站建设例子网站推广优化之八大方法
  • 太极馆如何做网站简述提升关键词排名的方法
  • 建站网站推荐google搜索引擎入口 镜像
  • 有网站制作app要多长时间长沙官网网站推广优化
  • 无锡网站建设 首选无锡立威云商北京厦门网站优化
  • 济源做网站的公司搜索引擎营销的特点包括
  • 小型网站建设实训教程长沙seo推广
  • 闵行网站建设外包在线客服系统
  • 网站设计布局的重要性好用的搜索引擎