123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <!--pages/open/open.wxml-->
- <import src="../../modal/dialogRoom.wxml" />
- <text class="o-desc">奖励赛玩法:答得越快、答对越多,奖金越多</text>
- <form bindsubmit="open">
- <view class="o-body">
- <block wx:for="{{array}}" wx:key="id">
- <view class="content">
- <text class="label">{{item.rname}}</text>
- <input type="{{item.itype}}" name="{{item.name}}" placeholder="{{item.placeholder}}" placeholder-class="placeholder-default" bindinput="{{item.func}}"></input>
- <text wx:if="{{item.unit != null}}" class="unit">{{item.unit}}</text>
- </view>
- </block>
- </view>
- <view class="o-question">
- <text class="title">系统已为你选好8道题目</text>
- <text class="re" bindtap="getAgain">重新获取</text>
- <swiper class="main" next-margin="50rpx" previous-margin="40rpx">
- <block wx:for="{{questions}}" wx:key="index">
- <swiper-item class="frame" item-id="{{item.questionId}}">
- <view class="top">
- <text class="left">{{item.tagName}}</text>
- <image src="../../resource/open_book.png"></image>
- <text class="right" id="{{index}}" bindtap="changeQuestion">{{item.question != null ? '换一题' : ''}}</text>
- </view>
- <view class="bottom">
- <text>{{index + 1}}、{{item.question}}</text>
- <view hidden="{{item.question != null}}">
- <view></view>
- <view></view>
- <view></view>
- </view>
- </view>
- </swiper-item>
- </block>
- </swiper>
- </view>
- <button class="open-btn" form-type="submit">开启问答房间</button>
- <text class="o-tip">需邀请好友60秒内加入,未被领取奖金将退回</text>
- </form>
- <template is="dialogRoom" data="{{...dialogRoom}}" />
- <view class="dialog" catchtouchmove="wxvoid" hidden="{{dialogTag.hidden}}">
- <view class="dialog-main">
- <view class="dialog-body-tag">
- <text class="title">请选择题目兴趣标签</text>
- <text class="sub-title">系统将会根据你的题目兴趣标签,筛选对应的8道题哦</text>
- <view class="tag">
- <block wx:for="{{sTags}}" wx:key="id">
- <text wx:if="{{(index + 1) % 3 == 0}}" class="last {{item.selected ? 'ed': ''}} {{(!item.selected && isOtherInvalid) ? 'invalid' : ''}}" bindtap="selectTag" id="{{index}}">#{{item.name}}</text>
- <text wx:else bindtap="selectTag" class="{{item.selected ? 'ed':''}} {{(!item.selected && isOtherInvalid) ? 'invalid' : ''}}" id="{{index}}">#{{item.name}}</text>
- </block>
- </view>
- <button bindtap="getQuestionsByTag">确定</button>
- </view>
- <image src="../../resource/ic_close.png" class="dialog-close" bindtap="hideTagDialog"></image>
- </view>
- </view>
|