Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FuLiMini
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjian
FuLiMini
Commits
7fa6e0df
Commit
7fa6e0df
authored
Apr 25, 2022
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9965344d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
net.js
common/net.js
+5
-4
home.vue
pages/home/home.vue
+2
-2
order.vue
pages/order/order.vue
+1
-1
No files found.
common/net.js
View file @
7fa6e0df
...
...
@@ -17,12 +17,13 @@ export function post (url, params) {
header
:
headerCom
(
params
),
data
:
newParams
,
success
(
res
)
{
if
(
res
.
code
==
301
)
{
if
(
res
.
data
.
code
==
301
&&
params
.
refreshToken
!==
'not'
)
{
tokenSave
(
''
)
router
.
push
(
'Login'
)
return
}
if
(
res
.
code
==
302
)
{
if
(
res
.
data
.
code
==
302
)
{
tokenSave
(
res
.
data
.
token
)
post
(
url
,
params
)
return
...
...
@@ -59,12 +60,12 @@ export function get (url, params) {
header
:
headerCom
(
params
),
data
:
newParams
,
success
(
res
)
{
if
(
res
.
code
==
301
)
{
if
(
res
.
data
.
code
==
301
&&
params
.
refreshToken
!==
'not'
)
{
tokenSave
(
''
)
router
.
push
(
'Login'
)
return
}
if
(
res
.
code
==
302
)
{
if
(
res
.
data
.
code
==
302
)
{
tokenSave
(
res
.
data
.
token
)
post
(
url
,
params
)
return
...
...
pages/home/home.vue
View file @
7fa6e0df
...
...
@@ -53,7 +53,7 @@ export default {
getUserInfo
()
{
this
.
isLogin
=
true
;
this
.
$net
.
get
(
'/staff/detail'
,
{})
.
get
(
'/staff/detail'
,
{
'refreshToken'
:
'not'
})
.
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
name
=
res
.
data
.
staffName
;
...
...
@@ -72,7 +72,7 @@ export default {
},
getData
()
{
this
.
$net
.
get
(
'/goods/brand'
,
{
page
:
this
.
page
,
pageSize
:
this
.
pageSize
})
.
get
(
'/goods/brand'
,
{
page
:
this
.
page
,
pageSize
:
this
.
pageSize
,
'refreshToken'
:
'not'
})
.
then
(
res
=>
{
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
brandList
=
this
.
brandList
.
concat
(
res
.
data
.
list
);
...
...
pages/order/order.vue
View file @
7fa6e0df
...
...
@@ -19,7 +19,7 @@
<view
class=
"info"
>
<view
class=
"title"
>
{{
item
.
attrValue
}}
</view>
<view
class=
"spec"
>
<view>
{{
item
.
attr
Valu
e
}}
:
{{
item
.
denomination
}}
</view>
<view>
{{
item
.
attr
Nam
e
}}
:
{{
item
.
denomination
}}
</view>
<view>
x
{{
item
.
payNumber
}}
</view>
</view>
<view
class=
"price"
>
...
...
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