navigator.uvue 629 字节
Newer Older
1 2 3 4 5
<template>
  <view>
    <page-head :title="title"></page-head>
    <view class="uni-padding-wrap uni-common-mt">
      <navigator class="navigator" url="navigate?title=navigate">
6
        <button type="default">跳转到新页面</button>
7 8
      </navigator>
      <navigator class="navigator" url="redirect?title=redirect" open-type="redirect">
9
        <button type="default">在当前页打开</button>
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
      </navigator>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        title: 'navigator'
      }
    }
  }
</script>

<style>
  .navigator {
27
    margin-bottom: 15px;
28 29
  }
</style>