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

网站建设实例分析网站建设制作设计珠海

网站建设实例分析,网站建设制作设计珠海,深圳公司官网设计,哪里有免费的seo视频此章主要介绍如何使用uniapp跨平台开发#xff0c;实现悬浮按钮#xff0c;移动端经常会有所这样的需求#xff0c;那么功能如下#xff1a; 1.圆圈悬浮球#xff0c;上下左右靠边显示 2.可以界面任何拖动#xff0c;不会超出界面 3.单击悬浮球的点击事件 效果#xf…此章主要介绍如何使用uniapp跨平台开发实现悬浮按钮移动端经常会有所这样的需求那么功能如下 1.圆圈悬浮球上下左右靠边显示 2.可以界面任何拖动不会超出界面 3.单击悬浮球的点击事件 效果 代码如下复制粘贴就可运行看效果小白也不用担心 templateview classcontentmovable-area classmovableAreamovable-view classmovableView:positionposition:xx:yy:directiondirection:dampingdampingchangeonChangetaponTaptouchendonTouchendimage src../../static/homeShow.png modewidthFix classiconImage/image/movable-view/movable-area/view /templatescriptexport default {data() {return {x: 0,y: 0,x1: 0,x2: 0,y1: 0,y2: 0,move: {x: 0,y: 0}};},props: {damping: {type: Number,default: 10},direction: {type: String,default: all},position: {type: Number,default: 4}},mounted() {uni.getSystemInfo({success: (res) {this.x1 0;this.x2 parseInt(res.windowWidth) - 50;this.y1 0;this.y2 parseInt(res.windowHeight) - 20;setTimeout(() {if (this.position 1 || this.position 2) this.y parseInt(this.y2 * 0.2);if (this.position 3 || this.position 4) this.y parseInt(this.y2 * 0.8);if (this.position 1 || this.position 3) this.x parseInt(this.x1);if (this.position 2 || this.position 4) this.x parseInt(this.x2);this.move.x this.x;this.move.y this.y;}, 1000)}})},methods: {onChange(e) {if (e.detail.source touch) {this.move.x e.detail.x;this.move.y e.detail.y;}},onTap(e) {console.log(Tap event);// 在这里处理单击事件的逻辑// 例如打开链接、执行动作等},onTouchend() {this.x this.move.x;this.y this.move.y;setTimeout(() {if (this.move.x this.x2 / 2) this.x this.x1;else this.x this.x2;console.log(yuan this.x, this.y)}, 100)},onLoad: function(e) {}},}; /scriptstyle scoped.content {position: relative;height: 100vh;}.movableArea {position: fixed;top: 0;left: 0;width: 100%;height: 100%;pointer-events: none;z-index: 999;}.movableView {pointer-events: auto;width: 60rpx;height: 60rpx;padding: 10rpx;border-radius: 100%;border: 2px solid #33A3DC;background-color: #DAEE78;}.iconImage {display: block;width: 60rpx;height: 60rpx;}.contact {width: 50px;height: 50px;overflow: hidden;position: absolute;left: 0px;top: 0px;border-radius: 100%;opacity: 0;} /style综合如上此功能就实现了在移动端运行就可以看到悬浮球功能任意拖动感谢您的阅读希望有所帮助
http://www.zqtcl.cn/news/125235/

相关文章:

  • 在微信怎样搞做微视频网站商城小程序模板源码完整版
  • h5跟传统网站有啥区别读取wordpress最新文章
  • 网站推广120最超值的网站建设
  • 移动网站制作公司如何开公司做网站
  • 网站建设 青海试题wordpress的特点
  • 源码如何做网站宽甸县建设局网站
  • 用dw做的网页怎么连到网站上企业网站备案资料填写单
  • 中文 网站模板企业怎么建设网站
  • 建设户外腰包网站哪个网站注册域名好
  • 六安网站建设价格小学生编程网课前十名
  • 绵阳网站建设信赖辉煌wordpress多账号权限
  • 网站外链快速建设网站维护要学多久
  • 做网站都是用ps吗郑州网站设计培训
  • wordpress 多站点教程厦门做网站维护的公司
  • 婚纱网站建设需求分析wordpress js图片
  • seo网站怎么优化有哪些企业网站平台
  • 响应式中文网站欣赏wordpress 带分页的主题
  • 什么样的网站可以做站内站房地产的设计网站建设
  • 成都住房和城乡建设局 网站首页深圳西乡建网站
  • 商城类的网站一般怎么做开发app软件的步骤
  • 招聘网站做销售怎么样做网站后台学什么专业
  • 帮别人做彩票网站餐饮网站建设需求分析
  • 企业服务平台工程建设云深圳网站建设专业乐云seo
  • 怎么建立小公司网站抖音运营推广
  • 无锡地区做网站嵌入式软硬件开发
  • 网站建设框架怎么写企业网站本身应该就是企业( )的一部分
  • 如果做公司网站WordPress出现归档
  • 温州开发网站公司阿里云 拦截网站
  • 网站建设与管理实践实践报告南宁小程序建设
  • 网站后台功能技术要求网站建设 手机和pc