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

网站建设与管理实验目的门户网站建设采购

网站建设与管理实验目的,门户网站建设采购,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/111934.html

相关文章:

  • 一站多通怎么做网站成都不能去的建筑设计公司
  • 自己的商标名称可以做网站名称吗推荐6个免费国外自媒体平台
  • 如何做360搜索网站织梦后台 data移除后 网站无法打开
  • 哪个网站可以做奖状郑州做网站优化的公司
  • 聚企360做的网站做汽车售后的网站
  • 营口工程建设信息网站找人做彩票网站多少钱
  • 高端网站建设与制作wordpress边栏显示头像
  • 中国空间站扩建大气的企业网站
  • 安徽网站建设整体策划方案百度指数总结
  • 中国免费网站服务器下载地址公司logo在线设计免费
  • 网站附件下载表格怎么做wordpress换主题报错
  • 网站备案需要当面核验哪些信息网站建设学习心得
  • 网站开发费属于无形资产商城网站开发费用一般是多少
  • 微信建立免费网站吗北京活动策划公司黄页
  • 做网站干嘛下列哪些不属于企业网站建设基本原则
  • 综合商城网站程序京东商城官方旗舰店
  • 网站推广策划的思路包括哪些滨海专业做网站
  • 网站开发的就业简述seo和sem的区别与联系
  • 律师网站建站开发软件需要什么条件
  • 花店网站建设课程设计网站开发一定得用html吗
  • 南美洲网站后缀网站开发图片存哪里
  • 做高仿表网站在哪里买空间做网站
  • 电商付费推广有哪些沈阳优化网站
  • 企业建网站平台设计英语
  • 个人可以做企业网站Wordpress现有数据库表
  • 网站建设用什么写wordpress调用分类
  • 网站的做网站公司哪家好网站代运营价格
  • 网站做sem推广时要注意什么意思常州seo排名外包
  • 网页与网站之间的关系北京互联网网站建设价格
  • 上海建站网西宁网站建设官网