|
|
|
@ -77,7 +77,12 @@
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="box box-solid btns">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title"><img :src="server+'/IoTCenter/images/light2.png'" style="height:16px;margin-right:10px;" />{{device.DisplayName||device.Name}}</h3>
|
|
|
|
|
<h3 class="box-title">
|
|
|
|
|
<img :src="server+'/IoTCenter/images/light2.png'" style="height:16px;margin-right:10px;" />{{device.DisplayName||device.Name}}<span :style="{
|
|
|
|
|
display:'inline-block',
|
|
|
|
|
color:'#eee',
|
|
|
|
|
backgroundColor:getLightColor(GetDataValue(device.Number,'色调'),GetDataValue(device.Number,'饱和度'),GetDataValue(device.Number,'亮度'))}">{{getLightColor(GetDataValue(device.Number,'色调'),GetDataValue(device.Number,'饱和度'),GetDataValue(device.Number,'亮度'))}}</span>
|
|
|
|
|
</h3>
|
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
|
<img v-if="GetDataValue(device.Number,'状态')=='开'" @click="CallApi(device.Number,'/WarmLight/Off')" :src="server+'/IoTCenter/images/on.png'" />
|
|
|
|
|
<img v-if="GetDataValue(device.Number,'状态')=='关'" @click="CallApi(device.Number,'/WarmLight/On')" :src="server+'/IoTCenter/images/off.png'" />
|
|
|
|
@ -131,9 +136,10 @@
|
|
|
|
|
<script type="text/javascript" src="lib/framework7/js/framework7.bundle.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="lib/framework7/js/framework7-vue.bundle.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="lib/flv.js/flv.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="js/node.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
var debug = true;
|
|
|
|
|
loadData();
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript" src="js/node.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|