uniapp | 您所在的位置:网站首页 › 微信小卡片广告在哪里关闭啊 › uniapp |
一、使用colorUI实现如下的效果:
一、下载colorUI源码解压,复制根目录的 /colorui 文件夹到你的根目录 三、pages.json 配置取消系统导航栏 "globalStyle": { "navigationStyle": "custom" },四、在main.js 引入 cu-custom 组件。 import cuCustom from './colorui/components/cu-custom.vue' Vue.component('cu-custom',cuCustom)page.vue 页面可以直接调用了 返回 导航栏 2、所有代码 个人信息 Personal 专业:计算机 学历:本科 export default { data() { return { title: 'Hello' } }, onLoad() { }, methods: { } } .content { display: flex; flex-direction: column; /* align-items: center; justify-content: center; */ background-color: #FFFFFF; margin: 20upx; border-radius: 15upx; } .view_3 { width: 100vw; height: 60upx } .img_icon_small{ margin: 0upx 20upx; width: 25upx; height: 25upx; } 二、使用colorUI的自定义顶部导航参考上面提到的步骤 2、在app.vue的onLaunch导入如下代码 uni.getSystemInfo({ success: function(e) { // #ifndef MP Vue.prototype.StatusBar = e.statusBarHeight; if (e.platform == 'android') { Vue.prototype.CustomBar = e.statusBarHeight + 50; } else { Vue.prototype.CustomBar = e.statusBarHeight + 45; }; // #endif // #ifdef MP-WEIXIN Vue.prototype.StatusBar = e.statusBarHeight; let custom = wx.getMenuButtonBoundingClientRect(); Vue.prototype.Custom = custom; Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight; // #endif // #ifdef MP-ALIPAY Vue.prototype.StatusBar = e.statusBarHeight; Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight; // #endif } }) },在export default { 的上一行添加: import Vue from 'vue' 3、页面代码 个人技能 页面 - 2 三、时间列表参考上面提到的步骤 2、代码 2019-目前 北京慧资道咨询有限公司 规模:120人 JAVA开发 我在里面负责技术监察,管理团队,统一调度,统一代码规范,统一指挥,团结一致 2016-2019 北京好味道咨询有限公司 规模:110人 JAVA开发 我在里面负责技术监察,管理团队,统一调度,统一代码规范,统一指挥,团结一致 三、时间列表(微信小程序)效果图: |
CopyRight 2018-2019 实验室设备网 版权所有 |