<view wx:else class=“package " data-id=”{{item.memberPackageId}}" bindtap=“selectPackpage”>
<view class=“membertime” data-id="{{item.memberPackageId}}" >
<text class=“number1” data-id="{{item.memberPackageId}}">{{item.packageTitle}}</text>
<text class=“number2” data-id="{{item.memberPackageId}}">个月</text>
</view>
<view class=“memberprice” data-id="{{item.memberPackageId}}" >
<view class=“reprice” data-id="{{item.memberPackageId}}"><text class=“price1” data-id="{{item.memberPackageId}}">活动价</text><text class=“price2” data-id="{{item.memberPackageId}}">¥{{item.salePrice}}</text> </view>
<view class=“saleprice” data-id="{{item.memberPackageId}}">¥{{item.marketPrice}}</view>
</view>
</view>
我就在最外层设置data-id但是有时候点的时候在点击事件里面获取不到id,得都绑上才行?