<template>
    <div class='temperatureIndex'>
        <div class='bgc-17b3ec ptb10 plr15 c-fff c-f14'>
            <div class='flex f_y_c f_x_s'>
                <span>设备实时温度</span>
                <van-button plain size="small" type="info" class='tbtn w60'>获取</van-button>
            </div>
            <div class='c-f20'>22°</div>
            <div class='mt10'>设备实时温度每10分钟会从设备端返回一次</div>
        </div>
        <div class='mt10 p10 bgc-fff c-f14 c-333 c-border-tb'>
            <div class='flex f_y_c'>
                <span>温度控制：</span>
                <van-switch @click="gotoUrl('/device/temperature/turnControl')" inactive-color='#ccc' active-color='#17b3ec' v-model="checked" />
            </div>
            <div class='mt10' v-show='checked'>温度控制值为  {{'22°'}}</div>
        </div>
    </div>
</template>
<script>
export default{
    name: 'temperatureIndex',
    data(){
        return {
            checked: false
        }
    },
    methods:{

    },
    created(){
        
    }
}
</script>
<style scoped lang='scss'>
.temperatureIndex{
    .tbtn{
        border: 0;
        border-radius: 5px;
    }
}
</style>