Przeglądaj źródła

1 修复发布页选中了3个后选第4个取消某一个后会高亮选的第4个。

release/210823_需求对对碰
王饶冀 3 lat temu
rodzic
commit
3e74dac49f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      pages/releaseModule/index.js

+ 2
- 2
pages/releaseModule/index.js Wyświetl plik

@@ -95,11 +95,10 @@ Page({
tagSelectedChange(e) {
let typename = e.currentTarget.dataset.typename;
let selectedTag = this.data.selectedTag;
let tempArr = [];
// 1 如果选中的数组里没有当前type
if (selectedTag.indexOf(typename) == -1) {
// 2 如果选中的数组的长度小于3 直接push
if (selectedTag.length < 4) {
if (selectedTag.length < 3) {
selectedTag.push(typename)
}
}
@@ -111,6 +110,7 @@ Page({
}
})
}
let tags = this.data.tags;
tags.forEach(el => {
el.isActive = '';

Ładowanie…
Anuluj
Zapisz