index.wxml 970 B

12345678910111213141516171819202122
  1. <view class="top-view">
  2. <!-- 导航栏 -->
  3. <van-nav-bar custom-style="background-color: #fff">
  4. <van-icon slot="left" name="arrow-left" size="25px" color="#333" bind:click="backToParent"/>
  5. <text slot="title" style="color: #333;">忘记密码</text>
  6. </van-nav-bar>
  7. </view>
  8. <!-- 内容 -->
  9. <van-cell-group>
  10. <!-- 手机号码 -->
  11. <van-field model:value="{{ mobile }}" type="number" label="手机号码" required clearable placeholder="请输入手机号码">
  12. <van-button slot="button" size="small" type="primary" bind:click="onButtonPressed">获取验证码</van-button >
  13. </van-field>
  14. <!-- 短信验证码 -->
  15. <van-field model:value="{{ code }}" label="短信验证码" required clearable placeholder="请输入短信验证码"/>
  16. </van-cell-group>
  17. <!-- 按钮 -->
  18. <view class="button-view">
  19. <van-button custom-class="submit" color="linear-gradient(to right, #4bb0ff, #6149f6)" block bind:click="onButtonPressed">提交</van-button>
  20. </view>