VIEW点击效果如何调整
[图片] 如上图所示 在点击某个电话号码时,整个新父级全有选中效果,我期望的是只有电话那一行出现。 比如点了交通事帮122那一行,只是那一行显示选中效果。而不是整块。 代码如下: [代码]<[代码][代码]block[代码] [代码]wx:for-items[代码][代码]=[代码][代码]"{{list}}"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"widgets__item"[代码][代码]>[代码][代码] [代码][代码]<!--类别 -->[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]id[代码][代码]=[代码][代码]"{{item.id}}"[代码] [代码]class[代码][代码]=[代码][代码]"widgets__info {{item.open ? 'widgets__info_show' : ''}}"[代码] [代码]bindtap[代码][代码]=[代码][代码]"widgetsToggle"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"widgets__info-name"[代码][代码]>{{item.name}}</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]class[代码][代码]=[代码][代码]"widgets__info-img"[代码] [代码]src[代码][代码]=[代码][代码]"../images/arrowright.png"[代码] [代码]mode[代码][代码]=[代码][代码]"aspectFill"[代码] [代码]/>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<!--类别下所有黄页电话 -->[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"widgets__list {{item.open ? 'widgets__list_show' : ''}}"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]block[代码] [代码]wx:for-items[代码][代码]=[代码][代码]"{{item.subName}}"[代码] [代码]wx:for-item[代码][代码]=[代码][代码]"name"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"widget"[代码] [代码]bindtap[代码][代码]=[代码][代码]"callPhone"[代码] [代码]data-phone[代码][代码]=[代码][代码]"{{item.phone[index]}}"[代码] [代码]hover-start-time[代码][代码]=[代码][代码]"10"[代码] [代码]hover-stay-time[代码][代码]=[代码][代码]"100"[代码][代码]>[代码][代码] [代码][代码]<!--黄页客户 -->[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"widget__name"[代码] [代码]data-phone[代码][代码]=[代码][代码]"{{item.phone[index]}}"[代码][代码]>{{name}}</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<!--电话 -->[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"phoneText"[代码] [代码]data-phone[代码][代码]=[代码][代码]"{{item.phone[index]}}"[代码][代码]>{{item.phone[index]}}</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]block[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]block[代码][代码]>[代码]