微信小程序点击navigator页面不跳转,页面不包含tabbar
发布于 6 年前 作者 jxie 13180 次浏览 来自 问答

<!–index.wxml–>

<view class=“container”>

  <block wx:for="{{items}}" wx:for-item=“item” wx:key=“index”>

    <view class=“checkpoint”>

      <navigator url="{{item.url}}"  open-type=“navigateTo” hover-class=“navigator-hover” class=“jump”>

        {{item.name}}

      </navigator>

    </view>

  </block>

</view>

//app.json

{

  “pages”: [

    “pages/index/index”,

    “pages/checkpoint1/checkpoint1”,

    “pages/checkpoint2/checkpoint2”,

    “pages/checkpoint3/checkpoint3”,

    “pages/checkpoint4/checkpoint4”,

    “pages/checkpoint5/checkpoint5”,

    “pages/checkpoint6/checkpoint6”,

    “pages/checkpoint7/checkpoint7”,

    “pages/checkpoint8/checkpoint8”,

    “pages/checkpoint9/checkpoint9”,

    “pages/checkpoint10/checkpoint10”,

    “pages/checkpoint11/checkpoint10”,

    “pages/checkpoint12/checkpoint12”

  ],

  “window”: {

    “backgroundTextStyle”: “light”,

    “navigationBarBackgroundColor”: “#fff”,

    “navigationBarTitleText”: “wx”,

    “navigationBarTextStyle”: “black”

  },

  “style”: “v2”,

  “sitemapLocation”: “sitemap.json”

}

1 回复

已经知道原因了,不用解答了,谢谢!

回到顶部