open.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--pages/open/open.wxml-->
  2. <import src="../../modal/dialogRoom.wxml" />
  3. <text class="o-desc">奖励赛玩法:答得越快、答对越多,奖金越多</text>
  4. <form bindsubmit="open">
  5. <view class="o-body">
  6. <block wx:for="{{array}}" wx:key="id">
  7. <view class="content">
  8. <text class="label">{{item.rname}}</text>
  9. <input type="{{item.itype}}" name="{{item.name}}" placeholder="{{item.placeholder}}" placeholder-class="placeholder-default" bindinput="{{item.func}}"></input>
  10. <text wx:if="{{item.unit != null}}" class="unit">{{item.unit}}</text>
  11. </view>
  12. </block>
  13. </view>
  14. <view class="o-question">
  15. <text class="title">系统已为你选好8道题目</text>
  16. <text class="re" bindtap="getAgain">重新获取</text>
  17. <swiper class="main" next-margin="50rpx" previous-margin="40rpx">
  18. <block wx:for="{{questions}}" wx:key="index">
  19. <swiper-item class="frame" item-id="{{item.questionId}}">
  20. <view class="top">
  21. <text class="left">{{item.tagName}}</text>
  22. <image src="../../resource/open_book.png"></image>
  23. <text class="right" id="{{index}}" bindtap="changeQuestion">{{item.question != null ? '换一题' : ''}}</text>
  24. </view>
  25. <view class="bottom">
  26. <text>{{index + 1}}、{{item.question}}</text>
  27. <view hidden="{{item.question != null}}">
  28. <view></view>
  29. <view></view>
  30. <view></view>
  31. </view>
  32. </view>
  33. </swiper-item>
  34. </block>
  35. </swiper>
  36. </view>
  37. <button class="open-btn" form-type="submit">开启问答房间</button>
  38. <text class="o-tip">需邀请好友60秒内加入,未被领取奖金将退回</text>
  39. </form>
  40. <template is="dialogRoom" data="{{...dialogRoom}}" />
  41. <view class="dialog" catchtouchmove="wxvoid" hidden="{{dialogTag.hidden}}">
  42. <view class="dialog-main">
  43. <view class="dialog-body-tag">
  44. <text class="title">请选择题目兴趣标签</text>
  45. <text class="sub-title">系统将会根据你的题目兴趣标签,筛选对应的8道题哦</text>
  46. <view class="tag">
  47. <block wx:for="{{sTags}}" wx:key="id">
  48. <text wx:if="{{(index + 1) % 3 == 0}}" class="last {{item.selected ? 'ed': ''}} {{(!item.selected && isOtherInvalid) ? 'invalid' : ''}}" bindtap="selectTag" id="{{index}}">#{{item.name}}</text>
  49. <text wx:else bindtap="selectTag" class="{{item.selected ? 'ed':''}} {{(!item.selected && isOtherInvalid) ? 'invalid' : ''}}" id="{{index}}">#{{item.name}}</text>
  50. </block>
  51. </view>
  52. <button bindtap="getQuestionsByTag">确定</button>
  53. </view>
  54. <image src="../../resource/ic_close.png" class="dialog-close" bindtap="hideTagDialog"></image>
  55. </view>
  56. </view>