本文為大家分享了微信小程序?qū)崿F(xiàn)多選功能的具體代碼,供大家參考,具體內(nèi)容如下
代碼:
<!--hotblood_gongkao/pages/answer/answer.wxml--> <!-- content --> <view class='answer-list'> <view class='answer-child'> <text class='answer-title'><text style='margin-right:28rpx;'>{{num + 1}}/{{quesyion.length}}</text>{{question[num][0]}}</text> <view class='answer-options'> <view class="options {{selectIndex[0].sureid?'select':''}}" data-index='{{idx}}1' data-text='A' bindtap="{{whether?'':'selectAnswer'}}"> <image class="dui {{selectIndex[0].sureid?'dui2':''}}" src='../../images/icon-dui.png' /> <text><text style='margin-right:36rpx;'> A </text>{{question[num][1]}}</text> </view> <view class="options {{selectIndex[1].sureid?'select':''}}" data-index='{{idx}}2' data-text='B' bindtap="{{whether?'':'selectAnswer'}}"> <image class="dui {{selectIndex[1].sureid?'dui2':''}}" src='../../images/icon-dui.png' /> <text><text style='margin-right:36rpx;'> B </text>{{question[num][2]}}</text> </view> <view class="options {{selectIndex[2].sureid?'select':''}}" data-index='{{idx}}3' data-text='C' bindtap="{{whether?'':'selectAnswer'}}"> <image class="dui {{selectIndex[2].sureid?'dui2':''}}" src='../../images/icon-dui.png' /> <text><text style='margin-right:36rpx;'> C </text>{{question[num][3]}}</text> </view> <view class="options {{selectIndex[3].sureid?'select':''}}" data-index='{{idx}}4' data-text='D' bindtap="{{whether?'':'selectAnswer'}}"> <image class="dui {{selectIndex[3].sureid?'dui2':''}}" src='../../images/icon-dui.png' /> <text><text style='margin-right:36rpx;'> D </text>{{question[num][4]}}</text> </view> </view> </view> <view class="answer {{isWan?'isShow':'isHide'}}"> <text>正確答案{{question[num][3]}}</text> </view> <view class="subBtn {{isque?'isShow':'isHide'}}" bindtap='confirm'> <text>確定</text> </view> <view class="subBtn {{isOne?'isHide':'isShow'}}" bindtap='next'> <text>{{con}}</text> </view> <view class="subBtn {{iswancheng?'isShow':'isHide'}}" bindtap='submit'> <text>提交答卷</text> </view> </view>
本文標(biāo)題:微信小程序?qū)崿F(xiàn)多選功能-創(chuàng)新互聯(lián)
網(wǎng)頁路徑:http://www.rwnh.cn/article44/cehsee.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁設(shè)計公司、靜態(tài)網(wǎng)站、電子商務(wù)、網(wǎng)站導(dǎo)航、商城網(wǎng)站、軟件開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容