bug修改

This commit is contained in:
18390123501 2024-06-11 16:17:33 +08:00
parent 5d94b3a309
commit 112a858e03
3 changed files with 9 additions and 8 deletions

View File

@ -245,6 +245,7 @@
}).then(res => {
if (res.code == 200) {
toast('保存成功')
jWeixin.miniProgram ? jWeixin.miniProgram.navigateBack() : jWeixin.navigateBack();
setTimeout(()=>{
uni.navigateBack()
},1000)

View File

@ -165,7 +165,7 @@
//
submit() {
let a = []
if (this.topIndex == 0) {
// if (this.topIndex == 0) {
this.List.map(item => {
item.list.map(item2 => {
if (item2.checked) {
@ -173,15 +173,15 @@
}
})
})
if (a.length == 0) return toast('请先选择任务')
} else {
// if (a.length == 0) return toast('')
// } else {
this.myList.map(item => {
if (item.checked) {
a.push(item)
}
})
if (a.length == 0) return toast('请先选择任务')
}
// }
uni.navigateTo({
url: '/pages/selfRegistration/actionList/actionList?params=' + JSON.stringify(a)
})

View File

@ -166,7 +166,7 @@
//
submit() {
let a = []
if (this.topIndex == 0) {
// if (this.topIndex == 0) {
this.List.map(item => {
item.list.map(item2 => {
if (item2.checked) {
@ -174,15 +174,15 @@
}
})
})
if (a.length == 0) return toast('请先选择任务')
} else {
// if (a.length == 0) return toast('')
// } else {
this.myList.map(item => {
if (item.checked) {
a.push(item)
}
})
if (a.length == 0) return toast('请先选择任务')
}
// }
a.forEach(el=>{
el.userId = uni.getStorageSync('userId')
})