Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
5f542d22
Commit
5f542d22
authored
Jul 12, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户强制选择vip
parent
202e61f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
user.js
public/resource/js/user.js
+6
-5
No files found.
public/resource/js/user.js
View file @
5f542d22
...
@@ -114,14 +114,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -114,14 +114,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user
.
getGenjinLabel
();
user
.
getGenjinLabel
();
});
});
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
//
新增客户
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
//
重置搜索
document
.
getElementById
(
"add_user_form"
).
reset
();
document
.
getElementById
(
"add_user_form"
).
reset
();
});
});
// ===========================新增客户====================
// ===========================新增客户====================
$
(
document
).
delegate
(
"#add_user"
,
"click"
,
function
()
{
//新增客户
$
(
document
).
delegate
(
"#add_user"
,
"click"
,
function
()
{
//新增客户
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
add_user
();
user
.
add_user
();
});
});
...
@@ -708,15 +707,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -708,15 +707,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
params
.
area_demand
=
$
(
"#area_type2"
).
val
();
params
.
area_demand
=
$
(
"#area_type2"
).
val
();
params
.
industry_type
=
$
(
"#industry_type2"
).
val
();
params
.
industry_type
=
$
(
"#industry_type2"
).
val
();
params
.
vip
=
$
(
"#user_vip"
).
val
();
params
.
vip
=
$
(
"#user_vip"
).
val
();
params
.
type
=
'add'
;
params
.
type
=
'add'
;
if
(
params
.
user_name
==
''
)
{
if
(
params
.
user_name
==
''
)
{
alert
(
'姓名不能为空'
);
alert
(
'姓名不能为空'
);
$
(
"input[name='user_name']"
).
focus
();
$
(
"input[name='user_name']"
).
focus
();
return
;
return
;
}
}
if
(
params
.
vip
==
''
)
{
alert
(
'请选择vip'
);
$
(
"#user_vip"
).
focus
();
return
;
}
if
(
params
.
user_phone
==
''
)
{
if
(
params
.
user_phone
==
''
)
{
alert
(
'手机号不能为空'
);
alert
(
'手机号不能为空'
);
$
(
"input[name='user_phone']"
).
focus
();
$
(
"input[name='user_phone']"
).
focus
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment