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 6ee77cda
authored
Sep 01, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加配置项:IS_LINKWECHAT -- 是否显示linkwechat开源相关业务组件
1 parent
0d5b38f9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
vue3-lw-pc/src/config.js
vue3-lw-pc/src/layout/components/Sidebar/index.vue
vue3-lw-pc/src/layout/components/TopBar/index.vue
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/src/views/login.vue
vue3-lw-pc/src/config.js
View file @
6ee77cd
...
@@ -19,7 +19,6 @@ const common = {
...
@@ -19,7 +19,6 @@ const common = {
POST_QRCODE
:
env
.
BASE_URL
+
'static/POST_QRCODE.png'
,
// 海报占位二维码
POST_QRCODE
:
env
.
BASE_URL
+
'static/POST_QRCODE.png'
,
// 海报占位二维码
AGREEMENT
:
env
.
BASE_URL
+
'static/AGREEMENT.pdf'
,
// 用户协议pdf
AGREEMENT
:
env
.
BASE_URL
+
'static/AGREEMENT.pdf'
,
// 用户协议pdf
PRIVACY
:
env
.
BASE_URL
+
'static/PRIVACY.pdf'
,
// 隐私协议pdf
PRIVACY
:
env
.
BASE_URL
+
'static/PRIVACY.pdf'
,
// 隐私协议pdf
IS_PUBLISH_DIALOG
:
false
,
// 是否显示发布弹窗
COOKIEEXPIRES
:
0.5
,
// token在Cookie中存储的天数,默认0.5天
COOKIEEXPIRES
:
0.5
,
// token在Cookie中存储的天数,默认0.5天
WORK_WEIXIN_CONFIG_ROUTE_NAME
:
'EnterpriseWechat'
,
// 企业微信设置页面路由名称, 用于router 通过name判断与跳转,避免使用path不易于扩展
WORK_WEIXIN_CONFIG_ROUTE_NAME
:
'EnterpriseWechat'
,
// 企业微信设置页面路由名称, 用于router 通过name判断与跳转,避免使用path不易于扩展
CUSTOMER_DETAIL_ROUTE_NAME
:
'customerDetail'
,
// 客户详情页面路由name,同上
CUSTOMER_DETAIL_ROUTE_NAME
:
'customerDetail'
,
// 客户详情页面路由name,同上
...
@@ -33,6 +32,8 @@ const common = {
...
@@ -33,6 +32,8 @@ const common = {
PRIVIEW_URL
:
env
.
VIEW_URL
,
PRIVIEW_URL
:
env
.
VIEW_URL
,
PRIVIEW_PATH
:
window
.
location
.
origin
+
'/mobile/#/metrialDetail?materiaId='
,
PRIVIEW_PATH
:
window
.
location
.
origin
+
'/mobile/#/metrialDetail?materiaId='
,
BAIDU_MAP_KEY
:
'6fZIymhpgfnAHUT1baHeEF922lPIThOG'
,
// 百度地图key
BAIDU_MAP_KEY
:
'6fZIymhpgfnAHUT1baHeEF922lPIThOG'
,
// 百度地图key
IS_PUBLISH_DIALOG
:
false
,
// 是否显示发布弹窗
IS_LINKWECHAT
:
true
,
// 是否显示linkwechat开源相关业务组件
MICRO_APPS
:
{
MICRO_APPS
:
{
store
:
{
store
:
{
...
...
vue3-lw-pc/src/layout/components/Sidebar/index.vue
View file @
6ee77cd
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</el-menu>
</el-menu>
</el-scrollbar>
</el-scrollbar>
<div
class=
"card"
>
<div
class=
"card"
v-if=
"lwConfig.IS_LINKWECHAT"
>
<el-tooltip
content=
"文档手册"
effect=
"dark"
placement=
"top"
>
<el-tooltip
content=
"文档手册"
effect=
"dark"
placement=
"top"
>
<div
class=
"card-item"
>
<div
class=
"card-item"
>
<svg-icon
<svg-icon
...
...
vue3-lw-pc/src/layout/components/TopBar/index.vue
View file @
6ee77cd
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<settings
v-if=
"setting"
/>
<settings
v-if=
"setting"
/>
</el-drawer>
</el-drawer>
<el-popover
placement=
"left"
title=
""
trigger=
"hover"
>
<el-popover
v-if=
"lwConfig.IS_LINKWECHAT"
placement=
"left"
title=
""
trigger=
"hover"
>
<
template
#
reference
>
<
template
#
reference
>
<div
class=
"contact-us"
>
<div
class=
"contact-us"
>
<svg-icon
class=
"contact-us-icon cc"
icon=
"wechat"
/>
<svg-icon
class=
"contact-us-icon cc"
icon=
"wechat"
/>
...
...
vue3-lw-pc/src/views/index/index.vue
View file @
6ee77cd
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<!-- 右侧 -->
<!-- 右侧 -->
<div
class=
"index-r"
>
<div
class=
"index-r"
>
<div
class=
"content-right"
>
<div
class=
"content-right"
>
<div
class=
"g-card inedx-r-top"
>
<div
class=
"g-card inedx-r-top"
v-if=
"lwConfig.IS_LINKWECHAT"
>
<div
class=
"companyName"
>
{{ $store.user.companyName }}
</div>
<div
class=
"companyName"
>
{{ $store.user.companyName }}
</div>
<div
class=
"info"
>
<div
class=
"info"
>
当前版本:
当前版本:
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
</div>
</div>
<!-- 帮助中心 -->
<!-- 帮助中心 -->
<div
class=
"g-card help-center"
>
<div
class=
"g-card help-center"
v-if=
"lwConfig.IS_LINKWECHAT"
>
<div
class=
"g-card-title fxbw"
>
<div
class=
"g-card-title fxbw"
>
<span>
帮助中心
</span>
<span>
帮助中心
</span>
<a
<a
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
dynamicsFrom
:
{
dynamicsFrom
:
{
trajectoryType
:
''
,
trajectoryType
:
''
,
// dataScope: false,
// dataScope: false,
pageSize
:
5
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
,
},
},
dialogTitle
:
''
,
dialogTitle
:
''
,
...
...
vue3-lw-pc/src/views/login.vue
View file @
6ee77cd
...
@@ -41,10 +41,12 @@
...
@@ -41,10 +41,12 @@
<img
class=
"login-code-img ml10"
:src=
"codeUrl"
@
click=
"getCode"
/>
<img
class=
"login-code-img ml10"
:src=
"codeUrl"
@
click=
"getCode"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-checkbox
class=
"g-margin-b"
v-model=
"isDemonstrationLogin"
@
change=
"changeDemonAccount"
>
<div
class=
"fxbw g-margin-b"
>
<el-checkbox
v-if=
"lwConfig.IS_LINKWECHAT"
v-model=
"isDemonstrationLogin"
@
change=
"changeDemonAccount"
>
演示账号登录
演示账号登录
</el-checkbox>
</el-checkbox>
<el-checkbox
class=
"fr"
v-model=
"loginForm.rememberMe"
>
记住密码
</el-checkbox>
<el-checkbox
class=
"fr"
v-model=
"loginForm.rememberMe"
>
记住密码
</el-checkbox>
</div>
<el-form-item>
<el-form-item>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width: 100%"
@
click
.
prevent=
"handleLogin"
>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width: 100%"
@
click
.
prevent=
"handleLogin"
>
<span
v-if=
"!loading"
>
登 录
</span>
<span
v-if=
"!loading"
>
登 录
</span>
...
...
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