Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
8703cbd3
Commit
8703cbd3
authored
Sep 08, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:优惠券按分单位传参
parent
8fe4b8a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
2 deletions
+42
-2
index.vue
src/pages/Groupmeal/Marketing/index.vue
+1
-1
index.vue
src/pages/Groupmeal/couponManagement/index.vue
+2
-1
index.vue
src/pages/Groupmeal/headManagement/index.vue
+39
-0
No files found.
src/pages/Groupmeal/Marketing/index.vue
View file @
8703cbd3
...
...
@@ -174,7 +174,7 @@
config
:
[],
},
hanleDisableTime
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
();
return
time
.
getTime
()
<
Date
.
now
()
-
24
*
60
*
60
*
1000
;
},
};
},
...
...
src/pages/Groupmeal/couponManagement/index.vue
View file @
8703cbd3
...
...
@@ -65,7 +65,7 @@
userList
:
[],
listParams
:
{
user_id
:
1
,
amount
:
20
,
amount
:
1
,
},
searchParams
:
{},
};
...
...
@@ -86,6 +86,7 @@
this
.
listParams
.
amount
=
index
+
1
;
},
async
comCouponSave
()
{
this
.
listParams
.
amount
*=
100
;
const
res
=
await
couponGrant
(
this
.
listParams
);
this
.
showConfigDialog
=
false
;
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
...
...
src/pages/Groupmeal/headManagement/index.vue
View file @
8703cbd3
...
...
@@ -32,7 +32,18 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination-wrapper"
>
<el-pagination
background
layout=
"prev, pager, next"
:total=
"applyPageCount"
:page-size=
"10"
v-model:currentPage=
"currentApplyPage"
@
current-change=
"handleCurrentApplyChange"
></el-pagination>
</div>
</div>
<el-dialog
title=
"团长审核"
v-model=
"dialogFormVisible"
>
您确认通过{{ applyItem.contact_name }}的团长申请吗
<
template
#
footer
>
...
...
@@ -127,6 +138,16 @@
<el-table-column
label=
"未结算收益"
prop=
"no_settlement_income"
align=
"center"
></el-table-column>
<el-table-column
label=
"累计结算收益"
prop=
"total_income"
align=
"center"
></el-table-column>
</el-table>
<div
class=
"pagination-wrapper"
>
<el-pagination
background
layout=
"prev, pager, next"
:total=
"pageCount"
:page-size=
"10"
v-model:currentPage=
"currentPage"
@
current-change=
"handleCurrentChange"
></el-pagination>
</div>
</div>
</layout>
</template>
...
...
@@ -148,6 +169,10 @@
data
()
{
return
{
searchKey
:
""
,
currentApplyPage
:
""
,
currentPage
:
""
,
pageCount
:
0
,
// 总条数
applyPageCount
:
0
,
// 总条数
coloneList
:
[],
coloneApplyList
:
[],
params
:
{
...
...
@@ -174,6 +199,14 @@
await
this
.
getColoneApplyList
();
},
methods
:
{
handleCurrentApplyChange
(
val
)
{
this
.
currentApplyPage
=
val
;
this
.
getColoneApplyList
();
},
handleCurrentChange
(
val
)
{
this
.
currentPage
=
val
;
this
.
getColoneList
();
},
handleSearch
()
{
if
(
this
.
searchKey
)
{
this
.
placeSearch
.
search
(
this
.
searchKey
);
...
...
@@ -213,6 +246,7 @@
async
getColoneList
()
{
try
{
const
res
=
await
ColoneList
(
this
.
params
);
this
.
pageCount
=
res
.
count
;
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
coloneList
=
res
.
result
;
}
catch
(
error
)
{
...
...
@@ -222,6 +256,7 @@
async
getColoneApplyList
()
{
try
{
const
res
=
await
ColoneApplyList
(
this
.
params
);
this
.
applyPageCount
=
res
.
count
;
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
coloneApplyList
=
res
.
result
;
}
catch
(
error
)
{
...
...
@@ -355,11 +390,15 @@
<
style
lang=
"less"
scoped
>
.marketing {
padding: 30px;
text-align: center;
.header {
display: flex;
justify-content: space-between;
padding: 10px;
}
.pagination-wrapper {
margin-top: 30px;
}
}
.mapContainer {
position: relative;
...
...
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