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 00795fb2
authored
Feb 01, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
短链
1 parent
07dd3f1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 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 @
00795fb
...
@@ -163,14 +163,22 @@ export default {
...
@@ -163,14 +163,22 @@ export default {
<div
v-show=
"currentActive == 2"
class=
"g-card g-pad20 ac"
>
<div
v-show=
"currentActive == 2"
class=
"g-card g-pad20 ac"
>
<i
class=
"el-icon-success"
style=
"font-size: 36px; color: #06c160; margin: 10px 0 20px"
></i>
<i
class=
"el-icon-success"
style=
"font-size: 36px; color: #06c160; margin: 10px 0 20px"
></i>
<div
style=
""
>
短链创建成功
,支持直接复制链接或下载短链二维码
</div>
<div
style=
""
>
短链创建成功
</div>
<div
class=
"g-card g-pad20"
style=
"background: #eee; width: 50%; margin: 30px auto"
>
<div
class=
"g-card g-pad20"
style=
"background: #eee; width: 50%; margin: 30px auto"
>
<span>
{{ data.shortUrl }}
</span>
<span>
{{ data.shortUrl }}
</span>
</div>
</div>
<img
ref=
"qrCode"
style=
"width: 1
20px; height: 12
0px"
:src=
"data.qrCode"
fit=
"fit"
crossOrigin=
"anonymous"
/>
<img
ref=
"qrCode"
style=
"width: 1
30px; height: 13
0px"
:src=
"data.qrCode"
fit=
"fit"
crossOrigin=
"anonymous"
/>
<div>
<div>
<el-button
type=
"text"
class=
"copy-btn"
:data-clipboard-text=
"data.shortUrl"
>
复制链接
</el-button>
<el-button
type=
"text"
class=
"copy-btn"
:data-clipboard-text=
"data.shortUrl"
>
复制链接
</el-button>
<el-button
type=
"text"
@
click=
"download()"
>
下载二维码
</el-button>
<el-button
type=
"text"
@
click=
"download()"
>
下载二维码
</el-button>
<div
style=
"font-size: 12px; color: #aaa"
>
此链接适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景,不支持在微信内直接打开,
<a
href=
"https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-scheme/generateScheme.html"
>
详见>>
</a>
</div>
</div>
</div>
</div>
</div>
...
...
linkwe-pc/src/views/intelligentShortLink/components/Add.vue
View file @
00795fb
...
@@ -17,8 +17,8 @@ export default {
...
@@ -17,8 +17,8 @@ export default {
longLink
:
[
longLink
:
[
{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
},
{
{
validator
(
rule
,
value
,
callback
)
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
value
&&
!
/^http/gi
.
test
(
value
))
callback
(
'链接格式错误,需以http(s)开头'
)
if
(
this
.
form
.
type
==
0
&&
value
&&
!
/^http/gi
.
test
(
value
))
callback
(
'链接格式错误,需以http(s)开头'
)
else
callback
()
else
callback
()
},
},
trigger
:
'blur'
,
trigger
:
'blur'
,
...
@@ -169,7 +169,7 @@ export default {
...
@@ -169,7 +169,7 @@ export default {
<el-input
clearable
v-model=
"form.appId"
placeholder=
"请输入"
maxlength=
"30"
show-word-limit
></el-input>
<el-input
clearable
v-model=
"form.appId"
placeholder=
"请输入"
maxlength=
"30"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"longLink"
label=
"小程序页面路径"
>
<el-form-item
prop=
"longLink"
label=
"小程序页面路径"
>
<el-input
clearable
v-model=
"form.longLink"
placeholder=
"请输入"
maxlength=
"
3
0"
show-word-limit
></el-input>
<el-input
clearable
v-model=
"form.longLink"
placeholder=
"请输入"
maxlength=
"
5
0"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<!-- 企业小程序 -->
<!-- 企业小程序 -->
...
...
linkwe-uniapp/pages/index/index.vue
View file @
00795fb
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
</
template
>
</
template
>
<
template
v-else-if=
"[7, 9].includes(+data.type)"
>
<
template
v-else-if=
"[7, 9].includes(+data.type)"
>
<div
class=
"g-card g-pad20 cc ac"
style=
"width: 70%"
>
<div
class=
"g-card g-pad20 cc ac"
style=
"width: 70%"
>
<div
class=
"
mt10
"
>
{{
data
.
name
||
'小程序'
}}
</div>
<div
class=
""
>
{{
data
.
name
||
'小程序'
}}
</div>
<div
class=
"mt20 mb20"
>
<div
class=
"mt20 mb20"
>
<image
style=
"width: 1
20px; height: 120px"
:src=
"data.avatar"
error=
"头像"
fit=
"fit"
></image>
<image
style=
"width: 1
50px; height: 150px"
:src=
"data.avatar"
show-menu-by-longpress
fit=
"fit"
></image>
</div>
</div>
<button
type=
"primary"
@
tap=
"open()"
>
点击打开
{{
data
.
name
||
'小程序'
}}
</button>
<button
type=
"primary"
@
tap=
"open()"
>
点击打开
{{
data
.
name
||
'小程序'
}}
</button>
</div>
</div>
...
@@ -17,11 +17,13 @@
...
@@ -17,11 +17,13 @@
<
template
v-else
>
<
template
v-else
>
<div
class=
"g-card g-pad20 cc ac"
style=
"width: 70%"
>
<div
class=
"g-card g-pad20 cc ac"
style=
"width: 70%"
>
<div
class=
"al bfc-o"
>
<div
class=
"al bfc-o"
>
<image
class=
"fl mr10"
style=
"width: 50px; height: 50px"
:src=
"data.avatar"
error=
"头像"
fit=
"fit"
></image>
<image
class=
"fl mr10"
style=
"width: 50px; height: 50px"
:src=
"data.avatar"
show-menu-by-longpress
fit=
"fit"
>
</image>
<div
class=
"toe"
>
{{
data
.
name
||
'无名称'
}}
</div>
<div
class=
"toe"
>
{{
data
.
name
||
'无名称'
}}
</div>
<div
class=
"tips mt20 toe"
>
{{
data
.
describe
||
'无描述'
}}
</div>
<div
class=
"tips mt20 toe"
>
{{
data
.
describe
||
'无描述'
}}
</div>
</div>
</div>
<image
style=
"width: 120px; height: 120px; margin: 20px 0"
:src=
"data.qrCode"
fit=
"fit"
></image>
<image
style=
"width: 180px; height: 180px; margin: 20px 0"
:src=
"data.qrCode"
show-menu-by-longpress
fit=
"fit"
>
</image>
<div
class=
"mt20"
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
<div
class=
"mt20"
>
长按二维码
{{
touchTypeDict
[
data
.
type
].
previewMobileTitle
}}
</div>
</div>
</div>
</
template
>
</
template
>
...
...
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