Git Product home page Git Product logo

wxapp-customtabbar's Issues

.special-wrapper样式中为什么要加left:74rpx; 与IPhone x的显示

.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: TypeError: Cannot read property 'list' of undefined

很感谢您的思路!

我按照您的项目主页的步骤,以及其他站点的讲解之后,编译时出现了以下的问题
thirdScriptError Cannot read property 'list' of undefined;at App editTabbar function TypeError: Cannot read property 'list' of undefined
还麻烦请教一下您点拨一下,谢谢了。

此外还有以下的疑问:

  1. 该处
    (pagePath.indexOf('/') != 0) && (pagePath = '/' + pagePath);
    https://blog.csdn.net/dt1991524/article/details/82699682 中的if语句不一样。到底应该如何使用呢?
  2. 此处 应该是写tabbar还是tabBar呢?
  3. 可以分享一下您自定义navBar的代码吗?因为我也想左上角实现页面的后退。

打扰了,再次感谢您。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.