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