Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footsen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
79859ff9
authored
Dec 12, 2022
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加头部
parent
3b9024dc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
356 additions
and
201 deletions
footseen/phonepay/gash-phone.html
footseen/phonepay/idpay.html
footseen/phonepay/molpay.html
footseen/phonepay/payfor-new.html
footseen/phonepay/gash-phone.html
View file @
79859ff9
<!DOCTYPE html>
<html>
<head
lang=
"en"
>
<!-- Global site tag (gtag.js) - Google Analytics -->
<meta
charset=
"UTF-8"
>
...
...
@@ -8,40 +9,87 @@
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<meta
content=
"telephone=no"
name=
"format-detection"
>
<meta
name=
"wap-font-scale"
content=
"no"
>
<link
rel=
"stylesheet"
href=
"../css/base.css"
/>
<link
rel=
"stylesheet"
href=
"../css/gash.css"
/>
<link
rel=
"stylesheet"
href=
"../css/base.css"
/>
<link
rel=
"stylesheet"
href=
"../css/gash.css"
/>
<script
src=
"../lib/fsize.js"
></script>
<title></title>
<meta
name=
"keywords"
content=
"Foot Seen,直播福利,直播,uplive,美女直播,美女視頻,泡泡寶盒,視頻直播,一直播,rc唱唱,美女直播間,丫播直播"
>
<meta
name=
"description"
content=
"Foot Seen,深夜福利派送秀場。花樣主播私密秀,直播分享生活日常,記錄生活點點滴滴,陪你一起度過最美的時光,在直播間偶遇你的TA,連麥私聊,親密互動,說說生活,聊聊人生,談談理想......"
>
<meta
name=
"description"
content=
"Foot Seen,深夜福利派送秀場。花樣主播私密秀,直播分享生活日常,記錄生活點點滴滴,陪你一起度過最美的時光,在直播間偶遇你的TA,連麥私聊,親密互動,說說生活,聊聊人生,談談理想......"
>
<style
type=
"text/css"
>
body
,
.gash-phone-ul
li
{
body
,
.gash-phone-ul
li
{
background-color
:
#FFF
;
color
:
#333
;
color
:
#333
;
}
.mHead
{
width
:
10rem
;
height
:
1rem
;
position
:
relative
;
background
:
#fff
;
display
:
none
;
}
.closeBtn
{
width
:
0.64rem
;
height
:
0.64rem
;
background
:
url(../img/back.png)
no-repeat
;
background-size
:
contain
;
position
:
absolute
;
top
:
0.18rem
;
left
:
0.32rem
;
}
.closeBtn
>
a
{
width
:
100%
;
height
:
100%
;
display
:
block
;
}
</style>
</head>
<body>
<ul
class=
"gash-phone-ul"
>
<div
class=
"mHead"
>
<div
class=
"closeBtn"
><a
href=
"javascript:window.opener=null;window.open('','_self');window.close();"
></a></div>
</div>
<ul
class=
"gash-phone-ul"
>
<li><i
style=
"display: none;"
>
TELCHT05
</i>
中華電信手機839(三合一)
<span><img
src=
"../img/right.png"
alt=
""
></span></li>
<li><i
style=
"display: none;"
>
TELCHT06
</i>
中華電信 Hinet(三合一)
<span><img
src=
"../img/right.png"
alt=
""
></span></li>
<li><i
style=
"display: none;"
>
TELCHT07
</i>
中華電信 市話(三合一)
<span><img
src=
"../img/right.png"
alt=
""
></span></li>
<li><i
style=
"display: none;"
>
TELFET01
</i>
傳遠電信一般型
<span><img
src=
"../img/right.png"
alt=
""
></span></li>
<li><i
style=
"display: none;"
>
TELTCC01
</i>
台灣大哥大一般型
<span><img
src=
"../img/right.png"
alt=
""
></span></li>
<li><i
style=
"display: none;"
>
TELSON04
</i>
亞太電信手機
<span><img
src=
"../img/right.png"
alt=
""
></span></li>
</ul>
</ul>
</body>
<script
src=
"../lib/jquery-3.1.1.min.js"
></script>
<script
src=
"../lib/globalization.js"
></script>
<script>
if
(
sessionStorage
.
lang
==
1
)
$
(
"title"
).
text
(
"Top-Up GEMs"
)
if
(
sessionStorage
.
lang
==
1
)
$
(
"title"
).
text
(
"Top-Up GEMs"
)
else
$
(
"title"
).
text
(
"寶石儲值"
)
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
if
(
data
.
os
==
'h5'
)
{
$
(
'.mHead'
).
show
();
}
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
$
(
".gash-phone-ul li"
).
on
(
"click"
,
function
()
{
sessionStorage
.
select
=
$
(
this
).
children
(
"i"
).
text
();
if
(
sessionStorage
.
uid
!=
undefined
)
{
window
.
location
.
href
=
'gash-for.html'
;
}
else
{
window
.
location
.
href
=
"login.html"
;
sessionStorage
.
select
=
$
(
this
).
children
(
"i"
).
text
();
if
(
sessionStorage
.
uid
!=
undefined
)
{
window
.
location
.
href
=
'gash-for.html'
+
window
.
location
.
search
;
}
else
{
window
.
location
.
href
=
"login.html"
+
window
.
location
.
search
;
}
...
...
footseen/phonepay/idpay.html
View file @
79859ff9
<!DOCTYPE html>
<html>
<head
lang=
"en"
>
<head
lang=
"en"
>
<!-- Global site tag (gtag.js) - Google Analytics -->
<meta
charset=
"UTF-8"
>
...
...
@@ -12,7 +12,8 @@
<meta
name=
"wap-font-scale"
content=
"no"
>
<title></title>
<meta
name=
"keywords"
content=
"Foot Seen,直播福利,直播,uplive,美女直播,美女視頻,泡泡寶盒,視頻直播,一直播,rc唱唱,美女直播間,丫播直播"
>
<meta
name=
"description"
content=
"Foot Seen直播,深夜福利派送秀場。花樣主播私密秀,直播分享生活日常,記錄生活點點滴滴,陪你一起度過最美的時光,在直播間偶遇你的TA,連麥私聊,親密互動,說說生活,聊聊人生,談談理想......"
>
<meta
name=
"description"
content=
"Foot Seen直播,深夜福利派送秀場。花樣主播私密秀,直播分享生活日常,記錄生活點點滴滴,陪你一起度過最美的時光,在直播間偶遇你的TA,連麥私聊,親密互動,說說生活,聊聊人生,談談理想......"
>
<link
rel=
"stylesheet"
href=
"../css/layer.css"
>
<link
rel=
"stylesheet"
href=
"../css/base.css"
/>
<link
rel=
"stylesheet"
href=
"../css/phonepay.css?v='20180509'"
/>
...
...
@@ -24,23 +25,54 @@
background-color
:
#FFF
;
margin-bottom
:
0
;
}
.gash-for-ul
li
span
{
color
:
#FF57A0
;
.gash-for-ul
li
span
{
color
:
#FF57A0
;
}
.gash-for-ul
li
img
{
.gash-for-ul
li
img
{
margin-top
:
-.2rem
;
}
.gash-for-ul
li
button
{
.gash-for-ul
li
button
{
background
:
#FF57A0
;
}
.gash-tips
{
color
:
#666
;
.gash-tips
{
color
:
#666
;
}
.mHead
{
width
:
10rem
;
height
:
1rem
;
position
:
relative
;
background
:
#fff
;
display
:
none
;
}
.closeBtn
{
width
:
0.64rem
;
height
:
0.64rem
;
background
:
url(../img/back.png)
no-repeat
;
background-size
:
contain
;
position
:
absolute
;
top
:
0.18rem
;
left
:
0.32rem
;
}
.closeBtn
>
a
{
width
:
100%
;
height
:
100%
;
display
:
block
;
}
</style>
</head>
</head>
<body>
<body>
<div
class=
"mHead"
>
<div
class=
"closeBtn"
><a
href=
"javascript:window.opener=null;window.open('','_self');window.close();"
></a></div>
</div>
<ul
class=
"gash-for-ul clearfix"
>
</ul>
...
...
@@ -54,6 +86,23 @@
$
(
'title'
).
text
(
langList
[
langType
].
paytitle
);
$
(
'.gash-tips'
).
text
(
langList
[
langType
].
ques
);
var
flag
=
true
;
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
if
(
data
.
os
==
'h5'
)
{
$
(
'.mHead'
).
show
();
}
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
$
.
ajax
({
url
:
$ip
+
"/setting/getRecharge.html"
,
type
:
"POST"
,
...
...
@@ -64,13 +113,13 @@
'vest'
:
0
,
'paytype'
:
sessionStorage
.
pay
},
error
:
function
(
msg
)
{
error
:
function
(
msg
)
{
console
.
log
(
'请求出错'
);
},
success
:
function
(
msg
)
{
success
:
function
(
msg
)
{
var
data
=
JSON
.
parse
(
msg
);
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
html
+=
'
<
li
>
';
html += '
<
img
src
=
"../img/zuan.png"
alt
=
""
>
';
html += '
<
span
>
' + data.data[i].diamond + '
<
/span>'
;
...
...
@@ -79,31 +128,31 @@
html
+=
'
<
/li>'
;
}
$
(
".gash-for-ul"
).
html
(
html
);
$
(
".gash-for-ul li"
).
on
(
"click"
,
function
()
{
$
(
".gash-for-ul li"
).
on
(
"click"
,
function
()
{
if
(
flag
)
{
if
(
flag
)
{
flag
=
false
;
var
money
=
$
(
this
).
children
(
"button"
).
children
(
'i'
).
text
();
var
rid
=
$
(
this
).
children
(
".gash-rid"
).
text
();
$
.
ajax
({
type
:
"POST"
,
url
:
$ip
+
"/pay/getCodaPay.html"
,
data
:
{
'lang'
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'paymentType'
:
sessionStorage
.
payType
,
'payTypeSub'
:
"NAVITE"
,
'amount'
:
money
*
100
,
type
:
"POST"
,
url
:
$ip
+
"/pay/getCodaPay.html"
,
data
:
{
'lang'
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'paymentType'
:
sessionStorage
.
payType
,
'payTypeSub'
:
"NAVITE"
,
'amount'
:
money
*
100
,
},
async
:
true
,
success
:
function
(
res
)
{
async
:
true
,
success
:
function
(
res
)
{
console
.
log
(
res
);
var
data
=
JSON
.
parse
(
res
);
window
.
location
.
href
=
'https://airtime.codapayments.com/airtime/begin?type='
+
sessionStorage
.
payType
+
'&txn_id='
+
data
.
result
+
'&browser_type=mobile-web'
;
window
.
location
.
href
=
'https://airtime.codapayments.com/airtime/begin?type='
+
sessionStorage
.
payType
+
'&txn_id='
+
data
.
result
+
'&browser_type=mobile-web'
;
}
});
}
...
...
@@ -113,6 +162,6 @@
})
</script>
</body>
</body>
</html>
\ No newline at end of file
footseen/phonepay/molpay.html
View file @
79859ff9
...
...
@@ -205,6 +205,7 @@
.login-tips
span
{
color
:
#FF7C75
;
}
.mHead
{
width
:
10rem
;
height
:
1rem
;
...
...
@@ -377,6 +378,18 @@
if
(
data
.
os
==
'h5'
)
{
$
(
'.mHead'
).
show
();
}
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
$
.
ajax
({
url
:
$ip
+
"/setting/getRecharge.html"
,
type
:
"post"
,
...
...
footseen/phonepay/payfor-new.html
View file @
79859ff9
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
/>
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<meta
content=
"telephone=no"
name=
"format-detection"
>
...
...
@@ -14,40 +15,46 @@
<link
rel=
"stylesheet"
href=
"../css/layer.css"
>
<title></title>
<style>
body
{
body
{
background
:
#FFF
;
}
.p-w
{
.p-w
{
background-color
:
#FFF
;
}
.gash-for-ul
{
margin
:
0
auto
;
width
:
10rem
;
}
.gash-for-ul
li
{
.gash-for-ul
li
{
height
:
1.45rem
;
line-height
:
1.45rem
;
color
:
#00F8DC
;
background
:
#FFF
;
margin-bottom
:
0.05rem
;
border
:
0.04rem
solid
transparent
;
}
.p-active
{
border
:
0.04rem
solid
transparent
;
}
.p-active
{
border
:
0.04rem
solid
transparent
!important
;
}
}
.gash-for-ul
li
img
{
.gash-for-ul
li
img
{
width
:
0.5rem
;
vertical-align
:
middle
;
margin-top
:
-0.2rem
;
margin-left
:
0.5rem
;
}
.gash-for-ul
li
span
{
}
.gash-for-ul
li
span
{
margin-left
:
0.3rem
;
font-size
:
0.45rem
;
color
:
#FF57A0
;
}
.gash-for-ul
li
button
{
}
.gash-for-ul
li
button
{
height
:
0.73rem
;
line-height
:
0.75rem
;
width
:
2.2rem
;
...
...
@@ -58,17 +65,47 @@
margin-top
:
0.35rem
;
margin-right
:
0.46rem
;
font-size
:
0.4rem
;
}
.gash-rid
{
}
.gash-rid
{
visibility
:
hidden
;
}
.login-tips
{
color
:
#666
;
}
}
.login-tips
{
color
:
#666
;
}
.mHead
{
width
:
10rem
;
height
:
1rem
;
position
:
relative
;
background
:
#fff
;
display
:
none
;
}
.closeBtn
{
width
:
0.64rem
;
height
:
0.64rem
;
background
:
url(../img/back.png)
no-repeat
;
background-size
:
contain
;
position
:
absolute
;
top
:
0.18rem
;
left
:
0.32rem
;
}
.closeBtn
>
a
{
width
:
100%
;
height
:
100%
;
display
:
block
;
}
</style>
</head>
<body
>
<div
class=
"p-w alipay"
>
<body>
<div
class=
"mHead"
>
<div
class=
"closeBtn"
><a
href=
"javascript:window.opener=null;window.open('','_self');window.close();"
></a></div>
</div>
<div
class=
"p-w alipay"
>
<!--<div>-->
<!--<p class="apple-top">優惠充值</p>-->
<!--</div>-->
...
...
@@ -82,7 +119,7 @@
</div>-->
<p
class=
"login-tips"
></p>
</div>
</div>
</body>
<script
src=
"../lib/jquery-3.1.1.min.js"
></script>
<script
src=
"../lib/payLangchange.js?v=201912121422222222"
></script>
...
...
@@ -91,31 +128,36 @@
$
(
'title'
).
text
(
langList
[
langType
].
paytitle
);
$
(
'.login-tips'
).
text
(
langList
[
langType
].
ques
);
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
if
(
data
.
os
==
'h5'
)
{
$
(
'.mHead'
).
show
();
}
var
btnOk
=
false
;
var
btnOk
=
false
;
$
.
ajax
({
url
:
$ip
+
"/setting/getRecharge.html"
,
type
:
"post"
,
data
:{
'cid'
:
"web_gw"
,
'os'
:
"h5"
,
lang
:
sessionStorage
.
lang
,
'vest'
:
0
,
'paytype'
:
sessionStorage
.
pay
url
:
$ip
+
"/setting/getRecharge.html"
,
type
:
"post"
,
data
:
{
'cid'
:
"web_gw"
,
'os'
:
"h5"
,
lang
:
sessionStorage
.
lang
,
'vest'
:
0
,
'paytype'
:
sessionStorage
.
pay
},
error
:
function
(
msg
)
{
error
:
function
(
msg
)
{
console
.
log
(
'erroe!'
);
},
success
:
function
(
msg
)
{
var
data
=
JSON
.
parse
(
msg
);
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
html
+=
'
<
li
>
'
html
+='
<
img
src
=
"../img/zuan.png"
><
span
>
'+data.data[i].diamond+
'
<
/span>
'
html
+=
'
<
button
>
'+data.data[i].price[0].currency+'
<
i
style
=
"font-style:normal"
>
'+data.data[i].price[0].price+
'
<
/i></
button
>
';
html
+='
<
span
class
=
"gash-rid"
>
'+data.data[i].rid+
'
<
/span>'
;
html
+=
'
<
/li>
'
var
data
=
JSON
.
parse
(
msg
);
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
html
+=
'
<
li
>
'
html
+= '
<
img
src
=
"../img/zuan.png"
><
span
>
' + data.data[i].diamond +
'
<
/span>
'
html
+=
'
<
button
>
' + data.data[i].price[0].currency + '
<
i
style
=
"font-style:normal"
>
' + data.data[i].price[0].price +
'
<
/i></
button
>
';
html
+= '
<
span
class
=
"gash-rid"
>
' + data.data[i].rid +
'
<
/span>'
;
html
+=
'
<
/li>
'
}
$
(
".gash-for-ul"
).
html
(
html
);
...
...
@@ -123,36 +165,36 @@
$
(
this
).
siblings
(
"li"
).
removeClass
(
"p-active"
);
$
(
this
).
addClass
(
"p-active"
);
rid
=
$
(
this
).
find
(
'.gash-rid'
).
text
();
rid
=
$
(
this
).
find
(
'.gash-rid'
).
text
();
console
.
log
(
rid
);
money
=
$
(
this
).
find
(
'button i'
).
text
();
money
=
$
(
this
).
find
(
'button i'
).
text
();
console
.
log
(
money
);
btnOk
=
true
;
if
(
btnOk
==
true
)
{
if
(
sessionStorage
.
pay
==
"PAYPALPAY"
)
{
btnOk
=
true
;
if
(
btnOk
==
true
)
{
if
(
sessionStorage
.
pay
==
"PAYPALPAY"
)
{
$
.
ajax
({
url
:
$ip
+
"/pay/getPayPreid.html"
,
type
:
"post"
,
data
:
{
'lang'
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'payTypeSub'
:
"NAVITE"
,
'amount'
:
money
*
100
,
'extend'
:
"0"
,
url
:
$ip
+
"/pay/getPayPreid.html"
,
type
:
"post"
,
data
:
{
'lang'
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'payTypeSub'
:
"NAVITE"
,
'amount'
:
money
*
100
,
'extend'
:
"0"
,
},
success
:
function
(
msg
)
{
var
data
=
JSON
.
parse
(
msg
);
// $.cookie('oid',data.orderId,{expires:1});
sessionStorage
.
oid
=
data
.
orderId
;
key
=
data
.
payInfo
.
key
;
var
html1
=
[];
html1
+=
"
<
div
style
=
' text-align: center;margin-top: 1.7rem;'
class
=
'paypalpay'
>
";
html1+=
"
<
div
id
=
paypal
-
button
-
container
><
/div>"
;
html1
+=
"
<
/div>"
;
var
data
=
JSON
.
parse
(
msg
);
// $.cookie('oid',data.orderId,{expires:1});
sessionStorage
.
oid
=
data
.
orderId
;
key
=
data
.
payInfo
.
key
;
var
html1
=
[];
html1
+=
"
<
div
style
=
' text-align: center;margin-top: 1.7rem;'
class
=
'paypalpay'
>
";
html1 +=
"
<
div
id
=
paypal
-
button
-
container
><
/div>"
;
html1
+=
"
<
/div>"
;
$
(
".paypal"
).
html
(
html1
);
paypal
.
Button
.
render
({
...
...
@@ -161,21 +203,21 @@
// PayPal Client IDs - replace with your own
// Create a PayPal app: https://developer.paypal.com/developer/applications/create
client
:
{
production
:
key
,
// production: '
<
insert
production
client
id
>
'
production
:
key
,
// production: '
<
insert
production
client
id
>
'
},
style: {
color: '
gold
',
size: '
large
',
shape:
'
rect
',
locale:
'
zh_US
',
shape:
'
rect
',
locale:
'
zh_US
',
},
// Show the buyer a '
Pay
Now
' button in the checkout flow
commit: true,
// payment() is called when the button is clicked
payment: function
(data, actions) {
payment: function
(data, actions) {
...
...
@@ -193,13 +235,13 @@
},
// onAuthorize() is called when the buyer approves the payment
onAuthorize: function
(data, actions) {
onAuthorize: function
(data, actions) {
// Make a call to the REST api to execute the payment
return actions.payment.execute().then(function
() {
return actions.payment.execute().then(function
() {
setInterval(function () {
window.location.href=
'
payend
.
html
';
},
100)
window.location.href =
'
payend
.
html
';
},
100)
});
}
...
...
@@ -208,68 +250,68 @@
}
})
}
else if(sessionStorage.pay=="ALIPAY")
{
else if (sessionStorage.pay == "ALIPAY")
{
$.ajax({
url:$ip+
"/pay/getPayPreid.html",
type:
"post",
data:
{
'
lang
':
sessionStorage.lang,
'
uid
':
sessionStorage.uid,
'
product
':
"橙钻充值",
'
country
':
"86",
'
rid
':
rid,
'
payType
':
sessionStorage.pay,
'
payTypeSub
':
"H5",
'
amount
':money*
100,
'
extend
':
"https://www.footseen.com/footseen/phonepay/payend.html",
url: $ip +
"/pay/getPayPreid.html",
type:
"post",
data:
{
'
lang
':
sessionStorage.lang,
'
uid
':
sessionStorage.uid,
'
product
':
"橙钻充值",
'
country
':
"86",
'
rid
':
rid,
'
payType
':
sessionStorage.pay,
'
payTypeSub
':
"H5",
'
amount
': money *
100,
'
extend
':
"https://www.footseen.com/footseen/phonepay/payend.html",
},
success: function (msg) {
console.log(msg);
var data =
JSON.parse(msg);
// $.cookie('
oid
',data.orderId,{expires:1});
sessionStorage.oid=
data.orderId;
var html=
[];
var data =
JSON.parse(msg);
// $.cookie('
oid
',data.orderId,{expires:1});
sessionStorage.oid =
data.orderId;
var html =
[];
console.log(data);
html+=
data.payInfo.h5
html +=
data.payInfo.h5
$(".alipay").html(html);
}
})
}
else if(sessionStorage.pay=="WECHATPAY")
{
else if (sessionStorage.pay == "WECHATPAY")
{
$.ajax({
url:$ip+
"/pay/getPayPreid.html",
type:
"post",
data:
{
'
cid
':
"web_gw",
'
os
':
"h5",
lang:
sessionStorage.lang,
'
uid
':
sessionStorage.uid,
'
product
':
"橙钻充值",
'
country
':
"86",
'
rid
':
rid,
'
payType
':
sessionStorage.pay,
'
payTypeSub
':
"MWEB",
'
amount
':money*
100,
'
extend
':
"https://www.footseen.com/footseen/phonepay/payend.html",
url: $ip +
"/pay/getPayPreid.html",
type:
"post",
data:
{
'
cid
':
"web_gw",
'
os
':
"h5",
lang:
sessionStorage.lang,
'
uid
':
sessionStorage.uid,
'
product
':
"橙钻充值",
'
country
':
"86",
'
rid
':
rid,
'
payType
':
sessionStorage.pay,
'
payTypeSub
':
"MWEB",
'
amount
': money *
100,
'
extend
':
"https://www.footseen.com/footseen/phonepay/payend.html",
},
success: function (msg) {
var data = JSON.parse(msg);
// $.cookie('
oid
',data.orderId,{expires:1});
sessionStorage.oid=
data.orderId;
var url =
data.payInfo.mweb_url;
window.location.href=
url;
// $.cookie('
oid
',data.orderId,{expires:1});
sessionStorage.oid =
data.orderId;
var url =
data.payInfo.mweb_url;
window.location.href =
url;
}
})
}
else if(sessionStorage.pay=='
MOLPAY
')
{
else if (sessionStorage.pay == '
MOLPAY
')
{
$.ajax({
url:
"https://webserver.yabolive.net/pay/getPayPreid.html",
url:
"https://webserver.yabolive.net/pay/getPayPreid.html",
type: "post",
data: {
'
cid
':
"web_gw",
'
os
':
"h5",
lang:
sessionStorage.lang,
'
cid
':
"web_gw",
'
os
':
"h5",
lang:
sessionStorage.lang,
"uid": sessionStorage.uid,
"product": "橙钻货币充值",
"country": "86",
...
...
@@ -277,18 +319,18 @@
"lang": 2,
"payType": sessionStorage.pay,
"payTypeSub": "H5",
"amount": money*
100,
"amount": money *
100,
"extend": "0",
"returnUrl":
"https://www.footseen.com/footseen/phonepay/payend.html",
"returnUrl":
"https://www.footseen.com/footseen/phonepay/payend.html",
},
success: function (msg) {
var data=
JSON.parse(msg);
var data =
JSON.parse(msg);
console.log(data);
window.location.href=
data.payInfo.url;
window.location.href =
data.payInfo.url;
}
})
}
}else
{
} else
{
layer.msg(langList[langType].select);
}
})
...
...
@@ -298,37 +340,37 @@
})
$(".payfor-ul").on("click", function () {
if
(sessionStorage.pay=='
PAYPALPAY
')
{
if
(sessionStorage.pay == '
PAYPALPAY
')
{
$(".paypal").html('
<
button
class
=
"login-btn"
>
下一步
<
/button>'
)
$
(
".login-btn"
).
unbind
(
"click"
)
$
(
".login-btn"
).
on
(
"click"
,
function
()
{
if
(
btnOk
==
true
)
{
if
(
sessionStorage
.
pay
==
"PAYPALPAY"
)
{
if
(
btnOk
==
true
)
{
if
(
sessionStorage
.
pay
==
"PAYPALPAY"
)
{
$
.
ajax
({
url
:
$ip
+
"/pay/getPayPreid.html"
,
type
:
"post"
,
data
:{
'cid'
:
"web_gw"
,
'os'
:
"h5"
,
lang
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'payTypeSub'
:
"NAVITE"
,
'amount'
:
money
*
100
,
'extend'
:
"0"
,
url
:
$ip
+
"/pay/getPayPreid.html"
,
type
:
"post"
,
data
:
{
'cid'
:
"web_gw"
,
'os'
:
"h5"
,
lang
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'payTypeSub'
:
"NAVITE"
,
'amount'
:
money
*
100
,
'extend'
:
"0"
,
},
success
:
function
(
msg
)
{
var
data
=
JSON
.
parse
(
msg
);
// $.cookie('oid',data.orderId,{expires:1});
sessionStorage
.
oid
=
data
.
orderId
;
key
=
data
.
payInfo
.
key
;
var
html1
=
[];
html1
+=
"
<
div
style
=
' text-align: center;margin-top: 1.7rem;'
class
=
'paypalpay'
>
";
html1
+=
"
<
div
id
=
paypal
-
button
-
container
><
/div>"
;
html1
+=
"
<
/div>"
;
var
data
=
JSON
.
parse
(
msg
);
// $.cookie('oid',data.orderId,{expires:1});
sessionStorage
.
oid
=
data
.
orderId
;
key
=
data
.
payInfo
.
key
;
var
html1
=
[];
html1
+=
"
<
div
style
=
' text-align: center;margin-top: 1.7rem;'
class
=
'paypalpay'
>
";
html1
+=
"
<
div
id
=
paypal
-
button
-
container
><
/div>"
;
html1
+=
"
<
/div>"
;
$
(
".paypal"
).
html
(
html1
);
paypal
.
Button
.
render
({
...
...
@@ -337,21 +379,21 @@
// PayPal Client IDs - replace with your own
// Create a PayPal app: https://developer.paypal.com/developer/applications/create
client
:
{
production
:
key
,
// production: '
<
insert
production
client
id
>
'
production
:
key
,
// production: '
<
insert
production
client
id
>
'
},
style: {
color: '
gold
',
size: '
large
',
shape:'
rect
',
locale:'
zh_US
',
shape:
'
rect
',
locale:
'
zh_US
',
},
// Show the buyer a '
Pay
Now
' button in the checkout flow
commit: true,
// payment() is called when the button is clicked
payment: function(data, actions) {
payment: function
(data, actions) {
...
...
@@ -369,13 +411,13 @@
},
// onAuthorize() is called when the buyer approves the payment
onAuthorize: function(data, actions) {
onAuthorize: function
(data, actions) {
// Make a call to the REST api to execute the payment
return actions.payment.execute().then(function() {
return actions.payment.execute().then(function
() {
setInterval(function () {
window.location.href
=
'
payend
.
html
';
},100)
window.location.href
=
'
payend
.
html
';
},
100)
});
}
...
...
@@ -384,7 +426,7 @@
}
})
}
}
else
{
}
else
{
layer
.
msg
(
langList
[
langType
].
select
);
}
...
...
@@ -392,4 +434,5 @@
}
})
</script>
</html>
\ No newline at end of file
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