Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 9391388d
authored
Mar 21, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
4437b013
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
38 deletions
src/assets/guestCustom/icon-video.png
src/assets/guestCustom/video-list.png
src/views/friendGroup/components/basicInfo.vue
src/views/friendGroup/components/preview.vue
src/views/friendGroup/components/tag-textarea.vue
src/views/friendGroup/components/welcomeWords.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/friendGroupDetail.vue
src/views/friendGroup/index.vue
src/assets/guestCustom/icon-video.png
View file @
9391388
351 Bytes
|
W:
|
H:
599 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/guestCustom/video-list.png
0 → 100644
View file @
9391388
762 Bytes
src/views/friendGroup/components/basicInfo.vue
View file @
9391388
...
...
@@ -38,7 +38,7 @@
<i
:class=
"
{ 'el-icon-refresh': true, 'wait-status': refreshStatus }">
</i>
更新数据
</span>
<span
class=
"info-time"
>
更新于:
{{
basicInfo
.
updatedTime
}}
</span>
<span
class=
"info-time"
>
更新于:
{{
this
.
updatedTime
}}
</span>
</div>
<div
class=
"statistics-info"
>
<div
class=
"statistics-ul"
>
...
...
@@ -98,6 +98,7 @@ export default {
},
data
()
{
return
{
updatedTime
:
''
,
refreshStatus
:
false
,
STATUS_TYPE
:
STATUS
,
SEX_TYPE
:
SEX
,
...
...
@@ -141,6 +142,7 @@ export default {
getCustomerDetail
()
{
const
id
=
this
.
$route
.
query
.
id
this
.
$apis
.
friendGroup
.
momentDetail
({
id
}).
then
(
res
=>
{
this
.
updatedTime
=
dayjs
(
new
Date
().
getTime
()).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
basicInfo
=
res
// console.log(this.basicInfo, '123');
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
...
...
src/views/friendGroup/components/preview.vue
View file @
9391388
...
...
@@ -38,7 +38,7 @@
<div
class=
"preview-operation"
>
赞 | 评论
</div>
</div>
</div>
<el-dialog
:visible
.
sync=
"videoShow"
width=
"50%"
:before-close=
"handleClose"
class=
"video-dialog"
>
<el-dialog
:visible
.
sync=
"videoShow"
:before-close=
"handleClose"
class=
"video-dialog"
>
<div
slot=
"title"
style=
"height: 18px"
></div>
<video
v-if=
"videoShow"
width=
"100%"
height=
"100%"
autoplay
controls
:src=
"this.videoUrl"
></video>
</el-dialog>
...
...
@@ -112,10 +112,9 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scope
>
<
style
lang=
"scss"
scope
d
>
.img-list
{
margin-right
:
3px
;
margin-bottom
:
-10px
;
}
.img-bg
{
position
:
relative
;
...
...
@@ -166,7 +165,7 @@ export default {
color
:
#556993
;
}
.video-panel
{
width
:
1
36px
;
width
:
1
00%
;
height
:
102px
;
display
:
flex
;
align-items
:
center
;
...
...
@@ -183,20 +182,23 @@ export default {
}
}
.preview-text
{
font-size
:
14px
;
position
:
relative
;
color
:
#333
;
background-color
:
#fff
;
border-radius
:
4px
;
word-break
:
break-all
;
display
:
fle
x
;
img
{
line-height
:
20p
x
;
/deep/
img
{
width
:
20px
;
height
:
20px
;
vertical-align
:
middle
;
}
}
.text
{
font-size
:
12px
;
padding
:
8px
0px
;
padding
:
0px
;
margin-bottom
:
6px
;
}
.preview-link
{
padding
:
6px
0px
;
...
...
@@ -270,12 +272,14 @@ export default {
}
}
.video-dialog
{
.el-dialog__header
{
border-bottom
:
0px
;
background-color
:
rgb
(
0
,
0
,
0
);
}
.el-dialog__body
{
padding
:
0px
;
/deep/
{
.el-dialog__header
{
border-bottom
:
0px
;
background-color
:
rgb
(
0
,
0
,
0
);
}
.el-dialog__body
{
padding
:
0px
;
}
}
}
</
style
>
src/views/friendGroup/components/tag-textarea.vue
View file @
9391388
...
...
@@ -350,6 +350,7 @@ export default {
-webkit-user-select
:
none
;
cursor
:
default
;
pointer-events
:
none
;
vertical-align
:
middle
;
}
.active
{
background
:
#dcdfe6
;
...
...
src/views/friendGroup/components/welcomeWords.vue
View file @
9391388
...
...
@@ -2,7 +2,7 @@
<div
class=
"welcome-box"
>
<!--
<div
class=
"required"
>
入群欢迎语
</div>
-->
<div
class=
"content"
>
<div
class=
"content-bg"
>
<div
class=
"content-bg"
v-loading=
"loading"
>
<!--
<div
id=
"nick"
contenteditable=
"false"
class=
"nickname"
>
@昵称
<i
class=
"el-icon-error"
></i>
...
...
@@ -196,7 +196,6 @@ export default {
this
.
$message
.
error
(
'上传图片大小不能超过'
+
limitSize
+
'MB!'
)
return
true
}
this
.
loading
=
true
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
var
image
=
new
Image
()
...
...
@@ -225,6 +224,7 @@ export default {
console
.
log
(
imgIndex
)
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
loading
=
true
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
let
len
=
this
.
previewList
.
length
-
1
if
(
res
)
{
...
...
@@ -261,6 +261,7 @@ export default {
return
item
.
attType
==
ATT_TYPE
.
TEXT
})
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
loading
=
true
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
this
.
previewList
.
push
({
...
...
@@ -271,6 +272,7 @@ export default {
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
})
}
this
.
loading
=
false
})
document
.
querySelector
(
'.upload-video'
).
value
=
''
}
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
9391388
...
...
@@ -69,8 +69,8 @@
</glsx-dialog>
</div>
<GLFooter>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
通知成员发送
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</GLFooter>
</div>
</
template
>
...
...
@@ -149,12 +149,12 @@ export default {
type
:
'video'
,
funName
:
'video'
},
{
id
:
4
,
name
:
'活动'
,
type
:
'acivity'
,
funName
:
'activity'
}
//
{
//
id: 4,
//
name: '活动',
//
type: 'acivity',
//
funName: 'activity'
//
}
],
basicForm
:
{
selectType
:
1
,
...
...
src/views/friendGroup/friendGroupDetail.vue
View file @
9391388
...
...
@@ -269,7 +269,7 @@ export default {
border-bottom
:
1px
solid
#d8d8d8
;
}
.detail-info
{
padding
:
0
20px
;
padding
:
0
20px
20px
;
.detail-total
{
padding
:
20px
0
14px
;
font-size
:
14px
;
...
...
src/views/friendGroup/index.vue
View file @
9391388
...
...
@@ -3,7 +3,7 @@
<div
class=
"marketing pro-group p-t-20"
>
<div
class=
"m-b-20 friend-title"
>
<!--
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建商品
</el-button>
-->
<
el-button
:size=
"size"
type=
"primary"
fn=
"发布朋友圈"
@
click=
"handleEdit(1)"
>
发布朋友圈
</el-b
utton>
<
GLButton
:size=
"size"
type=
"primary"
fn=
"编辑朋友圈"
@
click=
"handleEdit(1)"
>
发布朋友圈
</GLB
utton>
<span>
管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。
</span>
</div>
<div
class=
"container"
>
...
...
@@ -28,23 +28,26 @@
<div
class=
"image-num"
>
{{
scope
.
scope
.
previewListImg
.
length
}}
</div>
<div
class=
"image-panel"
><img
src=
"@/assets/imgNum.png"
/></div>
</div>
<div
class=
"attachmentList-image attachmentList-video"
v-if=
"index == 0 && item.attType == 3 && scope.scope.materialType == 3"
><i
class=
"el-icon-video-play"
></i
></div>
<div
class=
"attachmentList-image attachmentList-video"
v-if=
"index == 0 && item.attType == 3 && scope.scope.materialType == 3"
><i
mg
src=
"@/assets/guestCustom/video-list.png"
/
></div>
</div>
<div
v-for=
"item in scope.scope.previewListText"
:key=
"item.id"
>
<div
class=
"attachmentList-text"
v-if=
"item.attContent"
>
{{
item
.
attContent
[
0
]
}}
</div>
</div>
</div>
</div>
<div
slot=
"sendType"
slot-scope=
"scope"
>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType == 1"
>
定时发送
</span>
<span
v-if=
"scope.scope.sendType == 2"
>
立即发送
</span>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == 2"
>
创建中
</el-button>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == 1"
>
开始创建
</el-button>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == 2 || scope.scope.status == 1"
>
创建中
</el-button>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == -1"
>
创建失败
</el-button>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == 4"
>
取消发送
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.sendType == 2 && getTimeStatus(scope.scope.sendTime) && scope.scope.status != 4"
@
click=
"handleCancel(scope.scope)"
>
取消发送
</el-button>
<el-popover
v-if=
"scope.scope.status == 0"
placement=
"top"
width=
"230"
trigger=
"click"
content=
"未到朋友圈发送时间,无法查看详情"
>
<el-button
slot=
"reference"
type=
"text"
style=
"color: #999999"
>
详情
</el-button>
</el-popover>
<el-button
type=
"text"
v-if=
"scope.scope.sendType == 2 && getTimeStatus(scope.scope.sendTime) && scope.scope.status != 4"
@
click=
"handleCancel(scope.scope)"
>
取消发送
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 3"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
<GLButton
type=
"text"
fn=
"详情"
v-if=
"scope.scope.status == 3"
@
click=
"handleDetail(scope.scope)"
>
详情
</GLButton>
</div>
</GLTable>
<!-- 表格区域 end -->
...
...
@@ -136,9 +139,7 @@ export default {
{
label
:
'发布方式'
,
name
:
'sendType'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
modeStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
sendType
).
confName
},
addHtml
:
'sendType'
,
width
:
'120'
},
{
...
...
@@ -435,6 +436,7 @@ export default {
.friend-title
{
color
:
#666666
;
span
{
font-size
:
14px
;
margin-left
:
10px
;
font-weight
:
100
;
}
...
...
@@ -477,12 +479,12 @@ export default {
&
.attachmentList-video
{
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.7
);
position
:
relative
;
i
{
i
mg
{
position
:
absolute
;
font-size
:
24
px
;
top
:
5
px
;
left
:
5
px
;
color
:
#fff
;
top
:
6
px
;
left
:
6
px
;
width
:
24
px
;
height
:
24px
;
}
}
>
img
{
...
...
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