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
dcfae003
Commit
dcfae003
authored
Jun 20, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员权益
parent
b87b4efc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
201 additions
and
106 deletions
+201
-106
bussiness.js
src/api/bussiness/bussiness.js
+11
-0
index.vue
src/views/business/index.vue
+173
-95
index.vue
src/views/member/memberinfo/index.vue
+17
-11
No files found.
src/api/bussiness/bussiness.js
View file @
dcfae003
...
...
@@ -57,3 +57,14 @@ export function BingBussinss(data) {
}
})
}
// 商家解除绑定会员
export
function
UnBingBussiness
(
data
)
{
return
request
({
url
:
'/system/bussinessInfo/unbindMember'
,
method
:
'post'
,
data
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
src/views/business/index.vue
View file @
dcfae003
This diff is collapsed.
Click to expand it.
src/views/member/memberinfo/index.vue
View file @
dcfae003
...
...
@@ -68,8 +68,7 @@
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"55"
/>
<el-table-column
label=
"会员头像"
prop=
"avatar"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<img
v-if=
"scope.row.avatar"
:src=
"scope.row.avatar"
style=
"width: 44px;height: 44px"
>
<span
v-else
>
-
</span>
<img
:src=
"replaceImg(scope.row.avatar)"
style=
"width: 44px;height: 44px"
>
</
template
>
</el-table-column>
<el-table-column
label=
"会员账号"
prop=
"phone"
:show-overflow-tooltip=
"true"
>
...
...
@@ -105,12 +104,12 @@
type=
"text"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<!--
<el-button-->
<!-- v-hasPermi="['sys:dict:remove']"-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- >删除
</el-button>
-->
<!--
<el-button-->
<!-- v-hasPermi="['sys:dict:remove']"-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- >删除
</el-button>
-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -126,8 +125,7 @@
<el-dialog
title=
"会员信息"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
@
close=
"reset"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"100px"
>
<el-form-item
label=
"头像"
prop=
"dictName"
>
<img
v-if=
"form.avatar"
:src=
"form.avatar"
style=
"width: 80px;height: 80px"
>
<span
v-else
>
-
</span>
<img
:src=
"replaceImg(form.avatar)"
style=
"width: 80px;height: 80px"
>
</el-form-item>
<el-form-item
label=
"会员账号"
prop=
"dictName"
>
<span>
{{ form.phone || '-' }}
</span>
...
...
@@ -258,6 +256,14 @@ export default {
// })
},
methods
:
{
replaceImg
(
value
)
{
console
.
log
(
'img'
,
value
)
if
(
value
===
''
)
{
return
'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'
}
else
{
return
value
}
},
// 处理日期表化
dateChange
()
{
if
(
this
.
dateRange
!=
null
)
{
...
...
@@ -415,7 +421,7 @@ export default {
console
.
log
(
'确认删除'
)
deleteMember
(
row
.
businessId
).
then
(
res
=>
{
console
.
log
(
'删除的结果'
,
res
)
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
=
200
)
{
this
.
getList
()
this
.
$message
({
type
:
'success'
,
...
...
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