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 9eff5a3b
authored
Oct 29, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
PhoneDialog组件去除isOther props属性,优化为自动根据slot判断
1 parent
0416232c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
22 deletions
vue3-lw-pc/src/components/PhoneDialog.vue
vue3-lw-pc/src/views/communityOperating/keywords/aev.vue
vue3-lw-pc/src/views/communityOperating/newCustomer/aev.vue
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
vue3-lw-pc/src/views/drainageCode/highSeas/add.vue
vue3-lw-pc/src/components/PhoneDialog.vue
View file @
9eff5a3
...
...
@@ -6,10 +6,6 @@ export default {
type
:
String
,
default
:
''
,
},
isOther
:
{
type
:
Boolean
,
default
:
false
,
},
imageList
:
{
type
:
Array
,
default
:
()
=>
[],
...
...
@@ -25,7 +21,11 @@ export default {
watch
:
{},
computed
:
{},
created
()
{},
mounted
()
{},
mounted
()
{
setTimeout
(()
=>
{
console
.
log
(
this
.
$slots
.
default
())
},
1000
)
},
methods
:
{},
}
</
script
>
...
...
@@ -42,7 +42,7 @@ export default {
</li>
<!-- 自定义消息 -->
<li
class=
"flex msg-li"
v-if=
"
isOther
"
>
<li
class=
"flex msg-li"
v-if=
"
$slots.default && Array.isArray($slots.default()[0].children)
"
>
<div
class=
"avatar fxnone"
>
<svg-icon
icon=
"user"
/>
</div>
...
...
vue3-lw-pc/src/views/communityOperating/keywords/aev.vue
View file @
9eff5a3
...
...
@@ -42,10 +42,11 @@
<div
class=
"preview-wrap g-card mt0"
>
<!-- 预览 -->
<PhoneDialog
:message=
"form.welcomeMsg || '请输入加群引导语'"
:isOther=
"groupQrCode && groupQrCode.codeUrl ? true : false"
>
<el-image
style=
"border-radius: 6px; width: 100px"
:src=
"groupQrCode.codeUrl"
></el-image>
<PhoneDialog
:message=
"form.welcomeMsg || '请输入加群引导语'"
>
<el-image
style=
"border-radius: 6px; width: 100px"
v-if=
"groupQrCode?.codeUrl"
:src=
"groupQrCode.codeUrl"
></el-image>
</PhoneDialog>
</div>
...
...
vue3-lw-pc/src/views/communityOperating/newCustomer/aev.vue
View file @
9eff5a3
...
...
@@ -251,13 +251,15 @@ export default {
<div
class=
"preview-wrap g-card sticky-t"
>
<div
class=
"g-card-title"
>
预览
</div>
<PhoneDialog
:message=
"form.welcomeMsg || '请输入加群引导语'"
>
<div
style=
"line-height: 1.5"
>
<div
class=
"msg-title"
>
{{ form.linkTitle }}
</div>
<div
class=
"msg-content"
>
<div
class=
"msg-desc"
>
{{ form.linkDesc }}
</div>
<el-image
class=
"phone-dialog-image fxnone"
:src=
"form.linkCoverUrl"
fit=
"contain"
></el-image>
<
template
v-if=
"form.linkTitle"
>
<div
style=
"line-height: 1.5"
>
<div
class=
"msg-title"
>
{{
form
.
linkTitle
}}
</div>
<div
class=
"msg-content"
>
<div
class=
"msg-desc"
>
{{
form
.
linkDesc
}}
</div>
<el-image
class=
"phone-dialog-image fxnone"
:src=
"form.linkCoverUrl"
fit=
"contain"
></el-image>
</div>
</div>
</
div
>
</
template
>
</PhoneDialog>
</div>
</div>
...
...
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
View file @
9eff5a3
...
...
@@ -110,10 +110,11 @@
<div
class=
"preview-wrap g-card mt0"
>
<!-- 预览 -->
<PhoneDialog
:message=
"form.welcomeMsg || '请输入加群引导语'"
:isOther=
"groupQrCode && groupQrCode.codeUrl ? true : false"
>
<el-image
style=
"border-radius: 6px; width: 100px"
:src=
"groupQrCode.codeUrl"
></el-image>
<PhoneDialog
:message=
"form.welcomeMsg || '请输入加群引导语'"
>
<el-image
style=
"border-radius: 6px; width: 100px"
v-if=
"groupQrCode?.codeUrl"
:src=
"groupQrCode?.codeUrl"
></el-image>
</PhoneDialog>
</div>
...
...
vue3-lw-pc/src/views/drainageCode/highSeas/add.vue
View file @
9eff5a3
...
...
@@ -219,8 +219,8 @@ export default {
<div
class=
"tip mb20"
>
扫码标签样式
</div>
<!-- 预览 -->
<PhoneDialog
:message=
"form.welcomeMsg || '请输入欢迎语'"
:isOther=
"!!materialSelected"
>
<el-image
style=
"border-radius: 6px"
:src=
"materialSelected"
fit=
"fill"
></el-image>
<PhoneDialog
:message=
"form.welcomeMsg || '请输入欢迎语'"
>
<el-image
style=
"border-radius: 6px"
v-if=
"materialSelected"
:src=
"materialSelected"
fit=
"fill"
></el-image>
</PhoneDialog>
<div
class=
"tip"
>
欢迎语样式
</div>
</div>
...
...
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