Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 303cce30
authored
Nov 08, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2.0海报页面构建
1 parent
41361203
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
21 deletions
linkwe-ui/src/layout/components/AppMain.vue
linkwe-ui/src/views/customerManage/customer/record.vue
linkwe-ui/src/views/material/components/MaPage.vue
linkwe-ui/src/views/material/image.vue
linkwe-ui/src/views/material/index.vue
linkwe-ui/src/layout/components/AppMain.vue
View file @
303cce3
...
...
@@ -15,8 +15,8 @@ export default {
},
key
()
{
return
this
.
$route
.
path
}
,
}
,
}
}
}
</
script
>
...
...
@@ -28,7 +28,7 @@ export default {
position
:
relative
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
padding-top
:
15px
;
//
padding-top
:
15px
;
//
background-color
:
#fff
;
}
...
...
linkwe-ui/src/views/customerManage/customer/record.vue
View file @
303cce3
...
...
@@ -56,6 +56,7 @@ export default {
</el-table>
<el-pagination
small
@
current-change=
"getList"
:current-page=
"query.pageNum"
:page-sizes=
"[10, 20, 50]"
...
...
linkwe-ui/src/views/material/components/MaPage.vue
View file @
303cce3
...
...
@@ -17,6 +17,20 @@ import {
// getList
// } from '@/api/material/poster'
var
validateHtml
=
(
rule
,
value
,
callback
)
=>
{
if
(
/
\.
html$/gi
.
test
(
value
))
{
callback
()
}
else
{
callback
(
new
Error
(
'必须以 html 作为后缀'
))
}
}
var
validateHttp
=
(
rule
,
value
,
callback
)
=>
{
if
(
/^https
?
:
\/\/
/gi
.
test
(
value
))
{
callback
()
}
else
{
callback
(
new
Error
(
'必须以 http://或 https://开头'
))
}
}
export
default
{
name
:
'MaPage'
,
components
:
{},
...
...
@@ -76,7 +90,11 @@ export default {
materialUrl
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}],
materialName
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}],
digest
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}],
coverUrl
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}]
coverUrl
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}],
coUrl
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
},
{
validator
:
validateHtml
,
trigger
:
'blur'
}
]
})
}
},
...
...
@@ -427,18 +445,18 @@ export default {
</
template
>
<
template
v-else-if=
"type === '8'"
>
<el-form-item
label=
"
小程序
标题"
prop=
"materialName"
>
<el-form-item
label=
"标题"
prop=
"materialName"
>
<el-input
v-model=
"form.materialName"
placeholder=
"请输入小程序标题"
></el-input>
</el-form-item>
<el-form-item
label=
"
小程序
AppID"
prop=
"materialUrl"
>
<el-form-item
label=
"AppID"
prop=
"materialUrl"
>
<el-input
v-model=
"form.materialUrl"
placeholder=
"小程序AppID"
></el-input>
<div
class=
"sub-des"
>
必须是审核通过,正常发布,且关联到企业的小程序应用
</div>
</el-form-item>
<el-form-item
label=
"
小程序
路径"
prop=
"content"
>
<el-form-item
label=
"路径"
prop=
"content"
>
<el-input
v-model=
"form.content"
placeholder=
"请输入小程序路径"
></el-input>
<div
class=
"sub-des"
>
必须以 html 作为后缀
</div>
</el-form-item>
<el-form-item
label=
"
小程序
封面"
prop=
"materialUrl"
>
<el-form-item
label=
"封面"
prop=
"materialUrl"
>
<upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
<div
slot=
"tip"
>
建议大小 2M 以内,建议尺寸 520*416仅支持 png/jpg 等图片类型
...
...
@@ -533,4 +551,9 @@ export default {
font-size
:
14px
;
padding-right
:
8px
;
}
.sub-des
{
color
:
#aaa
;
font-size
:
12px
;
}
</
style
>
linkwe-ui/src/views/material/image.vue
View file @
303cce3
...
...
@@ -36,7 +36,7 @@ export default {
></i>
</div>
</div>
<div
style=
"
padding: 14px
;"
>
<div
style=
"
margin: 14px;overflow: hidden
;"
>
<el-checkbox
v-model=
"ids"
:label=
"item.id"
>
{{
item
.
materialName
}}
</el-checkbox>
</div>
</el-card>
...
...
linkwe-ui/src/views/material/index.vue
View file @
303cce3
...
...
@@ -23,7 +23,19 @@ export default {
},
data
()
{
return
{
activeName
:
'text'
activeName
:
'text'
,
list
:
[
{
label
:
'文本'
,
name
:
'text'
,
component
:
Mtext
},
{
label
:
'图片'
,
name
:
'image'
,
component
:
Mimage
},
{
label
:
'图文'
,
name
:
'imageText'
,
component
:
MimageText
},
{
label
:
'链接'
,
name
:
'link'
,
component
:
Mlink
},
{
label
:
'语音'
,
name
:
'audio'
,
component
:
Maudio
},
{
label
:
'视频'
,
name
:
'video'
,
component
:
Mvideo
},
{
label
:
'文件'
,
name
:
'file'
,
component
:
Mfile
},
{
label
:
'小程序'
,
name
:
'applet'
,
component
:
Mapplet
},
{
label
:
'海报'
,
name
:
'poster'
,
component
:
Mposter
}
],
opened
:
[
'text'
]
}
},
computed
:
{},
...
...
@@ -36,11 +48,11 @@ export default {
<
template
>
<div>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"文本"
name=
"text
"
>
<
Mtext></Mtex
t>
<el-tabs
v-model=
"activeName"
@
tab-click=
"(v) => opened.includes(v.name) || opened.push(v.name)"
>
<el-tab-pane
v-for=
"(item, index) in list"
:key=
"index"
:label=
"item.label"
:name=
"item.name
"
>
<
component
v-if=
"opened.includes(item.name)"
:is=
"item.component"
></componen
t>
</el-tab-pane>
<el-tab-pane
label=
"图片"
name=
"image"
>
<
!--
<
el-tab-pane
label=
"图片"
name=
"image"
>
<Mimage></Mimage>
</el-tab-pane>
<el-tab-pane
label=
"图文"
name=
"imageText"
>
...
...
@@ -63,14 +75,9 @@ export default {
</el-tab-pane>
<el-tab-pane
label=
"海报"
name=
"poster"
>
<Mposter></Mposter>
</el-tab-pane>
</el-tab-pane>
-->
</el-tabs>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-tabs__header
{
margin-bottom
:
0
;
background
:
#fff
;
}
</
style
>
<
style
lang=
"scss"
scoped
></
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment