createroom.wxml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <template name="itemroom">
  2. <view class="itemroom-item">
  3. <view class="itemroom-pic">
  4. <image src="{{pic}}"></image>
  5. </view>
  6. <view class="itemroom-text">
  7. <text class="name">{{name}}</text>
  8. </view>
  9. <view class="itemroom-operate">
  10. <view class="{{reduceclass}}" bindtap="reducenum" data-id="{{id}}">-</view>
  11. <view class="itemroom-num">{{currentNum}}</view>
  12. <view class="{{addclass}}" bindtap="addnum" data-max="{{max}}" data-id="{{id}}">+</view>
  13. </view>
  14. </view>
  15. </template>
  16. <view class="itemroom-container">
  17. <block wx:for="{{dataList}}" wx:key="item">
  18. <template is="itemroom" data="{{...item}}"></template>
  19. </block>
  20. </view>
  21. <view class="itemroom-bottom">
  22. <view class="itemroom-setting">
  23. <block wx:for="{{dataList}}" wx:key="item">
  24. <text wx:if="{{item.currentNum != 0}}">{{item.name}}{{item.currentNum}}人<text class="douhao">,</text></text>
  25. </block>
  26. </view>
  27. <view class="itemroom-total">
  28. <text>当前人数为{{total}}人</text>
  29. <text wx:if="{{total == 12}}">(标准局)</text>
  30. </view>
  31. <view class="itemroom-btn" bindtap="goToPlay">
  32. 创建房间
  33. </view>
  34. </view>