answer.wxml
1.1 KB
<view class="answer" wx:for="{{list}}" wx:for-index="index">
<view class="answer_left" wx:if="{{item.id<9}}" >0{{item.id}}</view>
<view class="answer_left" wx:else >{{item.id}}</view>
<view class="answer_right">
<view class="answer_question">{{item.title}}</view>
<radio-group bindchange="radioChange">
<view class="flexs" wx:for="{{item.options_array}}" wx:for-index="idx" wx:for-item="second">
<view class="answer_answer">
<radio value="{{second+','+index}}" checked='' >{{second}}</radio>
</view>
<!-- <view class="answer_answer">
<radio>有一颗高尚的心</radio>
</view>
<view class="answer_answer">
<radio>有一颗高尚的心</radio>
</view>
<view class="answer_answer">
<radio>有一颗高尚的心</radio>
</view> -->
</view>
</radio-group>
</view>
</view>
<view class="shengqin">
<button bindtap="getcomfirm" >确认</button>
</view>