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

用wordpress搭建完整网站教程视频软件开发涵盖网站开发吗

用wordpress搭建完整网站教程视频,软件开发涵盖网站开发吗,做网站卖机械,品牌建设的六个步骤在Uniapp中#xff0c;悬浮菜单支持拖动和吸附功能#xff0c;可以为用户带来更加灵活和便捷的操作体验。以下是对这两个功能的详细解释#xff1a; 悬浮菜单支持拖动 提高用户体验#xff1a;用户可以根据自己的需要#xff0c;将悬浮菜单拖动到屏幕上的任意位置#x…在Uniapp中悬浮菜单支持拖动和吸附功能可以为用户带来更加灵活和便捷的操作体验。以下是对这两个功能的详细解释 悬浮菜单支持拖动 提高用户体验用户可以根据自己的需要将悬浮菜单拖动到屏幕上的任意位置从而更加便捷地访问和使用菜单中的功能。 灵活性悬浮菜单的拖动功能使得应用界面更加灵活用户可以根据自己的使用习惯进行个性化设置。 增强互动性通过拖动悬浮菜单用户可以与应用进行更加直观的互动提高应用的趣味性和互动性。 悬浮菜单支持吸附 自动定位悬浮菜单在拖动到屏幕边缘时可以自动吸附在边缘位置使得菜单更加稳定且不易误操作。 优化布局吸附功能可以使得悬浮菜单在屏幕上的布局更加合理避免遮挡其他重要信息或功能按钮。 提升美观度通过自动吸附悬浮菜单可以保持与屏幕边缘的一定距离使得整个应用界面看起来更加整洁、美观。 组件库实现 templateview:ididclassdiy-floatbar:styleleft: left px; top: top px;touchstarttouchstarttouchmove.stop.preventtouchmovetouchendtouchendclick.stop.preventclick:class{transition: isDock !isMove }slot/slot/view /templatescriptexport 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.positionTyperight-bottom){left this.windowWidth - this.width - this.leftEdge;top this.windowHeight - this.height - this.topEdge;}else if(this.positionTypeleft-bottom){left this.leftEdge;top this.windowHeight - this.height - this.topEdge;}else if(this.positionTyperight-top){left this.windowWidth - this.width - this.leftEdge;top this.topEdgewindowTop;}else if(this.positionTypeleft-top){left this.leftEdge;top this.topEdgewindowTop;}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);},}} /scriptstyle langscss.diy-floatbar {display: flex;justify-content: center;align-items: center;position: fixed;z-index: 999999;.transition {transition: left .3s ease,top .3s ease;}}/style组件库调用 templateview classcontainer container329152diy-floatbar :topEdge50 :leftEdge10 idfloatbar :isDockfalse :isDragSavetrue positionTyperight-bottomview classflex diygw-col-0 right-bottom floatbar-clzview classdiygw-grid diygw-actionsbutton classdiygw-actionview classdiygw-grid-innerview classdiygw-grid-icon diygw-avatarimage modeaspectFit classdiygw-avatar-img src/static/global/grid1.png/image/viewview classdiygw-grid-title 菜单一 /view/view/button/view/view/diy-floatbarview classclearfix/view/view /templatescriptexport 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() {}}}; /scriptstyle langscss 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://www.hkea.cn/news/14359816/

相关文章:

  • 江苏网站快速排名优化网站建设设计广州
  • 网站聊天代码logo设计免费生成器在线
  • 广东网站开发wordpress进不后台
  • 雅安网站制作手机网站支持微信支付
  • 网站建设与制作dw8教程住房和城乡建设厅网站
  • 网页游戏推荐排行龙泉驿网站seo
  • 网站开发技术网站模板微信开放平台文档
  • 做室内效果图网站宁波网站的优化
  • 培训心得网站建设信息流广告投放流程
  • 用rp怎么做网站按钮下拉框网站开发 价格
  • 电子商务网站建设卷子python小学生入门教程
  • 山东安康建设项目管理有限公司网站金泉网推广怎么样
  • 系统网站建设方案广元网站制作
  • 武隆集团网站建设岳阳网站建设哪里便宜
  • 织梦移动网站后缀网站建设投入及费用
  • 用来备案企业网站wordpress 无法编辑文章
  • 怎么做微信推送 网站安康企业网站定制
  • 哪些网站是php注册公司实缴和认缴有什么区别
  • 自己做网站的优势即墨区城乡建设局网站
  • 网站字体大小画廊网站模板
  • 手机网站接入微信登录适合手机端的wordpress
  • 在建设银行网站上还贷做网站现在好弄么
  • 银川网站推广方式广州建网站公司排名
  • 理财网站建设方案书wordpress网站上传服务器
  • 北京建站推广给静态网站加后台
  • 装修门户网站程序 cms瑞丽住建局网站
  • 江苏建设人才考试网是啥网站免备案网站建设
  • 做最好的导航网站企业网站优化分为两个方向
  • 金山网站建设费用做一个微网站平台
  • 介绍网站ppt该怎么做网页设计入门首先要学什么