接口对接

This commit is contained in:
仲么了
2023-07-03 20:29:24 +08:00
parent 5f67499e57
commit 77fd768acf
32 changed files with 587 additions and 1319 deletions

View File

@@ -15,7 +15,7 @@
<text class="ml20">版本号v1.0.0</text>
</view>
<view class="title mb20 m340">设备列表
<view class="footer-btn" v-if="userInfo.role != '2' && userInfo.role != '5'" @click="newDevice">注册设备
<view class="footer-btn" v-if="userInfo.authorities != '2' && userInfo.authorities != '5'" @click="newDevice">注册设备
</view>
</view>
<uni-card :title="'设备' + item" :sub-title="'XXX项目1'" extra="用能" v-for="item in 2" :key="item"

View File

@@ -1,18 +1,18 @@
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index' :class="{ 'device': userInfo.role == '5' || userInfo.role == '2' }">
<view class='index' :class="{ 'device': userInfo.authorities == '5' || userInfo.authorities == '2' }">
<uni-card title="监测网关" sub-title="监测" @click="look" thumbnail="/static/gateway.png"
:padding="userInfo.role == '5' || userInfo.role == '2' ? 0 : '10px'">
<view class="footer" v-if="userInfo.role != 5 && userInfo.role != 2">
:padding="userInfo.authorities == '5' || userInfo.authorities == '2' ? 0 : '10px'">
<view class="footer" v-if="userInfo.authorities != 5 && userInfo.authorities != 2">
<text style="flex:1"> </text>
<view class="footer-btn" @click.stop="newDevice">注册设备</view>
<view class="footer-btn ml20">查看</view>
</view>
</uni-card>
<uni-card title="用能网关" sub-title="用能" @click="look" thumbnail="/static/gateway.png"
:padding="userInfo.role == '5' || userInfo.role == '2' ? 0 : '10px'">
<view class="footer" v-if="userInfo.role != 5 && userInfo.role != 2">
:padding="userInfo.authorities == '5' || userInfo.authorities == '2' ? 0 : '10px'">
<view class="footer" v-if="userInfo.authorities != 5 && userInfo.authorities != 2">
<text style="flex:1"> </text>
<view class="footer-btn" @click.stop="newDevice">注册设备</view>
<view class="footer-btn ml20">查看</view>