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
361f90dd
Commit
361f90dd
authored
Jul 29, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:信息编辑页面
parent
aa629ec6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
221 additions
and
0 deletions
+221
-0
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+15
-0
infoEditing.vue
src/pages/Activity/releaseProduc/components/infoEditing.vue
+84
-0
spellOrderSet.vue
...pages/Activity/releaseProduc/components/spellOrderSet.vue
+15
-0
index.vue
src/pages/Activity/releaseProduc/index.vue
+100
-0
index.js
src/router/Activity/index.js
+7
-0
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
0 → 100644
View file @
361f90dd
<
template
>
<div
class=
"addProduc"
>
添加商品
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/pages/Activity/releaseProduc/components/infoEditing.vue
0 → 100644
View file @
361f90dd
<
template
>
<div
class=
"infoEditing"
>
<el-form
ref=
"infoEditForm"
:model=
"infoEditForm"
label-width=
"80px"
>
<el-form-item
label=
"标题:"
>
<el-input
v-model=
"infoEditForm.title"
></el-input>
</el-form-item>
<el-form-item
label=
"介绍:"
>
<el-input
type=
"textarea"
v-model=
"infoEditForm.desc"
></el-input>
</el-form-item>
<el-form-item
label=
"图片:"
>
<el-upload
action=
"#"
list-type=
"picture-card"
:auto-upload=
"false"
>
<template
#
default
>
<i
class=
"el-icon-plus"
></i>
</
template
>
<
template
#
file=
"{ file }"
>
<div>
<img
class=
"el-upload-list__item-thumbnail"
:src=
"file.url"
alt=
""
/>
<span
class=
"el-upload-list__item-actions"
>
<span
class=
"el-upload-list__item-preview"
@
click=
"handlePictureCardPreview(file)"
>
<i
class=
"el-icon-zoom-in"
></i>
</span>
<span
v-if=
"!disabled"
class=
"el-upload-list__item-delete"
@
click=
"handleDownload(file)"
>
<i
class=
"el-icon-download"
></i>
</span>
<span
v-if=
"!disabled"
class=
"el-upload-list__item-delete"
@
click=
"handleRemove(file)"
>
<i
class=
"el-icon-delete"
></i>
</span>
</span>
</div>
</
template
>
</el-upload>
<el-dialog
v-model=
"dialogVisible"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
/>
</el-dialog>
</el-form-item>
</el-form>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
infoEditForm
:
{
title
:
""
,
desc
:
""
,
},
dialogImageUrl
:
""
,
dialogVisible
:
false
,
disabled
:
false
,
};
},
methods
:
{
handleRemove
(
file
)
{
console
.
log
(
file
);
},
handlePictureCardPreview
(
file
)
{
this
.
dialogImageUrl
=
file
.
url
;
this
.
dialogVisible
=
true
;
},
handleDownload
(
file
)
{
console
.
log
(
file
);
},
},
};
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/pages/Activity/releaseProduc/components/spellOrderSet.vue
0 → 100644
View file @
361f90dd
<
template
>
<div
class=
"spellOrderSet"
>
拼单设置
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/pages/Activity/releaseProduc/index.vue
0 → 100644
View file @
361f90dd
<
template
>
<div
class=
"releaseProduc"
>
<h4
class=
"headTitle"
>
发布活动
</h4>
<el-steps
class=
"steps"
:active=
"active"
finish-status=
"success"
space=
"30%"
align-center=
"true"
>
<el-step
title=
"信息编辑"
></el-step>
<el-step
title=
"添加商品"
></el-step>
<el-step
title=
"拼单设置"
></el-step>
</el-steps>
<div
class=
"content"
>
<infoEditing
v-if=
"active === 1"
/>
<addProduc
v-else-if=
"active === 2"
/>
<spellOrderSet
v-else
/>
</div>
<div
class=
"btn"
>
<el-button
style=
"margin-top: 12px"
@
click=
"prev"
v-show=
"active >= 2"
>
上一步
</el-button
>
<el-button
style=
"margin-top: 12px"
v-show=
"active
<
3
"
@
click=
"next"
>
下一步
</el-button
>
<el-button
style=
"margin-top: 12px"
v-show=
"active == 1"
@
click=
"cancel"
>
取消
</el-button
>
<el-button
style=
"margin-top: 12px"
v-show=
"active == 3"
@
click=
"confirmRelease"
>
确认发布
</el-button
>
</div>
</div>
</
template
>
<
script
>
import
infoEditing
from
"./components/infoEditing.vue"
;
import
addProduc
from
"./components/addProduc.vue"
;
import
spellOrderSet
from
"./components/spellOrderSet.vue"
;
export
default
{
components
:
{
infoEditing
,
addProduc
,
spellOrderSet
,
},
data
()
{
return
{
active
:
1
,
};
},
methods
:
{
// 上一步
prev
()
{
if
(
this
.
active
--
<=
0
)
this
.
active
=
0
;
},
// 下一步
next
()
{
if
(
this
.
active
++
>
2
)
this
.
active
=
0
;
},
// 取消
cancel
()
{},
// 确认发布
confirmRelease
()
{},
},
};
</
script
>
<
style
scope
>
.releaseProduc
{
padding
:
30px
;
box-sizing
:
border-box
;
}
.headTitle
{
font-size
:
18px
;
margin-bottom
:
30px
;
}
.steps
{
display
:
flex
;
justify-content
:
center
;
}
.steps
/
deep
/
.el-step__icon
{
width
:
50px
;
height
:
50px
;
}
.steps
/
deep
/
.el-step.is-horizontal
.el-step__line
{
top
:
25px
;
}
.content
,
.btn
{
width
:
64%
;
margin
:
20px
auto
;
}
.btn
{
text-align
:
center
;
}
</
style
>
\ No newline at end of file
src/router/Activity/index.js
View file @
361f90dd
...
@@ -11,6 +11,13 @@
...
@@ -11,6 +11,13 @@
name
:
"ManageList"
,
name
:
"ManageList"
,
component
:
()
=>
import
(
/* webpackChunkName: "activity" */
"@/pages/Activity/Manage"
)
component
:
()
=>
import
(
/* webpackChunkName: "activity" */
"@/pages/Activity/Manage"
)
},
},
// 发布拼单
{
path
:
"/op/activity/releaseProduc"
,
name
:
"releaseProduc"
,
component
:
()
=>
import
(
/* webpackChunkName: "activity" */
"@/pages/Activity/releaseProduc"
)
},
];
];
...
...
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