answer-question.wxml 5.3 KB
<!--pages/index/answer-question/answer-question.wxml-->
<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&&current_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&&current_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':'D'}}. {{item.answer}}{{item.checked}}</text>
                                <radio value="{{index}}" checked="{{item.checked}}" color='#fff'/>
                            </label>
                        </radio-group>
                <!--<checkbox-group class="section" bindchange="radioChange">-->
                    <!--<label class="radio" wx:for="{{item.content}}" wx:key="index" bindtap="chooseAnswer"-->
                           <!--data-score="{{item.score}}" data-sindex="{{index}}">-->
                        <!--<text class="{{item.checked?'active':''}}">{{index+1 === 1?'A':index+1 === 2?'B':index+1 ===-->
                            <!--3?'C':'D'}}. {{item.answer}}{{item.checked}}-->
                        <!--</text>-->
                        <!--<checkbox value="{{index}}" checked="{{item.checked}}" color='#fff'/>-->
                    <!--</label>-->
                <!--</checkbox-group>-->


                    <!--</view>-->
                <!--</view>-->

                <!--<view class="section"  bindtap="chooseAnswer" data-index="1">-->
                    <!--<text class="{{current===1?'active':''}}">B. 户外郊游或运动</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===1}}" class="img"></image>-->
                <!--</view>-->
                <!--<view class="section"  bindtap="chooseAnswer" data-index="2">-->
                    <!--<text class="{{current===2?'active':''}}">C. 朋友小聚,聚餐嗨皮</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===2}}" class="img"></image>-->

                <!--</view>-->
                <!--<view class="section"  bindtap="chooseAnswer" data-index="3">-->
                    <!--<text class="{{current===3?'active':''}}">D. 看展看演出/上课进修自我提升/参加活动认识新朋友</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===3}}" class="img"></image>-->
                <!--</view>-->
            </view>
            <!--<view class="question-item">-->
                <!--<view class="question">1. 周末更乐意选择哪种休闲方式?</view>-->
                <!--<view class="section" bindtap="chooseAnswer" data-index="0">-->
                    <!--<text class="{{current===0?'active':''}}">A. 宅家补觉,看书看片</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===0}}" class="img"></image>-->
                <!--</view>-->
                <!--<view class="section"  bindtap="chooseAnswer" data-index="1">-->
                    <!--<text class="{{current===1?'active':''}}">B. 户外郊游或运动</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===1}}" class="img"></image>-->
                <!--</view>-->
                <!--<view class="section"  bindtap="chooseAnswer" data-index="2">-->
                    <!--<text class="{{current===2?'active':''}}">C. 朋友小聚,聚餐嗨皮</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===2}}" class="img"></image>-->

                <!--</view>-->
                <!--<view class="section"  bindtap="chooseAnswer" data-index="3">-->
                    <!--<text class="{{current===3?'active':''}}">D. 看展看演出/上课进修自我提升/参加活动认识新朋友</text>-->
                    <!--<image src="../../../images/choose@2x.png" wx:if="{{current===3}}" class="img"></image>-->
                <!--</view>-->
            <!--</view>-->
        </view>
    </view>

    <view class="btn" bindtap="submit">
        <text>提交</text>
    </view>
</view>