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 ae0e6b8b
authored
Mar 18, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
5eceac99
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
17 deletions
src/assets/guestCustom/icon-video.png
src/config/index.js
src/views/friendGroup/components/basicInfo.vue
src/views/friendGroup/components/preview.vue
src/views/friendGroup/components/selectMember.vue
src/views/friendGroup/components/welcomeWords.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/friendGroupDetail.vue
src/views/memberCenter/center.vue
src/assets/guestCustom/icon-video.png
0 → 100644
View file @
ae0e6b8
351 Bytes
src/config/index.js
View file @
ae0e6b8
...
@@ -19,8 +19,8 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -19,8 +19,8 @@ export const fetchConfig = function (isEnv = true) {
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
//
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
return
new
Http
().
get
(
'http://192.168.3.171:7300/mock/619c87331072f92988f05a29/marketing/config'
)
//
return new Http().get('http://192.168.3.171:7300/mock/619c87331072f92988f05a29/marketing/config')
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/views/friendGroup/components/basicInfo.vue
View file @
ae0e6b8
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<i
:class=
"
{ 'el-icon-refresh': true, 'wait-status': refreshStatus }">
</i>
<i
:class=
"
{ 'el-icon-refresh': true, 'wait-status': refreshStatus }">
</i>
更新数据
更新数据
</span>
</span>
<span
class=
"info-time"
>
更新于
</span>
<span
class=
"info-time"
>
更新于
:
{{
basicInfo
.
updatedTime
}}
</span>
</div>
</div>
<div
class=
"statistics-info"
>
<div
class=
"statistics-info"
>
<div
class=
"statistics-ul"
>
<div
class=
"statistics-ul"
>
...
...
src/views/friendGroup/components/preview.vue
View file @
ae0e6b8
...
@@ -84,7 +84,6 @@ export default {
...
@@ -84,7 +84,6 @@ export default {
})
})
val
[
0
].
attContent
[
0
]
=
htm
val
[
0
].
attContent
[
0
]
=
htm
}
}
console
.
log
(
val
)
//图片合并
//图片合并
// const previewListFilter = val.map(item=>{
// const previewListFilter = val.map(item=>{
// return {
// return {
...
@@ -104,7 +103,9 @@ export default {
...
@@ -104,7 +103,9 @@ export default {
},
},
created
()
{
created
()
{
this
.
eventBus
.
$on
(
'update'
,
val
=>
{
this
.
eventBus
.
$on
(
'update'
,
val
=>
{
setTimeout
(()
=>
{
this
.
previewList
=
val
this
.
previewList
=
val
},
100
)
})
})
},
},
mounted
()
{}
mounted
()
{}
...
...
src/views/friendGroup/components/selectMember.vue
View file @
ae0e6b8
...
@@ -175,6 +175,7 @@ export default {
...
@@ -175,6 +175,7 @@ export default {
const
params
=
{
addChildrensFlag
:
true
}
const
params
=
{
addChildrensFlag
:
true
}
this
.
loading
=
true
this
.
loading
=
true
params
.
isHavCustomer
=
true
params
.
isHavCustomer
=
true
params
.
isEntmicroCustomer
=
true
params
.
isFollowerStaff
=
isFollowerStaff
params
.
isFollowerStaff
=
isFollowerStaff
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
...
src/views/friendGroup/components/welcomeWords.vue
View file @
ae0e6b8
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<div
v-for=
"(itm, index) in previewList"
:key=
"itm.id"
>
<div
v-for=
"(itm, index) in previewList"
:key=
"itm.id"
>
<div
class=
"welcome-file"
v-if=
"itm.attType != 1 && itm.attType != 2"
>
<div
class=
"welcome-file"
v-if=
"itm.attType != 1 && itm.attType != 2"
>
<template
v-if=
"itm.attType == 3"
>
<template
v-if=
"itm.attType == 3"
>
<img
src=
"@/assets/guestCustom/icon-
img
.png"
alt
/>
<img
src=
"@/assets/guestCustom/icon-
video
.png"
alt
/>
<span
class=
"welcome-file-desc"
:title=
"itm.attContent[0]"
>
{{
itm
.
attContent
[
0
]
}}
</span>
<span
class=
"welcome-file-desc"
:title=
"itm.attContent[0]"
>
{{
itm
.
attContent
[
0
]
}}
</span>
</
template
>
</
template
>
<
template
v-else-if=
"itm.attType == 7"
>
<
template
v-else-if=
"itm.attType == 7"
>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<span
v-if=
"item.id == 1"
@
click
.
stop=
"selectEmotion"
>
{{ item.name }}
</span>
<span
v-if=
"item.id == 1"
@
click
.
stop=
"selectEmotion"
>
{{ item.name }}
</span>
<span
v-else
>
{{ item.name }}
</span>
<span
v-else
>
{{ item.name }}
</span>
<input
v-if=
"item.type == 'img'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input upload-img"
:accept=
"item.accept || 'image/png, image/jpeg, image/jpg'"
@
change=
"e => handleImgChange(e, item)"
/>
<input
v-if=
"item.type == 'img'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input upload-img"
:accept=
"item.accept || 'image/png, image/jpeg, image/jpg'"
@
change=
"e => handleImgChange(e, item)"
/>
<input
v-else-if=
"item.type == 'video'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input"
:accept=
"item.accept || 'video/*'"
@
change=
"e => handleVideoChange(e, item)"
/>
<input
v-else-if=
"item.type == 'video'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input
upload-video
"
:accept=
"item.accept || 'video/*'"
@
change=
"e => handleVideoChange(e, item)"
/>
<el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
<el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
</div>
</div>
</div>
</div>
...
@@ -210,7 +210,7 @@ export default {
...
@@ -210,7 +210,7 @@ export default {
return
item
.
attType
==
ATT_TYPE
.
TEXT
||
item
.
attType
==
ATT_TYPE
.
IMAGE
return
item
.
attType
==
ATT_TYPE
.
TEXT
||
item
.
attType
==
ATT_TYPE
.
IMAGE
})
})
const
imgIndex
=
this
.
previewList
.
findIndex
(
imgItem
=>
imgItem
.
attType
==
ATT_TYPE
.
IMAGE
)
const
imgIndex
=
this
.
previewList
.
findIndex
(
imgItem
=>
imgItem
.
attType
==
ATT_TYPE
.
IMAGE
)
if
(
imgIndex
!=
-
1
&&
this
.
previewList
[
imgIndex
].
attContent
.
length
==
9
)
{
if
(
imgIndex
!=
-
1
&&
this
.
previewList
[
imgIndex
].
attContent
.
length
>=
9
)
{
this
.
$message
.
error
(
'最多上传9张图片'
)
this
.
$message
.
error
(
'最多上传9张图片'
)
return
return
}
}
...
@@ -257,18 +257,22 @@ export default {
...
@@ -257,18 +257,22 @@ export default {
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
this
.
previewList
=
this
.
previewList
.
filter
(
item
=>
{
this
.
previewList
=
this
.
previewList
.
filter
(
item
=>
{
return
item
.
attType
==
ATT_TYPE
.
TEXT
return
item
.
attType
==
ATT_TYPE
.
TEXT
})
})
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
this
.
previewList
.
push
({
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
VEDIO
,
attType
:
ATT_TYPE
.
VEDIO
,
attContent
:
[
res
]
attContent
:
[
res
]
})
})
this
.
$nextTick
(()
=>
{
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
})
}
}
})
})
document
.
querySelector
(
'.upload-video'
).
value
=
''
}
}
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
)
console
.
log
(
err
)
...
@@ -291,10 +295,16 @@ export default {
...
@@ -291,10 +295,16 @@ export default {
videoObj
.
load
()
videoObj
.
load
()
videoObj
.
onloadedmetadata
=
function
(
evt
)
{
videoObj
.
onloadedmetadata
=
function
(
evt
)
{
URL
.
revokeObjectURL
(
videoUrl
)
URL
.
revokeObjectURL
(
videoUrl
)
console
.
dir
(
videoObj
)
if
(
videoObj
.
videoWidth
>
1280
||
videoObj
.
videoHeight
>
720
)
{
if
(
videoObj
.
videoWidth
>
1280
||
videoObj
.
videoHeight
>
720
)
{
_this
.
$message
.
error
(
'上传视频不超过1280x720'
)
_this
.
$message
.
error
(
'上传视频不超过1280x720'
)
reject
()
reject
()
}
}
if
(
videoObj
.
duration
>
30
)
{
_this
.
$message
.
error
(
'上传视频不超过30s'
)
reject
()
}
resolve
(
file
)
resolve
(
file
)
}
}
})
})
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
ae0e6b8
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
</glsx-dialog>
</glsx-dialog>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
通知成员发送
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</GLFooter>
</GLFooter>
</div>
</div>
</
template
>
</
template
>
...
@@ -264,6 +264,13 @@ export default {
...
@@ -264,6 +264,13 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
attachmentShow
=
true
this
.
attachmentShow
=
true
const
previewList
=
this
.
$refs
.
welcome
.
previewList
const
previewList
=
this
.
$refs
.
welcome
.
previewList
if
(
previewList
.
length
==
0
)
{
this
.
$message
({
type
:
'error'
,
message
:
'朋友圈内容不能为空'
})
return
}
if
(
previewList
.
length
!=
0
)
{
if
(
previewList
.
length
!=
0
)
{
this
.
basicForm
.
attachmentList
=
previewList
this
.
basicForm
.
attachmentList
=
previewList
}
}
...
...
src/views/friendGroup/friendGroupDetail.vue
View file @
ae0e6b8
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<div
class=
"user-list"
>
<div
class=
"user-list"
>
<div
class=
"user-item"
v-for=
"(item, index) in userList"
:key=
"index"
>
<div
class=
"user-item"
v-for=
"(item, index) in userList"
:key=
"index"
>
<div
class=
"user-image"
>
<div
class=
"user-image"
>
<img
src=
"https://www.wangbase.com/blogimg/asset/201903/bg2019032511.png
"
alt=
""
/>
<img
:src=
"item.avatar
"
alt=
""
/>
</div>
</div>
<div
class=
"user-desc"
>
<div
class=
"user-desc"
>
<div
class=
"user-name"
>
{{
item
.
customerName
}}
</div>
<div
class=
"user-name"
>
{{
item
.
customerName
}}
</div>
...
@@ -95,10 +95,10 @@ export default {
...
@@ -95,10 +95,10 @@ export default {
},
},
{
{
label
:
'发送时间'
,
label
:
'发送时间'
,
prop
:
'sendTime'
prop
:
'sendTime'
,
//
formatter: cellValue => {
formatter
:
cellValue
=>
{
// return new Date(cellValue.createdDate).toLocaleDateString().replace(/\//g, '-')
return
cellValue
.
sendTime
?
cellValue
.
sendTime
:
'--'
//
}
}
},
},
{
{
label
:
'已送达客户'
,
label
:
'已送达客户'
,
...
@@ -203,6 +203,9 @@ export default {
...
@@ -203,6 +203,9 @@ export default {
/deep/
.el-dialog
{
/deep/
.el-dialog
{
height
:
405px
;
height
:
405px
;
}
}
/
deep
/
.el-dialog__footer
{
text-align
:
center
;
}
}
}
.customer-detail
{
.customer-detail
{
color
:
#5850ff
;
color
:
#5850ff
;
...
...
src/views/memberCenter/center.vue
View file @
ae0e6b8
...
@@ -395,7 +395,7 @@ export default {
...
@@ -395,7 +395,7 @@ export default {
str
=
''
str
=
''
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
value
!==
''
&&
value
==
0
){
if
(
value
!==
''
&&
value
==
0
){
return
(
str
=
1
)
return
(
str
=
0.0
1
)
}
}
if
(
Number
(
value
)
>=
99999
)
{
if
(
Number
(
value
)
>=
99999
)
{
return
(
str
=
99999
)
return
(
str
=
99999
)
...
@@ -413,6 +413,7 @@ export default {
...
@@ -413,6 +413,7 @@ export default {
return
str
return
str
},
},
getCardContentFun
()
{
getCardContentFun
()
{
if
(
this
.
merchantModel
==
2
&&
this
.
accountLevel
==
1
)
return
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
if
(
!
res
)
{
if
(
!
res
)
{
return
return
...
...
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