Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
18a5f1e2
Commit
18a5f1e2
authored
Nov 12, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情评价方法
parent
8d643d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
2 deletions
+52
-2
src/pages/user/order/order_detail.vue
src/pages/user/order/order_detail.vue
+52
-2
No files found.
src/pages/user/order/order_detail.vue
View file @
18a5f1e2
...
@@ -623,8 +623,58 @@ export default {
...
@@ -623,8 +623,58 @@ export default {
},
},
methods
:
{
methods
:
{
addEvaluation
()
{
addEvaluation
()
{
console
.
log
(
this
.
serviceRate
,
this
.
textarea
);
if
(
this
.
textarea
==
""
||
this
.
serviceRate
==
null
)
{
this
.
visible
=
false
;
this
.
$message
({
message
:
"
请先完善评价内容
"
,
type
:
"
error
"
,
});
}
else
{
if
(
this
.
orderDetail
.
order_type
==
1
)
{
let
query
=
{
service_id
:
this
.
orderDetail
.
service_id
,
content
:
this
.
textarea
,
score
:
this
.
serviceRate
,
apply_id
:
this
.
orderDetail
.
apply_id
,
};
this
.
$api
.
user
.
addServiceEvaluation
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
评价订单成功
"
,
type
:
"
success
"
,
});
this
.
visible
=
false
;
this
.
getOrderDetail
();
}
else
{
this
.
$message
({
message
:
"
评价订单失败
"
,
type
:
"
error
"
,
});
}
});
}
else
if
(
this
.
orderDetail
.
order_type
==
2
)
{
let
query
=
{
app
:
this
.
orderDetail
.
app_id
,
content
:
this
.
textarea
,
score
:
this
.
serviceRate
,
apply_id
:
this
.
orderDetail
.
apply_id
,
};
this
.
$api
.
user
.
addServiceEvaluation
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
评价订单成功
"
,
type
:
"
success
"
,
});
this
.
visible
=
false
;
this
.
getOrderDetail
();
}
else
{
this
.
$message
({
message
:
"
评价订单失败
"
,
type
:
"
error
"
,
});
}
});
}
}
},
},
download
()
{},
download
()
{},
getOrderDetail
()
{
getOrderDetail
()
{
...
...
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