|
- <template>
- <safe-area class="page">
- <view class="header">
- <text class="title">首页</text>
- </view>
- <view class="body">
- <button class="button_1" style="padding:6px 20px;border:1px solid #dfdfdf;border-radius:4px;background-color:#84f178ff;" onclick={this.jump2}>按钮</button>
- </view>
- </safe-area>
- </template>
- <script>
- export default {
- name: 'main',
- apiready() {},
- data() {
- return {
- msg: "Hello APICloud"
- };
- },
- methods: {
- jump(e) {
- api.openWin({
- name: "page2",
- url: "pages/third/second.stml"
- });
- },
- jump2(e) {
- api.openWin({
- name: "page2",
- url: "widget:pages/third/second.stml"
- });
- }
- }
- };
- </script>
复制代码 |
|