suruigit / wxapp-customtabbar Goto Github PK
View Code? Open in Web Editor NEWcustom tabbar for wxapp
custom tabbar for wxapp
.special-wrapper{ display: flex; flex-direction: column; justify-content: center; align-items: center; position: absolute; /* left: 74rpx; */ top: -36rpx; width: 120rpx; height: 120rpx; border-radius: 50%; border-top: 2rpx solid #f2f2f3; background-color: #fff; text-align: center; box-sizing: border-box; padding: 6rpx; }
你这段样式中中间的距左偏离74rpx在我这边没法居中,注释掉可以居中,请问当初开发时为什么需要加这个left
另外现在iPhone x不用加特殊处理了,我去掉Iphone x的特殊处理反而正常了,否则变形无法显示图片。
在tabbar页面时,点击当前页面的tabbar,页面也会重新加载,跳转点击事件需要加限制
let currentPages = getCurrentPages();
let _this = currentPages[currentPages.length - 1];
let pagePath = _this.route;
const { url = '' } = e.currentTarget.dataset
if ('/'+pagePath===url)
return
同时,重新点击每个tabbar页面都会闪烁一下,可以看看官网的自定义tabbar,但是都不可避免需要隐藏默认的tabbar,在模拟器上会出现明显的两次加载tabbar的变化,真机上不太明显。
很感谢您的思路!
我按照您的项目主页的步骤,以及其他站点的讲解之后,编译时出现了以下的问题
thirdScriptError Cannot read property 'list' of undefined;at App editTabbar function TypeError: Cannot read property 'list' of undefined
还麻烦请教一下您点拨一下,谢谢了。
此外还有以下的疑问:
wxapp-customTabbar/tabbarDemo/app.js
Line 53 in 09106f1
wxapp-customTabbar/tabbarDemo/app.js
Line 65 in 09106f1
tabbar
还是tabBar
呢?打扰了,再次感谢您。
回到首页,会出现两个tabbar了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.