mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
添加用户字段判断,砍价列表操作样式修改
This commit is contained in:
parent
2d5db7df5e
commit
1369a84472
@ -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;
|
||||
|
||||
@ -194,7 +194,7 @@ export default {
|
||||
title: '操作',
|
||||
slot: 'action',
|
||||
fixed: 'right',
|
||||
minWidth: 130,
|
||||
minWidth: 160,
|
||||
},
|
||||
],
|
||||
tableList: [],
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user