63 lines
2.1 KiB
Vue
63 lines
2.1 KiB
Vue
<template>
|
||
<view>
|
||
<statusContainer titlet="民意办理" :ifReturn="false">
|
||
<view slot="content">
|
||
<view class="bacf disja pad-sx20 fon30" :style="{top:newtop+42+'px'}" style="margin: -20rpx -20rpx 0 -20rpx;position: sticky;z-index: 10;">
|
||
<view @tap="switchEv(0)" class="pad-sx20 disjcac radius20" :style="switchIndex==0?'background-color:#39d091;color:#FFFFFF;':''" style="width: 288rpx;">待办理</view>
|
||
<view @tap="switchEv(1)" class="pad-sx20 disjcac radius20" :style="switchIndex==1?'background-color:#39d091;color:#FFFFFF;':''" style="width: 288rpx;">已办理</view>
|
||
</view>
|
||
<view class="mar-s20 radius20 fon24 bacf posir" v-for="(item,index) in 50" :key="index">
|
||
<view class="pad-sx20 pad-zy50 status-box" :style="{backgroundColor:['#f8bf00','#39d091'][switchIndex]}">{{['待办理','已办理'][switchIndex]}}</view>
|
||
<view class="pad20 bbot line-h46 pad-x40">
|
||
<view class="fon30">LH20220729130234</view>
|
||
<view class="">用户名:匿名提交</view>
|
||
<view class="">金牛社区A村</view>
|
||
<view class="">反馈问题:我就是想问下我们村的路多久能修好?</view>
|
||
</view>
|
||
<view class="dis fon30 disjcac" v-if="switchIndex==0">
|
||
<view @tap="handleEv(0)" class="pad-sx30 disac">
|
||
<image class="mar-y20" src="/static/icon/icon-handle.png" mode="" style="width: 34rpx;height: 34rpx;"></image>
|
||
立即办理
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</statusContainer>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import statusContainer from '@/components/containers/status-container.vue';
|
||
export default {
|
||
components:{
|
||
statusContainer
|
||
},
|
||
data() {
|
||
return {
|
||
switchIndex:0,
|
||
newtop:uni.getSystemInfoSync().statusBarHeight
|
||
}
|
||
},
|
||
methods: {
|
||
// 切换事件
|
||
switchEv(index){
|
||
console.log(index);
|
||
this.switchIndex = index;
|
||
},
|
||
// 前往详情页面
|
||
handleEv(id){
|
||
uni.navigateTo({
|
||
url:`/pagesA/detail/detail?id=${id}&manager=0`
|
||
})
|
||
},
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
page{
|
||
background-color: #f5f5f5;
|
||
}
|
||
.status-box{position: absolute;right: 0;top: 0;border-radius: 0 0 0 30rpx;}
|
||
</style>
|