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 18147b3d
authored
Feb 07, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
b2ceab4e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
linkwe-pc/src/views/intelligentShortLink/addEdit.vue
linkwe-pc/src/views/intelligentShortLink/components/Add.vue
linkwe-uniapp/pages/index/index.vue
linkwe-pc/src/views/intelligentShortLink/addEdit.vue
View file @
18147b3
...
...
@@ -148,7 +148,7 @@ export default {
<div
v-show=
"currentActive == 1"
class=
"fxbw ais mt10"
style=
"overflow: auto"
>
<div
class=
"g-card g-pad20 mr10"
style=
"flex: auto"
>
<Add
ref=
"add"
:form=
"form"
/>
<Add
ref=
"add"
:form
.
sync
=
"form"
/>
</div>
<PhonePreview
:data=
"form"
/>
...
...
linkwe-pc/src/views/intelligentShortLink/components/Add.vue
View file @
18147b3
...
...
@@ -56,21 +56,14 @@ export default {
'form.type'
(
val
,
oldVal
)
{
// 触达类型改变时情况已有表单数据
if
(
!
this
.
form
.
id
||
this
.
isLoadForm
)
{
debugger
this
.
$refs
.
form
.
resetFields
()
let
{
id
,
jumpType
,
extensionType
,
type
}
=
this
.
form
this
.
$emit
(
'update:form'
,
{
id
,
jumpType
,
extensionType
,
type
})
// this.$refs.form.resetFields()
}
this
.
isLoadForm
=
true
// <!-- 门店导购活码,门店群活码 -->
if
([
6
,
8
].
includes
(
+
val
))
{
this
.
storeLoading
=
true
getCode
({
6
:
1
,
8
:
2
}[
val
])
.
then
(({
data
})
=>
{
this
.
form
.
qrCode
=
data
&&
data
.
storeCodeConfigQr
this
.
storeLoading
=
false
})
.
finally
(()
=>
{
this
.
storeLoading
=
false
})
this
.
getCode
()
}
},
'form.id'
(
val
)
{
...
...
@@ -80,6 +73,18 @@ export default {
created
()
{},
mounted
()
{},
methods
:
{
// 获取门店导购活码,门店群活码
getCode
()
{
this
.
storeLoading
=
true
getCode
({
6
:
1
,
8
:
2
}[
this
.
form
.
type
])
.
then
(({
data
})
=>
{
this
.
form
.
qrCode
=
data
&&
data
.
storeCodeConfigQr
this
.
storeLoading
=
false
})
.
finally
(()
=>
{
this
.
storeLoading
=
false
})
},
choiceQqcode
(
type
)
{
this
.
qrCodeVisible
=
true
this
.
component
=
this
[
type
==
4
?
'selectStaffQrCode'
:
'selectQrCode'
]
...
...
@@ -119,7 +124,7 @@ export default {
ref=
"form"
:model=
"form"
label-suffix=
":"
label-width=
"1
4
0px"
label-width=
"1
6
0px"
:rules=
"rules"
>
<el-form-item
label=
"短链类型"
>
<span>
{{
touchTypeDict
[
form
.
type
].
allName
}}
</span>
...
...
@@ -161,9 +166,10 @@ export default {
<
template
v-else-if=
"[4, 5].includes(+form.type)"
>
<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
&& !isDetail
"
type=
"primary"
plain
@
click=
"choiceQqcode(form.type)"
>
{{
'选择'
+
touchTypeDict
[
form
.
type
].
name
}}
</el-button>
<el-form
v-else
label-width=
""
>
<el-form-item
label=
"活码名称"
>
{{
form
.
name
}}
</el-form-item>
<el-form-item
:label=
"form.type == 4 ? '使用员工' : '活码客群'"
>
...
...
@@ -171,7 +177,7 @@ export default {
</el-form-item>
<el-form-item
label=
"二维码"
>
<el-image
class=
"mr10 qrCode"
:src=
"form.qrCode"
fit=
"fit"
></el-image>
<el-button
type=
"text"
@
click=
"choiceQqcode(form.type)"
>
修改
</el-button>
<el-button
v-if=
"!isDetail"
type=
"text"
@
click=
"choiceQqcode(form.type)"
>
修改
</el-button>
</el-form-item>
</el-form>
</el-form-item>
...
...
@@ -183,14 +189,17 @@ export default {
prop=
"qrCode"
:label=
"'选择' + touchTypeDict[form.type].name"
>
<el-button
v-if=
"!form.qrCode"
v-if=
"!form.qrCode
&& !isDetail
"
v-loading=
"storeLoading"
type=
"primary"
plain
@
click=
"$router.push('/drainageCode/qrCode/store/list')"
>
暂无{{ touchTypeDict[form.type].name }},去配置
</el-button>
<el-image
v-else
class=
"mr10 qrCode"
:src=
"form.qrCode"
fit=
"fit"
></el-image>
<div
v-else
>
<el-image
v-loading=
"storeLoading"
class=
"mr10 qrCode"
:src=
"form.qrCode"
fit=
"fit"
></el-image>
<el-button
v-if=
"!isDetail"
type=
"text"
@
click=
"getCode()"
>
同步
</el-button>
</div>
</el-form-item>
<!-- 个人小程序,企业小程序 -->
...
...
linkwe-uniapp/pages/index/index.vue
View file @
18147b3
...
...
@@ -34,7 +34,7 @@
:src=
"data.qrCode"
show-menu-by-longpress
></image>
<div
v-if=
"[5, 6].includes(+data.type)"
class=
"toe"
>
长按二维码保存后,使用微信扫一扫打开
</div>
<div
v-if=
"[5, 6
, 8
].includes(+data.type)"
class=
"toe"
>
长按二维码保存后,使用微信扫一扫打开
</div>
<div
v-else
class=
""
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
</
template
>
</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