完善
This commit is contained in:
parent
09ad65f676
commit
dc1648699d
|
@ -314,7 +314,7 @@
|
||||||
// // 显示成功的回调
|
// // 显示成功的回调
|
||||||
// },
|
// },
|
||||||
// });
|
// });
|
||||||
// this.listData = []
|
this.listData = []
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.loadData()
|
this.loadData()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -343,6 +343,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
refreshData() {
|
||||||
|
this.page = 1
|
||||||
|
this.refresh()
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
|
}, 2000)
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.refreshData()
|
||||||
|
},
|
||||||
|
|
||||||
backToTop() {
|
backToTop() {
|
||||||
uni.pageScrollTo({
|
uni.pageScrollTo({
|
||||||
scrollTop: 0, // 滚动到页面的顶部
|
scrollTop: 0, // 滚动到页面的顶部
|
||||||
|
@ -806,7 +817,6 @@
|
||||||
this.masks = false
|
this.masks = false
|
||||||
}
|
}
|
||||||
if (res.data.data.length > 0) {
|
if (res.data.data.length > 0) {
|
||||||
// 有数据,追加到列表
|
|
||||||
this.listData.push(...res.data.data)
|
this.listData.push(...res.data.data)
|
||||||
if (this.quchongid == '') {
|
if (this.quchongid == '') {
|
||||||
let filteredData = this.listData
|
let filteredData = this.listData
|
||||||
|
@ -853,6 +863,7 @@
|
||||||
}
|
}
|
||||||
this.page++
|
this.page++
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
// 停止下拉刷新状态
|
// 停止下拉刷新状态
|
||||||
wx.stopPullDownRefresh();
|
wx.stopPullDownRefresh();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<view class="group_7 bianhao-top-yi">
|
<view class="group_7 bianhao-top-yi">
|
||||||
<view class="bianhao-zuo">
|
<view class="bianhao-zuo">
|
||||||
<view class="font_2">{{listdata.name}}</view>
|
<view class="font_2">{{listdata.name}}</view>
|
||||||
<view class=" justify-start self-start text-wrapper" :id="listdata.status_text == '在线' ? 'text-wrapper-bgc1' : '<strong></strong>text-wrapper-bgc2'">
|
<view class=" justify-start self-start text-wrapper" :id="listdata.status_text == '在线' ? 'text-wrapper-bgc1' : 'text-wrapper-bgc2'">
|
||||||
<view class="font_33">{{listdata.status_text}}</view>
|
<view class="font_33">{{listdata.status_text}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -803,14 +803,14 @@
|
||||||
this.listDataFn()
|
this.listDataFn()
|
||||||
} else {
|
} else {
|
||||||
this.id = option.id
|
this.id = option.id
|
||||||
if (!wx.getStorageSync('userToken')) {
|
// if (!wx.getStorageSync('userToken')) {
|
||||||
uni.reLaunch({
|
// uni.reLaunch({
|
||||||
url: '/pagesFengXiang/pages/fengxiangDetailtwo/index?id=' + this.id
|
// url: '/pagesFengXiang/pages/fengxiangDetailtwo/index?id=' + this.id
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
this.listDataFn()
|
this.listDataFn()
|
||||||
// this.getServerDatas()
|
// this.getServerDatas()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -881,11 +881,11 @@
|
||||||
request.get('/api/beehive/detail/' + this.id, {}).then(res => {
|
request.get('/api/beehive/detail/' + this.id, {}).then(res => {
|
||||||
this.idss = res.data.data.id
|
this.idss = res.data.data.id
|
||||||
this.getServerDatas()
|
this.getServerDatas()
|
||||||
if(res.user_id != wx.getStorageSync('userToken')){
|
// if(res.user_id != wx.getStorageSync('userToken')){
|
||||||
uni.reLaunch({
|
// uni.reLaunch({
|
||||||
url: '/pagesFengXiang/pages/fengxiangDetailtwo/index?id=' + this.id
|
// url: '/pagesFengXiang/pages/fengxiangDetailtwo/index?id=' + this.id
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
this.listdata = {
|
this.listdata = {
|
||||||
...res.data.data
|
...res.data.data
|
||||||
}
|
}
|
||||||
|
@ -1100,14 +1100,14 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
bottom: 0rpx;
|
bottom: 50rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 580rpx;
|
height: 60rpx;
|
||||||
background: #ccc;
|
background:rgba(0, 0, 0, 0.5);
|
||||||
opacity: .5;
|
// opacity: .5;
|
||||||
color: red;
|
color: #fff;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding-top: 20rpx;
|
padding-top: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user