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
ef892f8c
Commit
ef892f8c
authored
Oct 09, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dddd
parent
f904c650
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
index.html
dist/index.html
+1
-1
app.70263dc17cd95c09e606.js
dist/static/js/app.70263dc17cd95c09e606.js
+1
-0
main.js
src/main.js
+5
-3
index.js
src/router/index.js
+1
-1
No files found.
dist/index.html
View file @
ef892f8c
...
...
@@ -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.01e6095c53cfe53bcc4e.js
></script><script
type=
text/javascript
src=
static/js/vendor.0c1d6ebbba685002d59c.js
></script><script
type=
text/javascript
src=
static/js/app.fbeb7351c2ab8e74dae5.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.01e6095c53cfe53bcc4e.js
></script><script
type=
text/javascript
src=
static/js/vendor.0c1d6ebbba685002d59c.js
></script><script
type=
text/javascript
src=
static/js/app.70263dc17cd95c09e606.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.
fbeb7351c2ab8e74dae5
.js
→
dist/static/js/app.
70263dc17cd95c09e606
.js
View file @
ef892f8c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main.js
View file @
ef892f8c
...
...
@@ -63,17 +63,19 @@ if (window.localStorage.out_trade_no) {
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
)
{
router
.
push
({
name
:
"guide"
,
query
:
{
shopId
:
outTradEno
.
shopId
}
});
clearInterval
(
timer
);
router
.
push
({
name
:
"guide"
,
query
:
{
shopId
:
outTradEno
.
shopId
}
});
localStorage
.
removeItem
(
'out_trade_no'
)
}
else
{
if
(
res
.
buy_type
==
1
)
{
clearInterval
(
timer
);
router
.
push
({
name
:
"buySuccess"
,
query
:
outTradEno
});
localStorage
.
removeItem
(
'out_trade_no'
)
}
else
{
clearInterval
(
timer
);
router
.
push
({
name
:
"success"
,
query
:
outTradEno
});
localStorage
.
removeItem
(
'out_trade_no'
)
}
clearInterval
(
timer
);
localStorage
.
removeItem
(
'out_trade_no'
)
}
}).
catch
(()
=>
{
clearInterval
(
timer
);
...
...
src/router/index.js
View file @
ef892f8c
...
...
@@ -654,7 +654,7 @@ router.beforeEach((to, from, next) => {
// extensionV1
if
(
to
.
name
===
'weixin'
||
to
.
name
===
'starRankV2'
||
to
.
name
===
'order'
||
to
.
name
===
'buySuccess'
||
to
.
name
===
'success'
||
to
.
name
===
'guidelines'
||
to
.
name
===
'spcShop'
||
to
.
name
===
'mpShop'
||
to
.
name
===
'extensionV1Shop'
||
to
.
name
===
'extensionV1'
||
to
.
name
===
'author'
||
to
.
name
===
'bindMobile'
||
to
.
name
===
'noWechat'
||
to
.
name
===
'inspectorActivit'
||
to
.
name
===
'buyDetail'
||
to
.
name
===
'passShop'
||
to
.
name
===
'ybIndex'
)
{
// 无需登录的页面
console
.
log
(
899
)
console
.
log
(
899
,
to
.
name
)
next
()
}
else
if
(
window
.
location
.
href
.
indexOf
(
'token'
)
>
-
1
&&
to
.
name
===
'index'
)
{
console
.
log
(
99000
)
...
...
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