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
465bc488
Commit
465bc488
authored
Nov 21, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
百度推广
parent
606dd94d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
baidu_send.html
application/app/view/index/baidu_send.html
+3
-3
baidu_send.js
public/app/js/baidu_send.js
+15
-4
No files found.
application/app/view/index/baidu_send.html
View file @
465bc488
...
...
@@ -136,14 +136,14 @@
<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"
>
32789套
</span></div>
<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;"
>
32789套
</span></div>
<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>
...
...
@@ -154,7 +154,7 @@
<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>
<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"
/>
...
...
public/app/js/baidu_send.js
View file @
465bc488
/**
* Created by
刘丹 on 2017/10/16
.
* Created by
杜欣源 on 2018/11/19
.
*/
(
function
()
{
$
(
'#save'
).
click
(
function
(){
var
type
=
$
(
"input[name='type']:checked"
).
val
();
var
number
=
$
(
'#phone'
).
val
();
if
(
number
!=
""
){
console
.
log
(
number
)
if
(
number
==
""
){
alert
(
"请输入电话号码"
);
return
false
;
}
if
(
!
(
number
-
0
>
-
1
)
){
alert
(
"请输入正确的电话号码"
)
;
return
false
;
}
if
(
number
.
length
>
11
){
alert
(
"请输入正确的电话号码"
)
;
return
false
;
}
var
params
=
{
'type'
:
type
,
'
number
'
:
number
'
phone
'
:
number
}
console
.
log
(
number
);
$
.
get
(
'/broker/addSpreadUser'
,
params
,
function
(
data
){
console
.
log
(
data
);
},
'json'
);
})
})();
$
(
document
).
ready
(
function
(){
console
.
log
(
"12312312321"
)
$
.
get
(
'/broker/getVolume'
,
function
(
data
){
console
.
log
(
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