| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494 |
- <template>
- <view class="container">
- <uni-nav-bar dark :fixed="true" backgroundColor="#3F9EFF" status-bar left-icon="left" left-text="返回"
- @clickLeft="toBack">
- <view style="width: 100%;display: flex;flex-direction: row;justify-content: center;align-items: center;">
- <text style="color: white;font-size: 1rem;">{{title}}</text>
- </view>
- </uni-nav-bar>
- <!-- 头部按钮 start -->
- <view class="nav">
- <u-grid :col="4" :border="false">
- <u-grid-item bg-color="transparent" v-for="(item, index) in navButton" :key="index">
- <navigator :url="item.url" hover-class="none" class="nav-item" open-type="navigate">
- <image :src="item.img" mode="widthFix" class="nav-item-img"></image>
- <view style="font-size: 0.7rem;font-weight: bold;">{{ item.name }}</view>
- </navigator>
- </u-grid-item>
- </u-grid>
- </view>
- <!-- 头部按钮 end -->
- </view>
- </template>
- <script>
- import http from '@/http/api.js';
- import uGroup from '@/uni_modules/uni-group/uni-group.vue'
- import uSection from '@/uni_modules/uni-section/uni-section.vue'
- import uNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
- import uDataPicker from '@/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue'
- import pageNav from '@/components/page-nav/page-nav.vue';
- import uList from '@/uni_modules/uni-list/components/uni-list/uni-list.vue'
- import uListItem from '@/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue'
- export default {
- components: {
- uGroup,
- uSection,
- uNavBar,
- uDataPicker,
- pageNav,
- uList,
- uListItem,
- },
- data() {
- return {
- title: '实时数据',
- navButton: [],
- };
- },
- onLoad() {
- const navBtnlist = [{
- name: '雨情数据',
- img: '/static/images/manage/statistics.png',
- url: '/pages/rtu-manage/rturaindata'
- },
- {
- name: '河道数据',
- img: '/static/images/manage/statistics.png',
- url: '/pages/rtu-manage/rturiverdata'
- },
- {
- name: '水库数据',
- img: '/static/images/manage/statistics.png',
- url: '/pages/rtu-manage/rtursvrdata'
- },
- {
- name: '墒情数据',
- img: '/static/images/manage/statistics.png',
- url: '/pages/rtu-manage/rtugrounddata'
- }
- ];
- this.navButton = navBtnlist;
- },
- onShow() {
- },
- methods: {
- toBack() {
- uni.navigateBack({
- delta: 1
- })
- },
- }
- };
- </script>
- <style lang="scss">
- $nav-height: 75px;
- .nav-title {
- height: $nav-height;
- }
- .nav-title-left {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- // width: 160rpx;
- margin-left: 4px;
- }
- .nav-title-box {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- // width: 500rpx;
- flex: 1;
- background-color: #f8f8f8;
- height: $nav-height;
- border-radius: 15px;
- padding: 0 15px;
- flex-wrap: nowrap;
- margin: 7px 0;
- line-height: $nav-height;
- }
- .grid-item-box {
- flex: 1;
- // position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 15px 0;
- }
- .grid-item-box-row {
- flex: 1;
- // position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- padding: 15px 0;
- }
- .grid-dot {
- position: absolute;
- top: 5px;
- right: 15px;
- }
- .container {
- background-color: #f7f7f7;
- min-height: 100vh;
- overflow: hidden;
- }
- .head {
- position: relative;
- top: 0;
- left: 0;
- z-index: 1;
- }
- .head-bg {
- position: absolute;
- left: 0px;
- top: 0px;
- z-index: -1;
- width: 750rpx;
- height: 270rpx;
- background: #0bb9c8;
- }
- .nav-wrap {
- width: 100%;
- padding: 0 22rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .picker-box {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- font-size: 32rpx;
- font-family: Microsoft YaHei;
- font-weight: bold;
- color: #ffffff;
- .arrow {
- margin-left: 10rpx;
- }
- }
- .logo {
- flex-shrink: 0;
- width: 100rpx;
- height: auto;
- }
- .search-input {
- width: 300rpx;
- height: 50rpx;
- }
- .tool {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .icon {
- height: auto;
- }
- .search-icon {
- width: 40rpx;
- margin-right: 34rpx;
- }
- .message-icon {
- width: 32rpx;
- margin-right: 27rpx;
- }
- .qr-icon {
- width: 37rpx;
- }
- }
- }
- .swiper-box {
- margin: 50rpx auto 0;
- width: 710rpx;
- height: 253rpx;
- .swiper-item {
- width: 100%;
- height: 100%;
- .banner {
- width: 100%;
- height: 100%;
- }
- }
- }
- .nav {
- margin: 0rpx 0;
- box-sizing: border-box;
- padding: 0 10rpx;
- &-item {
- width: 100%;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- height: 130rpx;
- &-img {
- width: 80rpx;
- height: 80rpx;
- }
- &-name {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #585b61;
- }
- }
- }
- .video-box {
- display: flex;
- justify-content: flex-start;
- flex-direction: column;
- width: 100%;
- .video-body {
- display: flex;
- justify-content: center;
- flex-direction: row;
- }
- .video-title {
- display: flex;
- justify-content: center;
- flex-direction: row;
- .text {
- margin-top: 10rpx;
- margin-bottom: 10rpx;
- width: 640rpx;
- // flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- }
- }
- }
- .notice-box {
- display: flex;
- align-items: center;
- background: #ffffff;
- border-radius: 20px 20px 20px 20px;
- margin: 0 20rpx;
- padding: 30rpx 20rpx;
- .img {
- width: 75rpx;
- height: auto;
- margin-right: 36rpx;
- margin-left: 10rpx;
- }
- .notice-info {
- flex: 1;
- .notice-cell:first-of-type {
- margin-bottom: 15rpx;
- }
- }
- .notice-cell {
- display: flex;
- align-items: center;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #585b61;
- .icon {
- width: 63rpx;
- margin-right: 18rpx;
- }
- .text {
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- }
- }
- }
- .service-box {
- background: #ffffff;
- border-radius: 20px 20px 20px 20px;
- margin: 30rpx 20rpx 0;
- padding: 0rpx 20rpx;
- .service-item {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- height: 120rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #585b61;
- .img {
- width: 70rpx;
- height: auto;
- }
- }
- }
- .slot-image {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- margin-right: 10px;
- width: 30px;
- height: 30px;
- }
- .more {
- display: flex;
- align-items: center;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #a6abb5;
- }
- .orders {
- background: #ffffff;
- border-radius: 20px 20px 20px 20px;
- margin: 30rpx 20rpx 60rpx;
- padding: 30rpx 20rpx;
- .cell {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .ctitle {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #585b61;
- }
- .more {
- display: flex;
- align-items: center;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #a6abb5;
- }
- }
- .orders-list {
- margin-top: 30rpx;
- .orders-item {
- &:not(:last-of-type) {
- padding: 0 0 30rpx;
- margin-bottom: 30rpx;
- border-bottom: 1px solid #eeeeee;
- }
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- flex: 1;
- height: 160rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- .info {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #585b61;
- line-height: 36rpx;
- }
- .date {
- display: flex;
- align-items: center;
- .icon {
- width: 21rpx;
- height: 21rpx;
- margin-right: 9rpx;
- }
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #a6abb5;
- }
- }
- // .img {
- // flex-shrink: 0;
- // width: 252rpx;
- // height: 160rpx;
- // border-radius: 20rpx;
- // background-color: #82848a;
- // }
- }
- }
- }
- </style>
|