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

软件项目网站建设实验报告蓟县做网站公司

软件项目网站建设实验报告,蓟县做网站公司,长葛哪里有做网站的,创业网站怎么做的废话不多说#xff0c;直接行源码 这里需要的底部tabbar的图片在这里 我的资源里面呢 图片是这样的 先看成品吧 首先 - BaseApp\components\Tabbar.vue script setupimport {ref,nextTick,watch} from vue// 核心 - 隐藏uniapp自带的底部tabbaruni.hi…废话不多说直接行源码 这里需要的底部tabbar的图片在这里 我的资源里面呢 图片是这样的 先看成品吧 首先 - BaseApp\components\Tabbar.vue script setupimport {ref,nextTick,watch} from vue// 核心 - 隐藏uniapp自带的底部tabbaruni.hideTabBar()let current ref(0)const list ref([{pagePath: pages/index/index,iconPath: ../static/tab/11.png,selectedIconPath: ../static/tab/1.png,text: index}, {pagePath: pages/warn/index,iconPath: ../static/tab/22.png,selectedIconPath: ../static/tab/2.png,text: warn}, {pagePath: pages/my/index,iconPath: ../static/tab/33.png,selectedIconPath: ../static/tab/3.png,text: my}, {pagePath: pages/user/index,iconPath: ../static/tab/44.png,selectedIconPath: ../static/tab/4.png,text: user}, {pagePath: pages/sign/index,iconPath: ../static/tab/55.png,selectedIconPath: ../static/tab/5.png,text: sign}])const changeTab (e) {uni.switchTab({url: /${list.value[e].pagePath},})}// const props defineProps([current])const props defineProps({current: {type: String, // 或者其他你需要的类型 required: true // 如果这个 prop 是必需的 }})console.log(props, props)current.value props.current /scripttemplateview classtabbar!-- 根据tabbar个数的多少, 调整.tabbar-item样式中的padding即可 --view classtabbar-item v-for(item, index) in list :keyindex clickchangeTab(index)view classselect v-ifcurrent indexview classi-timage classimg imgactive modewidthFix :srcitem.selectedIconPath v-ifcurrent index/imageimage classimg modewidthFix :srcitem.iconPath v-else/imageview classtext active v-ifcurrent index{{item.text}}/viewview classtext v-else{{item.text}}/view/view/viewview v-elseimage classimg modewidthFix :srcitem.selectedIconPath v-ifcurrent index/imageimage classimg modewidthFix :srcitem.iconPath v-else/imageview classtext active v-ifcurrent index{{item.text}}/viewview classtext v-else{{item.text}}/view/view/view/view /templatestyle.tabbar {/* 1.5vh: 视口高度的1.5% */font-size: 1.5vh;position: fixed;left: 0;bottom: 0;z-index: 99;width: 100%;/* 6vh: 视口高度的6% */height: 6vh;display: flex;align-items: center;justify-content: space-around;background-color: #fff;padding: 20rpx 0;}.tabbar-item {height: 100%;padding: 0 20rpx;/* 根据tabbar个数的多少, 调整.tabbar-item样式中的padding即可 */display: flex;align-items: center;justify-content: center;}.select, {width: 10vh;height: 10vh;/* border-radius: 10vh; *//* margin-bottom: 4vh; *//* background-color: #086d5b; */position: relative;},.i-t {font-size: 1.5vh;padding: 2vw 2vh;position: absolute;bottom: 1vh;}.img ,{height: 3vh;width: 2.5vh;/* 4vw: 视口宽度的4% */margin: 0 4vw;},.imgactive, {height: 3.5vh;width: 3.2vh;margin: 0 2.2vw;}.text {,text-align: center;color: #CACACA;},.text, .active {color: #fff;} /style 其次 - pages.json {pages: [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages{path: pages/index/index,style: {navigationBarTitleText: index}}, {path: pages/warn/index,style: {navigationBarTitleText: 告警,enablePullDownRefresh: false}}, {path: pages/my/index,style: {navigationBarTitleText: 我的,enablePullDownRefresh: false}}, {path: pages/user/index,style: {navigationBarTitleText: 其他,enablePullDownRefresh: false}}, {path: pages/sign/index,style: {navigationBarTitleText: 标签,enablePullDownRefresh: false}}],globalStyle: {navigationBarTextStyle: black,navigationBarTitleText: uni-app,navigationBarBackgroundColor: #F8F8F8,backgroundColor: #F8F8F8},// 主要是这里的tabbar -------------------------------------------------------tabBar: {height: 0,// color: #7A7E83,// selectedColor: #55ffff,// backgroundColor: #55ff7f,list: [{pagePath: pages/index/index},{pagePath: pages/warn/index},{pagePath: pages/my/index},{pagePath: pages/user/index},{pagePath: pages/sign/index}]},uniIdRouter: {}} 再然后 - 在别的.vue组件中这样使用 BaseApp\pages\my.vue templatetext classtitle{{title}}/texttabbar :current2/tabbar /templatescript setupimport {ref} from vueimport tabbar from ../../components/Tabbar.vuelet title ref(我的) /scriptstyle/style
http://www.hkea.cn/news/14298557/

相关文章:

  • 珠海做网站费用足球世界积分榜
  • 网站建设费用明细湖南岚鸿wordpress 读取分类
  • 企业网站建设要注意什么营销网站有四大要素构成
  • 网站建设过程小结建站网站插件
  • 自己建设购物网站wordpress域名后缀
  • 网站规划的意义创作图片的软件
  • 网站名称在哪里注册购物网站建设与开发
  • 正规网站建设公司哪个比较好wordpress4.9.8升级包
  • 网站备案方案263企业邮箱登录入口收费
  • 网站视觉艺术设计及色彩搭配服装网站建设的规模和类别
  • 管理网站建设哪里好品牌网站建设搜搜磐石网络
  • 南阳市网站制作网站建设 职责
  • 上海建网站开发公司山东聊城建设学校网站
  • 合作公司做网站东莞黄页网广告
  • asp网站建设教程西地那非的作用与功效
  • flash网站php源码网站优化 图片
  • 个人网站制作模板主页软件设计师考试
  • 舞钢网站建设平面设计接单价格表
  • 做淘宝的网站的多少钱官方网站建设情况说明
  • 成都哪家做网站的最好网站开发教程大全
  • 响应式网站建设服务器深圳网站建设top028
  • 门户网站标题居中加大设计公司介绍
  • 网站建设管理风险超变传奇手游刀刀切割无会员散人
  • 做蛋糕需要建议网站不提供手机网站建设推荐
  • 晋城网站建设网站wordpress手机模版
  • 在服务器上部署网站电商产品开发流程
  • 二道江网站建设未备案网站 赚钱
  • 泰安企业公司什么叫做seo
  • 宣传部网站建设方案wordpress 外部链接
  • wordpress cms下载地址seo监控系统