This commit is contained in:
3321822538@qq.com 2024-06-19 18:03:20 +08:00
parent 8fed6b6369
commit 09ad65f676
2 changed files with 10 additions and 14 deletions

View File

@ -10,8 +10,7 @@
<view class="group_7 bianhao-top-yi">
<view class="bianhao-zuo">
<view class="font_2">{{listdata.name}}</view>
<view class=" justify-start self-start text-wrapper" style="background-color: red;"
: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' : '<strong></strong>text-wrapper-bgc2'">
<view class="font_33">{{listdata.status_text}}</view>
</view>
@ -184,7 +183,7 @@
style="width: 28.84rpx;height: 28rpx;">
<view>
<text class="font_5 text-l">当前</text>
<text class="self-start font_5 text_13">{{listdata.attendance_day}}</text>
<text class="self-start font_5 text_13">{{listdata.attendance_day}}</text>
</view>
</view>
@ -798,15 +797,10 @@
if (option.scene) {
let sceneValue = option.scene
let decodedValue = decodeURIComponent(sceneValue);
console.log(decodedValue,'idValueidValue')
let idValue = decodedValue.split('=')[1]
this.id = idValue
this.listDataFn()
// console.log(this.user_id)
// if (wx.getStorageSync('user_id') != this.user_id) {
// uni.navigateTo({
// url: '/pagesFengXiang/pages/fengxiangDetailtwo/index?id=' + this.id
// })
// }
} else {
this.id = option.id
if (!wx.getStorageSync('userToken')) {
@ -816,7 +810,6 @@
} else {
this.listDataFn()
// this.getServerDatas()
}
}
},
@ -888,7 +881,11 @@
request.get('/api/beehive/detail/' + this.id, {}).then(res => {
this.idss = res.data.data.id
this.getServerDatas()
console.log(res);
if(res.user_id != wx.getStorageSync('userToken')){
uni.reLaunch({
url: '/pagesFengXiang/pages/fengxiangDetailtwo/index?id=' + this.id
})
}
this.listdata = {
...res.data.data
}

View File

@ -15,8 +15,7 @@
<view class="group_7 bianhao-top-yi" >
<view class="bianhao-zuo">
<view class="font_2">{{listdata.name}}</view>
<view class=" justify-start self-start text-wrapper"
:id="listdata.status_text == '在线' ? 'text-wrapper-bgc1' : '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>
@ -187,7 +186,7 @@
<image class=" image_16" src="../../../static/e5e18447349367492c81f64ccec7ebcb.png" style="width: 28.84rpx;height: 28rpx;">
<view>
<text class="font_5 text-l">当前</text>
<text class="self-start font_5 text_13">{{listdata.attendance_day}}</text>
<text class="self-start font_5 text_13">{{listdata.attendance_day}}</text>
</view>
</view>