收藏
回答

小程序页面加载不出来问题

WAService.js:13 switchTab before pages are registered.


"pages": [

"pages/index/index",

"pages/goodType/goodtype",

"pages/find/find",

"pages/shopCart/cartList",

"pages/self/selfMsg",

"pages/login/login",

"pages/goodList/goodlist",

"pages/good/good",

"pages/self/address/address",

"pages/self/address/addressEdit/addressEdit",

"pages/order/order",

"pages/myorder/myorder",

"pages/findone/findone",

"pages/order/orderpay/orderpay",

"pages/order/orderdetail/orderdetail"

],

"tabBar": {

"backgroundColor": "#fff",

"borderStyle": "black",

"color": "#666666",

"selectedColor": "#666666",

"list": [

{

"pagePath": "pages/index/index",

"text": "首页",

"iconPath": "images/home.png",

"selectedIconPath": "images/home_fill.png"

},

{

"pagePath": "pages/goodType/goodtype",

"text": "品牌",

"iconPath": "images/type.png",

"selectedIconPath": "images/type_fill.png"

},

{

"pagePath": "pages/find/find",

"text": "发现",

"iconPath": "images/safari.png",

"selectedIconPath": "images/safari_fill.png"

},

{

"pagePath": "pages/shopCart/cartList",

"text": "购物车",

"iconPath": "images/cart.png",

"selectedIconPath": "images/cart_fill.png"

},

{

"pagePath": "pages/self/selfMsg",

"text": "我的",

"iconPath": "images/my.png",

"selectedIconPath": "images/my_fill.png"

}

]

},

编译的时候经常出现这个提示  然后所有的页面都加载不出来的

回答关注问题邀请回答
收藏

2 个回答

  • NPC
    NPC
    2020-06-21

    我的wx.switchTab跳转就会黑屏,去掉tabBar 改用wx.redirectTo就正常

    2020-06-21
    有用
    回复
  • Alex
    Alex
    2018-01-02

    bug  又换回老版本了

    2018-01-02
    有用
    回复
登录 后发表内容