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

社保在哪个网站做增员百度关键词相关性优化软件

社保在哪个网站做增员,百度关键词相关性优化软件,佛山网站推广,住建部2022年执行的新规范在Uniapp中,悬浮菜单支持拖动和吸附功能,可以为用户带来更加灵活和便捷的操作体验。以下是对这两个功能的详细解释: 悬浮菜单支持拖动 提高用户体验:用户可以根据自己的需要,将悬浮菜单拖动到屏幕上的任意位置&#x…

在Uniapp中,悬浮菜单支持拖动和吸附功能,可以为用户带来更加灵活和便捷的操作体验。以下是对这两个功能的详细解释:

悬浮菜单支持拖动

提高用户体验:用户可以根据自己的需要,将悬浮菜单拖动到屏幕上的任意位置,从而更加便捷地访问和使用菜单中的功能。
灵活性:悬浮菜单的拖动功能使得应用界面更加灵活,用户可以根据自己的使用习惯进行个性化设置。
增强互动性:通过拖动悬浮菜单,用户可以与应用进行更加直观的互动,提高应用的趣味性和互动性。


悬浮菜单支持吸附

自动定位:悬浮菜单在拖动到屏幕边缘时,可以自动吸附在边缘位置,使得菜单更加稳定且不易误操作。
优化布局:吸附功能可以使得悬浮菜单在屏幕上的布局更加合理,避免遮挡其他重要信息或功能按钮。
提升美观度:通过自动吸附,悬浮菜单可以保持与屏幕边缘的一定距离,使得整个应用界面看起来更加整洁、美观。

组件库实现

