添加用户字段判断,砍价列表操作样式修改

This commit is contained in:
吴昊天 2023-02-27 15:56:20 +08:00
parent 2d5db7df5e
commit 1369a84472
3 changed files with 15 additions and 16 deletions

View File

@ -123,20 +123,19 @@ class User extends AuthController
if ($data['card_id']) {
if (!check_card($data['card_id'])) return app('json')->fail(400315);
}
if ($data['pwd']) {
if (!$data['true_pwd']) {
return app('json')->fail(400263);
}
if ($data['pwd'] != $data['true_pwd']) {
return app('json')->fail(400264);
}
if (strlen($data['pwd']) < 6 || strlen($data['pwd']) > 32) {
return app('json')->fail(400762);
}
$data['pwd'] = md5($data['pwd']);
} else {
unset($data['pwd']);
if (!$data['pwd']) {
return app('json')->fail(400256);
}
if (!$data['true_pwd']) {
return app('json')->fail(400263);
}
if ($data['pwd'] != $data['true_pwd']) {
return app('json')->fail(400264);
}
if (strlen($data['pwd']) < 6 || strlen($data['pwd']) > 32) {
return app('json')->fail(400762);
}
$data['pwd'] = md5($data['pwd']);
unset($data['true_pwd']);
$data['avatar'] = sys_config('h5_avatar');
$data['adminId'] = $this->adminId;

View File

@ -194,7 +194,7 @@ export default {
title: '操作',
slot: 'action',
fixed: 'right',
minWidth: 130,
minWidth: 160,
},
],
tableList: [],

View File

@ -40,7 +40,7 @@
class="form-sty"
type="password"
v-model="formItem.pwd"
placeholder="请输入登录密码"
placeholder="请输入登录密码(修改用户可不填写,不填写不修改原密码)"
style="width: 80%"
></Input>
</FormItem>
@ -49,7 +49,7 @@
class="form-sty"
type="password"
v-model="formItem.true_pwd"
placeholder="请输入确认密码"
placeholder="请输入确认密码(修改用户可不填写,不填写不修改原密码)"
style="width: 80%"
></Input>
</FormItem>