|
|
@ -10,7 +10,7 @@ |
|
|
:class="[`col-span-${item.col}`]" |
|
|
:class="[`col-span-${item.col}`]" |
|
|
> |
|
|
> |
|
|
<text v-if="item.showType === 0">{{ item.content }}</text> |
|
|
<text v-if="item.showType === 0">{{ item.content }}</text> |
|
|
<img class="w-full" :src="item.content" v-else /> |
|
|
<image style="width: 260px" :src="item.content" mode="widthFix" v-else /> |
|
|
</u-radio> |
|
|
</u-radio> |
|
|
</u-radio-group> |
|
|
</u-radio-group> |
|
|
</view> |
|
|
</view> |
|
|
@ -28,21 +28,23 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { value: '' }; |
|
|
return {}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
computed: { |
|
|
this.$nextTick(() => { |
|
|
value() { |
|
|
|
|
|
let result = ''; |
|
|
for (let i = 0; i < this.options.length; i++) { |
|
|
for (let i = 0; i < this.options.length; i++) { |
|
|
const option = this.options[i]; |
|
|
const option = this.options[i]; |
|
|
const item = option.contents.find(item => item.chooseStatus === 1); |
|
|
const item = option.contents.find(item => item.chooseStatus === 1); |
|
|
if (item) { |
|
|
if (item) { |
|
|
this.value = item.id; |
|
|
result = item.id; |
|
|
this.setOptionId(this.value); |
|
|
this.setOptionId(result); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
return result; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|