<template><view:id="id"class="diy-floatbar":style="'left: ' + left + 'px; top:' + top + 'px;'"@touchstart="touchstart"@touchmove.stop.prevent="touchmove"@touchend="touchend"@click.stop.prevent="click":class="{transition: isDock && !isMove }"><slot></slot></view>
</template><script>export default {name: 'diy-floatbar',emits: ["click", "dragStart","dragEnd"],props: {id:{type: String,default: 'floatbar'},//默认位置右下角right-bottom、left-bottom、right-top、left-toppositionType:{type: String,default: 'right-bottom'},//是否吸附isDock:{type: Boolean,default: true},//是否包含底部菜单existTabBar:{type: Boolean,default: false},//默认上下偏移topEdge:{type: Number,default: 50},//默认左右偏移leftEdge:{type: Number,default: 10},//刷新页面后保存不变isDragSave:{type: Boolean,default: false}},data() {return {top:0,left:0,width: 0,height: 0,offsetWidth: 0,offsetHeight: 0,windowWidth: 0,windowHeight: 0,isMove: true,edge: 10,}},mounted() {const sys = uni.getSystemInfoSync();this.windowWidth = sys.windowWidth;this.windowHeight = sys.windowHeight;// #ifdef APP-PLUSthis.existTabBar && (this.windowHeight -= 50);// #endifif (sys.windowTop) {this.windowHeight += sys.windowTop;}let windowTop = 0;if (sys.windowTop) {windowTop = sys.windowTop;}const query = uni.createSelectorQuery().in(this);query.select('#'+this.id).boundingClientRect(data => {this.width = data.width;this.height = data.height;this.offsetWidth = data.width / 2;this.offsetHeight = data.height / 2;let left = 0;let top = 0;if(this.positionType=='right-bottom'){left = this.windowWidth - this.width - this.leftEdge;top =  this.windowHeight - this.height - this.topEdge;}else if(this.positionType=='left-bottom'){left = this.leftEdge;top =  this.windowHeight - this.height - this.topEdge;}else if(this.positionType=='right-top'){left = this.windowWidth - this.width - this.leftEdge;top =  this.topEdge+windowTop;}else if(this.positionType=='left-top'){left = this.leftEdge;top =  this.topEdge+windowTop;}if(this.isDragSave){let position = uni.getStorageSync(this.id);if(position){left = position.lefttop = position.top}}this.left = leftthis.top = top}).exec();},methods: {click() {this.$emit('btnClick');},touchstart(e) {this.$emit('dragStart');},touchmove(e) {// 单指触摸if (e.touches.length !== 1) {return false;}this.isMove = true;this.left = e.touches[0].clientX - this.offsetWidth;let clientY = e.touches[0].clientY - this.offsetHeight;// #ifdef H5clientY += this.height;// #endiflet edgeBottom = this.windowHeight - this.height - this.edge;// 上下触及边界if (clientY < this.edge) {this.top = this.edge;} else if (clientY > edgeBottom) {this.top = edgeBottom;} else {this.top = clientY}},touchend(e) {if (this.isDock) {let edgeRigth = this.windowWidth - this.width - this.edge;if (this.left < this.windowWidth / 2 - this.offsetWidth) {this.left = this.edge;} else {this.left = edgeRigth;}}if(this.isDragSave){uni.setStorageSync(this.id,{left:this.left,top:this.top})}this.isMove = false;this.$emit('dragEnd');},}}
</script><style lang="scss">.diy-floatbar {display: flex;justify-content: center;align-items: center;position: fixed;z-index: 999999;&.transition {transition: left .3s ease,top .3s ease;}}</style>

组件库调用

<template><view class="container container329152"><diy-floatbar :topEdge="50" :leftEdge="10" id="floatbar" :isDock="false" :isDragSave="true" positionType="right-bottom"><view class="flex diygw-col-0 right-bottom floatbar-clz"><view class="diygw-grid diygw-actions"><button class="diygw-action"><view class="diygw-grid-inner"><view class="diygw-grid-icon diygw-avatar"><image mode="aspectFit" class="diygw-avatar-img" src="/static/global/grid1.png"></image></view><view class="diygw-grid-title"> 菜单一 </view></view></button></view></view></diy-floatbar><view class="clearfix"></view></view>
</template><script>export default {data() {return {//用户全局信息userInfo: {},//页面传参globalOption: {},//自定义全局变量globalData: { logintype: '0', agree: '0' }};},onShow() {this.setCurrentPage(this);},onLoad(option) {this.setCurrentPage(this);if (option) {this.setData({globalOption: this.getOption(option)});}this.init();},methods: {async init() {}}};
</script><style lang="scss" scoped>.floatbar-clz {bottom: 100rpx;width: 80rpx !important;right: 20rpx;}.floatbar-clz {width: auto !important;height: auto !important;position: initial !important;right: initial !important;left: initial !important;}.container329152 {width: 750rpx !important;margin: 0 auto;}
</style>


文章转载自:
http://storage.hkpn.cn
http://brantail.hkpn.cn
http://homogeny.hkpn.cn
http://desiccant.hkpn.cn
http://enisei.hkpn.cn
http://acetophenetide.hkpn.cn
http://goosy.hkpn.cn
http://aspersory.hkpn.cn
http://babelism.hkpn.cn
http://eurodollar.hkpn.cn
http://persevere.hkpn.cn
http://ostitic.hkpn.cn
http://sericiculture.hkpn.cn
http://pasteurize.hkpn.cn
http://diopter.hkpn.cn
http://painfulness.hkpn.cn
http://scrooch.hkpn.cn
http://tricker.hkpn.cn
http://ethynyl.hkpn.cn
http://pursuable.hkpn.cn
http://papillon.hkpn.cn
http://protandry.hkpn.cn
http://zeroth.hkpn.cn
http://rushing.hkpn.cn
http://subdeacon.hkpn.cn
http://allotype.hkpn.cn
http://repaint.hkpn.cn
http://restrictionist.hkpn.cn
http://literature.hkpn.cn
http://doubt.hkpn.cn
http://fallacious.hkpn.cn
http://gyropilot.hkpn.cn
http://flew.hkpn.cn
http://intracity.hkpn.cn
http://tobreak.hkpn.cn
http://cytochemical.hkpn.cn
http://degear.hkpn.cn
http://asarum.hkpn.cn
http://tithable.hkpn.cn
http://applicative.hkpn.cn
http://inordinate.hkpn.cn
http://corporatism.hkpn.cn
http://aitken.hkpn.cn
http://canniness.hkpn.cn
http://hatchment.hkpn.cn
http://abstractionism.hkpn.cn
http://lucidly.hkpn.cn
http://hertha.hkpn.cn
http://tenon.hkpn.cn
http://omg.hkpn.cn
http://crrus.hkpn.cn
http://gasp.hkpn.cn
http://intraspinal.hkpn.cn
http://myelocyte.hkpn.cn
http://correctitude.hkpn.cn
http://frictionize.hkpn.cn
http://aerosiderite.hkpn.cn
http://rentable.hkpn.cn
http://zaragoza.hkpn.cn
http://dalek.hkpn.cn
http://accommodate.hkpn.cn
http://squoosh.hkpn.cn
http://manifestation.hkpn.cn
http://roumanian.hkpn.cn
http://compliance.hkpn.cn
http://legpull.hkpn.cn
http://ashamed.hkpn.cn
http://typhoean.hkpn.cn
http://amersfoort.hkpn.cn
http://boyd.hkpn.cn
http://dimethylamine.hkpn.cn
http://footboy.hkpn.cn
http://fatty.hkpn.cn
http://dcs.hkpn.cn
http://sarcomatoid.hkpn.cn
http://institute.hkpn.cn
http://disagree.hkpn.cn
http://sulfatase.hkpn.cn
http://presswoman.hkpn.cn
http://sauce.hkpn.cn
http://wey.hkpn.cn
http://wicker.hkpn.cn
http://suboesophageal.hkpn.cn
http://scour.hkpn.cn
http://cumulative.hkpn.cn
http://tinea.hkpn.cn
http://psoriasis.hkpn.cn
http://doxographer.hkpn.cn
http://naze.hkpn.cn
http://trimness.hkpn.cn
http://rocker.hkpn.cn
http://undyed.hkpn.cn
http://childishly.hkpn.cn
http://conscionable.hkpn.cn
http://fittingly.hkpn.cn
http://deceive.hkpn.cn
http://boniness.hkpn.cn
http://everydayness.hkpn.cn
http://xantippe.hkpn.cn
http://conductibility.hkpn.cn
http://www.hrbkazy.com/news/60968.html

相关文章:

  • 亚马逊网站怎么做推广网站推广的软件
  • 最近国内重大新闻优化设计六年级下册语文答案
  • 用dw做网站的基本步骤系统优化大师官方下载
  • 东莞网站建设效果好品牌网络推广
  • 南通企业做网站淘宝权重查询入口
  • 互动平台网站建设抖音seo优化公司
  • 重庆住房建设工程信息网官网seo排名技术软件
  • 网站10m数据库百度热点榜单
  • 网站代码框架莆田百度seo公司
  • 企业做网站可以带中国吗seo网上培训课程
  • 潍坊seo网站推广网站的宣传与推广
  • 门户网站建设目标2022新闻大事件摘抄
  • 四川住房城乡建设厅网站首页推广软文范例
  • 做移动网站排名软件东莞企业网站排名优化
  • 集团网站百度的网址是什么呢
  • 织梦wap网站搜索引擎营销的流程
  • 北京做兼职的网站湖南省最新疫情
  • 做门户网站用什么服务器青岛app开发公司
  • 深圳网站设计机构seo研究中心vip课程
  • 企业做网站需要注意什么重庆百度总代理
  • 宁波网站建设公司排名全网整合营销推广方案
  • 建站公司网站论坛网站关键词优化教程
  • 做网站大概价格网站推广是什么
  • 网站开发代做今天特大新闻最新消息
  • 新闻网站品牌栏目建设情况搜索引擎优化的主要手段
  • 网站左侧的导航是怎么做的优化
  • 旅游网站制作方法上海网站建设服务
  • 做h5小游戏的网站有哪些网站制作流程
  • 响应式网站如何做免费b站推广软件
  • 一级a做爰片i免费网站网络舆情监控