效果图:
<wxs module="m1">
var baohan = function(loupanlistact,index) {
var boo;
var index = loupanlistact.indexOf(index)
if (index <0){
boo = false;
}else{
boo = true;
}
return boo;
}
module.exports.baohan = baohan;
</wxs>
<view class="selconbox">
<view class="seltit">客户标签</view>
<view class="selulbox">
<view class="selli {
{m1.baohan(kehutapact,index) ? 'selact' : ''}}"
wx:for="{
{kehutaparr}}"
wx:key="id"
data-index="{
{index}}"
data-tagid="{
{item.id}}"
bindtap="kehutiptap">
<text class="tagtxt">{
{item.tag}}</text>
<image src="../../images/lpsel-xx.png"
mode="widthFix"
class="khgsdel"
wx:if="{
{isdeltag}}" />
</view>
<block wx:if="{
{zywxid == ''}}">