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

网站建设 百度云盘公司网站建设计划书

网站建设 百度云盘,公司网站建设计划书,做二手物资买卖的网站,温州平阳县企业网站搭建推荐一、先上效果 二 方法 1、自定义底部tabbar 实现#xff1a; https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html 官网去抄 简单写下#xff1a;在代码根目录下添加入口文件 除了js 文件的list 需要调整 其他原封不动 代码#xf…一、先上效果 二 方法 1、自定义底部tabbar 实现 https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html 官网去抄 简单写下在代码根目录下添加入口文件 除了js 文件的list 需要调整 其他原封不动 代码 js部分 Component({data: {selected: 0,color: #7A7E83,selectedColor: #0081FF,list: [{ // 同app.json下的tabbar列表iconPath: /assets/img/build.png,selectedIconPath: /assets/img/buildSelect.png,pagePath: /pages/index/index,text: 淘楼},{iconPath: /assets/img/my.png,selectedIconPath: /assets/img/selectMy.png,pagePath: /pages/my/index,text: 我的}]},attached() {},methods: {switchTab(e) {console.log(e.currentTarget)const data e.currentTarget.datasetconst url data.pathwx.switchTab({url})this.setData({selected: data.index})}} })json {component: true,usingComponents: {} }wxml !--miniprogram/custom-tab-bar/index.wxml-- view classtab-barview classtab-bar-border/viewview wx:for{{list}} wx:keyindex classtab-bar-item data-path{{item.pagePath}} data-index{{index}} bindtapswitchTabimage src{{selected index ? item.selectedIconPath : item.iconPath}}/imageview stylecolor: {{selected index ? selectedColor : color}}{{item.text}}/view/view /view wxss position: fixed;bottom: 0;left: 0;right: 0;height: 48px;background: white;display: flex;padding-bottom: env(safe-area-inset-bottom);z-index: 99; }.tab-bar-border {background-color: rgba(0, 0, 0, 0.33);position: absolute;left: 0;top: 0;width: 100%;height: 1px;transform: scaleY(0.5); }.tab-bar-item {flex: 1;text-align: center;display: flex;justify-content: center;align-items: center;flex-direction: column; }.tab-bar-item image {width: 27px;height: 27px; }.tab-bar-item view {font-size: 10px; }.tab-bar {position: fixed;bottom: 0;left: 0;right: 0;height: 48px;background: white;display: flex;padding-bottom: env(safe-area-inset-bottom);z-index: 99; }.tab-bar-border {background-color: rgba(0, 0, 0, 0.33);position: absolute;left: 0;top: 0;width: 100%;height: 1px;transform: scaleY(0.5); }.tab-bar-item {flex: 1;text-align: center;display: flex;justify-content: center;align-items: center;flex-direction: column; }.tab-bar-item image {width: 27px;height: 27px; }.tab-bar-item view {font-size: 10px; } 2、 list 的中的页面 都需要在onShow中加入一下方法 if (typeof this.getTabBar function this.getTabBar()) {this.getTabBar().setData({selected: 0})}三、遮罩层 盖住底部tabbar 自己实现一个遮罩层或者使用组件 我这儿用的组件 只需要让z-index:的值大于99999 即可 !-- 遮罩层 -- van-overlay show{{ overlayShow }} vertical z-index{{999999}}view classoverlay-contentvan-loading typespinner加载中.../van-loading/view /van-overlay
http://www.dnsts.com.cn/news/27541.html

相关文章:

  • 销售单页网站品牌理念设计企业网站建设
  • 织梦装修公司网站模板中国发达国家投票
  • 昆明网站建设设计民宿设计公司
  • 做网站顺序网站设计思路方案
  • 网站开发后怎么上线国外的模板网站有哪些
  • 如何做好外贸网站建设服务商名称是什么意思
  • 网站开发人员非营利组织网站建设会计分录
  • 永州企业网站建设价格深圳建站公司开发费用
  • 南通专业家纺网站建设wordpress加超链接
  • 制作的网站图片不显示网站logo用什么做
  • 优化建站seo门户怎么黑wordpress
  • 怎么怎么做网站微信 小程序 wordpress
  • 黄页推广网站下载上海企业网站模板建站费用
  • 国外网站后缀苏州做i网站的
  • 智能手表网站电子商务基础网站建设与维护单项选择题
  • 重庆网站建设公司在线联系跨境经验分享
  • 合肥网站建设多少钱网页设计的一般流程
  • 做的烂的网站卖线面网站
  • 开封市建设教育协会网站传统网站布局
  • 杭州网站网站建设网站 流程优化
  • 做网站公司 衡阳公司动地科技登录网站
  • 用自己的电脑做网站划算车贴广告设计图片
  • 深圳制作手机网站深圳网站建设与设计制作
  • 北京市建设工程造价管理处网站抚顺 网站建设
  • 做pc端网站价位网站开发需要用到的相关技术
  • 网站册数肇庆网站开发
  • 网站vi设计公司公司网站建设总结报告
  • 挖掘关键词爱站网手机免费制作网站模板免费下载
  • 南京建设网站公司能24小时挂机的云电脑
  • 沙河高端网站建设80s网站建设工作室