Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f0bb5e86
authored
Jan 13, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整售后弹窗
parent
c44ea657
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
0 deletions
app/Http/Controllers/OrderController.php
app/Http/routes.php
config/order_service.php
public/js/order_service.js
resources/views/detail/order_service.blade.php
app/Http/Controllers/OrderController.php
View file @
f0bb5e86
...
@@ -1517,6 +1517,25 @@ Class OrderController extends Controller
...
@@ -1517,6 +1517,25 @@ Class OrderController extends Controller
return
view
(
'changeInvoice'
,
$info
);
return
view
(
'changeInvoice'
,
$info
);
}
}
// 订单售后检测是否能原路返回
public
function
orderServiceCheck
(
Request
$request
)
{
if
(
$request
->
isMethod
(
'post'
)){
$data
[
'data'
]
=
$request
->
input
();
$data
[
'k1'
]
=
time
();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
$data
[
'operator_id'
]
=
$request
->
user
->
userId
;
$data
[
'operator_name'
]
=
$request
->
user
->
name
;
$update_url
=
Config
(
'website.api_domain'
)
.
'service/checkTurnBack'
;
$res
=
json_decode
(
curlApi
(
$update_url
,
$data
,
'POST'
),
true
);
return
array
(
'errcode'
=>
$res
[
'err_code'
],
'errmsg'
=>
''
,
'data'
=>
$res
[
'data'
]);
}
}
// 订单售后
// 订单售后
public
function
orderServiceApply
(
Request
$request
)
public
function
orderServiceApply
(
Request
$request
)
{
{
...
...
app/Http/routes.php
View file @
f0bb5e86
...
@@ -86,6 +86,7 @@ Route::group(['middleware' => 'web'], function () {
...
@@ -86,6 +86,7 @@ Route::group(['middleware' => 'web'], function () {
// Route::post('/ajaxInputCancelReason', 'OrderController@ajaxInputCancelReason');
// Route::post('/ajaxInputCancelReason', 'OrderController@ajaxInputCancelReason');
Route
::
post
(
'/ajax/shipping'
,
'OrderController@shipping'
);
Route
::
post
(
'/ajax/shipping'
,
'OrderController@shipping'
);
Route
::
post
(
'/ajax/orderServiceCheck'
,
'OrderController@orderServiceCheck'
);
Route
::
post
(
'/ajax/orderServiceApply'
,
'OrderController@orderServiceApply'
);
Route
::
post
(
'/ajax/orderServiceApply'
,
'OrderController@orderServiceApply'
);
Route
::
get
(
'/add_order'
,
'AddOrderController@addOrder'
);
Route
::
get
(
'/add_order'
,
'AddOrderController@addOrder'
);
...
...
config/order_service.php
View file @
f0bb5e86
...
@@ -8,6 +8,19 @@ return [
...
@@ -8,6 +8,19 @@ return [
3
=>
'审核通过'
,
3
=>
'审核通过'
,
],
],
// 售后类型
'service_type'
=>
[
1
=>
'未出库取消'
,
2
=>
'已出库退货'
,
],
// 退款方式
'refund_type'
=>
[
1
=>
'原路返回'
,
2
=>
'支付宝'
,
3
=>
'银行'
,
],
// 退款状态
// 退款状态
'refund_status'
=>
[
'refund_status'
=>
[
1
=>
'待生成'
,
1
=>
'待生成'
,
...
...
public/js/order_service.js
View file @
f0bb5e86
This diff is collapsed.
Click to expand it.
resources/views/detail/order_service.blade.php
View file @
f0bb5e86
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