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
35bb02f7
Commit
35bb02f7
authored
Sep 29, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asdfasdf
parent
ce9a414b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
6 deletions
+8
-6
index.html
dist/index.html
+1
-1
app.382322e034d9570bceff.js
dist/static/js/app.382322e034d9570bceff.js
+0
-1
app.4df312137d6ce6c14fac.js
dist/static/js/app.4df312137d6ce6c14fac.js
+1
-0
buy.vue
src/components/buy/buy.vue
+3
-0
main.js
src/main.js
+2
-2
index.js
src/service/index.js
+1
-2
No files found.
dist/index.html
View file @
35bb02f7
...
...
@@ -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.c6fa84792a7ca7eb4395.js
></script><script
type=
text/javascript
src=
static/js/vendor.0c1d6ebbba685002d59c.js
></script><script
type=
text/javascript
src=
static/js/app.382322e034d9570bceff.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.c6fa84792a7ca7eb4395.js
></script><script
type=
text/javascript
src=
static/js/vendor.0c1d6ebbba685002d59c.js
></script><script
type=
text/javascript
src=
static/js/app.4df312137d6ce6c14fac.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.382322e034d9570bceff.js
deleted
100644 → 0
View file @
ce9a414b
This diff is collapsed.
Click to expand it.
dist/static/js/app.4df312137d6ce6c14fac.js
0 → 100644
View file @
35bb02f7
This diff is collapsed.
Click to expand it.
src/components/buy/buy.vue
View file @
35bb02f7
...
...
@@ -423,6 +423,9 @@ export default {
localStorage
.
setItem
(
'out_trade_no'
,
outTradEno
);
localStorage
.
setItem
(
'pay_url'
,
res
.
pay_url
);
location
.
href
=
`http://
${
window
.
location
.
host
}
/#/guidelines?pay_url=
${
encodeURI
(
res
.
pay_url
)
}
`
}).
catch
(
err
=>
{
console
.
log
(
err
)
Toast
(
err
.
msg
)
})
}
}
...
...
src/main.js
View file @
35bb02f7
...
...
@@ -54,8 +54,8 @@ let micromessenger = common.isWeixinBrowser();
if
(
micromessenger
==
2
){
alert
(
micromessenger
);
alert
(
2222222
)
location
.
href
=
`http://
${
window
.
location
.
host
}
/#/guidelines`
//
router.push({ path: 'guidelines' })
//
location.href = `http://${ window.location.host }/#/guidelines`
router
.
push
({
path
:
'guidelines'
})
}
let
timer
=
null
;
if
(
window
.
localStorage
.
out_trade_no
)
{
...
...
src/service/index.js
View file @
35bb02f7
...
...
@@ -21,8 +21,7 @@ axios.interceptors.request.use(
// 设置参数格式
if
(
!
config
.
headers
[
'Content-Type'
])
{
config
.
headers
=
{
'Content-Type'
:
'application/json'
,
'Set-Cookie'
:
'base_api_session=eyJpdiI6IlA1c3AwUkZcLyswSUZtSGF3a2dyWTJnPT0iLCJ2YWx1ZSI6IlwvV3BzK2NCQ3ZtUkNld2VmV1Arb28wcGY3NzBHdEg2RHdDZ0w3ck5xXC9LQ21zbnlzMzA1ZDhmUXgwcmFjZFdkVyIsIm1hYyI6ImE3ZjUzYThhNzQyYjNmNjQyZTg1NThkMzcxZWY0NmE3OGNhNmFlZWMzZjMzN2UxYTk0YTIxYWVmZmE0Yzk5M2QifQ%3D%3D; expires=Mon, 30-Sep-2019 05:46:32 GMT; Max-Age=86400; path=/; httponly'
'Content-Type'
:
'application/json'
};
}
// 添加token到headers
...
...
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