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
b721de41
Commit
b721de41
authored
Nov 22, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
fc64b383
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
baidu_send.html
application/app/view/index/baidu_send.html
+9
-0
baidu_send.js
public/app/js/baidu_send.js
+15
-2
No files found.
application/app/view/index/baidu_send.html
View file @
b721de41
...
...
@@ -11,6 +11,7 @@
<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
{
...
...
@@ -124,6 +125,11 @@
background-clip
:
content-box
;
padding
:
0rem
;
}
.jconfirm-holder
{
padding-left
:
10%
!important
;
padding-right
:
10%
!important
;
}
</style>
</head>
...
...
@@ -178,7 +184,9 @@
<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
public/app/js/baidu_send.js
View file @
b721de41
...
...
@@ -2,10 +2,11 @@
* 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
();
console
.
log
(
number
)
if
(
number
==
""
){
alert
(
"请输入电话号码"
);
return
false
;
...
...
@@ -24,7 +25,19 @@
}
console
.
log
(
number
);
$
.
get
(
'/broker/addSpreadUser'
,
params
,
function
(
data
){
console
.
log
(
data
);
$
.
confirm
({
title
:
'领取成功'
,
content
:
'500元代金券领取成功,即将返回商铺列表.'
,
buttons
:
{
'确定'
:
function
()
{
//window.location=""
},
// '取消': function () {
// window.location="www.baidu.com"
// },
}
});
},
'json'
);
})
})();
...
...
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