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
4626f95e
Commit
4626f95e
authored
Jan 15, 2019
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推广type
parent
a354ec81
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
321 additions
and
1 deletion
+321
-1
Index.php
application/app/controller/Index.php
+4
-0
baidu_send2.html
application/app/view/index/baidu_send2.html
+226
-0
route.php
application/route.php
+1
-0
baidu_send.js
public/app/js/baidu_send.js
+2
-1
baidu_send2.js
public/app/js/baidu_send2.js
+88
-0
No files found.
application/app/controller/Index.php
View file @
4626f95e
...
@@ -79,6 +79,10 @@ class Index
...
@@ -79,6 +79,10 @@ class Index
{
{
return
view
(
'index/baidu_send'
);
return
view
(
'index/baidu_send'
);
}
}
public
function
baidu_send2
()
{
return
view
(
'index/baidu_send2'
);
}
/**
/**
* 楼盘详情
* 楼盘详情
* @return \think\Response
* @return \think\Response
...
...
application/app/view/index/baidu_send2.html
0 → 100644
View file @
4626f95e
<!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
:
6rem
;
margin-top
:
.3rem
;
}
.desc_title
{
width
:
5.2rem
;
position
:
absolute
;
left
:
50%
;
transform
:
translate
(
-50%
,
0%
);
margin-top
:
.5rem
;
}
.left_radio
{
margin-top
:
1.64rem
;
font-size
:
0.32rem
;
color
:
#fffdf9
;
width
:
48%
;
text-align
:
right
;
float
:
left
;
padding-right
:
.1rem
;
}
.right_radio
{
margin-top
:
1.64rem
;
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
:
7.5rem
;
height
:
1rem
;
background-color
:
#fe7b4a
;
/*box-shadow: 0 12px 12px -5px rgba(252,125,83,0.50);*/
/*border-radius: 3px;*/
font-family
:
PingFangSC-Regular
;
font-size
:
.38rem
;
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
:
1.4rem
!important
;
padding-right
:
1.4rem
!important
;
}
.jconfirm-buttons
{
width
:
100%
!important
;
padding
:
0px
!important
;
}
.jconfirm-buttons
button
{
width
:
100%
!important
;
margin
:
0px
!important
;
background-color
:
#FFFFFF
!important
;
border
:
none
!important
;
border-top
:
1px
solid
#eeeeee
!important
;
border-radius
:
0px
!important
;
}
.jconfirm-box
{
padding-left
:
0px
!important
;
padding-bottom
:
0px
!important
;
padding-right
:
0px
!important
;
;
}
.jconfirm-title-c
{
text-align
:
center
!important
;
}
.jconfirm-title
{
background-image
:
-webkit-linear-gradient
(
90deg
,
#FB7C72
0%
,
#F74364
100%
)
!important
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
font-size
:
.44rem
;
}
.jconfirm-content
{
padding-left
:
.36rem
;
font-size
:
0.26rem
!important
;
color
:
#666666
}
</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">32789套</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">168套</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:2.42rem;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:0rem;"
>
<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_send2.js?new1"
></script>
</body>
</html>
\ No newline at end of file
application/route.php
View file @
4626f95e
...
@@ -26,6 +26,7 @@ Route::group('app', [
...
@@ -26,6 +26,7 @@ Route::group('app', [
'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'
]]
'baidu_send'
=>
[
'app/index/baidu_send'
,
[
'method'
=>
'get'
]]
'baidu_send2'
=>
[
'app/index/baidu_send2'
,
[
'method'
=>
'get'
]]
]);
]);
Route
::
group
(
'app_broker'
,
[
Route
::
group
(
'app_broker'
,
[
...
...
public/app/js/baidu_send.js
View file @
4626f95e
...
@@ -49,7 +49,8 @@
...
@@ -49,7 +49,8 @@
}
}
var
params
=
{
var
params
=
{
'type'
:
type
,
'type'
:
type
,
'phone'
:
number
'phone'
:
number
,
'source'
:
1
}
}
console
.
log
(
number
);
console
.
log
(
number
);
$
.
get
(
'/broker/addSpreadUser'
,
params
,
function
(
data
){
$
.
get
(
'/broker/addSpreadUser'
,
params
,
function
(
data
){
...
...
public/app/js/baidu_send2.js
0 → 100644
View file @
4626f95e
/**
* 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
==
""
){
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
if
(
!
(
number
-
0
>
-
1
)
){
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入正确的电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
if
(
number
.
length
!=
11
){
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入正确的11位电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
if
(
number
[
0
]
!=
1
){
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入正确的电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
var
params
=
{
'type'
:
type
,
'phone'
:
number
,
'source'
:
2
}
console
.
log
(
number
);
$
.
get
(
'/broker/addSpreadUser'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
){
$
.
confirm
({
title
:
'领取成功'
,
content
:
'500元代金券领取成功,即将返回商铺列表.'
,
buttons
:
{
'确定'
:
function
()
{
location
.
href
=
'/app/dist/#/shopList?isSendFiveHundred=1'
+
"&"
+
url
;
}
}
});
}
else
{
$
.
confirm
({
title
:
'领取失败'
,
content
:
data
.
message
,
buttons
:
{
'确定'
:
function
()
{
location
.
href
=
'/app/dist/#/shopList?isSendFiveHundred=1'
+
"&"
+
url
;
}
}
});
}
},
'json'
);
})
})();
//$(document).ready(function(){
// console.log("12312312321")
// $.get('/broker/getVolume',function(data){
// $('#shopNum').text(data.data.shop_num+"套");
// $('#finishNum').text("168套");
// })
//});
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