aaa
This commit is contained in:
parent
1b228b632e
commit
86bb6d7a96
|
@ -38,7 +38,6 @@
|
|||
|
||||
<view class="space-y-13">
|
||||
<view class="list-item" @scrolltolower="onReachBottom" v-for="(item, index) in listData" :key="index">
|
||||
|
||||
<view class="group_7 bianhao-top-yi">
|
||||
<view class="bianhao-zuo">
|
||||
<text class="font_2" @click="detilsq(item)">{{item.name}}</text>
|
||||
|
@ -240,7 +239,10 @@
|
|||
关闭分享
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="mask" v-if="masks" style="position: fixed;top: 0;left: 0;width: 100%;height: 100vh;background-color: #333;opacity: .5;z-index: 99;">
|
||||
|
||||
</view>
|
||||
<!-- 加载状态 -->
|
||||
|
||||
|
||||
|
@ -292,7 +294,8 @@
|
|||
disabledflag: false,
|
||||
tokenflag: false,
|
||||
total:0,
|
||||
showflag:false
|
||||
showflag:false,
|
||||
masks:false
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
@ -757,9 +760,9 @@
|
|||
},
|
||||
// 发请求拿数据
|
||||
async pageData(page, apiary_id, qrcode) {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
})
|
||||
// uni.showLoading({
|
||||
// title: '加载中...',
|
||||
// })
|
||||
await request.get('/api/beehive/index?page=' + this.page, {
|
||||
params: {
|
||||
page,
|
||||
|
@ -767,9 +770,9 @@
|
|||
qrcode
|
||||
}
|
||||
}).then(res => {
|
||||
this.masks = false
|
||||
uni.hideLoading()
|
||||
wx.setStorageSync('user_id', res.data.data[0].user_id);
|
||||
// this.listData = JSON.parse(JSON.stringify(res.data.data))
|
||||
this.total = res.data.total
|
||||
if (res.data.data.length > 0) {
|
||||
// 有数据,追加到列表
|
||||
|
@ -777,10 +780,6 @@
|
|||
this.page++
|
||||
// uni.hideLoading()
|
||||
}
|
||||
// wx.pageScrollTo({
|
||||
// scrollTop: 0,
|
||||
// duration: 300
|
||||
// });
|
||||
// 停止下拉刷新状态
|
||||
wx.stopPullDownRefresh();
|
||||
// this.$forceUpdate()
|
||||
|
@ -827,25 +826,26 @@
|
|||
})
|
||||
},
|
||||
clicktabs(event) {
|
||||
// this.currentindex=
|
||||
console.log('调用了', event);
|
||||
console.log('调用了', this.tabitems);
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
this.page = 1
|
||||
this.listData = []
|
||||
this.masks = true
|
||||
if (event.index = 0) {
|
||||
this.checkid = ''
|
||||
this.currentindex = 0
|
||||
|
||||
} else {
|
||||
this.checkid = event.id
|
||||
const index = this.tabitems.findIndex(item => item.id === this.checkid);
|
||||
|
||||
// 将索引赋值给this.currentindex
|
||||
this.currentindex = index;
|
||||
console.log(this.currentindex, 'this.currentindex this.currentindex ');
|
||||
// this.currentindex=0
|
||||
this.currentindex = index
|
||||
|
||||
}
|
||||
this.refresh()
|
||||
// this.pageData('', event.id)
|
||||
setTimeout(()=>{
|
||||
this.refresh()
|
||||
},1000)
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user