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 adc5fea5
authored
Feb 03, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
6938a4a2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
24 deletions
linkwe-pc/src/views/intelligentShortLink/addEdit.vue
linkwe-pc/src/views/intelligentShortLink/components/Add.vue
linkwe-pc/src/views/intelligentShortLink/components/PhonePreview.vue
linkwe-uniapp/pages/index/index.vue
linkwe-pc/src/views/intelligentShortLink/addEdit.vue
View file @
adc5fea
...
@@ -115,20 +115,13 @@ export default {
...
@@ -115,20 +115,13 @@ export default {
<el-form-item
label=
"跳转类型"
>
<el-form-item
label=
"跳转类型"
>
<el-radio-group
v-model=
"form.jumpType"
>
<el-radio-group
v-model=
"form.jumpType"
>
<el-radio-button
:label=
"1"
>
跳入微信
</el-radio-button>
<el-radio-button
:label=
"1"
>
跳入微信
</el-radio-button>
<
el-tooltip
<
!-- manual
:value="currentActive == 0"
:value="currentActive == 0"
manual
transition="normal" -->
class=
"item"
<el-tooltip
class=
"item"
effect=
"light"
content=
"尽情期待"
placement=
"top"
>
transition=
"normal"
effect=
"light"
content=
"尽情期待"
placement=
"top"
>
<el-radio-button
:label=
"2"
disabled
>
跳出微信
</el-radio-button>
<el-radio-button
:label=
"2"
disabled
>
跳出微信
</el-radio-button>
</el-tooltip>
</el-tooltip>
</el-radio-group>
</el-radio-group>
<!--
<el-tooltip
:value=
"true"
class=
"item"
effect=
"light"
content=
"尽情期待"
placement=
"top"
>
<el-button
:label=
"2"
>
跳出微信
</el-button>
</el-tooltip>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"推广类型"
>
<el-form-item
label=
"推广类型"
>
<el-radio-group
v-model=
"form.extensionType"
@
change=
"extensionTypeChange"
>
<el-radio-group
v-model=
"form.extensionType"
@
change=
"extensionTypeChange"
>
...
...
linkwe-pc/src/views/intelligentShortLink/components/Add.vue
View file @
adc5fea
...
@@ -44,6 +44,7 @@ export default {
...
@@ -44,6 +44,7 @@ export default {
qrCodeVisible
:
false
,
qrCodeVisible
:
false
,
storeLoading
:
false
,
storeLoading
:
false
,
isLoadForm
:
false
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -52,7 +53,14 @@ export default {
...
@@ -52,7 +53,14 @@ export default {
},
},
},
},
watch
:
{
watch
:
{
'form.type'
(
val
)
{
'form.type'
(
val
,
oldVal
)
{
// 触达类型改变时情况已有表单数据
if
(
!
this
.
form
.
id
||
this
.
isLoadForm
)
{
debugger
this
.
$refs
.
form
.
resetFields
()
}
this
.
isLoadForm
=
true
// <!-- 门店导购活码,门店群活码 -->
if
([
6
,
8
].
includes
(
+
val
))
{
if
([
6
,
8
].
includes
(
+
val
))
{
this
.
storeLoading
=
true
this
.
storeLoading
=
true
getCode
({
6
:
1
,
8
:
2
}[
val
])
getCode
({
6
:
1
,
8
:
2
}[
val
])
...
@@ -65,6 +73,9 @@ export default {
...
@@ -65,6 +73,9 @@ export default {
})
})
}
}
},
},
'form.id'
(
val
)
{
this
.
isLoadForm
=
true
},
},
},
created
()
{},
created
()
{},
mounted
()
{},
mounted
()
{},
...
@@ -148,7 +159,7 @@ export default {
...
@@ -148,7 +159,7 @@ export default {
<!-- 员工活码,客群活码 -->
<!-- 员工活码,客群活码 -->
<
template
v-else-if=
"[4, 5].includes(+form.type)"
>
<
template
v-else-if=
"[4, 5].includes(+form.type)"
>
<el-form-item
prop=
"qrCode
Id
"
:label=
"touchTypeDict[form.type].name"
>
<el-form-item
prop=
"qrCode"
:label=
"touchTypeDict[form.type].name"
>
<!-- 员工活码,客群活码 -->
<!-- 员工活码,客群活码 -->
<el-button
v-if=
"!form.qrCode"
type=
"primary"
plain
@
click=
"choiceQqcode(form.type)"
>
<el-button
v-if=
"!form.qrCode"
type=
"primary"
plain
@
click=
"choiceQqcode(form.type)"
>
{{
'选择'
+
touchTypeDict
[
form
.
type
].
name
}}
{{
'选择'
+
touchTypeDict
[
form
.
type
].
name
}}
...
@@ -167,7 +178,10 @@ export default {
...
@@ -167,7 +178,10 @@ export default {
</
template
>
</
template
>
<!-- 门店导购活码,门店群活码 -->
<!-- 门店导购活码,门店群活码 -->
<el-form-item
v-else-if=
"[6, 8].includes(+form.type)"
prop=
"5"
:label=
"'选择' + touchTypeDict[form.type].name"
>
<el-form-item
v-else-if=
"[6, 8].includes(+form.type)"
prop=
"qrCode"
:label=
"'选择' + touchTypeDict[form.type].name"
>
<el-button
<el-button
v-if=
"!form.qrCode"
v-if=
"!form.qrCode"
v-loading=
"storeLoading"
v-loading=
"storeLoading"
...
...
linkwe-pc/src/views/intelligentShortLink/components/PhonePreview.vue
View file @
adc5fea
...
@@ -37,9 +37,9 @@ export default {
...
@@ -37,9 +37,9 @@ export default {
<!-- 个人小程序,企业小程序 -->
<!-- 个人小程序,企业小程序 -->
<
template
v-if=
"[7, 9].includes(+data.type)"
>
<
template
v-if=
"[7, 9].includes(+data.type)"
>
<div
class=
"mt10"
>
{{
data
.
name
||
'小程序'
}}
</div>
<div
class=
"mt10"
>
{{
data
.
name
||
'小程序'
}}
</div>
<
div
class=
"mt20 mb20"
>
<
el-image
<el-image
style=
"width: 120px; height: 120px"
:src=
"data.avatar"
></el-image>
style=
"width: 120px; height: 120px; display: block; margin: 20px auto 30px"
</div
>
:src=
"data.avatar"
></el-image
>
<el-button
type=
"primary"
>
点击打开
{{
data
.
name
||
'小程序'
}}
</el-button>
<el-button
type=
"primary"
>
点击打开
{{
data
.
name
||
'小程序'
}}
</el-button>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -54,8 +54,8 @@ export default {
...
@@ -54,8 +54,8 @@ export default {
<div
class=
"tips mt20 toe"
>
{{
data
.
describe
||
'描述'
}}
</div>
<div
class=
"tips mt20 toe"
>
{{
data
.
describe
||
'描述'
}}
</div>
</div>
</div>
<el-image
style=
"width: 120px; height: 120px; margin: 20px 0"
:src=
"data.qrCode"
fit=
"fit"
></el-image>
<el-image
style=
"width: 120px; height: 120px; margin: 20px 0
30px
"
:src=
"data.qrCode"
fit=
"fit"
></el-image>
<div
class=
"
mt20
"
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
<div
class=
""
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
</
template
>
</
template
>
</div>
</div>
</PhoneTemplate>
</PhoneTemplate>
...
...
linkwe-uniapp/pages/index/index.vue
View file @
adc5fea
...
@@ -9,10 +9,9 @@
...
@@ -9,10 +9,9 @@
<!-- 个人小程序,企业小程序 -->
<!-- 个人小程序,企业小程序 -->
<
template
v-if=
"[7, 9].includes(+data.type)"
>
<
template
v-if=
"[7, 9].includes(+data.type)"
>
<div
class=
""
>
{{
data
.
name
||
'小程序'
}}
</div>
<div
class=
""
>
{{
data
.
name
||
'小程序'
}}
</div>
<div
class=
"mt20 mb20"
>
<image
style=
"width: 200px; height: 200px; display: block; margin: 20px auto 30px;"
:src=
"data.avatar"
<image
style=
"width: 150px; height: 150px"
:src=
"data.avatar"
show-menu-by-longpress
fit=
"fit"
></image>
show-menu-by-longpress
fit=
"fit"
></image>
</div>
<button
class=
""
type=
"primary"
@
tap=
"open()"
>
点击打开
{{
data
.
name
||
'小程序'
}}
</button>
<button
type=
"primary"
@
tap=
"open()"
>
点击打开
{{
data
.
name
||
'小程序'
}}
</button>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -27,9 +26,9 @@
...
@@ -27,9 +26,9 @@
<div
class=
"tips mt20 toe"
>
{{
data
.
describe
||
'描述'
}}
</div>
<div
class=
"tips mt20 toe"
>
{{
data
.
describe
||
'描述'
}}
</div>
</div>
</div>
<image
style=
"width:
180px; height: 180px; margin: 20px 0
"
:src=
"data.qrCode"
show-menu-by-longpress
>
<image
style=
"width:
200px; height: 200px; margin: 20px 0 30px
"
:src=
"data.qrCode"
show-menu-by-longpress
>
</image>
</image>
<div
class=
"
mt20
"
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
<div
class=
""
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
</
template
>
</
template
>
</div>
</div>
</view>
</view>
...
...
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