From 1629cb4a35884cdbd52088377fffd37fca2c225e Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Mon, 23 Mar 2020 16:47:09 +0800 Subject: [PATCH] 123 --- SunshineLnsMinApp/pages/createSub/createSub.wxml | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/SunshineLnsMinApp/pages/createSub/createSub.wxml b/SunshineLnsMinApp/pages/createSub/createSub.wxml index 60fb792..8732d9b 100644 --- a/SunshineLnsMinApp/pages/createSub/createSub.wxml +++ b/SunshineLnsMinApp/pages/createSub/createSub.wxml @@ -6,32 +6,32 @@ <view class="question" wx:for="{{question.psqList}}" wx:key="{{index}}"> <view class="questionB"> <view class="questionT"> - <text wx:if="{{item.isMust == 1}}">*</text> {{index+1}}、{{item.question}} + <text wx:if="{{item.required == 'true'}}">*</text> {{index+1}}、{{item.title}} <view wx:if="{{confirm}}" catchtap="edit" data-index="{{index}}"> <!-- <icon class="iconfont icon-icon_edit"></icon> 修改 --> </view> </view> <view class="questionA"> - <!-- <radio-group class="radio-group" - wx:if="{{item.type == 1}}"> - <label class="radio" wx:for="{{item.answerslist}}" wx:key="{{index}}"> - <radio value="{{item.id}}"/>{{item.answer}} - </label> - </radio-group> --> - <wux-checkbox-group name="a" data-index="{{index}}" value="{{ item.value || [] }}" bind:change="onChange" wx:if="{{item.type == 1}}"> - <wux-checkbox color="positive" title="{{item.answer}}" value="{{item.answer}}" wx:for="{{item.answerslist}}" wx:key="{{index}}"> - {{item.answer}} + <wux-radio-group name="a" data-index="{{index}}" value="{{ item.value || [] }}" bind:change="onChange1" wx:if="{{item.type == 'radio'}}"> + <wux-radio color="positive" title="{{item}}" value="{{item}}" wx:for="{{item.options}}" wx:key="{{index}}"> + {{item}} + </wux-radio> + </wux-radio-group> + + <wux-checkbox-group name="a" data-index="{{index}}" value="{{ item.value || [] }}" bind:change="onChange" wx:if="{{item.type == 'checkbox'}}"> + <wux-checkbox color="positive" title="{{item}}" value="{{item}}" wx:for="{{item.options}}" wx:key="{{index}}"> + {{item}} </wux-checkbox> </wux-checkbox-group> - <view class="textarea" wx:if="{{item.type == 0}}"> + <view class="textarea" wx:if="{{item.type == 'text'}}"> <textarea placeholder="请输入回答" /> </view> </view> </view> </view> - <view class="question" wx:if="{{confirm}}"> + <!-- <view class="question" wx:if="{{confirm}}"> <view class="selectType"> <view class="toRadio" data-type="1" catchtap="toRadio"> <icon class="iconfont icon-guanbi"></icon> @@ -42,7 +42,7 @@ 填空题 </view> </view> - </view> + </view> --> <button class="btn" catchtap='submit' wx:if="{{confirm}}">提交</button> <button class="btn" catchtap='publish' wx:if="{{!confirm}}">确认发布</button> <button class="btn" catchtap='returnEdit' wx:if="{{!confirm}}">返回修改</button> -- Gitblit v1.8.0