room.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!--pages/room/room.wxml-->
  2. <view class="room-top">
  3. <view class="room-top-pic">
  4. <image src="{{userInfo.avatarUrl}}"></image>
  5. </view>
  6. <view class="room-top-info">
  7. <view class="room-top-name">{{userInfo.nickName}}</view>
  8. <view class="room-top-card">
  9. <text>您的身份是 </text>
  10. <text class="card">法官</text>
  11. </view>
  12. </view>
  13. <view class="room-top-operate">
  14. <view class="room-top-share" bindtap="sharePage">
  15. <image src="./images/share.png"></image>
  16. </view>
  17. <view class="room-top-qrcode" bindtap="showQrcodeModal">
  18. <image src="./images/qrcode.png"></image>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="room-mid">
  23. <view class="room-mid-title">
  24. 游戏流程
  25. </view>
  26. <view class="room-mid-content">
  27. <text>天黑请闭眼。</text>
  28. <text>狼人请睁眼。狼人请确认刀的对象。狼人请闭</text>
  29. <text>女巫请睁眼。女巫,你有一瓶毒药与一瓶解药,今天晚上他(她)死了,你要救他吗?你有一瓶毒药,你要毒死谁吗?女巫请闭眼。</text>
  30. <text>预言家请睁眼。预言家,今天晚上你要验谁的身份?如果这个是好</text>
  31. </view>
  32. </view>
  33. <view class="room-bottom">
  34. <block wx:for="{{[0,1,2,3,4,5,6,7,8,9,10,11]}}">
  35. <view class="room-bottom-item">
  36. <view class="room-bottom-pic">
  37. <image src="{{userInfo.avatarUrl}}"></image>
  38. </view>
  39. <view class="room-bottom-name">
  40. <text class="name">{{userInfo.nickName}}</text>
  41. </view>
  42. <view class="room-bottom-card">
  43. <text class="card">平民</text>
  44. </view>
  45. </view>
  46. </block>
  47. </view>
  48. <view class="room-modal" hidden="{{isHide}}">
  49. <view class="room-modal-content">
  50. <view class="room-modal-title">
  51. 扫码进入房间
  52. </view>
  53. <view class="room-modal-pic">
  54. <image src="./images/qrcode-demo.png"></image>
  55. </view>
  56. </view>
  57. <view class="room-modal-close" bindtap="hideQrcodeModal">
  58. <image src="./images/close.png"></image>
  59. </view>
  60. </view>