This commit is contained in:
3321822538@qq.com 2024-06-08 09:25:05 +08:00
parent e24c96d280
commit 1b228b632e

View File

@ -295,7 +295,6 @@
showflag:false showflag:false
}; };
}, },
onShow() { onShow() {
uni.showLoading({ uni.showLoading({
title: '加载中...', title: '加载中...',
@ -308,6 +307,10 @@
setTimeout(() => { setTimeout(() => {
uni.hideLoading() uni.hideLoading()
}, 1000) }, 1000)
// this.cheshi()
this.tabitems = [{
name: '全部'
}]
}, },
onHide() { onHide() {
uni.removeStorageSync('targetId'); uni.removeStorageSync('targetId');
@ -396,6 +399,17 @@
}) })
} }
}, },
// async cheshi() {
// try {
// const res = await request.get('/api/index') //
// this.tabitems.push(...res.data.data)
// this.tabitems = this.tabitems.filter((item, index, array) => {
// return array.findIndex(i => i.name === item.name) === index;
// });
// } catch (error) {
// }
// },
// //
btnsx(item) { btnsx(item) {
if (item.status_text == '在线') { if (item.status_text == '在线') {
@ -708,7 +722,6 @@
if (this.items.length <= 0) { if (this.items.length <= 0) {
this.showloading = true this.showloading = true
} }
await request.get('/api/apiary/index', {}).then(res => { await request.get('/api/apiary/index', {}).then(res => {
if (res.msg == '用户凭证不存在') { if (res.msg == '用户凭证不存在') {
console.log(11); console.log(11);
@ -721,7 +734,7 @@
this.tabitems.push(...res.data.data) this.tabitems.push(...res.data.data)
this.tabitems = this.tabitems.filter((item, index, array) => { this.tabitems = this.tabitems.filter((item, index, array) => {
return array.findIndex(i => i.name === item.name) === index; return array.findIndex(i => i.name === item.name) === index;
}); })
this.showloading = false this.showloading = false
this.clicktabs({ this.clicktabs({
page: 1 page: 1