<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
- 发布:2024-07-09 12:50
- 更新:2024-07-09 13:07
- 阅读:167
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 4.23
第三方开发者工具版本号: 1.06.2402040
基础库版本号: 3.4.7
项目创建方式: HBuilderX
示例代码:
操作步骤:
<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
预期结果:
<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
实际结果:
<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
<view class="row">
<label>账号</label>
<input type="text" data-field="name" v-model="username">
</view>
<view class="row">
<label>密码</label>
<input type="password" data-field="password" v-model="password" @confirm="login2" confirm-type="go">
</view>
1***@qq.com (作者)
我换个小程序基础库试试
2024-07-09 13:24