Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
c86d8a32
Commit
c86d8a32
authored
Aug 05, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单状态参数
parent
18f3a031
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
App.vue
src/App.vue
+7
-1
foodClassification.vue
src/pages/index/foodClassification.vue
+1
-1
orderDic.js
src/utils/orderDic.js
+13
-0
No files found.
src/App.vue
View file @
c86d8a32
<
script
setup
>
import
{
getTokenUser
}
from
'./api/index'
;
import
{
sgyOrderGetStatus
}
from
'./api/order'
;
import
testJson
from
'./static/json/test.json'
;
import
{
getToken
}
from
'./utils/auth'
;
import
{
setOrderDic
}
from
'./utils/orderDic'
;
onLaunch
(()
=>
{
if
(
!
getToken
())
signIn
();
console
.
log
(
'App Launch'
);
sgyOrderGetStatus
().
then
((
res
)
=>
{
if
(
res
.
code
===
0
)
{
setOrderDic
(
res
.
data
.
store
);
}
});
});
onShow
(()
=>
{
...
...
src/pages/index/foodClassification.vue
View file @
c86d8a32
...
...
@@ -278,7 +278,7 @@ const getMerchantList = () => {
});
xma
.
showLoading
({
title
:
'加载中...'
,
mask
:
fals
e
,
mask
:
tru
e
,
});
return
merchantList
(
params
.
value
).
then
((
res
)
=>
{
if
(
res
.
data
.
content
.
length
<
params
.
value
.
size
)
{
...
...
src/utils/orderDic.js
0 → 100644
View file @
c86d8a32
const
TokenKey
=
'ORDER_DICT'
;
export
function
getOrderDic
()
{
return
xma
.
getStorageSync
(
TokenKey
);
}
export
function
setOrderDic
(
token
)
{
return
xma
.
setStorageSync
(
TokenKey
,
token
);
}
export
function
removeOrderDic
()
{
return
xma
.
removeStorageSync
(
TokenKey
);
}
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