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