postdischarge-applet/unpackage/dist/dev/mp-weixin/pages/questionnaire/questionnaire.wxml
zhuangyuanke daf9159fca 1
2024-11-01 13:36:21 +08:00

1 line
5.5 KiB
Plaintext

<view class="content"><view class="app"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item"><view class="title">{{''+(item.m0+1)+"、"+item.$orig.questionName+''}}<block wx:if="{{item.$orig.questionType=='MULTIPLE_CHOICE'}}"><label class="_span">(单选题)</label></block><block wx:if="{{item.$orig.questionType=='MULTIPLE_CHOICE_QUESTIONS'}}"><label class="_span">(多选题)</label></block><block wx:if="{{item.$orig.questionType=='SCORING_QUESTIONS'}}"><label class="_span">(打分题)</label></block><block wx:if="{{item.$orig.questionType=='COMBINATION_RADIO_SUBJECT'}}"><label class="_span">(组合单选题)</label></block><block wx:if="{{item.$orig.questionType=='COMBINATION_MULTIPLE_SUBJECT'}}"><label class="_span">(组合多选题)</label></block><block wx:if="{{item.$orig.questionType=='COMBINATION_BLANKS_SUBJECT'}}"><label class="_span">(组合填空题)</label></block><block wx:if="{{item.$orig.questionType=='FILL_IN_THE_BLANKS'}}"><label class="_span">(填空题)</label></block><block wx:if="{{item.$orig.questionType=='COMBINATION_SCORING_SUBJECT'}}"><label class="_span">(组合打分题)</label></block><block wx:if="{{item.$orig.questionType=='DATE_BLANKS_SUBJECT'}}"><label class="_span">(日期填空题)</label></block><block wx:if="{{item.$orig.questionType=='TIME_BLANKS_SUBJECT'}}"><label class="_span">(时间填空题)</label></block></view><block wx:if="{{item.$orig.questionType=='MULTIPLE_CHOICE'||item.$orig.questionType=='COMBINATION_RADIO_SUBJECT'||item.$orig.questionType=='SCORING_QUESTIONS'||item.$orig.questionType=='COMBINATION_SCORING_SUBJECT'}}"><u-radio-group bind:change="__e" bind:input="__e" vue-id="{{'1b843410-1-'+index}}" value="{{item.$orig.checked}}" data-event-opts="{{[['^change',[['radioGroupChange',['$event','$0'],[[['questiondata.questionSubjectList','',index]]]]]],['^input',[['__set_model',['$0','checked','$event',[]],[[['questiondata.questionSubjectList','',index]]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{item.$orig.questionSubjectOptionList}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><u-radio vue-id="{{('1b843410-2-'+index+'-'+aindex)+','+('1b843410-1-'+index)}}" name="{{aitem.id}}" data-event-opts="{{[['^change',[['radioChange',['$event','$0',index],[[['questiondata.questionSubjectList','',index],['questionSubjectOptionList','',aindex]]]]]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}">{{''+aitem.optionName+''}}</u-radio></block></u-radio-group></block><block wx:if="{{item.$orig.questionType=='MULTIPLE_CHOICE_QUESTIONS'||item.$orig.questionType=='COMBINATION_MULTIPLE_SUBJECT'}}"><u-checkbox-group vue-id="{{'1b843410-3-'+index}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{item.$orig.questionSubjectOptionList}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><u-checkbox vue-id="{{('1b843410-4-'+index+'-'+aindex)+','+('1b843410-3-'+index)}}" name="{{aitem.id}}" value="{{aitem.checked}}" data-event-opts="{{[['^change',[['radioChangecheck',['$event','$0',index,aindex],[[['questiondata.questionSubjectList','',index],['questionSubjectOptionList','',aindex]]]]]],['^input',[['__set_model',['$0','checked','$event',[]],[[['questiondata.questionSubjectList','',index],['questionSubjectOptionList','',aindex]]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}">{{aitem.optionName}}</u-checkbox></block></u-checkbox-group></block><block wx:if="{{item.$orig.questionType=='FILL_IN_THE_BLANKS'||item.$orig.questionType=='COMBINATION_BLANKS_SUBJECT'}}"><view><u-input bind:input="__e" vue-id="{{'1b843410-5-'+index}}" placeholder="请输入" type="textarea" height="{{100}}" customStyle="{{({lineHeight:'30px'})}}" placeholder-style="color: #8E8E8E" value="{{item.$orig.fillBlanksAnswer}}" data-event-opts="{{[['^input',[['__set_model',['$0','fillBlanksAnswer','$event',[]],[[['questiondata.questionSubjectList','',index]]]]]]]}}" bind:__l="__l"></u-input></view></block><block wx:if="{{item.$orig.questionType=='DATE_BLANKS_SUBJECT'}}"><view data-event-opts="{{[['tap',[['showtap',[index]]]]]}}" class="datatime" bindtap="__e"><block wx:if="{{!item.$orig.fillBlanksAnswer}}"><text>请选择出生日期</text></block><block wx:else><text class="testitem">{{item.$orig.fillBlanksAnswer}}</text></block><image src="/static/huijiantou.png" mode></image></view></block><block wx:if="{{item.$orig.questionType=='TIME_BLANKS_SUBJECT'}}"><view data-event-opts="{{[['tap',[['showtimetap',[index]]]]]}}" class="datatime" bindtap="__e"><block wx:if="{{!item.$orig.fillBlanksAnswer}}"><text>请选择时间</text></block><block wx:else><text class="testitem">{{item.$orig.fillBlanksAnswer}}</text></block><image src="/static/huijiantou.png" mode></image></view></block><u-calendar vue-id="{{'1b843410-6-'+index}}" value="{{show}}" mode="{{mode}}" data-event-opts="{{[['^change',[['change',['$event']]]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-calendar><u-picker vue-id="{{'1b843410-7-'+index}}" mode="time" value="{{showtime}}" params="{{params}}" data-event-opts="{{[['^confirm',[['Changepicker',['$event']]]],['^input',[['__set_model',['','showtime','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-picker></view></block><view data-event-opts="{{[['tap',[['updata',['$event']]]]]}}" class="btns" bindtap="__e">提交</view></view><u-toast class="vue-ref" vue-id="1b843410-8" data-ref="uToast" bind:__l="__l"></u-toast></view>