页面切图

This commit is contained in:
仲么了
2023-02-17 09:03:47 +08:00
parent c183f91ace
commit 7d28b3476a
11 changed files with 99 additions and 27 deletions

View File

@@ -200,7 +200,7 @@ export default {
}
&-active {
background: $uni-color-primary;
background: $uni-theme-blue;
color: #fff;
}
}

View File

@@ -193,7 +193,7 @@ export default {
&-active {
background: $uni-color-primary;
background: $uni-theme-blue;
color: #fff;
}
}

View File

@@ -43,7 +43,7 @@ export default {
.transfer-img {
width: 500rpx;
height: 500rpx;
background: $uni-color-primary ;
background: $uni-theme-blue ;
}
.transfer-text {
@@ -63,7 +63,7 @@ export default {
flex: 1;
height: 80rpx;
border-radius: 12rpx;
background-color: $uni-color-primary;
background-color: $uni-theme-blue;
font-size: 28rpx;
color: #fff;
display: flex;

View File

@@ -14,24 +14,72 @@
<div class="header-item-label">离线设备</div>
</div>
</div>
<uni-card title="基础设备" sub-title="副标题" :extra="item % 2 ? 'APF' : 'DVR'" v-for="item in 3" :key="item"
@click="jump(item)" thumbnail="/static/device.png">
<text>设备基础信息 </text>
<view style="padding:30rpx 30rpx 0">
<Cn-grid title="注册">
<Cn-grid-item src="/static/device2.png" text="设备"></Cn-grid-item>
<Cn-grid-item src="/static/gateway2.png" text="网关"></Cn-grid-item>
<Cn-grid-item background="#fff"></Cn-grid-item>
<Cn-grid-item background="#fff"></Cn-grid-item>
</Cn-grid>
</view>
<view class="nav">
<view class="nav-menu" :class="{ 'nav-menu-active': navMenuActive == index }"
v-for="(item, index) in navMenuList" :key="index" @click="navMenuClick(index)">{{ item.text }}
</view>
</view>
<uni-card :title="item.name" :sub-title="item.project" :extra="item.type" v-for="item in deviceListFilter"
:key="item" style="margin-top:4rpx" @click="jump(item)" thumbnail="/static/device.png">
<text>{{ item.project }} {{ item.type }}</text>
</uni-card>
<uni-load-more status="nomore"></uni-load-more>
</view>
</view>
</template>
<script>
export default {
data () {
return {
loading: false
loading: false,
navMenuList: [{
text: '全部'
}, {
text: '监测'
}, {
text: '治理'
}],
navMenuActive: 0,
deviceList: [
{
name: '设备1',
des: '设备描述1',
type: 'APF',
project: '监测',
},
{
name: '设备2',
des: '设备描述2',
type: 'DVR',
project: '治理'
}
]
}
},
computed: {
deviceListFilter () {
if (this.navMenuActive == 0) {
return this.deviceList
} else {
return this.deviceList.filter(item => item.project == this.navMenuList[this.navMenuActive].text)
}
}
},
methods: {
navMenuClick (index) {
this.navMenuActive = index
},
jump (item) {
if (item % 2) {
uni.navigateTo({
uni.navigateTo({
url: '/pages/device/APF/detail'
})
} else {
@@ -43,6 +91,4 @@ export default {
}
}
</script>
<style lang='scss'>
.index-zhuyonghu {}
</style>
<style lang='scss'></style>