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
23369eb7
authored
Mar 15, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整提示文案
parent
28f1c732
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
public/js/order.js
resources/views/detail/content.blade.php
public/js/order.js
View file @
23369eb7
...
@@ -1538,10 +1538,17 @@
...
@@ -1538,10 +1538,17 @@
$
(
'.deletegoods'
).
click
(
function
(){
$
(
'.deletegoods'
).
click
(
function
(){
var
thisobj
=
$
(
this
);
var
thisobj
=
$
(
this
);
var
new_client_price
=
$
(
'#new_client_price'
).
val
();
var
new_client_price
=
$
(
'#new_client_price'
).
val
();
var
order_type_extend
=
$
(
'#order_type_extend'
).
val
();
var
content
=
''
;
var
content
=
''
;
var
msg_text
=
''
;
if
(
new_client_price
)
{
if
(
new_client_price
)
{
content
=
'<i class="error">* 该单为新客价订单,如改单将删除整单优惠</i>'
;
switch
(
order_type_extend
)
{
case
'1'
:
msg_text
=
'团购'
;
break
;
case
'2'
:
msg_text
=
'秒杀'
;
break
;
default
:
msg_text
=
'新客价'
;
break
;
}
content
=
'<i class="error">* 该单为'
+
msg_text
+
'订单,如改单将删除整单优惠</i>'
;
}
}
content
+=
'<div><textarea type="text" class="reason" style="width:300px;height: 100px"></textarea></div><span class="error">请填写删除商品原因,100字以内</span>'
;
content
+=
'<div><textarea type="text" class="reason" style="width:300px;height: 100px"></textarea></div><span class="error">请填写删除商品原因,100字以内</span>'
;
...
@@ -2065,18 +2072,25 @@
...
@@ -2065,18 +2072,25 @@
}
}
}
}
var
currencySign
=
currency
==
1
?
'¥'
:
'$'
;
var
currencySign
=
currency
==
1
?
'¥'
:
'$'
;
var
goods_amount
=
parseFloat
(
$
(
'.goods_total'
).
text
());
var
goods_amount
=
parseFloat
(
$
(
'.goods_total'
).
text
());
var
order_amount
=
parseFloat
(
$
(
'.total'
).
text
());
var
order_amount
=
parseFloat
(
$
(
'.total'
).
text
());
var
extra_fee
=
$
(
'input[name=extra_fee]'
).
val
()
?
$
(
'input[name=extra_fee]'
).
val
()
:
0
;
var
freight_fee
=
$
(
'input[name=freight_fee]'
).
val
()
?
$
(
'input[name=freight_fee]'
).
val
()
:
0
;
var
last_paid
=
parseFloat
(
order_amount
+
parseFloat
(
pay_preferential
)).
toFixed
(
2
);
// 实际支付金额
var
order_type_extend
=
$
(
'#order_type_extend'
).
val
();
var
msg_text
=
''
;
var
extra_fee
=
$
(
'input[name=extra_fee]'
).
val
()
?
$
(
'input[name=extra_fee]'
).
val
()
:
0
;
switch
(
order_type_extend
)
{
var
freight_fee
=
$
(
'input[name=freight_fee]'
).
val
()
?
$
(
'input[name=freight_fee]'
).
val
()
:
0
;
case
'1'
:
msg_text
=
'团购'
;
break
;
var
last_paid
=
parseFloat
(
order_amount
+
parseFloat
(
pay_preferential
)).
toFixed
(
2
);
// 实际支付金额
case
'2'
:
msg_text
=
'秒杀'
;
break
;
default
:
msg_text
=
'新客价'
;
break
;
}
var
content
=
'<div class="submit-check">'
;
var
content
=
'<div class="submit-check">'
;
if
(
new_client_price
)
{
if
(
new_client_price
)
{
content
+=
'<p class="error">该单为
新客价
订单,如改单将删除整单优惠,请核对订单金额,谨慎操作!</p>'
;
content
+=
'<p class="error">该单为
'
+
msg_text
+
'
订单,如改单将删除整单优惠,请核对订单金额,谨慎操作!</p>'
;
}
else
{
}
else
{
content
+=
'<p class="error">请核对订单金额,谨慎操作!</p>'
;
content
+=
'<p class="error">请核对订单金额,谨慎操作!</p>'
;
}
}
...
@@ -2084,7 +2098,7 @@
...
@@ -2084,7 +2098,7 @@
content
+=
'<p><label>商品总金额:</label>'
+
currencySign
+
goods_amount
+
'</p>'
;
content
+=
'<p><label>商品总金额:</label>'
+
currencySign
+
goods_amount
+
'</p>'
;
if
(
new_client_price
)
{
if
(
new_client_price
)
{
content
+=
'<p><label>
新客价
金额:</label>'
+
new_client_price
+
'</p>'
;
content
+=
'<p><label>
'
+
msg_text
+
'
金额:</label>'
+
new_client_price
+
'</p>'
;
}
}
content
+=
'<p><label>优惠金额:</label>'
+
discount_amount
+
'</p>'
+
content
+=
'<p><label>优惠金额:</label>'
+
discount_amount
+
'</p>'
+
...
...
resources/views/detail/content.blade.php
View file @
23369eb7
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<input
type=
"hidden"
id=
"order_id"
name=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<input
type=
"hidden"
id=
"order_id"
name=
"order_id"
value=
"{{$order_info['order_id']}}"
>
<input
type=
"hidden"
id=
"user_id"
name=
"user_id"
value=
"{{$order_info['user_id']}}"
>
<input
type=
"hidden"
id=
"user_id"
name=
"user_id"
value=
"{{$order_info['user_id']}}"
>
<input
type=
"hidden"
id=
"new_client_price"
name=
"new_client_price"
value=
"{{$order_price_info['new_client_price']}}"
>
<input
type=
"hidden"
id=
"new_client_price"
name=
"new_client_price"
value=
"{{$order_price_info['new_client_price']}}"
>
<input
type=
"hidden"
id=
"order_type_extend"
name=
"order_type_extend"
value=
"{{$order_info['order_type_extend']}}"
>
<div
class=
"tabs-box table-responsive"
>
<div
class=
"tabs-box table-responsive"
>
<table
class=
"table table-bordered order-express"
>
<table
class=
"table table-bordered order-express"
>
...
...
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