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
717fb0ee
Commit
717fb0ee
authored
Nov 19, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺详情修改
parent
0d5b8ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
57 deletions
+61
-57
detaila_tl.js
public/app/js/detaila_tl.js
+61
-57
No files found.
public/app/js/detaila_tl.js
View file @
717fb0ee
...
...
@@ -45,6 +45,7 @@
_panfang_name
=
response
.
data
.
panParty
[
0
].
name
;
_panfang_img
=
"https://api.tonglianjituan.com/static/user_header/"
+
response
.
data
.
panParty
[
0
].
img
;
_panfang_tel
=
response
.
data
.
panParty
[
0
].
phone
;
isCity
();
var
shang
=
response
.
data
.
shop_type
;
var
shanpu
=
' '
;
if
(
shang
==
"0"
)
{
...
...
@@ -287,63 +288,7 @@
// var _name_img = getUrlParam('user_img');
// var _tel = getUrlParam('user_tel');
// pc h5推广
if
(
_city
){
var
_fix_bottom
=
$
(
".fix_area_bottom_new"
);
_fix_bottom
.
show
();
$
(
'.shop-list'
).
show
();
$
(
"#fix_name"
).
html
(
_panfang_name
);
$
(
"#fix_tel"
).
attr
(
"href"
,
"tel:"
+
_panfang_tel
);
if
(
_panfang_img
){
$
(
".head-img-agent"
).
attr
(
"src"
,
_panfang_img
);
}
else
{
$
(
".head-img-agent"
).
attr
(
"src"
,
"/app/images/ic_default_headpic.png"
);
}
//点击拨打 记录拨打次数 朱威
$
(
"#fix_tel"
).
click
(
function
()
{
var
time
=
localStorage
.
getItem
(
_shangpuId
+
"_"
+
_tel
);
var
nowTime
=
(
new
Date
()).
getTime
();
if
(
!
time
||
nowTime
-
time
>
24
*
3600
*
1000
){
$
.
ajax
({
url
:
'/api/addUserCallAgentV2'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'phone'
:
_tel
,
'source'
:
generalize_id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
localStorage
.
setItem
(
_shangpuId
+
"_"
+
_tel
,(
new
Date
()).
getTime
());
}
});
}
});
$
(
"#fix_tel"
).
click
(
function
()
{
var
_time
=
localStorage
.
getItem
(
_tel
+
"_"
+
_shangpuId
);
var
_nowTime
=
(
new
Date
()).
getTime
();
if
(
!
_time
||
_nowTime
-
_time
>
24
*
3600
*
1000
){
$
.
ajax
({
url
:
'/api/recordCallNumShare'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'phone'
:
_tel
},
dataType
:
'json'
,
success
:
function
(
data
)
{
localStorage
.
setItem
(
_tel
+
"_"
+
_shangpuId
,(
new
Date
()).
getTime
());
}
});
}
});
$
(
"#fix_area_bottom_btn"
).
click
(
function
()
{
_fix_bottom
.
hide
();
});
//点击 商铺详情的 更多商铺
$
(
'.shop-list'
).
click
(
function
()
{
location
.
href
=
ServerHost
+
"/app/dist/#/shopList?city="
+
p_city
+
'&type='
+
p_type
+
'&p_district_id='
+
p_district_id
+
'&p_store_id='
+
p_store_id
+
'&p_agent_id='
+
p_agent_id
;
});
};
//经纪人 商铺列表 微门店
if
(
_name
||
_tel
)
{
...
...
@@ -407,6 +352,65 @@
location
.
href
=
ServerHost
+
'/app/dist/#/shopList'
;
});
};
function
isCity
(){
//判断是 推广链接
if
(
_city
){
var
_fix_bottom
=
$
(
".fix_area_bottom_new"
);
_fix_bottom
.
show
();
$
(
'.shop-list'
).
show
();
$
(
"#fix_name"
).
html
(
_panfang_name
);
$
(
"#fix_tel"
).
attr
(
"href"
,
"tel:"
+
_panfang_tel
);
if
(
_panfang_img
){
$
(
".head-img-agent"
).
attr
(
"src"
,
_panfang_img
);
}
else
{
$
(
".head-img-agent"
).
attr
(
"src"
,
"/app/images/ic_default_headpic.png"
);
}
//点击拨打 记录拨打次数 朱威
$
(
"#fix_tel"
).
click
(
function
()
{
var
time
=
localStorage
.
getItem
(
_shangpuId
+
"_"
+
_tel
);
var
nowTime
=
(
new
Date
()).
getTime
();
if
(
!
time
||
nowTime
-
time
>
24
*
3600
*
1000
){
$
.
ajax
({
url
:
'/api/addUserCallAgentV2'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'phone'
:
_tel
,
'source'
:
generalize_id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
localStorage
.
setItem
(
_shangpuId
+
"_"
+
_tel
,(
new
Date
()).
getTime
());
}
});
}
});
$
(
"#fix_tel"
).
click
(
function
()
{
var
_time
=
localStorage
.
getItem
(
_tel
+
"_"
+
_shangpuId
);
var
_nowTime
=
(
new
Date
()).
getTime
();
if
(
!
_time
||
_nowTime
-
_time
>
24
*
3600
*
1000
){
$
.
ajax
({
url
:
'/api/recordCallNumShare'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'phone'
:
_tel
},
dataType
:
'json'
,
success
:
function
(
data
)
{
localStorage
.
setItem
(
_tel
+
"_"
+
_shangpuId
,(
new
Date
()).
getTime
());
}
});
}
});
$
(
"#fix_area_bottom_btn"
).
click
(
function
()
{
_fix_bottom
.
hide
();
});
//点击 商铺详情的 更多商铺
$
(
'.shop-list'
).
click
(
function
()
{
location
.
href
=
ServerHost
+
"/app/dist/#/shopList?city="
+
p_city
+
'&type='
+
p_type
+
'&p_district_id='
+
p_district_id
+
'&p_store_id='
+
p_store_id
+
'&p_agent_id='
+
p_agent_id
;
});
};
};
$
(
'#jump_link'
).
attr
(
"data-phone"
,
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
)
jumpEvent
();
//添加跳转app页面事件
}
...
...
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