145 lines
6.7 KiB
Plaintext
145 lines
6.7 KiB
Plaintext
<view class="container">
|
|
<!-- 滑动 Tab 栏 -->
|
|
<!-- <scroll-view scroll-x scroll-with-animation scroll-into-view="{{ currentTabId }}" class="tab-scroll">
|
|
<view wx:for="{{ tabs }}" wx:key="index" id="tab{{ index }}" class="tab-item {{ currentTab === index ? 'active' : '' }}" bindtap="switchTab" data-index="{{ index }}">
|
|
{{ item }}
|
|
</view>
|
|
</scroll-view> -->
|
|
|
|
|
|
<view class="deviceInfo">
|
|
<view class="deviceInfo_Tit">设备编号:{{Info.device.device_code}}</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">设备型号</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.product_name}}</view>
|
|
</view>
|
|
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">设备状态</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device_net.active_status}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">原水值</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device_net.raw_water_value}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">净水值</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device_net.purification_water_value}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">计费模式</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device_net.billing_mode}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">剩余流量</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.surplus_flow}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">货贷总价</view>
|
|
<view class="deviceInfo_Item_con">277天</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">累计过滤流量</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.accumulated_usage}}升</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">水质等级</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.purification_water_value}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">iccd</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.device_iccid}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">创建时间</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.create_time}}</view>
|
|
</view>
|
|
<view class="btnList">
|
|
<!-- wx:if="{{Info.sevice_status == 2}} -->
|
|
<view class="btn btn1" bind:tap="Open" wx:if="{{Info.sevice_status == 2}}">开机</view>
|
|
<!-- wx:if="{{Info.sevice_status == 1}}" -->
|
|
<view class="btn btn2" bind:tap="Close" wx:if="{{Info.sevice_status == 1}}">关机</view>
|
|
<view class="btn btn2" bind:tap="uninstall">拆机</view>
|
|
<view class="btn btn3" bind:tap="active">激活</view>
|
|
<!-- -->
|
|
<view class="btn btn4" wx:if="{{Info.billing_method == 2}}" bind:tap="recharge2">流量充值</view>
|
|
<view class="btn btn4" wx:if="{{Info.billing_method == 1}}" bind:tap="recharge1">时长充值</view>
|
|
</view>
|
|
</view>
|
|
<view class="gray"></view>
|
|
<view class="filter_Info">
|
|
<view class="deviceInfo_Tit">滤芯信息</view>
|
|
<view class="lifetime-progress" wx:for="{{Info.device_part}}">
|
|
<text class="progress-name">{{item.parts_name}}</text>
|
|
<van-progress percentage="{{item.parent}}" color="linear-gradient(to right, #FFBBAC, #2583FF)" stroke-width="10" show-pivot="{{false}}" track-color="#FFD6D6" />
|
|
<text class="progress">复位</text>
|
|
</view>
|
|
</view>
|
|
<view class="gray"></view>
|
|
<view class="owner">
|
|
<view class="deviceInfo_Tit">机主信息</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">姓名</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.customer_name}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">微信昵称</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.customer_name}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">手机号码</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.customer_phone}}</view>
|
|
</view>
|
|
<view class="deviceInfo_Item">
|
|
<view class="deviceInfo_Item_ask">地址</view>
|
|
<view class="deviceInfo_Item_con">{{Info.device.region + Info.device.address}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- <cover-view style="position: fixed;">
|
|
<import src="/pages/public/footer.wxml" />
|
|
<template is="footer-nav" data="{{nav_list:nav_list,foot_width:foot_width}}" />
|
|
</cover-view> -->
|
|
|
|
<van-popup show="{{ show }}" position="bottom" safe-area-inset-bottom round bind:close="onClose">
|
|
<view class="tit">
|
|
<view class="cancel" bind:close="onClose">取消</view>
|
|
<view class="sub" bind:tap="createUninstall">确定</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row_label">备注:</view>
|
|
<view class="row_con">
|
|
<textarea placeholder="请输入备注" bindinput="remarksIpt1"></textarea>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
|
|
|
|
<van-popup show="{{ show2 }}" position="bottom" safe-area-inset-bottom round bind:close="onClose">
|
|
<view class="tit">
|
|
<view class="cancel" bind:close="onClose">取消</view>
|
|
<view class="sub" bind:tap="deviceDeactivation">确定</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row_label">到期日期:</view>
|
|
<view class="row_con">
|
|
<input type="number" bindinput="changeRemainingDay" placeholder="请输入到期日期 格式 20250508" />
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
|
|
|
|
|
|
<van-popup show="{{ show3 }}" position="bottom" safe-area-inset-bottom round bind:close="onClose">
|
|
<view class="tit">
|
|
<view class="cancel" bind:close="onClose">取消</view>
|
|
<view class="sub" bind:tap="deviceDataForce">确定</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row_label">设置数额:</view>
|
|
<view class="row_con">
|
|
<textarea placeholder="请输入数额" bindinput="changeSurplusFlow"></textarea>
|
|
</view>
|
|
</view>
|
|
</van-popup> |