33 lines
No EOL
1.2 KiB
Text
33 lines
No EOL
1.2 KiB
Text
<!--pages/edit/edit.wxml-->
|
|
<form bindsubmit="keySubmit">
|
|
<view class="section">
|
|
<view class="section-title">基本信息</view>
|
|
<view class="input-box">
|
|
<text>Service</text>
|
|
<input name="issuer" placeholder="服务名称" placeholder-style="color: #666; font-size: 1rem;" value="{{issuer}}"/>
|
|
</view>
|
|
<view class="input-box">
|
|
<text>Account</text>
|
|
<input name="remark" placeholder="帐号备注" placeholder-style="color: #666; font-size: 1rem;" value="{{remark}}"/>
|
|
</view>
|
|
</view>
|
|
|
|
<block wx:if="{{isHotp}}">
|
|
<view class="section">
|
|
<view class="section-title">HOTP设置</view>
|
|
<view class="input-box">
|
|
<text>当前计数器值</text>
|
|
<input type="number" name="counter" value="{{counter}}" placeholder-style="color: #666; font-size: 1rem;" />
|
|
<view class="tip-text">修改计数器值会影响验证码生成,请谨慎操作</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
<view class="button-group">
|
|
<view class="add-btn">
|
|
<button form-type="submit" disabled="{{isSubmitting}}">
|
|
{{isSubmitting ? '保存中...' : '保存修改'}}
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</form> |