Administrator
2021-06-30 4aceb9e1367144e9d05c74c8e1a3048d1695ff5e
1.首页更换
2.群防任务页面顶部导航条修改
4 files modified
60 ■■■■■ changed files
pages.json 2 ●●● patch | view | raw | blame | history
pages/alarm_list/alarm_list.vue 54 ●●●●● patch | view | raw | blame | history
pages/article/article.vue 2 ●●● patch | view | raw | blame | history
pages/loging/loging.vue 2 ●●● patch | view | raw | blame | history
pages.json
@@ -286,7 +286,7 @@
        "selectedColor": "#0faeff",
        "backgroundColor": "#ffffff",
        "list": [{
                "pagePath": "pages/alarm_list/alarm_list",
                "pagePath": "pages/index/index",
                "text": "首页",
                "iconPath": "static/tabbar/index01.png",
                "selectedIconPath": "static/tabbar/index02.png"
pages/alarm_list/alarm_list.vue
@@ -1,8 +1,13 @@
<template>
    <view class="alarm-list">
        <!-- 自定义顶部导航栏 -->
        <navBarTop :title="'我要查'"></navBarTop>
        <!-- <navBarTop :title="'我要查'"></navBarTop> -->
        <uni-nav-bar  class="uni-nav-bar-info" :fixed="true"  :status-bar="true" >
            <view class="title" slot="default">群防任务</view>
            <view slot="left" class="uni-nav-bar-left" @click="goBack()">
                <image src="../../static/images/nav/back02.png"></image>
            </view>
        </uni-nav-bar>
        <view class="navigation-bar">
            <view class="alarm-bar-total" :style="{color:totalColor,borderBottom:totalBoder}" @click="getAlarmListInfo(1)">全部({{totalNumber}})</view>
            <view class="alarm-bar-noload" :style="{color:noloadColor,borderBottom:noloadBoder}" @click="getAlarmListInfo(2)">未处理({{untreatedNumber}})</view>
@@ -85,6 +90,11 @@
            this.getAlarmListInfo(1);
        },
        methods:{
            //返回上一页
            goBack(){
                uni.navigateBack({
                })
            },
            
            // 获取滚动窗口高度
            getSysteminfo() {
@@ -93,7 +103,7 @@
                        //顶部状态栏高度
                        this.systemBarHeight = res.statusBarHeight;
                        //res.screenHeight为屏幕高度,顶部导航栏和底部导航栏 默认高度为 50 px ,43为tab标签高度
                        this.scrollHeight = res.screenHeight - this.systemBarHeight-100-43;
                        this.scrollHeight = res.screenHeight - this.systemBarHeight-50-43;
                        //得到数据内容滚动窗口高度
                        this.scrollHeight = this.scrollHeight + "px";
                    }
@@ -283,6 +293,44 @@
        display: flex;
    }
    
    .uni-nav-bar-info {
        // font-weight: 550;
        .title{
            position: fixed;
            right: 42%;
            font-weight: 550;
            letter-spacing: 1px;
        }
        .uni-nav-bar-left{
            display: flex;
            justify-items: center;
            image{
                // background-color: #00BFFF;
                margin-left: 1rem;
                width: 1.6rem;
                height: 1.6rem;
                border-radius: 100px;
            }
        }
        .right{
            display: flex;
            .title-right{
                position: relative;
                font-size: 0.7rem;
                color: #808080;
                right: 0.5rem;
                top: 0.2rem;
            }
        }
    }
    .alarm-list{
        width: 100%;
        flex-direction: column;    
pages/article/article.vue
@@ -58,7 +58,7 @@
                data: [],
                titleList: ['推荐', '要闻', '新思想'],
                titleNum: 0,
                articleTabArr: ['全部', '视频', '社会', '经济', '关注'],
                articleTabArr: ['全部', '视频', '社会', '经济', '热点'],
                articleTabNum: 0,
                navbarTopHeight: "10px"
            }
pages/loging/loging.vue
@@ -105,7 +105,7 @@
                    this.passwords = '******';
                    uni.hideNavigationBarLoading();
                    uni.reLaunch({
                        url: '../alarm_list/alarm_list'
                        url: '../index/index'
                    })
                    return '成功登录'
                } else {