Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
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
new-sing
h5-base
Commits
c9217c7f
Commit
c9217c7f
authored
Oct 08, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getCourseInfoApi
parent
b9f8c838
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
index.html
dist/index.html
+1
-1
app.0ef1d80b59682093610c.js
dist/static/js/app.0ef1d80b59682093610c.js
+1
-0
main.js
src/main.js
+2
-8
index.js
src/router/index.js
+0
-1
No files found.
dist/index.html
View file @
c9217c7f
...
...
@@ -11,4 +11,4 @@
position
:
fixed
;
background
:
#f4f4f4
;
}
/* html{font-size: 1px;} */
</style><link
href=
static/css/app.ed6d1273dc8c2d144766934b011e5890.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
></script><script></script><script
type=
text/javascript
src=
static/js/manifest.40badb555620b847d5e6.js
></script><script
type=
text/javascript
src=
static/js/vendor.7db1a6fce01e8076ed09.js
></script><script
type=
text/javascript
src=
static/js/app.8ad73775ea5feaf58525.js
></script></body></html>
\ No newline at end of file
/* html{font-size: 1px;} */
</style><link
href=
static/css/app.ed6d1273dc8c2d144766934b011e5890.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
></script><script></script><script
type=
text/javascript
src=
static/js/manifest.40badb555620b847d5e6.js
></script><script
type=
text/javascript
src=
static/js/vendor.7db1a6fce01e8076ed09.js
></script><script
type=
text/javascript
src=
static/js/app.0ef1d80b59682093610c.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.
8ad73775ea5feaf58525
.js
→
dist/static/js/app.
0ef1d80b59682093610c
.js
View file @
c9217c7f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main.js
View file @
c9217c7f
...
...
@@ -11,7 +11,7 @@ import sa from 'sa-sdk-javascript';
import
'mint-ui/lib/style.css'
import
scroll
from
"./base/scroll/scroll"
import
{
Popup
,
Lazyload
,
Button
,
Dialog
,
Toast
}
from
'vant'
;
import
{
getBillRefreshApi
,
getStatusWechatApi
}
from
'./service/api'
import
{
getBillRefreshApi
,
getStatusWechatApi
,
getCourseInfoApi
}
from
'./service/api'
import
'./util/vancs.less'
import
*
as
fundebug
from
'fundebug-javascript'
;
import
fundebugVue
from
'fundebug-vue'
;
...
...
@@ -57,11 +57,9 @@ if (window.localStorage.out_trade_no) {
getBillRefreshApi
({
outTradeNo
:
outTradEno
.
out_trade_no
}).
then
(
res
=>
{
// 支付成功
if
(
res
.
status
===
"SUCCESS"
)
{
getCourseInfoApi
().
then
(
res
=>
{
this
.
userCourse
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
localStorage
.
setItem
(
"userCourse"
,
JSON
.
stringify
(
this
.
userCourse
));
localStorage
.
setItem
(
"buyindex"
,
1
);
Dialog
.
confirm
({
title
:
'标题'
,
message
:
'支付成功'
,
confirmButtonText
:
'去查看'
}).
then
(()
=>
{
if
(
res
.
teacher_alias
&&
res
.
teacher_alias
.
substr
(
0
,
1
)
==
1
&&
outTradEno
.
goods_type
!=
4
&&
outTradEno
.
is_subscribe
==
1
)
{
...
...
@@ -79,11 +77,7 @@ if (window.localStorage.out_trade_no) {
clearInterval
(
timer
);
localStorage
.
removeItem
(
'out_trade_no'
)
});
});
}
else
if
(
res
.
status
===
"NO_SYNC"
)
{
Dialog
.
confirm
({
title
:
'标题'
,
message
:
'您有一笔未支付的订单'
,
confirmButtonText
:
'去查看'
}).
then
(()
=>
{
clearInterval
(
timer
);
...
...
@@ -94,7 +88,7 @@ if (window.localStorage.out_trade_no) {
});
}
})
},
6
000
)
},
10
000
)
}
...
...
src/router/index.js
View file @
c9217c7f
...
...
@@ -39,7 +39,6 @@ const router = new Router({
deep
:
0
,
}
},
{
path
:
'/extensionV1Shop'
,
name
:
'extensionV1Shop'
,
...
...
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