完善工程
This commit is contained in:
@@ -15,11 +15,12 @@
|
||||
<text class="ml20">版本号:v1.0.0</text>
|
||||
</view>
|
||||
<view class="title mb20 m340">设备列表
|
||||
<view class="footer-btn" @click="newDevice">注册设备</view>
|
||||
<view class="footer-btn" v-if="userInfo.role != '2' && userInfo.role != '5'" @click="newDevice">注册设备
|
||||
</view>
|
||||
</view>
|
||||
<uni-card :title="'设备' + item" :sub-title="'XXX项目1'" extra="用能" v-for="item in 2" :key="item"
|
||||
@click="goDevice" padding="0" thumbnail="/static/device.png">
|
||||
</uni-card>
|
||||
@click="goDevice" padding="0" thumbnail="/static/device.png">
|
||||
</uni-card>
|
||||
<uni-load-more status="nomore"></uni-load-more>
|
||||
<view style="height:20rpx"></view>
|
||||
</view>
|
||||
@@ -33,6 +34,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
userInfo: {},
|
||||
deviceList: [
|
||||
{
|
||||
name: '设备1',
|
||||
@@ -62,6 +64,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad (options) {
|
||||
this.userInfo = uni.getStorageSync('userInfo')
|
||||
},
|
||||
|
||||
}
|
||||
@@ -83,6 +86,7 @@ export default {
|
||||
font-size: 36rpx;
|
||||
color: #111;
|
||||
font-weight: 700;
|
||||
|
||||
.footer-btn {
|
||||
padding: 0 20rpx;
|
||||
height: 50rpx;
|
||||
@@ -105,4 +109,5 @@ export default {
|
||||
box-sizing: border-box;
|
||||
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user