提交 d3404d85 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新image、navigator示例

上级 b2c19f78
<template> <template>
<!-- #ifdef APP -->
<scroll-view style="flex: 1;"> <scroll-view style="flex: 1;">
<!-- #endif -->
<page-head :title="title"></page-head> <page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<!-- <view class="uni-title"> <!-- <view class="uni-title">
...@@ -24,7 +26,9 @@ ...@@ -24,7 +26,9 @@
</view> </view>
</view> --> </view> -->
</view> </view>
<!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif -->
</template> </template>
<script> <script>
......
<template> <template>
<!-- #ifdef APP -->
<scroll-view style="flex: 1;"> <scroll-view style="flex: 1;">
<!-- #endif -->
<page-head :title="title"></page-head> <page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<view class="uni-title"> <view class="uni-title">
...@@ -21,7 +23,9 @@ ...@@ -21,7 +23,9 @@
</view> </view>
</view> </view>
</view> </view>
<!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif -->
</template> </template>
<script> <script>
......
<template> <template>
<view> <page-head :title="title"></page-head>
<page-head :title="title"></page-head>
</view>
</template> </template>
<script> <script>
...@@ -12,4 +10,4 @@ ...@@ -12,4 +10,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
<template> <template>
<view> <page-head :title="title"></page-head>
<page-head :title="title"></page-head> <view class="uni-padding-wrap uni-common-mt">
<view class="uni-padding-wrap uni-common-mt"> <navigator class="navigator navigate" url="navigate?title=navigate">
<navigator class="navigator navigate" url="navigate?title=navigate"> <button type="default">跳转到新页面</button>
<button type="default">跳转到新页面</button> </navigator>
</navigator> <navigator class="navigator redirect" url="redirect?title=redirect" open-type="redirect">
<navigator class="navigator redirect" url="redirect?title=redirect" open-type="redirect"> <button type="default">在当前页打开</button>
<button type="default">在当前页打开</button> </navigator>
</navigator>
</view>
</view> </view>
</template> </template>
...@@ -26,4 +24,4 @@ ...@@ -26,4 +24,4 @@
.navigator { .navigator {
margin-bottom: 15px; margin-bottom: 15px;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view> <page-head :title="title"></page-head>
<page-head :title="title"></page-head>
</view>
</template> </template>
<script> <script>
...@@ -12,4 +10,4 @@ ...@@ -12,4 +10,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册