Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.js中配置tabBar,H5端打包后访问位置错误 #4304

Closed
useryechen opened this issue Aug 27, 2019 · 1 comment
Closed

app.js中配置tabBar,H5端打包后访问位置错误 #4304

useryechen opened this issue Aug 27, 2019 · 1 comment
Labels
A-components Area - H5 组件库相关 T-h5 Target - 编译到 H5 V-1 Version - 1.x

Comments

@useryechen
Copy link

问题描述
在首页app.js中的tabBar中配置好内容,在PC端模拟访问没问题。打包部署后用手机浏览器访问,小米自带浏览器,UC浏览器都没有问题。但是同事用oppoR11自带浏览器访问tabBar位置不对

image

config = {
    pages: [
      'pages/index/index',
      'pages/course/index',
      'pages/user/index',
      'pages/courseList/index',
      'pages/login/index',
      'pages/regist/index',
      'pages/forget/index',
      'pages/forget/components/next/index',
      'pages/user/components/personal/index',
      'pages/user/components/updateName/index',
      'pages/user/components/changePass/index',
      'pages/order/index',
      'pages/order/components/orderDetails/index',
      'pages/timeTable/index',
      'pages/courseDetails/index',
      'pages/search/index',
      'pages/payment/index',
      'pages/payment/components/result/index',
      'pages/protocol/index'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      // navigationBarTitleText: '松知在线',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: '#666',
      selectedColor: '#0780EC',
      borderStyle: 'black',
      list: [{
        pagePath: "pages/index/index",
        iconPath: "./assets/images/tab_bar/home@2x.png",
        selectedIconPath: "./assets/images/tab_bar/home_active@2x.png",
        text: "首页"
      }, {
        pagePath: "pages/course/index",
        iconPath: "./assets/images/tab_bar/course@2x.png",
        selectedIconPath: "./assets/images/tab_bar/course_active@2x.png",
        text: "选课"
      }, {
        pagePath: "pages/courseList/index",
        iconPath: "./assets/images/tab_bar/my_course@2x.png",
        selectedIconPath: "./assets/images/tab_bar/my_course_active@2x.png",
        text: "听课"
      }, {
        pagePath: "pages/user/index",
        iconPath: "./assets/images/tab_bar/user@2x.png",
        selectedIconPath: "./assets/images/tab_bar/user_active@2x.png",
        text: "个人"
      }]
    }
  }

// 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间。
// 代码提供不全或代码格式混乱的 issues 【有可能被忽略】,烦请各位注意。


**期望行为**
[正常显示]

**报错信息**

[这里请贴上你的**完整**报错截图或文字]

**系统信息**
> Taro v1.2 及以上版本已添加 `taro info` 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。

 - 操作系统: [e.g. 安卓]
 - Taro 版本 [e.g. v.1.3.9]
 - Node.js 版本 [e.g. v10.16.0]
 - 报错平台 [h5]

**补充信息**
[可选]
[不同机型的适配可能有问题,或是浏览器的内核解析问题]
@taro-bot
Copy link

taro-bot bot commented Aug 27, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-components Area - H5 组件库相关 T-h5 Target - 编译到 H5 V-1 Version - 1.x
Projects
Archived in project
Development

No branches or pull requests

2 participants