表单有单选项
<view class="cu-form-group">
<view class="title">定位类型</view>
<radio-group @change="radioChange">
<label class="radio padding-right">
<radio style="transform:scale(0.9)" class="blue switch-diy-none" value="1" :checked="location==1" />
<text class="padding-left-xs">GPS定位</text>
</label>
<label class="radio">
<radio style="transform:scale(0.9)" class="blue switch-diy-none" value="2" :checked="location==2" />
<text class="padding-left-xs">基站定位</text>
</label>
</radio-group>
</view>
添加如下样式可以解决错位问题
.switch-diy-none::after {
content:" ";
}
.switch-diy-none::before {
content:" ";
}