|
@@ -1,6 +1,8 @@
|
|
|
<!--pages/home/home.wxml-->
|
|
|
<view>
|
|
|
-<!-- tap click -->
|
|
|
+ <!-- 跳转非tabbar页 类似于a标签 -->
|
|
|
+ <navigator url="/pages/detail/detail">去列表</navigator>
|
|
|
+ <!-- tap click -->
|
|
|
<text class="title" bind:tap="showHi">首页</text>
|
|
|
<!-- 模版渲染 -->
|
|
|
<view>今天是{{day}}</view>
|
|
@@ -12,11 +14,11 @@
|
|
|
<!-- @click v-bind:click -->
|
|
|
<button class="main" catch:tap='showHello'>你好</button>
|
|
|
<!-- bindconfirm bindtap bindInput -->
|
|
|
- <input type="text" bindinput="handleInp" />
|
|
|
+ <input type="text" bindinput="handleInp" />
|
|
|
<view class="box1" bind:tap="showMain1">
|
|
|
<view class="box2" catch:tap="showMain2"></view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<template name="hi">
|
|
|
<text>hello,今天星期日</text>
|
|
|
<view>成绩:{{score}}</view>
|