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 de796128
authored
Aug 18, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并release开源部分
1 parent
6314e896
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
62 additions
and
42 deletions
vue3-lw-pc/index.html
vue3-lw-pc/public/static/css/common.css
vue3-lw-pc/public/static/css/loading.css
vue3-lw-pc/src/api/common.js
vue3-lw-pc/src/components/DateSearchChartTable.vue
vue3-lw-pc/src/components/TagEllipsis.vue
vue3-lw-pc/src/components/Upload.vue
vue3-lw-pc/src/layout/components/TopBar/index.vue
vue3-lw-pc/src/styles/element-ui.scss
vue3-lw-pc/src/views/intelligentShortLink/addEdit.vue
vue3-lw-pc/vite.config.js
vue3-lw-pc/index.html
View file @
de79612
...
@@ -10,11 +10,10 @@
...
@@ -10,11 +10,10 @@
content=
"LinkWeChat,linkwechat开源SCRM,仟微助手,LinkWeChat私域,企业微信私域,linkwechat私域营销,企微营销,企微私域,私域SCRM,开源企业微信SCRM,全链路私域SCRM,全链路私域数字化营销增长解决方案"
>
content=
"LinkWeChat,linkwechat开源SCRM,仟微助手,LinkWeChat私域,企业微信私域,linkwechat私域营销,企微营销,企微私域,私域SCRM,开源企业微信SCRM,全链路私域SCRM,全链路私域数字化营销增长解决方案"
>
<meta
name=
"description"
content=
"LinkWeChat -- 全链路私域数字化营销增长解决方案"
>
<meta
name=
"description"
content=
"LinkWeChat -- 全链路私域数字化营销增长解决方案"
>
<link
rel=
"icon"
href=
"/favicon.png"
>
<link
rel=
"icon"
href=
"/favicon.png"
>
<title>
%VITE_APP_TITLE%
</title>
<link
rel=
"stylesheet"
href=
"/static/css/loading.css"
>
<link
rel=
"stylesheet"
href=
"/static/css/loading.css"
>
<script
src=
"/static/config.js"
></script>
<script
src=
"/static/config.js"
></script>
<title>
%VITE_APP_TITLE%
</title>
</head>
</head>
...
@@ -28,15 +27,13 @@
...
@@ -28,15 +27,13 @@
</div>
</div>
<script
type=
"module"
src=
"/src/main.js"
></script>
<script
type=
"module"
src=
"/src/main.js"
></script>
<script>
<script>
setTimeout
(()
=>
{
if
(
window
.
lwConfig
&&
!
[
'development'
,
'test'
].
includes
(
window
.
lwConfig
.
_env
))
{
if
(
window
.
lwConfig
&&
window
.
lwConfig
.
_env
!==
'development'
)
{
var
hm
=
document
.
createElement
(
"script"
)
var
hm
=
document
.
createElement
(
"script"
)
hm
.
src
=
"https://hm.baidu.com/hm.js?489a58fd4fcaf2347cee64a8827e7094"
;
hm
.
src
=
"https://hm.baidu.com/hm.js?489a58fd4fcaf2347cee64a8827e7094"
;
var
hm1
=
document
.
createElement
(
"script"
)
var
hm1
=
document
.
createElement
(
"script"
)
hm1
.
src
=
"https://hm.baidu.com/hm.js?8f5214f3a0f80a33eb32a0f890167cc1"
;
hm1
.
src
=
"https://hm.baidu.com/hm.js?8f5214f3a0f80a33eb32a0f890167cc1"
;
document
.
body
.
append
(
hm
,
hm1
)
document
.
body
.
append
(
hm
,
hm1
)
}
}
},
1000
);
</script>
</script>
</body>
</body>
...
...
vue3-lw-pc/public/static/css/common.css
View file @
de79612
...
@@ -68,15 +68,19 @@ li {
...
@@ -68,15 +68,19 @@ li {
flex
:
none
!important
;
flex
:
none
!important
;
}
}
.ais
{
.ais
{
display
:
flex
;
align-items
:
stretch
!important
;
align-items
:
stretch
!important
;
}
}
.ait
{
.ait
{
display
:
flex
;
align-items
:
flex-start
!important
;
align-items
:
flex-start
!important
;
}
}
.aic
{
.aic
{
display
:
flex
;
align-items
:
center
!important
;
align-items
:
center
!important
;
}
}
.flwrap
{
.flwrap
{
display
:
flex
;
flex-flow
:
wrap
!important
;
flex-flow
:
wrap
!important
;
}
}
.fxbw
{
.fxbw
{
...
@@ -89,9 +93,9 @@ li {
...
@@ -89,9 +93,9 @@ li {
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.fxc
lo
{
.fxc
ol
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
!important
;
}
}
.gap10
{
.gap10
{
display
:
flex
;
display
:
flex
;
...
@@ -293,6 +297,10 @@ li {
...
@@ -293,6 +297,10 @@ li {
height
:
100%
!important
;
height
:
100%
!important
;
}
}
.block
{
display
:
block
!important
;
}
/* bfc模型 / 闭合清楚浮动 */
/* bfc模型 / 闭合清楚浮动 */
.bfc-o
{
.bfc-o
{
overflow
:
hidden
;
overflow
:
hidden
;
...
...
vue3-lw-pc/public/static/css/loading.css
View file @
de79612
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
top
:
0
;
top
:
0
;
width
:
50%
;
width
:
50%
;
height
:
100%
;
height
:
100%
;
background
:
#07c160
;
background
:
var
(
--color
,
#07c160
)
;
z-index
:
1000
;
z-index
:
1000
;
transform
:
translateX
(
0
);
transform
:
translateX
(
0
);
}
}
...
...
vue3-lw-pc/src/api/common.js
View file @
de79612
...
@@ -5,9 +5,14 @@
...
@@ -5,9 +5,14 @@
// /**
// /**
// * 列表
// * 列表
// * @param {*} data
// * @param {*} data
// {
// pageNum:
// pageSize:
// type:''
// }
// */
// */
// export function getList(data) {
// export function getList(data) {
// return get(`${serve}/get
/${id}
`)
// return get(`${serve}/get`)
// }
// }
// // 详情
// // 详情
...
...
vue3-lw-pc/src/components/DateSearchChartTable.vue
View file @
de79612
...
@@ -90,7 +90,7 @@ export default {
...
@@ -90,7 +90,7 @@ export default {
timeRange
:
7
,
timeRange
:
7
,
total
:
0
,
total
:
0
,
// 表格数据
// 表格
列表数据,或图表的series
数据
data
:
[],
data
:
[],
xData
:
[],
xData
:
[],
// 日期范围
// 日期范围
...
@@ -172,6 +172,7 @@ export default {
...
@@ -172,6 +172,7 @@ export default {
this
.
total
=
+
total
this
.
total
=
+
total
}
else
{
}
else
{
// 自定义echarts图表数据处理
// 自定义echarts图表数据处理
// this.data = data
this
.
dealDataFun
&&
this
.
dealDataFun
(
data
,
this
.
data
,
this
.
xData
)
this
.
dealDataFun
&&
this
.
dealDataFun
(
data
,
this
.
data
,
this
.
xData
)
}
}
})
})
...
...
vue3-lw-pc/src/components/TagEllipsis.vue
View file @
de79612
...
@@ -34,6 +34,7 @@ export default {
...
@@ -34,6 +34,7 @@ export default {
// 可传入 el-tag 的props
// 可传入 el-tag 的props
this
.
elTagProps
=
Object
.
assign
({},
this
.
$attrs
)
this
.
elTagProps
=
Object
.
assign
({},
this
.
$attrs
)
delete
this
.
elTagProps
.
style
delete
this
.
elTagProps
.
style
delete
this
.
elTagProps
.
class
},
},
mounted
()
{},
mounted
()
{},
methods
:
{},
methods
:
{},
...
@@ -44,21 +45,21 @@ export default {
...
@@ -44,21 +45,21 @@ export default {
<div
class=
"tag-ellipsis"
v-if=
"_list?.length || emptyText"
>
<div
class=
"tag-ellipsis"
v-if=
"_list?.length || emptyText"
>
<div
v-if=
"!_list?.length"
>
{{
emptyText
}}
</div>
<div
v-if=
"!_list?.length"
>
{{
emptyText
}}
</div>
<
template
v-else-if=
"_list.length
<
= +limit">
<
div
class=
"tags"
v-else-if=
"_list.length
<
= +limit">
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list"
:key=
"unique"
>
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list"
:key=
"unique"
>
{{
item
[
defaultProps
]
||
item
}}
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
</el-tag>
</
template
>
</
div
>
<el-popover
v-else
placement=
"bottom"
trigger=
"hover"
>
<el-popover
v-else
placement=
"bottom"
trigger=
"hover"
>
<!-- 插入到body,这里用css scoped calss无效,需使用style-->
<!-- 插入到body,这里用css scoped calss无效,需使用style-->
<div
class=
"tag
-all
"
style=
"display: flex; flex-wrap: wrap; gap: 10px"
>
<div
class=
"tag
s
"
style=
"display: flex; flex-wrap: wrap; gap: 10px"
>
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list"
:key=
"unique"
style=
"margin: 0"
>
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list"
:key=
"unique"
style=
"margin: 0"
>
{{
item
[
defaultProps
]
||
item
}}
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
</el-tag>
</div>
</div>
<template
#
reference
>
<template
#
reference
>
<div>
<div
class=
"tags"
>
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list.slice(0, +limit)"
:key=
"unique"
>
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list.slice(0, +limit)"
:key=
"unique"
>
{{
item
[
defaultProps
]
||
item
}}
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
</el-tag>
...
@@ -72,17 +73,14 @@ export default {
...
@@ -72,17 +73,14 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.tag-ellipsis
{
.tag-ellipsis
{
display
:
inline-block
;
display
:
inline-block
;
line-height
:
34px
;
//
line-height
:
34px
;
.el-tag
{
.tags
{
vertical-align
:
middle
;
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
10px
;
.el-tag
{
margin
:
0
;
}
}
}
//
.tag-all
{
//
display
:
flex
;
//
flex-wrap
:
wrap
;
//
gap
:
10px
;
//
.el-tag
{
//
margin
:
0
;
//
}
//
}
}
}
</
style
>
</
style
>
vue3-lw-pc/src/components/Upload.vue
View file @
de79612
...
@@ -34,7 +34,7 @@ export default {
...
@@ -34,7 +34,7 @@ export default {
},
},
imgSize
:
{
imgSize
:
{
type
:
Number
,
type
:
Number
,
default
:
''
,
default
:
undefined
,
},
},
// 多文件上传时使用,例如: [{name: 'food.jpg', url: 'https://xxx.cdn.com/xxx.jpg'}]
// 多文件上传时使用,例如: [{name: 'food.jpg', url: 'https://xxx.cdn.com/xxx.jpg'}]
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
// 图片的宽高像素限制 [width(number), height(number)],默认null不限制
// 图片的宽高像素限制 [width(number), height(number)],默认null不限制
maxImgPx
:
{
maxImgPx
:
{
type
:
Array
,
type
:
Array
,
default
:
[
1024
,
1024
],
// () => [100, 100]
default
:
()
=>
[
1024
,
1024
],
// () => [100, 100]
},
},
// 允许上传的文件格式后缀名 eg:["jpg", "png"],['*']为不限制,各类型有默认限制 参见: formatDefault
// 允许上传的文件格式后缀名 eg:["jpg", "png"],['*']为不限制,各类型有默认限制 参见: formatDefault
format
:
{
format
:
{
...
@@ -79,7 +79,7 @@ export default {
...
@@ -79,7 +79,7 @@ export default {
},
},
// multiple为true时有效,最多上传几个,默认不限制,最小为1
// multiple为true时有效,最多上传几个,默认不限制,最小为1
limit
:
{
limit
:
{
type
:
Number
,
type
:
[
Number
,
String
]
,
default
:
undefined
,
default
:
undefined
,
},
},
// onProgress: {
// onProgress: {
...
...
vue3-lw-pc/src/layout/components/TopBar/index.vue
View file @
de79612
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
</div>
</div>
<el-drawer
v-model=
"setting"
title=
"主题设置"
size=
"300px"
:modal=
"false"
>
<el-drawer
v-model=
"setting"
title=
"主题设置"
size=
"300px"
:modal=
"false"
>
<settings
/>
<settings
v-if=
"setting"
/>
</el-drawer>
</el-drawer>
<el-popover
placement=
"left"
title=
""
trigger=
"hover"
>
<el-popover
placement=
"left"
title=
""
trigger=
"hover"
>
...
...
vue3-lw-pc/src/styles/element-ui.scss
View file @
de79612
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
border-radius
:
var
(
--
border-radius-small
);
border-radius
:
var
(
--
border-radius-small
);
}
}
.el-button.is-text
{
.el-button.is-text
{
color
:
var
(
--
color
);
// padding: 2px;
// padding: 2px;
padding-left
:
0
;
padding-left
:
0
;
padding-right
:
0
;
padding-right
:
0
;
...
@@ -54,6 +53,9 @@
...
@@ -54,6 +53,9 @@
background-clip
:
content-box
;
background-clip
:
content-box
;
outline
:
0
!
important
;
outline
:
0
!
important
;
}
}
.el-button.is-text
:not
([
class
*=
'el-button--'
])
{
--el-button-text-color
:
var
(
--
color
);
}
/* 定义 type 为 cyan 的按钮 */
/* 定义 type 为 cyan 的按钮 */
.el-button--cyan.is-active
,
.el-button--cyan.is-active
,
.el-button--cyan
:active
{
.el-button--cyan
:active
{
...
...
vue3-lw-pc/src/views/intelligentShortLink/addEdit.vue
View file @
de79612
...
@@ -80,17 +80,20 @@ export default {
...
@@ -80,17 +80,20 @@ export default {
})
})
},
},
download
()
{
download
()
{
let
canvas
=
document
.
createElement
(
'canvas'
)
let
canvas
=
this
.
$refs
.
canvas
||
document
.
createElement
(
'canvas'
)
canvas
.
width
=
'200'
canvas
.
height
=
'200'
this
.
$refs
.
qrCode
.
setAttribute
(
'crossOrigin'
,
'anonymous'
)
this
.
$refs
.
qrCode
.
setAttribute
(
'crossOrigin'
,
'anonymous'
)
canvas
.
getContext
(
'2d'
).
drawImage
(
this
.
$refs
.
qrCode
,
0
,
0
)
canvas
.
getContext
(
'2d'
).
drawImage
(
this
.
$refs
.
qrCode
,
0
,
0
,
200
,
200
)
canvas
.
toBlob
((
blob
)
=>
{
canvas
.
toBlob
((
blob
)
=>
{
let
url
=
URL
.
createObjectURL
(
blob
)
let
url
=
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
href
=
link
.
download
=
url
link
.
href
=
url
link
.
download
=
'短链二维码.png'
link
.
click
()
link
.
click
()
link
.
remove
()
link
.
remove
()
URL
.
revokeObjectURL
(
url
)
URL
.
revokeObjectURL
(
url
)
})
}
,
'image/png'
)
},
},
},
},
}
}
...
@@ -157,7 +160,7 @@ export default {
...
@@ -157,7 +160,7 @@ export default {
<div
class=
"g-card"
style=
"background: var(--bg-black-9); width: 50%; margin: 30px auto"
>
<div
class=
"g-card"
style=
"background: var(--bg-black-9); width: 50%; margin: 30px auto"
>
<span>
{{ data.shortUrl }}
</span>
<span>
{{ data.shortUrl }}
</span>
</div>
</div>
<img
ref=
"qrCode"
style=
"width: 1
30px; height: 13
0px"
:src=
"data.qrCode"
fit=
"fill"
crossOrigin=
"anonymous"
/>
<img
ref=
"qrCode"
style=
"width: 1
80px; height: 18
0px"
:src=
"data.qrCode"
fit=
"fill"
crossOrigin=
"anonymous"
/>
<div>
<div>
<el-button
text
class=
"copy-btn"
:data-clipboard-text=
"data.shortUrl"
>
复制链接
</el-button>
<el-button
text
class=
"copy-btn"
:data-clipboard-text=
"data.shortUrl"
>
复制链接
</el-button>
<el-button
text
@
click=
"download()"
>
下载二维码
</el-button>
<el-button
text
@
click=
"download()"
>
下载二维码
</el-button>
...
...
vue3-lw-pc/vite.config.js
View file @
de79612
...
@@ -245,6 +245,12 @@ export default defineConfig(async ({ command, mode }) => {
...
@@ -245,6 +245,12 @@ export default defineConfig(async ({ command, mode }) => {
var
:
'OSS'
,
var
:
'OSS'
,
path
:
'https://gosspublic.alicdn.com/aliyun-oss-sdk-6.17.1.min.js'
,
path
:
'https://gosspublic.alicdn.com/aliyun-oss-sdk-6.17.1.min.js'
,
},
},
{
name
:
'echarts'
,
var
:
'echarts'
,
version
:
'5.4.2'
,
path
:
'echarts.min.js'
,
},
],
],
}),
}),
rollupPluginVisualizer
({
rollupPluginVisualizer
({
...
...
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