Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
7079ba13
Commit
7079ba13
authored
Dec 08, 2020
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题解决
parent
ed8eb0d2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
30 deletions
+31
-30
pages.json
take-order/pages.json
+1
-4
index.vue
take-order/pages/take/index.vue
+16
-14
index.js.map
...age/dist/dev/.sourcemap/mp-weixin/pages/take/index.js.map
+1
-1
index.js
take-order/unpackage/dist/dev/mp-weixin/pages/take/index.js
+13
-11
No files found.
take-order/pages.json
View file @
7079ba13
...
...
@@ -19,10 +19,7 @@
"navigationBarTitleText"
:
"完工信息"
}
},
{
"path"
:
"pages/take/detail"
,
...
...
take-order/pages/take/index.vue
View file @
7079ba13
...
...
@@ -161,23 +161,25 @@
this
.
getToken
()
},
async
getToken
()
{
await
uni
.
getStorage
({
key
:
'token'
,
success
:
function
(
res
)
{
console
.
log
(
'本地获取token成功'
)
console
.
log
(
res
.
data
);
getApp
().
globalData
.
token
=
res
.
data
}
})
await
this
.
getData
()
},
methods
:
{
async
getToken
()
{
await
uni
.
getStorage
({
key
:
'token'
,
success
:
function
(
res
)
{
console
.
log
(
'本地获取token成功'
)
console
.
log
(
res
.
data
);
getApp
().
globalData
.
token
=
res
.
data
}
})
await
this
.
getData
()
},
//获取数据
getData
:
function
()
{
...
...
take-order/unpackage/dist/dev/.sourcemap/mp-weixin/pages/take/index.js.map
View file @
7079ba13
This diff is collapsed.
Click to expand it.
take-order/unpackage/dist/dev/mp-weixin/pages/take/index.js
View file @
7079ba13
...
...
@@ -293,22 +293,24 @@ __webpack_require__.r(__webpack_exports__);
this
.
getToken
();
},
getToken
:
function
getToken
()
{
var
_this
=
this
;
return
_asyncToGenerator
(
/*#__PURE__*/
_regenerator
.
default
.
mark
(
function
_callee
()
{
return
_regenerator
.
default
.
wrap
(
function
_callee$
(
_context
)
{
while
(
1
)
{
switch
(
_context
.
prev
=
_context
.
next
)
{
case
0
:
_context
.
next
=
2
;
return
(
uni
.
getStorage
({
key
:
'token'
,
success
:
function
success
(
res
)
{
console
.
log
(
'本地获取token成功'
);
console
.
log
(
res
.
data
);
getApp
().
globalData
.
token
=
res
.
data
;
}
}));
case
2
:
_context
.
next
=
4
;
return
(
methods
:
{
getToken
:
function
getToken
()
{
var
_this
=
this
;
return
_asyncToGenerator
(
/*#__PURE__*/
_regenerator
.
default
.
mark
(
function
_callee
()
{
return
_regenerator
.
default
.
wrap
(
function
_callee$
(
_context
)
{
while
(
1
)
{
switch
(
_context
.
prev
=
_context
.
next
)
{
case
0
:
_context
.
next
=
2
;
return
(
uni
.
getStorage
({
key
:
'token'
,
success
:
function
success
(
res
)
{
console
.
log
(
'本地获取token成功'
);
console
.
log
(
res
.
data
);
getApp
().
globalData
.
token
=
res
.
data
;
_this
.
getData
());
case
4
:
case
"end"
:
return
_context
.
stop
();}}},
_callee
);}))();
},
methods
:
{
}
}));
case
2
:
_context
.
next
=
4
;
return
(
_this
.
getData
());
case
4
:
case
"end"
:
return
_context
.
stop
();}}},
_callee
);}))();
},
//获取数据
getData
:
function
getData
()
{
...
...
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