|
|
@@ -1,13 +1,23 @@
|
|
|
<!--pages/home/home.wxml-->
|
|
|
<view>
|
|
|
-<headers></headers>
|
|
|
+ <headers></headers>
|
|
|
+ <!-- 表单绑定 -->
|
|
|
+ <input type="text" class="inp" value="{{users}}" bindinput="handleInput" />
|
|
|
+ <!-- <input type="radio"/> -->
|
|
|
+ <radio-group bindchange="handleChange">
|
|
|
+ <radio value="man" />男
|
|
|
+ <radio value="woman" />女
|
|
|
+ </radio-group>
|
|
|
+ <!-- <checkbox-group bindchange="">
|
|
|
+ <checkbox value=""/>
|
|
|
+</checkbox-group> -->
|
|
|
<view class="names">我叫:{{name}}</view>
|
|
|
<button bind:tap="handleChange">修改</button>
|
|
|
<view wx:for="{{list}}" wx:key="index">
|
|
|
<view>我叫{{item.name}},我使用{{item.desc}}</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <view>当前分数:{{score}}</view>
|
|
|
+ <view>当前分数:{{score}}</view>
|
|
|
<view wx:if="{{score < 60}}">不及格</view>
|
|
|
<view wx:elif="{{score < 80}}">及格</view>
|
|
|
<view wx:elif="{{score < 90}}">良好</view>
|
|
|
@@ -21,6 +31,23 @@
|
|
|
</template>
|
|
|
</view>
|
|
|
|
|
|
-<view class="box" bind:tap="handleBox">
|
|
|
+<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>
|