configuration.vue
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template>
<view class="status-page">
<f-navbar navbarType="2" @leftClick="leftClick">
<view class="u-flex search-top" slot="left">
<view class="search-main"><u--input prefixIcon="search" placeholder="请输入组态名称" border="surround" shape="circle"></u--input></view>
</view>
</f-navbar>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view class="status-container">
<view @click="openStatusDetail(item.id)" v-for="(item, index) in list" :key="index" class="status-item u-flex">
<view class="item-image"><image class="image" :src="item.icon"></image></view>
<view class="item-text">
<text class="text">{{ item.name }}</text>
</view>
</view>
</view>
<f-tabbar></f-tabbar>
</view>
</template>
<script>
import fTabbar from '@/components/module/f-tabbar/f-tabbar';
import fNavbar from '@/components/module/f-navbar/f-navbar';
export default {
components: {
fTabbar,
fNavbar
},
data() {
return {
list: [
{
id: 1,
name: '智慧办公室1',
icon: '../../../static/test.png'
},
{
id: 2,
name: '智慧办公室2',
icon: '../../../static/test.png'
}
]
};
},
onLoad() {
// 隐藏原生的tabbar
uni.hideTabBar();
},
methods: {
leftClick() {
return false;
},
openStatusDetail(e) {
uni.navigateTo({
url: 'configurationDetail'
});
}
}
};
</script>
<style lang="scss" scoped>
@import '../static/configuration.scss';
</style>