Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
837d6bf1
Commit
837d6bf1
authored
Jun 03, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
68d5563a
005724fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
8 deletions
+67
-8
apps/course/Tpl/default/PayVideo/index_w3g.html
+0
-0
apps/course/Tpl/default/PayVideo/index_w3g_new.html
+0
-0
apps/exams/Tpl/default/Index/pay_w3g.html
+33
-3
apps/mall/Tpl/default/Goods/pay_w3g.html
+34
-5
No files found.
apps/course/Tpl/default/PayVideo/index_w3g.html
View file @
837d6bf1
This diff is collapsed.
Click to expand it.
apps/course/Tpl/default/PayVideo/index_w3g_new.html
0 → 100644
View file @
837d6bf1
This diff is collapsed.
Click to expand it.
apps/exams/Tpl/default/Index/pay_w3g.html
View file @
837d6bf1
...
...
@@ -73,6 +73,7 @@
});
}
if
(
that
.
agree
)
{
var
s
=
0
;
$
.
ajax
({
url
:
"{:U('course/PayVideo/payLibraryExams')}"
,
data
:
{
...
...
@@ -85,9 +86,38 @@
async
:
false
,
type
:
'post'
,
success
:
function
(
data
){
let
res
=
JSON
.
parse
(
data
)
if
(
res
.
status
==
1
)
{
let
res2
=
JSON
.
parse
(
data
);
clearInterval
(
s
);
if
(
res2
.
status
==
1
)
{
var
pay_pass_num
=
res2
.
data
.
pay_pass_num
;
WeixinJSBridge
.
invoke
(
'getBrandWCPayRequest'
,
JSON
.
parse
(
res2
.
data
.
html
),
function
(
res
){
if
(
res
.
err_msg
==
"get_brand_wcpay_request:ok"
){
s
=
setInterval
(
function
(){
$
.
ajax
({
url
:
"{:U('course/PayVideo/getPayStatus')}"
,
data
:{
pay_pass_num
:
pay_pass_num
},
type
:
'post'
,
success
:
function
(
res
){
try
{
res
=
JSON
.
parse
(
res
);
if
(
res
.
status
==
1
){
clearInterval
(
s
);
ui
.
success
(
'购买成功'
);
setTimeout
(
function
(){
window
.
location
.
href
=
res
.
data
;
},
1500
);
}
}
catch
(
e
){
return
;
}
}
});
},
1800
);
}
}
);
}
else
{
ui
.
error
(
res
.
data
)
}
...
...
apps/mall/Tpl/default/Goods/pay_w3g.html
View file @
837d6bf1
...
...
@@ -127,6 +127,7 @@
ui
.
error
(
"购买必须同意《{$site['site_keyword']}购买协议》"
)
return
}
var
s
=
0
;
$
.
ajax
({
url
:
"{:U('classroom/Pay/buyGoods')}"
,
data
:
{
...
...
@@ -138,12 +139,40 @@
},
async
:
false
,
type
:
'post'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
status
==
1
)
{
success
:
function
(
data
)
{
data
=
JSON
.
parse
(
data
);
if
(
data
.
status
==
1
)
{
var
pay_pass_num
=
data
.
data
.
pay_pass_num
;
WeixinJSBridge
.
invoke
(
'getBrandWCPayRequest'
,
JSON
.
parse
(
data
.
data
.
html
),
function
(
res
){
if
(
res
.
err_msg
==
"get_brand_wcpay_request:ok"
){
s
=
setInterval
(
function
(){
$
.
ajax
({
url
:
"{:U('classroom/Pay/getPayStatus')}"
,
data
:{
pay_pass_num
:
pay_pass_num
},
type
:
'post'
,
success
:
function
(
res
){
try
{
res
=
JSON
.
parse
(
res
);
if
(
res
.
status
==
1
){
clearInterval
(
s
);
ui
.
success
(
'购买成功'
);
setTimeout
(
function
(){
window
.
location
.
href
=
res
.
data
;
},
1500
);
}
}
catch
(
e
){
return
;
}
}
});
},
1800
);
}
}
);
}
else
{
ui
.
error
(
res
.
info
?
res
.
info
:
res
.
data
)
ui
.
error
(
data
.
info
?
data
.
info
:
data
.
data
)
}
}
})
...
...
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