zhaoxiaohai 2 years ago
parent
commit
cb2f769c19
1 changed files with 14 additions and 13 deletions
  1. 14 13
      packageA/tags/index.wxml

+ 14 - 13
packageA/tags/index.wxml

@@ -1,24 +1,25 @@
 <van-search value="{{ value }}" shape="round" background="#fff" placeholder="请输入搜索关键词" bind:change='onInput' />
 
 <view class="content" style="margin-top: 20rpx;">
-  <view class="title">请选择添加标签</view>
-  <view class="tags" bindtap="onChange">
-    <van-button custom-class='basic {{active.que(item.tag,actives)?"active":""}}' disabled='{{active.que(item.tag,forbiddens)}}' wx:for="{{list}}" wx:key="item.sys_systemtagdetailid" data-item="{{item}}" data-disabled="{{active.que(item.tag,forbiddens)}}">{{item.tag}}</van-button>
-  </view>
+    <view class="title">请选择添加标签</view>
+    <view class="tags" bindtap="onChange">
+        <van-button custom-class='basic {{active.que(item.tag,actives)?"active":""}}' disabled='{{active.que(item.tag,forbiddens)}}' wx:for="{{list}}" wx:key="item.sys_systemtagdetailid" data-item="{{item}}" data-disabled="{{active.que(item.tag,forbiddens)}}">{{item.tag}}</van-button>
+    </view>
 </view>
+<My_empty wx:if="{{list.length==0}}" />
 
 <view style="height: 130rpx;" />
 <view class="footer">
-  <view class="count">
-    已选:{{actives.length}}
-  </view>
-  <van-button custom-class='but' bindtap="submit" disabled='{{actives.length==0}}'>确定</van-button>
+    <view class="count">
+        已选:{{actives.length}}
+    </view>
+    <van-button custom-class='but' bindtap="submit" disabled='{{actives.length==0}}'>确定</van-button>
 </view>
 
 <wxs module="active">
-  module.exports.que = function (name, list) {
-    return list.some(function (v) {
-      return v === name
-    })
-  }
+    module.exports.que = function (name, list) {
+        return list.some(function (v) {
+            return v === name
+        })
+    }
 </wxs>