| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!--pages/home/home.wxml-->
- <view>
- <navigator url="/pages/detail/detail">详情</navigator>
- <button bind:tap="handleJump" class="btn">跳转</button>
- <headers></headers>
- <button bind:tap="handleShow" class="btn">展示</button>
- <!-- 表单绑定 -->
- <input type="text" class="inp" value="{{users}}" bindinput="handleInput" />
- <!-- <input type="radio"/> -->
- <radio-group bindchange="handleChange">
- <radio value="man" />男
- <radio value="woman" />女
- </radio-group>
- <button bind:tap="handleRead" class="btn">读取</button>
- <!-- <checkbox-group bindchange="">
- <checkbox value=""/>
- </checkbox-group> -->
- <van-button type="default">默认按钮</van-button>
- <van-button type="primary">主要按钮</van-button>
- <van-button type="info">信息按钮</van-button>
- <van-button type="warning">警告按钮</van-button>
- <van-button type="danger">危险按钮</van-button>
- <view class="names">我叫:{{name}}</view>
- <button bind:tap="handleChange">修改</button>
- <view wx:for="{{list}}" wx:key="index">
- <view bind:tap="goDetail" data-id="{{item.id}}">{{item.id}}.我叫{{item.name}},我使用{{item.desc}}</view>
- </view>
- <view>
- <view>当前分数:{{score}}</view>
- <view wx:if="{{score < 60}}">不及格</view>
- <view wx:elif="{{score < 80}}">及格</view>
- <view wx:elif="{{score < 90}}">良好</view>
- <view wx:else>优秀</view>
- </view>
- <button bind:tap="handleScore" class="btn">修改分数</button>
- <!-- home -->
- <template name="aaa">
- <view>姓名:{{names}}</view>
- </template>
- </view>
- <view class="box" bind:tap="handleBox">
- <view class="box1" catch:tap="handleBox1"> </view>
- </view>
- <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
- <block wx:for="{{background}}" wx:key="*this">
- <swiper-item>
- <view class="swiper-item {{item}}"></view>
- </swiper-item>
- </block>
- </swiper>
- <view class="page-section-spacing">
- <scroll-view class="scroll-view_H" scroll-x="true" bindscroll="scroll" style="width: 100%">
- <view id="demo1" class="scroll-view-item_H demo-1"></view>
- <view id="demo2" class="scroll-view-item_H demo-2"></view>
- <view id="demo3" class="scroll-view-item_H demo-3"></view>
- </scroll-view>
- </view>
|