Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
a37be7be
Commit
a37be7be
authored
Apr 22, 2021
by
郭晓清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表页面开发
parent
ef7bc723
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
321 additions
and
39 deletions
+321
-39
order.js
src/common/api/order.js
+13
-0
pages.json
src/pages.json
+6
-0
index.vue
src/pages/order/index.vue
+302
-39
No files found.
src/common/api/order.js
View file @
a37be7be
import
util
from
'@/utils/util.js'
let
orderApiFun
=
function
(
vm
){
let
orderApiFun
=
function
(
vm
){
let
listByRecommendOrder
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-worker-rest/rest/recommend/order'
,
params
);
let
listByRecommendOrder
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-worker-rest/rest/recommend/order'
,
params
);
/**
* 工单数量查询接口
*/
let
listOrderCount
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'http://apidoc.banshouhui.com:3000/mock/31/wxh-worker-rest/rest/'
+
util
.
getToken
()
+
'/order/queryOrdersCount/V2'
,
params
);
/**
* 工单列表接口
*/
let
listOrder
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'http://apidoc.banshouhui.com:3000/mock/31/wxh-worker-rest/rest/'
+
util
.
getToken
()
+
'/order/revision/list'
,
params
);
const
orderApi
=
{
const
orderApi
=
{
listByRecommendOrder
,
listByRecommendOrder
,
listOrderCount
,
listOrder
,
}
}
return
orderApi
return
orderApi
}
}
...
...
src/pages.json
View file @
a37be7be
...
@@ -15,6 +15,12 @@
...
@@ -15,6 +15,12 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"订单"
"navigationBarTitleText"
:
"订单"
}
}
},
{
"path"
:
"pages/order/orderItem"
,
"style"
:
{
"navigationBarTitleText"
:
"订单详情"
}
},
},
{
{
"path"
:
"pages/order/complete"
,
"path"
:
"pages/order/complete"
,
...
...
src/pages/order/index.vue
View file @
a37be7be
This diff is collapsed.
Click to expand it.
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