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

@ -93,7 +93,7 @@
>
</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;"
>
<u-checkbox-group
@ -114,7 +114,7 @@
</u-checkbox-group>
</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;"
>
<view v-for="(item, index) in item.answerOptions" :key="index"
@ -141,7 +141,7 @@
</view>
<view
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="handleGroup2(i)">清空</view>
@ -643,10 +643,10 @@ console.log({
handleGroup(item) {
console.log(item)
let text = "";
if (this.optionType) {
} else {
if (item.optionType) {
text = item.checkboxValue1.join(",");
// text = item;
} else {
text = item;
}
this.handleSend(text);
},

Loading…
Cancel
Save