并转桌子
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<!-- 不需要label, 需要修改: label-width="0" -->
|
||||
<uni-forms ref="loginFormRef" label-width="0" :model="vdata.formData" :rules="rules">
|
||||
|
||||
<view >
|
||||
<view>
|
||||
<uni-forms-item name="username">
|
||||
<uni-easyinput class='jeepay-easyinput' placeholder="请输入登录名/手机号"
|
||||
v-model="vdata.formData.username" :clearable="false">
|
||||
@@ -29,7 +29,8 @@
|
||||
</template>
|
||||
<template #suffixIcon>
|
||||
<view class='show-tips' @tap="vdata.isShowPwd = !vdata.isShowPwd ">
|
||||
{{ vdata.isShowPwd ? '隐藏' : '显示' }}</view>
|
||||
{{ vdata.isShowPwd ? '隐藏' : '显示' }}
|
||||
</view>
|
||||
</template>
|
||||
</uni-easyinput>
|
||||
</uni-forms-item>
|
||||
@@ -55,7 +56,6 @@
|
||||
</view>
|
||||
</template>
|
||||
<script setup>
|
||||
|
||||
import {
|
||||
login
|
||||
} from '@/http/businessApiManger.js';
|
||||
@@ -107,12 +107,11 @@
|
||||
|
||||
|
||||
function loginFunc() {
|
||||
|
||||
|
||||
// 表单验证
|
||||
formUtil.validate(loginFormRef.value).then(() => {
|
||||
|
||||
|
||||
login(vdata.formData).then((res) => {
|
||||
console.log(res);
|
||||
useStorage.set('token', res.data.token);
|
||||
useStorage.set('userInfo', res.data.user);
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user