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
bf990c4d
Commit
bf990c4d
authored
Nov 23, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
baidu_send
parent
79e7ad89
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
250 additions
and
2 deletions
+250
-2
Index.php
application/app/controller/Index.php
+4
-1
baidu_send.html
application/app/view/index/baidu_send.html
+193
-0
route.php
application/route.php
+2
-1
baidu_send.js
public/app/js/baidu_send.js
+51
-0
No files found.
application/app/controller/Index.php
View file @
bf990c4d
...
@@ -75,7 +75,10 @@ class Index
...
@@ -75,7 +75,10 @@ class Index
{
{
return
view
(
'index/more_chengjiao'
);
return
view
(
'index/more_chengjiao'
);
}
}
public
function
baidu_send
()
{
return
view
(
'index/baidu_send'
);
}
/**
/**
* 楼盘详情
* 楼盘详情
* @return \think\Response
* @return \think\Response
...
...
application/app/view/index/baidu_send.html
0 → 100644
View file @
bf990c4d
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
同联商业
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=10"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<meta
name=
"Keywords"
content=
""
/>
<meta
name=
"Description"
content=
""
/>
<link
rel=
"stylesheet"
href=
"/app/css/common.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/details.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/lunbo.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/details_tl.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.bootcss.com/jquery-confirm/3.3.2/jquery-confirm.min.css"
>
<link>
<style>
.header_img
{
width
:
100%
;
}
.w-h-100
{
width
:
100%
;
height
:
100%
;
}
.overflow
{
overflow
:
hidden
;
}
.w-50
{
width
:
50%
;
float
:
left
;
}
.w-100
{
width
:
100%
;
}
.text-area
{
width
:
100%
;
background-color
:
#ffb757
;
height
:
4.96rem
;
margin-top
:
1.3rem
;
}
.desc_title
{
width
:
5.2rem
;
position
:
absolute
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
.left_radio
{
margin-top
:
0.84rem
;
font-size
:
0.32rem
;
color
:
#fffdf9
;
width
:
48%
;
text-align
:
right
;
float
:
left
;
padding-right
:
.1rem
;
}
.right_radio
{
margin-top
:
0.84rem
;
font-size
:
0.32rem
;
color
:
#fffdf9
;
width
:
40%
;
text-align
:
left
;
float
:
left
;
padding-left
:
.1rem
;
}
.input_phone
{
padding-left
:
0.36rem
;
height
:
0.76rem
;
width
:
5.16rem
;
background-color
:
#ffffff
}
.left_text
{
width
:
46%
;
padding-right
:
4%
;
font-family
:
PingFangSC-Regular
;
font-size
:
.4rem
;
color
:
#FFFFFF
;
line-height
:
28px
;
text-align
:
right
;
float
:
left
;
margin-top
:
0.44rem
;
}
.right_text
{
width
:
46%
;
padding-left
:
4%
;
font-family
:
PingFangSC-Regular
;
font-size
:
.4rem
;
color
:
#FFFFFF
;
line-height
:
28px
;
text-align
:
left
;
float
:
left
;
margin-top
:
0.44rem
;
}
.text-content
{
width
:
100%
;
font-family
:
PingFangSC-Regular
;
font-size
:
.3rem
;
color
:
#FFFDF9
;
line-height
:
28px
;
text-align
:
center
;
margin-top
:
0.44rem
;
}
.button_style
{
width
:
5.16rem
;
height
:
0.76rem
;
background-color
:
#fe7b4a
;
box-shadow
:
0
12px
12px
-5px
rgba
(
252
,
125
,
83
,
0.50
);
border-radius
:
3px
;
font-family
:
PingFangSC-Regular
;
font-size
:
14px
;
color
:
#FFFFFF
;
}
input
[
type
=
"radio"
]
+
label
::before
{
content
:
"\a0"
;
/*不换行空格*/
display
:
inline-block
;
vertical-align
:
middle
;
font-size
:
.36rem
;
width
:
.26rem
;
height
:
.26rem
;
margin-right
:
.4em
;
border-radius
:
50%
;
border
:
.1rem
solid
#ffffff
;
text-indent
:
.15rem
;
line-height
:
1
;
background-color
:
#ffffff
;
}
input
[
type
=
"radio"
]
:checked
+
label
::before
{
background-color
:
#ffb757
;
background-clip
:
content-box
;
padding
:
0rem
;
}
.jconfirm-holder
{
padding-left
:
10%
!important
;
padding-right
:
10%
!important
;
}
</style>
</head>
<body
style=
"background: #FFFFFF"
>
<div
class=
"header_img"
class=
"overflow"
>
<img
src=
"/app/images/h57@2x.png"
class=
"w-h-100"
/>
</div>
<div
class=
"shop_img_data overflow"
>
<div
class=
"w-50 "
>
<div
style=
"text-align:center;margin-left:.7rem;"
>
<img
src=
"/app/images/h59@2x.png"
style=
"width:1.86rem;"
/>
<div><span
style=
"color:#ff5c50;font-size:0.38rem"
id=
"shopNum"
></span></div>
<div><span
style=
"color:#F79130 ; font-size:0.22rem"
>
真商铺量
</span></div>
</div>
</div>
<div
class=
"w-50 "
>
<div
style=
"text-align:center;margin-left:0rem;"
>
<img
src=
"/app/images/h5 copy@2x.png"
style=
"width:1.86rem;"
/>
<div><span
style=
"color:#ff5c50;font-size:0.38rem;"
id=
"finishNum"
></span></div>
<div><span
style=
"color:#F79130 ; font-size:0.22rem;"
>
上周成交量
</span></div>
</div>
</div>
</div>
<div
class=
"text-area overflow"
>
<img
src=
"/app/images/h5@2x.png"
class=
"desc_title overflow"
/>
<div
class=
"left_radio overflow"
>
<input
type=
"radio"
id=
"finding"
name=
"type"
value=
"0"
checked=
"checked"
/>
<label
for=
"finding"
>
我要找铺
</label>
</div>
<div
class=
"right_radio overflow"
>
<input
type=
"radio"
id=
"sale"
name=
"type"
value=
"1"
/>
<label
for=
"sale"
>
我要转铺
</label>
</div>
<div
style=
"margin-top:1.72rem;text-align:center;"
>
<input
type=
"text"
id=
"phone"
placeholder=
"请输入手机号码"
class=
"input_phone"
/>
</div>
<div
class=
"w-100 overflow"
>
<div
class=
"left_text"
>
<span>
800找铺专家
</span>
</div>
<div
class=
"right_text"
>
<span>
1对1选铺指导
</span>
</div>
</div>
<div
class=
"text-content"
>
<span>
*注:领取后,凭手机号可抵扣500元现金
</span>
</div>
</div>
<div
class=
"header_img overflow"
>
<img
src=
"/app/images/baidufoot.png"
class=
"w-h-100"
/>
</div>
<div
style=
"width:100%;text-align:center;position:fixed;bottom:0.5rem;"
>
<button
id=
"save"
class=
"button_style"
>
领取500元代金券
</button>
</div>
<script
src=
"/app/js/jquery-1122-min.js"
charset=
"UTF-8"
></script>
<script
src=
"https://cdn.bootcss.com/jquery-confirm/3.3.2/jquery-confirm.min.js"
></script>
<script
src=
"/app/js/baidu_send.js?new1"
></script>
</body>
</html>
\ No newline at end of file
application/route.php
View file @
bf990c4d
...
@@ -24,7 +24,8 @@ Route::group('app', [
...
@@ -24,7 +24,8 @@ Route::group('app', [
'download_c'
=>
[
'app/index/download_c'
,
[
'method'
=>
'get'
]],
'download_c'
=>
[
'app/index/download_c'
,
[
'method'
=>
'get'
]],
'getShopDetails'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | post'
]],
'getShopDetails'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | post'
]],
'getVersionNo'
=>
[
'app/index/getVersionNo'
,
[
'method'
=>
'get | post'
]],
'getVersionNo'
=>
[
'app/index/getVersionNo'
,
[
'method'
=>
'get | post'
]],
'feed'
=>
[
'app/index/feed'
,
[
'method'
=>
'get'
]]
'feed'
=>
[
'app/index/feed'
,
[
'method'
=>
'get'
]],
'baidu_send'
=>
[
'app/index/baidu_send'
,
[
'method'
=>
'get'
]]
]);
]);
Route
::
group
(
'app_broker'
,
[
Route
::
group
(
'app_broker'
,
[
...
...
public/app/js/baidu_send.js
0 → 100644
View file @
bf990c4d
/**
* Created by 杜欣源 on 2018/11/19.
*/
(
function
()
{
var
url
=
window
.
location
.
href
.
split
(
"?"
)[
1
];
console
.
log
(
url
);
$
(
'#save'
).
click
(
function
(){
var
type
=
$
(
"input[name='type']:checked"
).
val
();
var
number
=
$
(
'#phone'
).
val
();
if
(
number
==
""
){
$
.
alert
(
"请输入电话号码"
);
return
false
;
}
if
(
!
(
number
-
0
>
-
1
)
){
$
.
alert
(
"请输入正确的电话号码"
)
;
return
false
;
}
if
(
number
.
length
>
11
){
$
.
alert
(
"请输入正确的电话号码"
)
;
return
false
;
}
var
params
=
{
'type'
:
type
,
'phone'
:
number
}
console
.
log
(
number
);
$
.
get
(
'/broker/addSpreadUser'
,
params
,
function
(
data
){
$
.
confirm
({
title
:
'领取成功'
,
content
:
'500元代金券领取成功,即将返回商铺列表.'
,
buttons
:
{
'确定'
:
function
()
{
location
.
href
=
'/app/dist/#/shopList?isSendFiveHundred=1'
+
"&"
+
url
;
},
// '取消': function () {
// window.location="www.baidu.com"
// },
}
});
},
'json'
);
})
})();
$
(
document
).
ready
(
function
(){
console
.
log
(
"12312312321"
)
$
.
get
(
'/broker/getVolume'
,
function
(
data
){
$
(
'#shopNum'
).
text
(
data
.
data
.
shop_num
+
"套"
);
$
(
'#finishNum'
).
text
(
data
.
data
.
volume_last_week
+
"套"
);
})
});
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