Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
longhui_web
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
杨硕
longhui_web
Commits
82ee147b
Commit
82ee147b
authored
Jun 27, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc端修改
parent
37e2cc1e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
236 additions
and
80 deletions
+236
-80
member.js
src/api/member/member.js
+8
-0
index.js
src/api/voucher/index.js
+7
-0
index.vue
src/components/Pagination/index.vue
+19
-7
index.vue
src/views/announcements/index.vue
+2
-2
index.vue
src/views/business/index.vue
+18
-17
index.vue
src/views/member/memberinfo/index.vue
+172
-47
index.vue
src/views/voucher/coupon/index.vue
+10
-7
No files found.
src/api/member/member.js
View file @
82ee147b
...
...
@@ -22,3 +22,11 @@ export function getDetailById(id) {
method
:
'get'
})
}
// 查询会员参加活动的列表
export
function
getMemberOrder
(
params
)
{
return
request
({
url
:
'/system/order/selectMemberOrderByPagination'
,
method
:
'get'
,
params
})
}
src/api/voucher/index.js
View file @
82ee147b
...
...
@@ -79,3 +79,10 @@ export function getbusinessList(query) {
params
:
query
})
}
// 查看用户信息
export
function
getMemberDetaiByBusinessId
(
businessId
)
{
return
request
({
url
:
'/system/coupon/selectCouponById/'
+
businessId
,
method
:
'get'
})
}
src/components/Pagination/index.vue
View file @
82ee147b
...
...
@@ -3,9 +3,10 @@
<el-pagination
:background=
"background"
:current-page
.
sync=
"currentPage"
:page-size
.
sync=
"
rows
"
:page-size
.
sync=
"
pageSize
"
:layout=
"layout"
:page-sizes=
"rows"
:page-sizes=
"pageSizes"
:pager-count=
"pagerCount"
:total=
"total"
v-bind=
"$attrs"
@
size-change=
"handleSizeChange"
...
...
@@ -32,12 +33,17 @@ export default {
type
:
Number
,
default
:
20
},
row
s
:
{
pageSize
s
:
{
type
:
Array
,
default
()
{
return
[
10
,
20
,
50
,
100
]
}
},
// 移动端页码按钮的数量端默认值5
pagerCount
:
{
type
:
Number
,
default
:
document
.
body
.
clientWidth
<
992
?
5
:
7
},
layout
:
{
type
:
String
,
default
:
'total, sizes, prev, pager, next, jumper'
...
...
@@ -55,6 +61,10 @@ export default {
default
:
false
}
},
data
()
{
return
{
}
},
computed
:
{
currentPage
:
{
get
()
{
...
...
@@ -64,7 +74,7 @@ export default {
this
.
$emit
(
'update:page'
,
val
)
}
},
rows
:
{
pageSize
:
{
get
()
{
return
this
.
limit
},
...
...
@@ -75,13 +85,16 @@ export default {
},
methods
:
{
handleSizeChange
(
val
)
{
if
(
this
.
currentPage
*
val
>
this
.
total
)
{
this
.
currentPage
=
1
}
this
.
$emit
(
'pagination'
,
{
page
:
this
.
currentPage
,
limit
:
val
})
if
(
this
.
autoScroll
)
{
scrollTo
(
0
,
800
)
}
},
handleCurrentChange
(
val
)
{
this
.
$emit
(
'pagination'
,
{
page
:
val
,
limit
:
this
.
rows
})
this
.
$emit
(
'pagination'
,
{
page
:
val
,
limit
:
this
.
pageSize
})
if
(
this
.
autoScroll
)
{
scrollTo
(
0
,
800
)
}
...
...
@@ -93,8 +106,7 @@ export default {
<
style
scoped
>
.pagination-container
{
background
:
#fff
;
padding
:
15px
;
text-align
:
right
;
padding
:
32px
16px
;
}
.pagination-container.hidden
{
display
:
none
;
...
...
src/views/announcements/index.vue
View file @
82ee147b
...
...
@@ -61,9 +61,9 @@
{{
scope
.
row
.
pushTime
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建人"
prop=
"
pushTi
me"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建人"
prop=
"
createNa
me"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pushTi
me
||
'-'
}}
{{
scope
.
row
.
createNa
me
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"公告状态"
align=
"center"
prop=
"status"
>
...
...
src/views/business/index.vue
View file @
82ee147b
...
...
@@ -58,7 +58,7 @@
icon=
"el-icon-plus"
size=
"small"
@
click=
"handleAdd"
>
新增
商家
</el-button>
>
新增
</el-button>
</div>
</el-form>
<div
class=
"placeholder"
/>
...
...
@@ -211,14 +211,21 @@
<el-table
ref=
"table"
style=
"margin-top: 16px"
:header-cell-class-name=
"cellClass"
border
:data=
"memberList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"55"
/>
<el-table-column
label=
"会员头像"
prop=
"avatar"
:show-overflow-tooltip=
"true"
width=
"80"
>
<el-table-column
label=
"会员头像"
prop=
"avatar"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<img
:src=
"replaceImg(scope.row.avatar)"
style=
"width: 100%;height: 100%"
>
</
template
>
</el-table-column>
<el-table-column
label=
"会员账号"
prop=
"phone"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
phone
||
'-'
}}
<el-popover
placement=
"right"
width=
"400"
trigger=
"click"
>
<span>
{{
text
}}
</span>
<el-button
slot=
"reference"
@
click=
"handleClick(scope.row)"
>
{{
scope
.
row
.
phone
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
label=
"用户昵称"
prop=
"nickName"
:show-overflow-tooltip=
"true"
>
...
...
@@ -256,13 +263,14 @@ import {
}
from
'@/api/system/dict/type'
import
dictCons
from
'@/utils/dictCons'
import
{
queryBussinessAll
,
queryDetailById
,
deleteBussiness
,
BingBussinss
,
UnBingBussiness
,
updataBussinessInfo
}
from
'@/api/bussiness/bussiness'
import
{
queryMemberList
}
from
'@/api/member/member'
import
{
queryMemberList
,
getDetailById
}
from
'@/api/member/member'
export
default
{
name
:
'Dict'
,
// components: { Template },
data
()
{
return
{
text
:
''
,
srcList
:
[
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
],
...
...
@@ -365,19 +373,12 @@ export default {
})
},
methods
:
{
vbs
(
val
)
{
console
.
log
(
'val信息'
,
val
)
const
baseURL
=
'http://192.144.239.97:20043/file/'
let
url
=
baseURL
+
val
console
.
log
(
'url'
,
url
)
if
(
val
===
null
)
{
url
=
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
}
this
.
$nextTick
().
then
(()
=>
{
this
.
srcList
=
[]
this
.
srcList
.
push
(
url
)
this
.
$forceUpdate
()
console
.
log
(
'srcList'
,
this
.
srcList
)
// 点击显示完整的会员账户
handleClick
(
row
)
{
console
.
log
(
'row'
,
row
)
getDetailById
(
row
.
businessId
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
text
=
res
.
data
.
phone
})
},
replacesrc
(
row
)
{
...
...
src/views/member/memberinfo/index.vue
View file @
82ee147b
This diff is collapsed.
Click to expand it.
src/views/voucher/coupon/index.vue
View file @
82ee147b
...
...
@@ -259,12 +259,8 @@
placement=
"right"
width=
"400"
trigger=
"click"
>
<el-table
:data=
"gridData"
>
<el-table-column
width=
"150"
property=
"date"
label=
"日期"
></el-table-column>
<el-table-column
width=
"100"
property=
"name"
label=
"姓名"
></el-table-column>
<el-table-column
width=
"300"
property=
"address"
label=
"地址"
></el-table-column>
</el-table>
<el-button
slot=
"reference"
>
{{
scope
.
row
.
userName
}}
</el-button>
<span>
{{
test
}}
</span>
<el-button
slot=
"reference"
@
click=
"handleClick(scope.row)"
>
{{
scope
.
row
.
userName
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -315,7 +311,7 @@ import {
clearCache
}
from
'@/api/system/dict/type'
import
Template
from
'@/views/instance/Template'
import
{
delvoucher
,
selectCouponPickByPagination
,
voucherdetail
,
voucherlist
,
voucherpublish
}
from
'@/api/voucher'
import
{
delvoucher
,
selectCouponPickByPagination
,
voucherdetail
,
voucherlist
,
voucherpublish
,
getMemberDetaiByBusinessId
}
from
'@/api/voucher'
export
default
{
name
:
'Dict'
,
...
...
@@ -440,6 +436,13 @@ export default {
this
.
getList
()
},
methods
:
{
handleClick
(
row
)
{
console
.
log
(
'row'
,
row
)
getMemberDetaiByBusinessId
(
row
.
businessId
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
test
=
res
.
data
.
userName
})
},
/** 查询字典类型列表 */
getList
()
{
this
.
loading
=
true
...
...
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