当前位置: 首页 > 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.hkea.cn/news/14342886/

相关文章:

  • 网站栅格布局让网站会员做产品标签确认
  • 洛阳哪有做公司网站的网络营销推广外包服务
  • 郑州鹏之信网站建设开网站的是啥公司
  • 网站配色原则怎么写网站规划方案
  • 做网站页面需要的资料建设监理协会官方网站
  • 忠益网站建设wordpress手机主题mip
  • 可视化的网站开发工具品牌推广外包公司
  • 网站建设维护要加班吗三联网站建设工作室
  • 手机网站开发 1433端口错误企业档案网站建设
  • 中科时代建设官方网站个人网站要求
  • win7 iis网站无法显示该页面郑州seo外包费用
  • wdcp新建网站做网站一般用什么程序
  • 白云网站 建设信科网络动画网站建设
  • 中兴的网站谁做的网站开发技术发展历程
  • 住建网站需多少钱wordpress浮动音乐
  • 东莞优化网站制作广东省建设网官网
  • 做网站需要准备什么wordpress后台密码忘了
  • 兼职做效果图的网站九江城乡建设网站为什么打不开
  • 苏州免费模板建站论文收录网站
  • 济南企业建站排行榜专业网络推广平台
  • 手机和pc合一的网站建材 网站 模板
  • 艺纵网站建设网咯鸟深圳网站建设
  • 公众号开发是什么seo排名工具快速提高
  • 大连网站建站华文细黑做网站有版权吗
  • 个人可以做的外贸网站网站建设费是业务宣传费吗
  • 网站建设评分安徽省建设安全协会网站
  • 企业网站建设价格表网站公网安备链接怎么做
  • 南宁网站设计公司排名整合营销公司排名
  • 多说与网站账号绑定科技 响应式网站模板下载
  • 网站制作:网推宝|百度做邀请函好的网站