Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
fireflyReg
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
7b45419e
authored
a year ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
bd2315d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
172 additions
and
22 deletions
h5pay/newPay/index.html
wechatpay/wxPay.html
h5pay/newPay/index.html
View file @
7b45419e
...
...
@@ -787,29 +787,30 @@ $(function(){
});
break
;
case
'WECHATPAY'
:
$
.
ajax
({
url
:
_url
+
"/pay/getPayPreid.html"
,
type
:
"post"
,
data
:{
'cid'
:
"web_gw"
,
'os'
:
"h5"
,
'lang'
:
sessionStorage
.
lang
,
'uid'
:
localStorage
.
uid
,
'product'
:
"橙钻充值"
,
'country'
:
"86"
,
'rid'
:
sessionStorage
.
rid
,
'payType'
:
sessionStorage
.
pay
,
'payTypeSub'
:
"MWEB"
,
'amount'
:
sessionStorage
.
money
,
'extend'
:
"https://firefly.live/h5pay/phonepay/paySuccess.html?lang="
+
sessionStorage
.
lang
+
"&type=h5"
,
},
success
:
function
(
data
)
{
window
.
location
.
href
=
"http://web.yazhaiyabo.com/wechatpay/wxPay.html?cid=web_gw&os=h5&lang="
+
sessionStorage
.
lang
+
"&uid="
+
sessionStorage
.
uid
+
"product=橙钻充值&country=86&rid="
+
sessionStorage
.
rid
+
"&payType="
+
sessionStorage
.
pay
+
"&payTypeSub=MWEB&amount="
+
sessionStorage
.
money
+
"&extend=https://firefly.live/h5pay/phonepay/paySuccess.html?lang="
+
sessionStorage
.
lang
+
"&type=h5"
// $.ajax({
// url:_url+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// 'lang':sessionStorage.lang,
// 'uid':localStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':sessionStorage.rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"MWEB",
// 'amount':sessionStorage.money,
// 'extend':"https://firefly.live/h5pay/phonepay/paySuccess.html?lang="+sessionStorage.lang+"&type=h5",
// },
// success: function (data) {
sessionStorage
.
oid
=
data
.
orderId
;
var
url
=
data
.
payInfo
.
mweb_url
;
window
.
location
.
href
=
url
;
}
})
//
sessionStorage.oid=data.orderId;
//
var url =data.payInfo.mweb_url;
//
window.location.href=url;
//
}
//
})
case
'ALIPAY'
:
$
.
ajax
({
url
:
_url
+
"/pay/getPayPreid.html"
,
...
...
This diff is collapsed.
Click to expand it.
wechatpay/wxPay.html
0 → 100644
View file @
7b45419e
<!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=
"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"
>
<meta
name=
"wap-font-scale"
content=
"no"
>
<script
src=
"fsize.js"
></script>
<script
src=
"jquery-3.1.1.min.js"
></script>
<link
rel=
"stylesheet"
href=
"base.css"
>
<link
rel=
"stylesheet"
href=
"fireflyPay.css?v='2018060681'"
>
<link
rel=
"stylesheet"
href=
"layer.css"
>
<title></title>
<style>
.p-w
{
background-color
:
#11101A
;
}
.gash-for-ul
{
margin
:
0
auto
;
width
:
10rem
;
}
.gash-for-ul
li
{
height
:
1.45rem
;
line-height
:
1.45rem
;
color
:
#00F8DC
;
background
:
#11101A
;
margin-bottom
:
0.05rem
;
border
:
0.04rem
solid
transparent
;
}
.p-active
{
border
:
0.04rem
solid
#1cebd1
!important
;
}
.gash-for-ul
li
img
{
width
:
0.5rem
;
vertical-align
:
middle
;
margin-top
:
-0.1rem
;
margin-left
:
0.5rem
;
}
.gash-for-ul
li
span
{
margin-left
:
0.3rem
;
font-size
:
0.45rem
;
}
.gash-for-ul
li
button
{
height
:
0.73rem
;
line-height
:
0.75rem
;
width
:
2.2rem
;
background
:
linear-gradient
(
to
right
,
#00f088
,
#00a0e9
);
border-radius
:
2rem
;
color
:
#fff
;
float
:
right
;
margin-top
:
0.35rem
;
margin-right
:
0.46rem
;
font-size
:
0.4rem
;
}
.gash-rid
{
visibility
:
hidden
;
}
.login-tips
{
color
:
#00a0e9
;
background-color
:
#11101A
;
margin-top
:
1rem
;
}
.paypal
{
background-color
:
#11101A
;
}
.login-btn
{
margin-top
:
.5rem
;
}
</style>
</head>
<body>
<div
class=
"p-w alipay"
>
<ul
class=
"gash-for-ul clearfix"
>
</ul>
<p
class=
"login-tips"
></p>
</div>
</body>
<script
src=
"jquery-3.1.1.min.js"
></script>
<script
src=
"payLangchange.js?v=202007081530"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script>
$
(
'title'
).
text
(
langList
[
langType
].
paytitle
);
$
(
'.login-tips'
).
text
(
langList
[
langType
].
ques
);
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
sessionStorage
.
lang
=
data
.
lang
;
sessionStorage
.
uid
=
data
.
uid
;
sessionStorage
.
pay
=
data
.
pay
;
sessionStorage
.
payStatus
=
data
.
payStatus
;
sessionStorage
.
cidStr
=
data
.
cidStr
||
'web_gw'
;
sessionStorage
.
osStr
=
data
.
osStr
||
'h5'
;
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
;
}
var
extend
=
'https://www.yabolive.tv/phonepay/payend.html'
;
if
(
sessionStorage
.
payStatus
==
1
)
{
extend
=
'https://www.yabolive.tv/phonepay/payend.html?payStatus='
+
sessionStorage
.
payStatus
;
}
$
.
ajax
({
url
:
$ip
+
"/pay/getPayPreid.html"
,
type
:
"post"
,
data
:
{
'cid'
:
sessionStorage
.
cidStr
,
'os'
:
sessionStorage
.
osStr
,
lang
:
sessionStorage
.
lang
,
'uid'
:
sessionStorage
.
uid
,
'product'
:
langList
[
langType
].
visatitle
,
'country'
:
"86"
,
'rid'
:
rid
,
'payType'
:
sessionStorage
.
pay
,
'payTypeSub'
:
"MWEB"
,
'amount'
:
money
*
100
,
'extend'
:
extend
,
},
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
;
}
})
</script>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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