answer-question.wxml
2.2 KB
<!--pages/index/answer-question/answer-question.wxml-->
<form bindsubmit="submit" bindreset="formReset" report-submit="true">
<view class="content">
<view class="title">加入会员答题卡</view>
<view class="tips">
我们将按照测试结果,对用户进行加入会员批次的分
类,更便利于大家结交到相似属性的伙伴。测试只能提
交一次,请按实际情况回答就好。
</view>
<view class="questions-box">
<view class="question-list">
<view class="question-item" wx:for="{{questionList}}" wx:key="index" wx:for-index="idx"
data-pindex="{{idx}}" bindtap="clickQuestion" data-choose="{{item.choose}}">
<view class="question">{{idx+1}}. {{item.title}}</view>
<!--<view wx:for="{{item.content}}" wx:key="index" bindtap="chooseAnswer" data-score="{{item.score}}" data-sindex="{{index}}">-->
<!--<view class="section">-->
<!--<text class="{{current_que===idx&¤t_ans===index?'active':''}}">{{index+1 === 1?'A':index+1 === 2?'B':index+1 === 3?'C':'D'}}. {{item.answer}}</text>-->
<!--<image src="../../../images/choose@2x.png" wx:if="{{current_que===idx&¤t_ans===index}}" class="img"></image>-->
<radio-group class="section" bindchange="radioChange" data-pindex="{{idx}}">
<label class="radio" wx:for="{{item.content}}" wx:key="index" bindtap="chooseAnswer"
data-score="{{item.score}}" data-sindex="{{index}}" data-pindex="{{idx}}">
<text class="{{item.checked?'active':''}}">{{index+1 === 1?'A':index+1 === 2?'B':index+1 === 3?'C':index+1 === 4?'D':index+1 === 5?'E':index+1 === 6?'F':index+1 === 7?'G':'H'}}. {{item.answer}}</text>
<radio value="{{index}}" checked="{{item.checked}}" color='#fff'/>
</label>
</radio-group>
</view>
</view>
</view>
<button class="btn" form-type="submit">
<text>提交</text>
</button>
</view>
</form>