ml: <view class="identity" style="width:350rpx;">
<label class="identity_title">民族:</label>
<view class="wei-input">
<view class="selected" bindtap='mySelect'>
<text style="font-size:26rpx;">{{groups_name}}</text>
<image src='/pages/images/xiala_1.png'></image> </view>
</view>
<!-- 下拉需要显示的列表 -->
<view class="select_box" wx:if="{{select}}">
<view wx:for="{{groups}}" wx:key="value" >
<view class="select_one" bindtap="getNation" data-id="{{item.id}}" data-name="{{item.name}}">{{item.name}}</view>
</view>
</view>
</view>
js:
通过radio单选,先拿到选择的id,可得到的是数组,求大佬们解答,帮我拿到id?(谢谢)
https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
有部分代码重叠