2023-02-15 16:32:21 +08:00
|
|
|
<template>
|
|
|
|
|
<view :loading="loading">
|
2023-02-20 14:19:28 +08:00
|
|
|
<!-- <uni-nav-bar left-icon="left" right-icon="cart" title="标题" /> -->
|
|
|
|
|
<uni-nav-bar dark :fixed="true" status-bar left-icon="left" rightIcon="plusempty" background-color="#fff"
|
|
|
|
|
color="#111" title="项目管理" @clickLeft="back" @clickRight="add" />
|
2023-02-15 16:32:21 +08:00
|
|
|
<view class="message">
|
2023-02-28 14:03:38 +08:00
|
|
|
<uni-card title="XXX项目1" extra="用能" @click="jump('XXX项目1')">
|
|
|
|
|
<view class="term-list-bottom">
|
|
|
|
|
<view class="term-list-bottom-item">
|
|
|
|
|
<view>设备个数</view>
|
|
|
|
|
<view>3</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="term-list-bottom-item">
|
|
|
|
|
<view>用户个数</view>
|
|
|
|
|
<view>1</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</uni-card>
|
|
|
|
|
<uni-card title="XXX项目2" extra="监测" @click="jump('XXX项目2')">
|
|
|
|
|
<view class="term-list-bottom">
|
|
|
|
|
<view class="term-list-bottom-item">
|
|
|
|
|
<view>设备个数</view>
|
|
|
|
|
<view>3</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="term-list-bottom-item">
|
|
|
|
|
<view>用户个数</view>
|
|
|
|
|
<view>1</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</uni-card>
|
|
|
|
|
<uni-load-more status="nomore"></uni-load-more>
|
2023-02-15 16:32:21 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
loading: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
init () {
|
|
|
|
|
},
|
2023-02-20 14:19:28 +08:00
|
|
|
back () {
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
},
|
|
|
|
|
add () {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/project/new`
|
|
|
|
|
})
|
|
|
|
|
},
|
2023-02-15 16:32:21 +08:00
|
|
|
upgrade (code) {
|
|
|
|
|
console.log(code);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '升级成功',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
jump (type) {
|
|
|
|
|
uni.navigateTo({
|
2023-02-20 14:19:28 +08:00
|
|
|
url: `/pages/project/detail?project=${type}`
|
|
|
|
|
})
|
2023-02-15 16:32:21 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad () {
|
|
|
|
|
this.init()
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.message {
|
|
|
|
|
padding-top: 20rpx;
|
2023-02-20 14:19:28 +08:00
|
|
|
|
2023-02-15 16:32:21 +08:00
|
|
|
.message-header {
|
|
|
|
|
padding: 200rpx 34rpx 34rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background: $uni-theme-white;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
box-shadow: 0 4rpx 8rpx #e7e7e74c;
|
|
|
|
|
|
|
|
|
|
.message-header-head {
|
|
|
|
|
margin-right: 30rpx;
|
|
|
|
|
height: 128rpx;
|
|
|
|
|
width: 128rpx;
|
|
|
|
|
border-radius: $uni-theme-radius;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-header-name {
|
|
|
|
|
margin-right: 30rpx;
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #111;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #aaa;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-nav {
|
|
|
|
|
padding: 34rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background: $uni-theme-white;
|
|
|
|
|
border-bottom: 1rpx solid #e8e8e8;
|
|
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
|
margin-right: 30rpx;
|
|
|
|
|
height: 44rpx;
|
|
|
|
|
width: 44rpx;
|
|
|
|
|
border-radius: $uni-theme-radius;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-label {
|
|
|
|
|
margin-right: 30rpx;
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #111;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-28 14:03:38 +08:00
|
|
|
|
|
|
|
|
.term-list-bottom {
|
|
|
|
|
.term-list-bottom-item {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
// view:first-of-type{
|
|
|
|
|
// color: #111;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.term-list-bottom-item:last-of-type {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-15 16:32:21 +08:00
|
|
|
</style>
|