直接上干货吧
wxml
<view class='hd-con'>
<view class='listitem {
{item.isTouchMove ? "active" : ""}}' wx:for="{
{TestList}}" wx:key="{
{id}}" data-index="{
{index}}" bindtouchstart="touchstart" bindtouchmove="touchmove">
<view class='list '>
<view class="headbox">
</view>
<view class='info'>
<view class='toph'>
<label class='name'>{
{item.name}}</label>
</view>
<label class='msgs'>{
{item.txts}}</label>
</view>
</view>
<view class='deleted' bindtap='DelTestInfo' data-index="{
{index}}">删除</view>
</view>
<