limingtao 11 months ago
commit 82a02c51ee
  1. 12
      pages/index/detail.vue

@ -93,7 +93,7 @@
> >
</view> </view>
<view <view
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0" v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1"
style="display: flex; flex-wrap: wrap;" style="display: flex; flex-wrap: wrap;"
> >
<u-checkbox-group <u-checkbox-group
@ -114,7 +114,7 @@
</u-checkbox-group> </u-checkbox-group>
</view> </view>
<view <view
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1" v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0"
style="display: flex; flex-wrap: wrap;" style="display: flex; flex-wrap: wrap;"
> >
<view v-for="(item, index) in item.answerOptions" :key="index" <view v-for="(item, index) in item.answerOptions" :key="index"
@ -141,7 +141,7 @@
</view> </view>
<view <view
class="btnBox" class="btnBox"
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0" v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1"
> >
<view class="btn" @click="handleGroup(item)">确认</view> <view class="btn" @click="handleGroup(item)">确认</view>
<view class="btn" @click="handleGroup2(i)">清空</view> <view class="btn" @click="handleGroup2(i)">清空</view>
@ -643,10 +643,10 @@ console.log({
handleGroup(item) { handleGroup(item) {
console.log(item) console.log(item)
let text = ""; let text = "";
if (this.optionType) { if (item.optionType) {
} else {
text = item.checkboxValue1.join(","); text = item.checkboxValue1.join(",");
// text = item; } else {
text = item;
} }
this.handleSend(text); this.handleSend(text);
}, },

Loading…
Cancel
Save