aaa
This commit is contained in:
parent
e24c96d280
commit
1b228b632e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user