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 97203f7f
authored
Jun 06, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图片路径调整
1 parent
c2e6489d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
122 deletions
vue3-lw-pc/src/views/application/shortLinkPopularize/detail.vue
vue3-lw-pc/src/views/application/shortLinkPopularize/detail.vue
View file @
97203f7
...
@@ -2,15 +2,16 @@
...
@@ -2,15 +2,16 @@
<div>
<div>
<el-tabs
v-model=
"activeName"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"任务信息"
name=
"first"
>
<el-tab-pane
label=
"任务信息"
name=
"first"
>
<el-row
:gutter=
"20"
type=
"flex"
style=
"margin-top: 20px"
>
<el-row
:gutter=
"20"
type=
"flex"
style=
"margin-top: 20px
;
"
>
<el-col>
<el-col>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
style=
"display: flex; justify-content: space-between"
>
<div
style=
"display: flex; justify-content: space-between
;
"
>
<div
class=
"info_title"
>
基本信息
</div>
<div
class=
"info_title"
>
基本信息
</div>
<el-button
<el-button
v-if=
"form.taskStatus == 0"
v-if=
"form.taskStatus == 0"
type=
"primary"
type=
"primary"
@
click=
"$router.push(
{ path: './add', query: { id: id } })">
@
click=
"$router.push(
{ path: './add', query: { id: id } })"
>
编辑
编辑
</el-button>
</el-button>
</div>
</div>
...
@@ -22,7 +23,8 @@
...
@@ -22,7 +23,8 @@
v-model=
"form.taskName"
v-model=
"form.taskName"
show-word-limit
show-word-limit
disabled
disabled
clearable
></el-input>
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"任务状态:"
>
<el-form-item
label=
"任务状态:"
>
<el-tag
:type=
"form.taskStatus == 0 ? 'info' : form.taskStatus == 2 ? 'danger' : ''"
>
<el-tag
:type=
"form.taskStatus == 0 ? 'info' : form.taskStatus == 2 ? 'danger' : ''"
>
...
@@ -30,7 +32,7 @@
...
@@ -30,7 +32,7 @@
</el-tag>
</el-tag>
</el-form-item>
</el-form-item>
<el-form-item
label=
"推广短链:"
>
<el-form-item
label=
"推广短链:"
>
<div
style=
"margin-top: 10px"
>
<div
style=
"margin-top: 10px
;
"
>
<ShowShortLinkVue
:data=
"shortLinkObj"
></ShowShortLinkVue>
<ShowShortLinkVue
:data=
"shortLinkObj"
></ShowShortLinkVue>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -41,10 +43,10 @@
...
@@ -41,10 +43,10 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"form.style == 1"
label=
"推广海报:"
prop=
"materialId"
>
<el-form-item
v-if=
"form.style == 1"
label=
"推广海报:"
prop=
"materialId"
>
<div
style=
"margin-top: 10px"
v-if=
"posterUrl"
>
<div
style=
"margin-top: 10px
;
"
v-if=
"posterUrl"
>
<ul
class=
"el-upload-list el-upload-list--picture-card"
>
<ul
class=
"el-upload-list el-upload-list--picture-card"
>
<li
class=
"el-upload-list__item is-success"
>
<li
class=
"el-upload-list__item is-success"
>
<img
style=
"width: 100%; height: 100%"
:src=
"posterUrl"
/>
<img
style=
"width: 100%; height: 100%
;
"
:src=
"posterUrl"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -52,8 +54,8 @@
...
@@ -52,8 +54,8 @@
</el-form>
</el-form>
</div>
</div>
</el-col>
</el-col>
<el-col
style=
"flex-basis: 370px"
>
<el-col
style=
"flex-basis: 370px
;
"
>
<div
class=
"g-card"
style=
"height: 100%"
>
<div
class=
"g-card"
style=
"height: 100%
;
"
>
<div
class=
"info_title"
>
消息预览
</div>
<div
class=
"info_title"
>
消息预览
</div>
<Preview
:value=
"posterUrl"
></Preview>
<Preview
:value=
"posterUrl"
></Preview>
</div>
</div>
...
@@ -68,7 +70,7 @@
...
@@ -68,7 +70,7 @@
<div
class=
"unit"
>
<div
class=
"unit"
>
<div
class=
"unit-item"
v-if=
"form.type == 0"
:class=
"
{ active_item: form.type == 0 }">
<div
class=
"unit-item"
v-if=
"form.type == 0"
:class=
"
{ active_item: form.type == 0 }">
<div>
<div>
<img
class=
"icon-style"
src=
"
./assets
/customer_active.png"
alt=
""
/>
<img
class=
"icon-style"
src=
"
@/assets/image
/customer_active.png"
alt=
""
/>
</div>
</div>
<div>
<div>
<div
class=
"item-title"
>
群发客户
</div>
<div
class=
"item-title"
>
群发客户
</div>
...
@@ -77,7 +79,7 @@
...
@@ -77,7 +79,7 @@
</div>
</div>
<div
class=
"unit-item"
v-if=
"form.type == 1"
:class=
"
{ active_item: form.type == 1 }">
<div
class=
"unit-item"
v-if=
"form.type == 1"
:class=
"
{ active_item: form.type == 1 }">
<div>
<div>
<img
class=
"icon-style"
src=
"
./assets
/group_active.png"
alt=
""
/>
<img
class=
"icon-style"
src=
"
@/assets/image
/group_active.png"
alt=
""
/>
</div>
</div>
<div>
<div>
<div
class=
"item-title"
>
群发客户群
</div>
<div
class=
"item-title"
>
群发客户群
</div>
...
@@ -86,7 +88,7 @@
...
@@ -86,7 +88,7 @@
</div>
</div>
<div
class=
"unit-item"
v-if=
"form.type == 2"
:class=
"
{ active_item: form.type == 2 }">
<div
class=
"unit-item"
v-if=
"form.type == 2"
:class=
"
{ active_item: form.type == 2 }">
<div>
<div>
<img
class=
"icon-style"
src=
"
./assets
/friends_active.png"
alt=
""
/>
<img
class=
"icon-style"
src=
"
@/assets/image
/friends_active.png"
alt=
""
/>
</div>
</div>
<div>
<div>
<div
class=
"item-title"
>
群发朋友圈
</div>
<div
class=
"item-title"
>
群发朋友圈
</div>
...
@@ -95,7 +97,7 @@
...
@@ -95,7 +97,7 @@
</div>
</div>
<div
class=
"unit-item"
v-if=
"form.type == 3"
:class=
"
{ active_item: form.type == 3 }">
<div
class=
"unit-item"
v-if=
"form.type == 3"
:class=
"
{ active_item: form.type == 3 }">
<div>
<div>
<img
class=
"icon-style"
src=
"
./assets
/app_active.png"
alt=
""
/>
<img
class=
"icon-style"
src=
"
@/assets/image
/app_active.png"
alt=
""
/>
</div>
</div>
<div>
<div>
<div
class=
"item-title"
>
应用消息
</div>
<div
class=
"item-title"
>
应用消息
</div>
...
@@ -116,128 +118,128 @@
...
@@ -116,128 +118,128 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Statistics
from
'./statistics'
import
Statistics
from
'./statistics'
import
Preview
from
'./components/PreviewInPhone.vue'
import
Preview
from
'./components/PreviewInPhone.vue'
import
ShowShortLinkVue
from
'./components/ShowShortLink.vue'
import
ShowShortLinkVue
from
'./components/ShowShortLink.vue'
import
Step3
from
'./components/Step3.vue'
import
Step3
from
'./components/Step3.vue'
import
{
getDetail
}
from
'./api'
import
{
getDetail
}
from
'./api'
export
default
{
export
default
{
name
:
'short-link-popularize-detail'
,
name
:
'short-link-popularize-detail'
,
components
:
{
components
:
{
Statistics
,
Statistics
,
ShowShortLinkVue
,
ShowShortLinkVue
,
Preview
,
Preview
,
Step3
,
Step3
},
data
()
{
return
{
activeName
:
'first'
,
form
:
{
taskName
:
''
,
shortLinkId
:
''
,
style
:
0
,
materialId
:
''
,
type
:
null
,
attachments
:
[],
},
choseDialog
:
false
,
showShortLink
:
false
,
shortLinkObj
:
[],
posterUrl
:
''
,
posterObj
:
{},
statusType
:
[
{
name
:
'待推广'
,
key
:
0
},
{
name
:
'推广中'
,
key
:
1
},
{
name
:
'已结束'
,
key
:
2
},
],
}
},
methods
:
{
setStatus
(
data
)
{
let
str
=
''
this
.
statusType
.
forEach
((
dd
)
=>
{
if
(
dd
.
key
==
data
.
taskStatus
)
{
str
=
dd
.
name
}
})
return
str
},
},
getDetailFn
()
{
data
()
{
getDetail
(
this
.
id
).
then
((
res
)
=>
{
return
{
this
.
form
=
res
.
data
activeName
:
'first'
,
if
(
this
.
form
.
shortLinkId
)
{
form
:
{
this
.
shortLinkObj
=
[
this
.
form
.
shortLink
]
taskName
:
''
,
}
shortLinkId
:
''
,
if
(
this
.
form
.
style
==
1
)
{
style
:
0
,
this
.
posterObj
=
this
.
form
.
weMaterial
materialId
:
''
,
this
.
posterUrl
=
this
.
posterObj
.
materialUrl
type
:
null
,
}
attachments
:
[]
})
},
choseDialog
:
false
,
showShortLink
:
false
,
shortLinkObj
:
[],
posterUrl
:
''
,
posterObj
:
{},
statusType
:
[
{
name
:
'待推广'
,
key
:
0
},
{
name
:
'推广中'
,
key
:
1
},
{
name
:
'已结束'
,
key
:
2
}
]
}
},
methods
:
{
setStatus
(
data
)
{
let
str
=
''
this
.
statusType
.
forEach
((
dd
)
=>
{
if
(
dd
.
key
==
data
.
taskStatus
)
{
str
=
dd
.
name
}
})
return
str
},
getDetailFn
()
{
getDetail
(
this
.
id
).
then
((
res
)
=>
{
this
.
form
=
res
.
data
if
(
this
.
form
.
shortLinkId
)
{
this
.
shortLinkObj
=
[
this
.
form
.
shortLink
]
}
if
(
this
.
form
.
style
==
1
)
{
this
.
posterObj
=
this
.
form
.
weMaterial
this
.
posterUrl
=
this
.
posterObj
.
materialUrl
}
})
}
},
},
},
created
()
{
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
this
.
id
=
this
.
$route
.
query
.
id
if
(
this
.
id
)
{
if
(
this
.
id
)
{
this
.
getDetailFn
()
this
.
getDetailFn
()
}
}
}
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.unit
{
.unit
{
//
margin
:
0
auto
;
//
margin
:
0
auto
;
display
:
flex
;
flex-wrap
:
wrap
;
//
width
:
580px
;
justify-content
:
space-between
;
.unit-item
{
width
:
280px
;
//
height
:
80px
;
border-width
:
1px
;
border-style
:
solid
;
border-color
:
rgba
(
242
,
242
,
242
,
1
);
border-radius
:
5px
;
display
:
flex
;
display
:
flex
;
padding
:
17px
;
flex-wrap
:
wrap
;
margin-bottom
:
20px
;
//
width
:
580px
;
//
cursor
:
pointer
;
justify-content
:
space-between
;
.icon-style
{
.unit-item
{
margin-right
:
10px
;
width
:
280px
;
margin-top
:
7px
;
//
height
:
80px
;
font-size
:
22px
;
border-width
:
1px
;
width
:
24px
;
border-style
:
solid
;
//
height
:
20px
;
border-color
:
rgba
(
242
,
242
,
242
,
1
);
}
border-radius
:
5px
;
.item-title
{
display
:
flex
;
margin-top
:
4px
;
padding
:
17px
;
font-size
:
16px
;
margin-bottom
:
20px
;
font-family
:
Source
Han
Sans
CN-Regular
,
Source
Han
Sans
CN
;
//
cursor
:
pointer
;
font-weight
:
400
;
.icon-style
{
color
:
#1d2129
;
margin-right
:
10px
;
}
margin-top
:
7px
;
.item-text
{
font-size
:
22px
;
margin-top
:
6px
;
width
:
24px
;
font-size
:
12px
;
//
height
:
20px
;
color
:
#aaaaaa
;
}
line-height
:
24px
;
.item-title
{
margin-top
:
4px
;
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN-Regular
,
Source
Han
Sans
CN
;
font-weight
:
400
;
color
:
#1d2129
;
}
.item-text
{
margin-top
:
6px
;
font-size
:
12px
;
color
:
#aaaaaa
;
line-height
:
24px
;
}
&
:hover
{
border
:
1px
solid
rgba
(
7
,
193
,
96
,
1
);
background-color
:
rgba
(
7
,
193
,
96
,
0.09019607843137255
);
}
}
}
&
:hover
{
.active_item
{
border
:
1px
solid
rgba
(
7
,
193
,
96
,
1
);
border
:
1px
solid
rgba
(
7
,
193
,
96
,
1
);
background-color
:
rgba
(
7
,
193
,
96
,
0.09019607843137255
);
background-color
:
rgba
(
7
,
193
,
96
,
0.09019607843137255
);
}
}
}
}
.active_item
{
.info_title
{
border
:
1px
solid
rgba
(
7
,
193
,
96
,
1
);
font-size
:
16px
;
background-color
:
rgba
(
7
,
193
,
96
,
0.09019607843137255
);
font-weight
:
600
;
color
:
#1d2129
;
margin-bottom
:
10px
;
}
}
}
.info_title
{
font-size
:
16px
;
font-weight
:
600
;
color
:
#1d2129
;
margin-bottom
:
10px
;
}
</
style
>
</
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