Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
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
7a4633c9
authored
Dec 01, 2022
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单列表
parent
ea7cb880
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
app/Http/Services/OrderService.php
public/assets/js/class/class.js
app/Http/Services/OrderService.php
View file @
7a4633c9
...
...
@@ -298,14 +298,17 @@ class OrderService
$ext_price
=
round
(
$b
[
"goods_number"
]
*
$b
[
"goods_price"
],
2
);
$merchandise_total
+=
$ext_price
;
}
$merchandise_total
=
round
(
$merchandise_total
,
2
);
$priceInfo
=
OrderPriceModel
::
selectRaw
(
"price_type,price"
)
->
where
(
"order_id"
,
$order_id
)
->
get
()
->
toArray
();
//金额类型(正数ID大于0,负数ID小于0)-8活动优惠 -7支付优惠 -6运费优惠 -5尾款减款 -4优惠券优惠金额 -3尾款 -2预付款 -1付款,1货款 2附加费 3运费 4退款 5支付手续费
$priceArr
=
array_column
(
$priceInfo
,
"price"
,
"price_type"
);
# $sub_total = OrderPriceModel::getOrderSubTotal($order_id);
$payment_surcharge_paypal
=
round
(
$merchandise_total
*
0.046
+
0.5
,
2
);
$t
emp
[]
=
[
$t
s
=
[
"order_id"
=>
$order_id
,
"order_sn"
=>
$v
[
"order_sn"
],
"order_amount"
=>
$v
[
"order_amount"
],
...
...
@@ -317,13 +320,16 @@ class OrderService
"phone"
=>
\Arr
::
get
(
$orderAddress
,
"phone"
),
"shipping_address"
=>
\Arr
::
get
(
$orderAddress
,
"detail_address"
),
"shipping"
=>
\Arr
::
get
(
$priceArr
,
3
,
0
),
//运费
"payment_surcharge"
=>
\Arr
::
get
(
$priceArr
,
5
,
0
),
//支付手续费
"payment_surcharge_paypal"
=>
$payment_surcharge_paypal
,
//paypal 支付手续费
"payment_surcharge_ttl"
=>
35
,
//ttl 支付手续费
"merchandise_total"
=>
$merchandise_total
,
//商品总额
"sub_total"
=>
OrderPriceModel
::
getOrderSubTotal
(
$order_id
),
//小计
"create_time"
=>
date
(
'Y-m-d H:i:s'
,
$v
[
'create_time'
]),
//下单时间
# "over_time"=> $v["status"] == OrderModel::status_waiting_pay ? date('Y-m-d H:i:s', $v['create_time']+48*3600):"", //截止时间
"over_time"
=>
date
(
'Y-m-d H:i:s'
,
$v
[
'create_time'
]
+
48
*
3600
),
//截止时间
];
$ts
[
"sub_total_payal"
]
=
round
(
$ts
[
"payment_surcharge_paypal"
]
+
$merchandise_total
+
$ts
[
"shipping"
],
2
);
//paypal 小计
$ts
[
"sub_total_ttl"
]
=
round
(
$ts
[
"payment_surcharge_ttl"
]
+
$merchandise_total
+
$ts
[
"shipping"
],
2
);
//ttl 小计
$temp
[]
=
$ts
;
}
#统计当前用户各个状态数量
...
...
public/assets/js/class/class.js
View file @
7a4633c9
...
...
@@ -16,7 +16,7 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
page
:
class_p
.
page
,
page_size
:
class_p
.
limit
,
"class_id1/eq"
:
$
(
"#class_id_two"
).
val
(),
"
brand_name
/like"
:
$
(
".brandvals"
).
val
()
"
semour_brand
/like"
:
$
(
".brandvals"
).
val
()
}
if
(
$
(
".eqsort"
).
hasClass
(
"act"
))
{
data_
[
"goods_name/eq"
]
=
$
(
".classsearchvals"
).
val
()
...
...
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