home.wxml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/home/home.wxml-->
  2. <view>
  3. <headers></headers>
  4. <!-- 表单绑定 -->
  5. <input type="text" class="inp" value="{{users}}" bindinput="handleInput" />
  6. <!-- <input type="radio"/> -->
  7. <radio-group bindchange="handleChange">
  8. <radio value="man" />男
  9. <radio value="woman" />女
  10. </radio-group>
  11. <!-- <checkbox-group bindchange="">
  12. <checkbox value=""/>
  13. </checkbox-group> -->
  14. <view class="names">我叫:{{name}}</view>
  15. <button bind:tap="handleChange">修改</button>
  16. <view wx:for="{{list}}" wx:key="index">
  17. <view>我叫{{item.name}},我使用{{item.desc}}</view>
  18. </view>
  19. <view>
  20. <view>当前分数:{{score}}</view>
  21. <view wx:if="{{score < 60}}">不及格</view>
  22. <view wx:elif="{{score < 80}}">及格</view>
  23. <view wx:elif="{{score < 90}}">良好</view>
  24. <view wx:else>优秀</view>
  25. </view>
  26. <button bind:tap="handleScore" class="btn">修改分数</button>
  27. <!-- home -->
  28. <template name="aaa">
  29. <view>姓名:{{names}}</view>
  30. </template>
  31. </view>
  32. <view class="box" bind:tap="handleBox">
  33. <view class="box1" catch:tap="handleBox1"> </view>
  34. </view>
  35. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
  36. <block wx:for="{{background}}" wx:key="*this">
  37. <swiper-item>
  38. <view class="swiper-item {{item}}"></view>
  39. </swiper-item>
  40. </block>
  41. </swiper>
  42. <view class="page-section-spacing">
  43. <scroll-view class="scroll-view_H" scroll-x="true" bindscroll="scroll" style="width: 100%">
  44. <view id="demo1" class="scroll-view-item_H demo-1"></view>
  45. <view id="demo2" class="scroll-view-item_H demo-2"></view>
  46. <view id="demo3" class="scroll-view-item_H demo-3"></view>
  47. </scroll-view>
  48. </view>