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

注册网站后邮箱收到邮件优质的网站建设流程

注册网站后邮箱收到邮件,优质的网站建设流程,云南省建设厅建筑业信息网,启闭机闸门的网站建设uniapp实现全局悬浮框(按钮,页面,图片自行设置) 可拖动 话不多说直接上干货 1,在components新建组件(省去了每个页面都要引用组件的麻烦) 2,实现代码 templateview classcall-plate :styletop: top px;left: left px; touchmovetemplateview classcall-plate :styletop: top px;left: left px; touchmovetouchmove touchendtouchend touchstarttouchstart v-ifpopupShow通话中悬浮框/view /templatescriptexport default {name: call-screen,emits: [hide, confirm],props: {/*** 默认号码*/number: {type: String,default: }},data() {return {popupShow: true, // 是否显示当前页面top: 0,left: 0,startTop: 0,startLeft: 0,startClientTop: 0,startClientLeft: 0,}},watch: {},computed: {i18n() {return this.$t}},created() {let that thisthis.popupShow getApp().globalData.callShowthis.top getApp().globalData.callShowTop // 获取全局存储的位置,也可以使用本地缓存存储this.left getApp().globalData.callShowLeftuni.$on(getApp().globalData.$global.CALL_SHOW_UPDATE, this.callShowUpdate)uni.$on(getApp().globalData.$global.CALL_SHOW_OPEN, this.callShowOpen)uni.$on(getApp().globalData.$global.CALL_SHOW_CLOSE, this.callShowClose)},destroyed() {// 销毁通知uni.$off(getApp().globalData.$global.CALL_SHOW_UPDATE, this.callShowUpdate)uni.$off(getApp().globalData.$global.CALL_SHOW_OPEN, this.callShowOpen)uni.$off(getApp().globalData.$global.CALL_SHOW_CLOSE, this.callShowClose)},methods: {touchmove(e) {// 单指触摸if (e.touches.length ! 1) {return false;}// console.log(e)this.top e.changedTouches[0].pageY - this.startClientTop this.startTopthis.left e.changedTouches[0].pageX - this.startClientLeft this.startLeft},touchend(e) {// console.log(------结束,top: this.top ,left: this.left)// console.log(e)getApp().globalData.callShowTop this.topgetApp().globalData.callShowLeft this.leftuni.$emit(getApp().globalData.$global.CALL_SHOW_UPDATE) // 更新每个页面悬浮框位置},touchstart(e) {// console.log(------开始)// console.log(e)this.startTop this.topthis.startLeft this.leftthis.startClientTop e.changedTouches[0].pageYthis.startClientLeft e.changedTouches[0].pageX},callShowUpdate() {// 更新每个页面悬浮框位置this.top getApp().globalData.callShowTopthis.left getApp().globalData.callShowLeft},callShowOpen() {// 打开每个页面悬浮框this.popupShow truegetApp().globalData.callShow true},callShowClose() {// 关闭每个页面悬浮框this.popupShow falsegetApp().globalData.callShow false},}} /scriptstyle langscss scoped.call-plate {display: flex;position: absolute;width: 90px;height: 160px;z-index: 9999999;background-color: yellow;} /style在 App.vue中全局存储悬浮框位置信息 globalData: {callShowTop: 100, // 悬浮框topcallShowLeft: 100, // 悬浮框leftcallShow: false, // 悬浮框是否显示 },3,在每个需要用到悬浮框的页面引入 templateview classcontent!--组件引用--call-screen/call-screen/view /template 发通知控制显示隐藏悬浮框 uni.$emit(that.global.CALL_SHOW_CLOSE) uni.$emit(that.global.CALL_SHOW_OPEN)4,实现效果 每个页面切换后都会更新最新位置
http://www.w-s-a.com/news/94016/

相关文章:

  • 怎么做律所的官方网站微网站可以做商城吗
  • 通用网站后台管理系统(php版)网站备案ip查询网站查询
  • 制作网站代码吗江阴网站建设推广
  • 汕头建网站wordpress文章网址采集
  • 十大景观设计网站用vue框架做的网站
  • 福建省建设监理网官方网站做外贸网站卖什么东西好
  • 公司做网站排名东莞关键词优化推广
  • 连云港做企业网站公司全网营销与seo
  • 电子毕业设计代做网站wordpress 插件放在那
  • 黄石规划建设局网站怎么做存储网站
  • 网站安装wordpress滨江网站建设
  • 河南官网网站建设一般使用的分辨率显示密度是
  • dedecms新网站 上传到万网的空间宝洁公司网站做的怎么样
  • 网站建设语录优惠券的网站怎么做的
  • 白山市住房和建设局网站有实力高端网站设计地址
  • 沧州网站建设制作设计优化深圳网站自然优化
  • 企业做网站 乐云seowordpress中修改html
  • 网站细节门户wordpress主题下载
  • 全景网站模版wordpress套餐
  • 华为云建网站dw制作一个手机网站模板
  • 定陶菏泽网站建设河北新出现的传染病
  • 商业网站建设案例教程郑州服装网站建设公司
  • 网站内容怎么做专业的企业管理软件
  • 深圳网站制作公司排名微网站和微信公共平台的区别
  • 权威的唐山网站建设扁平网站欣赏
  • 网站外链建设工作计划应用公园app免费制作
  • 东莞营销型网站建设全自动建站系统
  • 网络在线培训网站建设方案虚拟主机配置WordPress
  • 建设工程信息查询哪个网站好台州做优化
  • wordpress页面回收站位置台州做网站