31 lines
808 B
Plaintext
31 lines
808 B
Plaintext
<!--pages/login/login.wxml-->
|
|
<page-container title="Request 使用示例">
|
|
<view class="login-container">
|
|
<!-- 登录表单区域 -->
|
|
<view class="form-section">
|
|
<view class="section-title">1. POST 请求示例 - 登录</view>
|
|
|
|
<t-input
|
|
placeholder="请输入用户名"
|
|
value="{{username}}"
|
|
bind:change="onUsernameChange"
|
|
class="input-item"
|
|
clearable
|
|
/>
|
|
|
|
<t-input
|
|
placeholder="请输入密码"
|
|
value="{{password}}"
|
|
type="password"
|
|
bind:change="onPasswordChange"
|
|
class="input-item"
|
|
clearable
|
|
/>
|
|
|
|
<view class="button-group">
|
|
<t-button theme="primary" size="large" bind:tap="handleLogin" block> 登录 </t-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</page-container>
|