Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
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
hooloo
web
soss
Commits
bc7e1fb9
Commit
bc7e1fb9
authored
Jul 28, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券领取信息弹框
parent
3d062957
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
src/api/coupon/coupon.js
+8
-0
src/views/coupon/couponInfo/index.vue
+11
-5
No files found.
src/api/coupon/coupon.js
View file @
bc7e1fb9
...
...
@@ -61,3 +61,11 @@ export function getCouponInfoList(data) {
});
}
// 用户下单总量和下单总金额
export
function
getCusOrderNum
(
custId
)
{
return
request
({
url
:
"/system/customer/order-simple-stat/"
+
custId
,
method
:
"get"
,
});
}
src/views/coupon/couponInfo/index.vue
View file @
bc7e1fb9
...
...
@@ -93,10 +93,9 @@
</template>
<
script
>
import
{
getCouponInfoList
}
from
"@/api/coupon/coupon"
;
import
{
listCoupon
,
getCouponInfoList
,
getCusOrderNum
}
from
"@/api/coupon/coupon"
;
import
{
getCustomer
}
from
"@/api/system/customer"
;
import
OrderTable
from
"../../customer/orderTable.vue"
;
import
{
listCoupon
}
from
"@/api/coupon/coupon"
;
export
default
{
components
:
{
OrderTable
},
data
()
{
...
...
@@ -151,7 +150,6 @@ export default {
formateTime
(
val
){
let
index
=
val
.
indexOf
(
":"
);
val
=
val
.
substring
(
0
,
index
-
3
);
console
.
log
(
"val"
,
val
);
return
val
;
},
/** 查询列表 */
...
...
@@ -179,13 +177,12 @@ export default {
this
.
customerId
=
row
.
custId
;
this
.
userName
=
row
.
custName
;
this
.
phoneNumber
=
row
.
custPhone
;
this
.
amount
=
row
.
amount
;
this
.
orderCount
=
row
.
orderCount
;
this
.
open
=
true
;
this
.
title
=
"用户信息"
;
this
.
orderPageNum
=
1
;
this
.
pageSize
=
10
;
this
.
activeName
=
"first"
;
this
.
getCusOrderNum
(
row
.
custId
);
this
.
getOrderList
(
this
.
orderPageNum
,
this
.
pageSize
,
this
.
customerId
,
'1'
);
},
handleClick
(){
...
...
@@ -221,6 +218,15 @@ export default {
this
.
couponList
=
response
.
rows
;
}
});
},
//获取用户总订单量、总金额
getCusOrderNum
(
custId
){
getCusOrderNum
(
custId
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
this
.
amount
=
response
.
data
.
orderAmount
;
this
.
orderCount
=
response
.
data
.
orderCount
;
}
});
}
},
};
...
...
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