HTML
<div class="layui-card-body" id="evaluationForm" lay-filter="evaluationForm">
<input type="radio" class="layui-form-radio" name="airway" value="airwayNone">
<span style="font-weight: bold;font-size:16px;font-family: 宋体;" v-model="recordTemplateInfo.airway" :checked="recordTemplateInfo.airway">无</span>
<input type="radio" class="layui-form-radio" name="airway" value="airwayHave" v-model="recordTemplateInfo.airway" :checked="recordTemplateInfo.airway">
<span style="font-weight: bold;font-size:16px;font-family: 宋体;">有</span>
</div>
JS
//注意我的架构是layui+vue 所以以下that.xxx需要自行更换或删除
that.$('#evaluationForm :radio').bind('click', function (e) {
var v = this.value;
that.$set(that.recordTemplateInfo, this.name, v);
//radio 点击两次取消选中
var $radio = that.$(this);
// if this was previously checked
if ($radio.data('waschecked') == true) {
that.$set(that.recordTemplateInfo, this.name, '');
$radio.prop('checked', false);
$radio.data('waschecked', false);
} else {
$radio.prop('checked', true);
$radio.data('waschecked', true);
}
// remove was checked from other radios
$radio.siblings('input[type="radio"]').data('waschecked', false);
});