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
609651f3
Commit
609651f3
authored
Nov 23, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
059af708
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
17 deletions
+63
-17
baidu_send.html
application/app/view/index/baidu_send.html
+32
-1
baidu_send.js
public/app/js/baidu_send.js
+31
-16
No files found.
application/app/view/index/baidu_send.html
View file @
609651f3
...
...
@@ -128,7 +128,38 @@
.jconfirm-holder
{
padding-left
:
10%
!important
;
padding-right
:
10%
!important
;
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>
...
...
public/app/js/baidu_send.js
View file @
609651f3
...
...
@@ -8,19 +8,43 @@
var
type
=
$
(
"input[name='type']:checked"
).
val
();
var
number
=
$
(
'#phone'
).
val
();
if
(
number
==
""
){
$
.
alert
(
"请输入电话号码"
);
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
if
(
!
(
number
-
0
>
-
1
)
){
$
.
alert
(
"请输入正确的电话号码"
)
;
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入正确的电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
if
(
number
.
length
!=
11
){
$
.
alert
(
"请输入正确的11位电话号码"
)
;
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入正确的11位电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
if
(
number
[
0
]
!=
1
){
$
.
alert
(
"请输入正确的电话号码"
)
;
$
.
confirm
({
title
:
'警告'
,
content
:
'请输入正确的电话号码'
,
buttons
:
{
'确定'
:
function
()
{}
}
});
return
false
;
}
var
params
=
{
...
...
@@ -36,29 +60,20 @@
buttons
:
{
'确定'
:
function
()
{
location
.
href
=
'/app/dist/#/shopList?isSendFiveHundred=1'
+
"&"
+
url
;
},
// '取消': function () {
// window.location="www.baidu.com"
// },
}
}
});
}
else
{
$
.
confirm
({
title
:
'领取失败'
,
content
:
data
.
message
,
buttons
:
{
'
返回商铺
'
:
function
()
{
'
确定
'
:
function
()
{
location
.
href
=
'/app/dist/#/shopList?isSendFiveHundred=1'
+
"&"
+
url
;
},
'重新提交'
:
function
()
{
},
}
}
});
}
},
'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