123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <!--pages/penInfo/penInfo.wxml-->
- <view class="penInfo">
- <view class="title">
- 笔参数
- </view>
- <scroll-view class="penInfoScroll" scroll-y="{{true}}">
- <van-cell-group custom-class="mb20">
- <van-cell title="笔名" value="{{penName}}" bindtap="showSheet" data-changeIndex="0" is-link></van-cell>
- <van-cell title="蓝牙地址" value="{{macAddress}}"></van-cell>
- <van-cell title="蓝牙固件版本" value="{{blueToothVersion}}"></van-cell>
- <van-cell title="MCU固件版本" value="{{mcuVersion}}"></van-cell>
- </van-cell-group>
- <van-cell-group custom-class="mb20">
- <van-cell title="客户ID" value="{{customerId}}"></van-cell>
- <van-cell title="OID" value="{{penType}}-{{penOid}}"></van-cell>
- <van-cell title="剩余电量" value="{{penPower}}"></van-cell>
- <van-cell title="已用内存" value="{{penMemory}}%"></van-cell>
- <van-cell title="RTC时间" is-link value="{{date+' '+time}}" data-changeindex="1" bindtap="showSheet"></van-cell>
- </van-cell-group>
- <van-cell-group custom-class="mb20">
- <van-cell title="蜂鸣器">
- <van-switch active-color="#EC6938" data-swicthIndex="0" checked="{{penBeep}}" bind:change="switchButton" loading="{{switchLoadingIndex===0}}" inactive-color="#B4C1D3" size="20px" slot="right-icon">
- </van-switch>
- </van-cell>
- <van-cell title="笔尖压力唤醒">
- <van-switch active-color="#EC6938" checked="{{penClickMode}}" bind:change="switchButton" data-swicthIndex="1" inactive-color="#B4C1D3" size="20px" slot='right-icon'>
- </van-switch>
- </van-cell>
- <van-cell title="呼吸灯">
- <van-switch active-color="#EC6938" data-swicthIndex="2" inactive-color="#B4C1D3" size="20px" slot='right-icon'>
- </van-switch>
- </van-cell>
- <van-cell title="自动关机时间" is-link value="{{penAutoOff}}" bindtap="showSheet" data-changeIndex="3">
- </van-cell>
- <van-cell title="无效码上报数量" is-link bindtap="showSheet" data-changeIndex="4" value="{{invalidCodeNum===0?'关':invalidCodeNum}}"></van-cell>
- <van-cell title="主动触发蜂鸣器" is-link bindtap="showSheet" data-changeIndex="5"></van-cell>
- </van-cell-group>
- <van-cell-group custom-class="mb20">
- <van-cell title="灵敏度" is-link value="{{penSensor}}" bindtap="showSheet" data-changeIndex="2"></van-cell>
- <van-cell title="压力值范围" value="{{penPresure}}"></van-cell>
- <!-- <van-cell title="点读码值" value="{{oidValue}}"
- label="SA-SB-SC-SD-index" center
- ></van-cell> -->
- </van-cell-group>
- <van-cell-group class="mb20">
- <van-cell title="保存日志">
- <van-switch active-color="#EC6938" bind:change="switchButton" checked="{{saveLog}}" data-swicthIndex="3" inactive-color="#B4C1D3" size="20px" slot="right-icon">
- </van-switch>
- </van-cell>
- <van-cell title="笔锋绘制">
- <van-switch active-color="#EC6938" bind:change="switchButton" checked="{{strokeOn}}" data-swicthIndex="4" inactive-color="#B4C1D3" size="20px" slot="right-icon">
- </van-switch>
- </van-cell>
- <van-cell title="过滤算法">
- <van-switch active-color="#EC6938" data-swicthIndex="5" inactive-color="#B4C1D3" size="20px" slot="right-icon">
- </van-switch>
- </van-cell>
- </van-cell-group>
- </scroll-view>
- <van-dialog id='van-dialog'></van-dialog>
- <van-action-sheet show="{{ showSheet }}">
- <!-- 修改笔名 -->
- <view class="changePenName" wx:if="{{sheetIndex===0}}">
- <view class="penNameTitle">设置笔名</view>
- <view class="inputArea">
- <input type="text" class="penNameInput" placeholder="请输入笔名" value="{{penName}}" bindinput="inputPenName" bindfocus="savePenName" />
- </view>
- <view class="buttons">
- <van-button custom-class="w50 leftButton" bind:click="cancleShowSheet">取消</van-button>
- <van-button custom-class="w50 rightButton" form-type="submit" bind:click="submitSheet">确认</van-button>
- </view>
- </view>
- <!-- 修改时间 -->
- <view class="changeTime" wx:if="{{sheetIndex===1}}">
- <view class="setDateTime">
- <view class="timeTitle">设置笔RTC时间</view>
- <picker mode="date" value="{{date}}" start="2010-01-01" end="2100-09-01" bindchange="changeDate">
- <van-cell title="日期" is-link value="{{date}}" bindtap="showDatePicker"></van-cell>
- </picker>
- <picker mode="time" value="{{time}}" start="00:00" end="23:59" bindchange="changeTime">
- <van-cell title="时间" is-link value="{{time}}" bindtap="showTimePicker"></van-cell>
- </picker>
- <view class="buttons" style="border:none">
- <van-button custom-class="w50 leftButton" bind:click="timeCancel">取消</van-button>
- <van-button custom-class="w50 rightButton" form-type="submit" bind:click="submitSheet">确认</van-button>
- </view>
- </view>
- </view>
- <!-- 修改灵敏度 -->
- <view class="penSensor" wx:if="{{sheetIndex===2}}">
- <view class="sensorTitle">
- <text>设置灵敏度</text>
- <view bindtap="sensorCancle">取消</view>
- </view>
- <view class="secondTitle">(最灵敏)</view>
- <view class="sensorChosen">
- <view wx:for="{{[0,1,2,3,4]}}" data-clickindex="{{item}}" bindtap="chosenSensor" class="{{item===penSensor?'sensorClick':'sensorItem'}}" wx:key="index">
- {{item}}
- </view>
- </view>
- <view class="sensorButton" bindtap="submitSheet">确定</view>
- </view>
- <!-- 修改自动关机时间 -->
- <view class="changeAutoOff" wx:if="{{sheetIndex===3}}">
- <view class="autoTitle">设置笔的自动关机时间</view>
- <view class="autoSecondTitle">时长为操作自动关机</view>
- <view class="autoInput">
- <input type="text" class="penNameInput" placeholder="请输入自动关机时间" value="{{penAutoOff}}" bindinput="inputAutoOff" />
- <text>min</text>
- </view>
- <view class="buttons">
- <van-button custom-class="w50 leftButton" bind:click="autoOffCancel">取消</van-button>
- <van-button custom-class="w50 rightButton" form-type="submit" bind:click="submitSheet">确认</van-button>
- </view>
- </view>
- <view class="changeAutoOff" wx:if="{{sheetIndex===4}}">
- <view class="autoTitle">设置笔的错误码上传个数</view>
- <view class="autoSecondTitle">数字为间隔多少发送,0为关闭</view>
- <view class="autoInput">
- <input class="penNameInput" type="number" placeholder="请输入错误码个数" value="{{invalidCodeNum}}" bindinput="inputInvalidCode" />
- </view>
- <view class="buttons">
- <van-button custom-class="w50 leftButton" bind:click="invalidCodeCancel">取消</van-button>
- <van-button custom-class="w50 rightButton" form-type="submit" bind:click="submitSheet">确认</van-button>
- </view>
- </view>
- <view class="changeAutoOff" wx:if="{{sheetIndex===5}}">
- <view class="autoTitle">主动触发笔的蜂鸣器</view>
- <view class="autoSecondTitle">次数为大于1的数,间隔为大于500的数</view>
- <view class="mainBox">
- <view class="inputArea">
- <text>次数:</text>
- <input type="number" value="{{beepTime}}" bindinput="inputBeepTime" />
- </view>
- <view class="inputArea">
- <text>间隔:</text>
- <input type="number" value="{{beepInterval}}" />
- </view>
- </view>
- <view class="buttons">
- <van-button custom-class="w50 leftButton" bind:click="invalidCodeCancel">取消</van-button>
- <van-button custom-class="w50 rightButton" form-type="submit" bind:click="submitSheet">确认</van-button>
- </view>
- </view>
- </van-action-sheet>
- </view>
|