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
a164611d
Commit
a164611d
authored
Jun 28, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员权益添加等级卡片和描述卡片
parent
ba7cb957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
index.vue
src/views/member/equitysetting/index.vue
+17
-7
No files found.
src/views/member/equitysetting/index.vue
View file @
a164611d
...
...
@@ -136,7 +136,7 @@
<div
v-if=
"randUrl"
style=
"position: relative"
>
<i
class=
"el-icon-error"
style=
"position: absolute;top: 5px;right: 5px;color:
#efefef
;z-index: 999"
style=
"position: absolute;top: 5px;right: 5px;color:
red
;z-index: 999"
@
click=
"handleRemove"
/>
<el-image
...
...
@@ -169,7 +169,7 @@
<div
v-if=
"memberUrlUrl"
style=
"position: relative"
>
<i
class=
"el-icon-error"
style=
"position: absolute;top: 5px;right: 5px;color:
#efefef
;z-index: 999"
style=
"position: absolute;top: 5px;right: 5px;color:
red
;z-index: 999"
@
click=
"handlememberRemove"
/>
<el-image
...
...
@@ -309,14 +309,14 @@ export default {
},
methods
:
{
Randimagerule
(
rule
,
value
,
callback
)
{
if
(
!
this
.
randUrl
)
{
if
(
this
.
randUrl
===
''
||
this
.
randUrl
===
null
||
this
.
randUrl
===
undefined
)
{
callback
(
'请上传等级卡片'
)
}
else
{
callback
()
}
},
Memberimagerule
(
rule
,
value
,
callback
)
{
if
(
!
this
.
memberUrlUrl
)
{
if
(
this
.
memberUrlUrl
===
''
||
this
.
memberUrlUrl
===
null
||
this
.
memberUrlUrl
===
undefined
)
{
callback
(
'请上传描述卡片'
)
}
else
{
callback
()
...
...
@@ -325,6 +325,7 @@ export default {
handleRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
)
this
.
randUrl
=
''
this
.
form
.
randUrl
=
''
setTimeout
(()
=>
{
this
.
randuploaddisable
=
false
},
500
)
...
...
@@ -332,8 +333,9 @@ export default {
handlememberRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
)
this
.
memberUrlUrl
=
''
this
.
form
.
membershipCard
=
''
setTimeout
(()
=>
{
this
.
rand
uploaddisable
=
false
this
.
memberUrl
uploaddisable
=
false
},
500
)
},
upload
(
file
)
{
...
...
@@ -350,7 +352,7 @@ export default {
this
.
randuploaddisable
=
true
this
.
memberUrlsrcList
=
[]
this
.
memberUrlsrcList
.
push
(
this
.
randUrl
)
this
.
form
.
membership
Card
=
res
.
data
.
businessId
this
.
form
.
rank
Card
=
res
.
data
.
businessId
}
})
},
...
...
@@ -368,7 +370,7 @@ export default {
this
.
memberUrluploaddisable
=
true
this
.
srcList
=
[]
this
.
srcList
.
push
(
this
.
memberUrlUrl
)
this
.
form
.
rank
Card
=
res
.
data
.
businessId
this
.
form
.
membership
Card
=
res
.
data
.
businessId
}
})
},
...
...
@@ -542,11 +544,19 @@ export default {
// },
// 重置表单
resetForm
()
{
this
.
memberUrluploaddisable
=
false
this
.
memberUrlsrcList
=
[]
this
.
memberUrlUrl
=
''
// 等级卡片url
this
.
randuploaddisable
=
false
this
.
srcList
=
[]
this
.
randUrl
=
''
// 等级卡片url
this
.
form
=
{
name
:
''
,
level
:
''
,
integral
:
''
,
discount
:
''
,
rankCard
:
''
,
membershipCard
:
''
,
businessId
:
undefined
}
this
.
$refs
.
addForm
.
resetFields
()
...
...
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