将page-container组件重命名为root-page-layout,并更新所有文档中的引用,以更好地反映其作为页面根布局的角色。已更新AGENTS.md、README.md中的引用,并相应重命名了组件使用指南。
31 lines
812 B
Plaintext
31 lines
812 B
Plaintext
<!--pages/login/login.wxml-->
|
|
<root-page-layout 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>
|
|
</root-page-layout>
|