123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <template>
- <view class="fireBashWrapper pushListWrapper ">
- <view style="height:90rpx"></view>
- <view class="ding">
- <scroll-view scroll-x class="bg-white nav text-center">
- <view class="cu-item" :class="index==TabCur?'text-blue cur':''" v-for="(item,index) in tabNav"
- :key="index" @tap="tabSelect" :data-id="index">
- <view class="cu-tag badge">
- <block class="cu-tag badge" v-if="item.badge!=1">99</block>
- </view>
- {{tabNav[index]}}
- </view>
- </scroll-view>
- </view>
- <block v-if="TabCur==0">
- <view class="" style="margin-top:0">
- <view class="cu-list menu-avatar ">
- <view class="cu-item" v-for="(item,index) in unporcessList" :key="index" @tap="goFireBaseDetail">
- <view class="cu-avatar" style="background-image:url(../../../static/push-list.png);"></view>
- <view class="content">
- <view class="pro-title">
- <view class="cut">{{item.title}}</view>
- </view>
- <view class="pro-des ">
- <view class="text-cut">
- {{item.subtit}}
- </view>
- </view>
- <view class="pro-date">{{item.time}}</view>
- </view>
- </view>
- </view>
- </view>
- </block>
- <block v-if="TabCur==1">
- <view class="" style="margin-top:0">
- <view class="cu-list menu-avatar ">
- <view class="cu-item" v-for="(item,index) in unporcessList" :key="index" @tap="goFireBaseDetail">
- <view class="cu-avatar" style="background-image:url(../../../static/push-list.png);"></view>
- <view class="content">
- <view class="pro-title">
- <view class="cut">{{item.title}}</view>
- </view>
- <view class="pro-des ">
- <view class="text-cut">
- {{item.subtit}}
- </view>
- </view>
- <view class="pro-date">{{item.time}}</view>
- </view>
- </view>
- </view>
- </view>
- </block>
- </view>
- </template>
- <script>
- import json from '../../../data/json.js';
- export default {
- data() {
- return {
- unporcessList: [{
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- }, {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- }, {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- }, {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- }, {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- }, {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- },
- {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- },
- {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- },
- {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- },
- {
- title: '火灾逃生九大要诀',
- time: '2020-02-12',
- subtit: 'admin'
- }
- ],
- processedList: json.processedList,
- type: '0',
- modalName: null,
- listTouchStart: 0,
- listTouchDirection: null,
- CustomBar: this.CustomBar,
- TabCur: 0,
- tabNav: ['未读', '已读']
- };
- },
- methods: {
- tabSelect(e) {
- this.TabCur = e.currentTarget.dataset.id;
- this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60
- },
- // 页面跳转
- goUnprocessDetail() {
- uni.navigateTo({
- url: '/pages/unprocessDetail/unprocessDetail?type=1',
- success: res => {},
- fail: () => {},
- complete: () => {}
- });
- },
- goProcessedDetail() {
- uni.navigateTo({
- url: '/pages/processedDetail/processedDetail?type=1',
- success: res => {},
- fail: () => {},
- complete: () => {}
- });
- },
- goVideoUnprocessDetail() {
- uni.navigateTo({
- url: '/pages/unprocessDetail/unprocessDetail?type=2',
- success: res => {},
- fail: () => {},
- complete: () => {}
- });
- },
- goVideoProcessedDetail() {
- uni.navigateTo({
- url: '/pages/processedDetail/processedDetail?type=2',
- success: res => {},
- fail: () => {},
- complete: () => {}
- });
- }
- }
- }
- </script>
- <style lang="scss">
- //已处理未处理消息个数样式
- .nav .cu-item.cur {
- position: relative;
- border-bottom: 8rpx solid;
- }
- .cu-tag.badge {
- top: 14rpx;
- right: 96rpx;
- }
- .nav .cu-item {
- width: 50%;
- margin: 0;
- .text-blue,
- .line-blue,
- .lines-blue {
- color: #4274E7
- }
- }
- </style>
|