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

隆昌住房和城乡建设官方网站ml域名免费注册

隆昌住房和城乡建设官方网站,ml域名免费注册,cms+wordpress模板,个人怎么找猎头公司推荐自己文章目录 1. 实现效果2. App.vue3. pages.json 配置自定义4. 顶部导航栏 使用 微信小程序自定义 navigationBar 顶部导航栏#xff0c;兼容适配所有机型 1. 实现效果 2. App.vue 在App.vue 中#xff0c;设置获取的 StatusBar#xff0c;CustomBar 高度#xff08;实现适配… 文章目录 1. 实现效果2. App.vue3. pages.json 配置自定义4. 顶部导航栏 使用 微信小程序自定义 navigationBar 顶部导航栏兼容适配所有机型 1. 实现效果 2. App.vue 在App.vue 中设置获取的 StatusBarCustomBar 高度实现适配高度写法uni.getSystemInfo 获取可视区域的高度wx.getMenuButtonBoundingClientRect() 胶囊按钮位置信息 scriptimport Vue from vueexport default {onLaunch: function() {uni.getSystemInfo({success: function(e) {// #ifndef MPVue.prototype.StatusBar e.statusBarHeight;if (e.platform android) {Vue.prototype.CustomBar e.statusBarHeight 50;} else {Vue.prototype.CustomBar e.statusBarHeight 45;};// #endif// #ifdef MP-WEIXINVue.prototype.StatusBar e.statusBarHeight;let custom wx.getMenuButtonBoundingClientRect();Vue.prototype.Custom custom;Vue.prototype.CustomBar custom.bottom custom.top - e.statusBarHeight 4;// #endif // #ifdef MP-ALIPAYVue.prototype.StatusBar e.statusBarHeight;Vue.prototype.CustomBar e.statusBarHeight e.titleBarHeight;// #endif}});},onShow: function() {console.log(App Show)},onHide: function() {console.log(App Hide)}} /scriptstyle langscss /style 3. pages.json 配置自定义 pages: [{path: home,style: {navigationStyle: custom} }]4. 顶部导航栏 使用 组件完整代码CSS 部分 我使用的是 colorUI 不懂的可以看看写法 templateviewview classcu-custom :style[{height:CustomBar px}]view classcu-bar fixed :stylestyle :class[bgImage!?none-bg text-white bg-img:,bgColor]view classaction tapBackPage v-ifisBacktext classcuIcon-back/textslot namebackText/slot/viewview classcontent :style[{top:StatusBar px}]slot namecontent/slot/viewslot nameright/slot/view/view/view /templatescriptexport default {data() {return {StatusBar: this.StatusBar,CustomBar: this.CustomBar};},name: cu-custom,computed: {style() {var StatusBar this.StatusBar;var CustomBar this.CustomBar;var bgImage this.bgImage;var style height:${CustomBar}px;padding-top:${StatusBar}px;;if (this.bgImage) {style ${style}background-image:url(${bgImage});;}return style}},props: {bgColor: {type: String,default: },isBack: {type: [Boolean, String],default: false},bgImage: {type: String,default: },},methods: {BackPage() {uni.navigateBack({delta: 1});}}} /scriptstyle langscss scoped /stylemain.js 全局注册顶部导航栏组件 // 此处为引用自定义顶部 import cuCustom from ./colorui/components/cu-custom.vue Vue.component(cu-custom,cuCustom);页面使用导航栏组件 cu-custom classnavBox bgColorbg-gradual-blue :isBacktrueblock slotbackText返回/blockblock slotcontent首页/block /cu-custom
http://www.dnsts.com.cn/news/4102.html

相关文章:

  • 信用网站建设标准wordpress关闭媒体库功能
  • wordpress成品站源码柳州做网站的
  • 网站备案怎么转入不用开源程序怎么做网站
  • 成都网站建设软件深圳做网站比较
  • 电话投放小网站ui设计招聘
  • 济南高新区 网站建设公司广东建设网证件查询
  • 站长综合查询工具网站建设的描述
  • 网站上怎么做企业推广内蒙网站建设seo优化
  • 天津建设厅网站品牌设计logo图片
  • 网站建设部门宣言uniapp跳转内部页面
  • 深圳网站搭建多少钱佛山商城网站制作
  • php门户网站模板下载wordpress .net版本号
  • 怎么建立免费个人网站网络营销网站 功能
  • 给外国小孩 做 英语题用的网站百度小程序优化
  • 大型网站建设公司沈阳网络信息有限公司
  • 网站怎么做详情页nginx wordpress安全
  • 深圳市网站制作公司鸿蒙app开发工具
  • 免费网站制作软件网站js时间代码
  • 用别人服务器做网站国内10大搜索引擎
  • wordpress网站插件学电脑培训班多少一个月
  • 深圳网站建设定制开发超凡科技seo网络推广培训
  • 做公司网站可以抄别人的吗工业和信息化部电信设备认证中心
  • 网站备案 链接公司电商网站建设费用怎么记账
  • 好用的网站系统网站推广怎么做
  • 交通局网站模板现货行情分析软件app
  • 淘宝做动图网站泰安微信网站建设
  • 网站备案要多少天xsxz wordpress
  • php网站开发源码wordpress 子模板
  • 怎么做企业网站推广赚钱1网站免费建站
  • 优化网站关键词的技巧统一企业官网