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
a3a7204b
Commit
a3a7204b
authored
Nov 01, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推广链接 修改
parent
7acc7ec2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
houseList.js
public/resource/js/houseList.js
+17
-19
No files found.
public/resource/js/houseList.js
View file @
a3a7204b
...
@@ -40,6 +40,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -40,6 +40,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
file_id_str
:
''
,
file_id_str
:
''
,
file_id_arr
:[],
file_id_arr
:[],
agent_id_choose
:
''
,
agent_id_choose
:
''
,
agent_id_choose_p
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
...
@@ -102,11 +103,14 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -102,11 +103,14 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#business_circle_id'
).
html
(
''
);
$
(
'#business_circle_id'
).
html
(
''
);
business
.
agent_id_choose
=
''
;
business
.
agent_id_choose
=
''
;
business
.
agent_id_choose_p
=
''
;
});
});
_doc
.
on
(
"input"
,
"#dish_name"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索
_doc
.
on
(
"input"
,
"#dish_name"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索
if
(
$
(
"#dish_name"
).
val
()
==
''
)
{
if
(
$
(
"#dish_name"
).
val
()
==
''
)
{
business
.
agent_id_choose
=
''
;
business
.
agent_id_choose
=
''
;
business
.
agent_id_choose_p
=
''
;
$
(
".user-ul-agent"
).
html
(
''
);
$
(
".user-ul-agent"
).
html
(
''
);
}
else
{
}
else
{
business
.
search_phone_agent
();
business
.
search_phone_agent
();
...
@@ -118,25 +122,18 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -118,25 +122,18 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_doc
.
on
(
'click'
,
'.link_shop_c'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.link_shop_c'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_shopLink
=
'https://www.tonglianjituan.com/shop_link.html?type=1&city=1'
;
var
p_district_id
=
$
(
'#district_id_panfang'
).
val
();
var
_select_type
=
0
;
var
p_store_id
=
$
(
'#guest_stores_panfang'
).
val
();
if
(
$
(
'#district_id_panfang'
).
val
()){
var
p_agent_id
=
business
.
agent_id_choose_p
;
_shopLink
+=
p_district_id
+
"&"
+
$
(
'#district_id_panfang'
).
val
();
if
(
p_store_id
==
null
){
var
_select_type
=
1
;
p_store_id
=
''
;
};
if
(
$
(
'#guest_stores_panfang'
).
val
()){
_shopLink
+=
p_store_id
+
"&"
+
$
(
'#guest_stores_panfang'
).
val
();
var
_select_type
=
2
;
}
}
if
(
$
(
'#dish_name'
).
val
()){
var
_shopLink
=
'https://www.tonglianjituan.com/shop_link.html?type=1&city=1'
+
'&'
+
'p_district_id'
+
'='
+
p_district_id
+
'&'
+
'p_store_id'
+
'='
+
p_store_id
+
'&'
+
'p_agent_id'
+
'='
+
p_agent_id
;
_shopLink
+=
p_agent_id
+
"&"
+
$
(
'#dish_name'
).
val
();
if
(
p_district_id
||
p_store_id
||
p_agent_id
){
var
_select_type
=
3
;
console
.
log
(
p_store_id
);
}
_shopLink
+=
"&"
+
_select_type
;
if
(
_select_type
==
0
){
$
(
'#link_content'
).
html
(
'进行部门 门店 个人筛选 才会有 推广链接产生'
);
}
else
{
$
(
'#link_content'
).
html
(
_shopLink
);
$
(
'#link_content'
).
html
(
_shopLink
);
}
else
{
$
(
'#link_content'
).
html
(
'进行部门 门店 个人筛选 才会有 推广链接产生'
);
}
}
});
});
...
@@ -144,7 +141,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -144,7 +141,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_doc
.
on
(
'click'
,
'.copy_link_content'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.copy_link_content'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
$
(
'#hide-input-value'
).
val
(
$
(
'#link_content'
).
html
());
$
(
'#hide-input-value'
).
val
(
$
(
'#link_content'
).
text
());
var
d_copy
=
document
.
getElementById
(
"hide-input-value"
);
var
d_copy
=
document
.
getElementById
(
"hide-input-value"
);
d_copy
.
select
();
d_copy
.
select
();
document
.
execCommand
(
"Copy"
);
document
.
execCommand
(
"Copy"
);
...
@@ -1405,7 +1402,7 @@ if(data.code == 200) {
...
@@ -1405,7 +1402,7 @@ if(data.code == 200) {
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
data
,
function
(
i
,
item
)
{
$
.
each
(
data
.
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone-agent" data-id="'
+
item
.
name
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
user_ul
+=
'<li class="addphone-agent" data-id="'
+
item
.
name
+
'"'
+
'data-ids="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
});
$
(
".user-ul-agent"
).
html
(
user_ul
);
$
(
".user-ul-agent"
).
html
(
user_ul
);
...
@@ -1421,6 +1418,7 @@ if(data.code == 200) {
...
@@ -1421,6 +1418,7 @@ if(data.code == 200) {
$
(
"#dish_name"
).
val
(
user_ht
);
$
(
"#dish_name"
).
val
(
user_ht
);
$
(
".user-ul-agent"
).
html
(
''
);
$
(
".user-ul-agent"
).
html
(
''
);
business
.
agent_id_choose
=
$
(
obj
).
attr
(
"data-id"
);
business
.
agent_id_choose
=
$
(
obj
).
attr
(
"data-id"
);
business
.
agent_id_choose_p
=
$
(
obj
).
attr
(
"data-ids"
);
},
},
//初始化 城市 获取区域 传给后端字段 可以不接收
//初始化 城市 获取区域 传给后端字段 可以不接收
initializationCityFunction
:
function
(
params
)
{
initializationCityFunction
:
function
(
params
)
{
...
...
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