Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wxapp
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
亲子游项目
wxapp
Commits
4a4e4a7f
Commit
4a4e4a7f
authored
Sep 26, 2018
by
ArronYR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify api request
parent
d2ed8a2b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
pages/auth/index.wxml
+5
-1
pages/auth/index.wxss
+4
-0
pages/guide/index.wxss
+1
-0
utils/Request.js
+5
-5
No files found.
pages/auth/index.wxml
View file @
4a4e4a7f
<!--pages/auth/index.wxml-->
<view class='v-page'>
<view class='container'>
<image src='/images/icon_location.png' mode='scaleToFill'></image>
<view></view>
</view>
</view>
\ No newline at end of file
pages/auth/index.wxss
View file @
4a4e4a7f
/* pages/auth/index.wxss */
page {
background: #fff;
}
pages/guide/index.wxss
View file @
4a4e4a7f
/* pages/guide/index.wxss */
utils/Request.js
View file @
4a4e4a7f
...
...
@@ -38,10 +38,7 @@ class Request {
wx
.
request
({
url
:
(
this
.
_baseUrl
||
''
)
+
url
,
method
:
method
||
METHOD
.
GET
,
data
:
{
token
:
wx
.
getStorageSync
(
'token'
),
...
data
},
data
:
data
,
header
:
{
...
this
.
_header
,
...
header
...
...
@@ -65,7 +62,10 @@ class Request {
url
,
method
:
METHOD
.
POST
,
header
,
data
:
Util
.
sign
(
data
)
data
:
Util
.
sign
({
...
data
,
token
:
wx
.
getStorageSync
(
'token'
)
})
})
}
put
(
url
,
data
,
header
)
{
...
...
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