我有一个集合 每个item是一个正方形的,一行两个,我想长按时,item的位置出现遮罩层,但是我不知道怎么控制遮罩层的位置,求大神指点
<block wx:for="{{list}}" wx:key="{{index}}">
<view class=‘left’ wx:if="{{index % 2 == 0}}">
<view class=“logoinfo” style=‘width:{{phonewidth}}px;height:{{phonewidth}}px’ bindtap=‘gosetting’ bindlongtap=“longTap” bindtouchstart=“touchStart” bindtouchend=“touchEnd”>
<text class=“logotext”>{{item.name}}</text>
</view>
</view>
<view wx:else>
<view class="logoinfo " style=‘width:{{phonewidth}}px;height:{{phonewidth}}px’ bindtap=‘gosetting’ bindlongtap=“longTap” bindtouchstart=“touchStart” bindtouchend=“touchEnd”>
<text class="logotext ">{{item.name}}</text>
</view>
</view>
</block>