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 c5243f6b
authored
Aug 07, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务包修改优化
1 parent
8de16a2c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
17 deletions
vue3-lw-pc/src/views/index/components/ServeDialog.vue → vue3-lw-pc/src/layout/components/Sidebar/ServeDialog/index.vue
vue3-lw-pc/src/views/index/asstes/serveDialogBg.png → vue3-lw-pc/src/layout/components/Sidebar/ServeDialog/serveDialogBg.png
vue3-lw-pc/src/views/index/asstes/svip.png → vue3-lw-pc/src/layout/components/Sidebar/ServeDialog/svip.png
vue3-lw-pc/src/views/index/asstes/vip.png → vue3-lw-pc/src/layout/components/Sidebar/ServeDialog/vip.png
vue3-lw-pc/src/layout/components/Sidebar/index.vue
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/src/
views/index/components/ServeDialog
.vue
→
vue3-lw-pc/src/
layout/components/Sidebar/ServeDialog/index
.vue
View file @
c5243f6
<
script
setup
>
<
script
setup
>
import
{
reactive
}
from
'vue'
import
{
reactive
}
from
'vue'
let
$data
s
=
reactive
({
let
$data
=
reactive
({
dialogVisible
:
true
,
dialogVisible
:
localStorage
.
serveDialogVisible
!==
'false'
,
activeIndex
:
0
,
activeIndex
:
0
,
list
:
[
list
:
[
{
{
...
@@ -10,21 +10,30 @@ let $datas = reactive({
...
@@ -10,21 +10,30 @@ let $datas = reactive({
priceNow
:
'299'
,
priceNow
:
'299'
,
priceOrigin
:
'499'
,
priceOrigin
:
'499'
,
desc
:
'专属团队 极速响应'
,
desc
:
'专属团队 极速响应'
,
img
:
new
URL
(
'.
./asstes
/vip.png'
,
import
.
meta
.
url
).
href
,
img
:
new
URL
(
'./vip.png'
,
import
.
meta
.
url
).
href
,
},
},
{
{
title
:
'开源尊享服务包'
,
title
:
'开源尊享服务包'
,
priceNow
:
'899'
,
priceNow
:
'899'
,
priceOrigin
:
'1299'
,
priceOrigin
:
'1299'
,
desc
:
'快速部署 服务升级'
,
desc
:
'快速部署 服务升级'
,
img
:
new
URL
(
'.
./asstes
/svip.png'
,
import
.
meta
.
url
).
href
,
img
:
new
URL
(
'./svip.png'
,
import
.
meta
.
url
).
href
,
},
},
],
],
})
})
function
close
()
{
localStorage
.
serveDialogVisible
=
$data
.
dialogVisible
=
false
}
defineExpose
({
$data
,
})
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"mask"
v-if=
"$datas.dialogVisible"
@
click
.
self=
"$datas.dialogVisible = false"
>
<transition
name=
"el-fade-in-linear"
>
<div
class=
"mask"
v-show=
"$data.dialogVisible"
@
click
.
self=
"close"
>
<div
class=
"serveDialog cc"
>
<div
class=
"serveDialog cc"
>
<div
class=
"top"
>
<div
class=
"top"
>
<div
class=
"top-desc"
>
更轻便、更灵活、更专业
</div>
<div
class=
"top-desc"
>
更轻便、更灵活、更专业
</div>
...
@@ -36,10 +45,10 @@ let $datas = reactive({
...
@@ -36,10 +45,10 @@ let $datas = reactive({
</div>
</div>
<div
class=
"main"
>
<div
class=
"main"
>
<div
<div
v-for=
"(item, index) in $datas
.list"
v-for=
"(item, index) in $data
.list"
:key=
"index"
:key=
"index"
:class=
"['card cp', index == 1 && 'svip', index == $datas
.activeIndex && 'active']"
:class=
"['card cp', index == 1 && 'svip', index == $data
.activeIndex && 'active']"
@
click=
"$datas
.activeIndex = index"
>
@
click=
"$data
.activeIndex = index"
>
<div
class=
"cardTitle"
>
{{
item
.
title
}}
</div>
<div
class=
"cardTitle"
>
{{
item
.
title
}}
</div>
<div
class=
"cardPrice mt5"
>
<div
class=
"cardPrice mt5"
>
<span
class=
"priceUnit"
>
¥
</span>
<span
class=
"priceUnit"
>
¥
</span>
...
@@ -50,11 +59,11 @@ let $datas = reactive({
...
@@ -50,11 +59,11 @@ let $datas = reactive({
<div
class=
"cardDesc mt5"
>
{{
item
.
desc
}}
</div>
<div
class=
"cardDesc mt5"
>
{{
item
.
desc
}}
</div>
</div>
</div>
<template
v-for=
"(item, index) in $datas
.list"
:key=
"index"
>
<template
v-for=
"(item, index) in $data
.list"
:key=
"index"
>
<img
v-show=
"index == $datas
.activeIndex"
class=
"mainImg"
:src=
"item.img"
alt=
""
/>
<img
v-show=
"index == $data
.activeIndex"
class=
"mainImg"
:src=
"item.img"
alt=
""
/>
</
template
>
</
template
>
<div
class=
"bottom"
ref=
"bottom"
:style=
"{ '--color': $datas
.activeIndex == 0 ? '#07c160' : '#7e5d25' }"
>
<div
class=
"bottom"
ref=
"bottom"
:style=
"{ '--color': $data
.activeIndex == 0 ? '#07c160' : '#7e5d25' }"
>
<img
class=
"qrcode"
:src=
"lwConfig.QRCODE_CUSTOMER_SERVICE"
alt=
""
/>
<img
class=
"qrcode"
:src=
"lwConfig.QRCODE_CUSTOMER_SERVICE"
alt=
""
/>
<div>
<div>
<div>
<div>
...
@@ -89,6 +98,7 @@ let $datas = reactive({
...
@@ -89,6 +98,7 @@ let $datas = reactive({
</div>
</div>
</div>
</div>
</div>
</div>
</transition>
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -98,7 +108,7 @@ let $datas = reactive({
...
@@ -98,7 +108,7 @@ let $datas = reactive({
.serveDialog
{
.serveDialog
{
width
:
800px
;
width
:
800px
;
height
:
668px
;
height
:
668px
;
background
:
url(.
./asstes
/serveDialogBg.png)
100%
;
background
:
url(./serveDialogBg.png)
100%
;
.top
{
.top
{
width
:
455px
;
width
:
455px
;
...
...
vue3-lw-pc/src/
views/index/asstes
/serveDialogBg.png
→
vue3-lw-pc/src/
layout/components/Sidebar/ServeDialog
/serveDialogBg.png
View file @
c5243f6
61.9 KB
vue3-lw-pc/src/
views/index/asstes
/svip.png
→
vue3-lw-pc/src/
layout/components/Sidebar/ServeDialog
/svip.png
View file @
c5243f6
142 KB
vue3-lw-pc/src/
views/index/asstes
/vip.png
→
vue3-lw-pc/src/
layout/components/Sidebar/ServeDialog
/vip.png
View file @
c5243f6
120 KB
vue3-lw-pc/src/layout/components/Sidebar/index.vue
View file @
c5243f6
<!-- 服务包弹窗 -->
<
template
>
<
template
>
<div
class=
"sidebar-container"
>
<div
class=
"sidebar-container"
>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
...
@@ -16,6 +17,15 @@
...
@@ -16,6 +17,15 @@
</el-menu>
</el-menu>
</el-scrollbar>
</el-scrollbar>
<div
class=
"serve-card"
@
click=
"$refs.serveDialog.$data.dialogVisible = true"
>
LinkWeChat
<br
/>
官方服务包
<br
/>
正式上线啦!
</div>
<ServeDialog
ref=
"serveDialog"
/>
<div
class=
"card"
>
<div
class=
"card"
>
<el-tooltip
content=
"文档手册"
effect=
"dark"
placement=
"top"
>
<el-tooltip
content=
"文档手册"
effect=
"dark"
placement=
"top"
>
<div
class=
"card-item"
>
<div
class=
"card-item"
>
...
@@ -73,9 +83,10 @@ import { mapState } from 'pinia'
...
@@ -73,9 +83,10 @@ import { mapState } from 'pinia'
import
stores
from
'@/stores'
import
stores
from
'@/stores'
import
SidebarItem
from
'./SidebarItem'
import
SidebarItem
from
'./SidebarItem'
import
ServeDialog
from
'./ServeDialog'
export
default
{
export
default
{
components
:
{
SidebarItem
},
components
:
{
SidebarItem
,
ServeDialog
},
computed
:
{
computed
:
{
// ...mapState(['settings']),
// ...mapState(['settings']),
...
mapState
(
stores
,
[
'permission_routes'
,
'sidebarRouters'
,
'sidebar'
]),
...
mapState
(
stores
,
[
'permission_routes'
,
'sidebarRouters'
,
'sidebar'
]),
...
@@ -95,6 +106,11 @@ export default {
...
@@ -95,6 +106,11 @@ export default {
return
false
return
false
},
},
},
},
// mounted() {
// this.$nextTick(() => {
// console.log(this.$refs.serveDialog)
// })
// },
methods
:
{
methods
:
{
goto
(
url
)
{
goto
(
url
)
{
window
.
open
(
url
)
window
.
open
(
url
)
...
@@ -250,6 +266,17 @@ export default {
...
@@ -250,6 +266,17 @@ export default {
}
}
}
}
.serve-card
{
margin
:
0
24px
24px
;
padding
:
15px
;
cursor
:
pointer
;
font-weight
:
500
;
line-height
:
20px
;
text-align
:
center
;
color
:
var
(
--color
);
background
:
var
(
--color-light-9
);
border-radius
:
var
(
--border-radius
);
}
.card
{
.card
{
//
color
:
var
(
--font-white
,
#fff
);
//
color
:
var
(
--font-white
,
#fff
);
//
padding
:
20px
;
//
padding
:
20px
;
...
...
vue3-lw-pc/src/views/index/index.vue
View file @
c5243f6
...
@@ -164,8 +164,6 @@
...
@@ -164,8 +164,6 @@
</div>
</div>
<Dynamics
v-else
/>
<Dynamics
v-else
/>
</el-dialog>
</el-dialog>
<ServeDialog
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -174,14 +172,12 @@ import * as api from '@/api/index'
...
@@ -174,14 +172,12 @@ import * as api from '@/api/index'
// import { getCustomerServiceQrUrl } from '@/api/login'
// import { getCustomerServiceQrUrl } from '@/api/login'
import
{
CountTo
}
from
'vue3-count-to'
import
{
CountTo
}
from
'vue3-count-to'
import
bgSvg
from
'./asstes/bg.svg?raw'
import
bgSvg
from
'./asstes/bg.svg?raw'
import
ServeDialog
from
'./components/ServeDialog'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
components
:
{
components
:
{
CountTo
,
CountTo
,
Dynamics
:
defineAsyncComponent
(()
=>
import
(
'./components/dynamics'
)),
Dynamics
:
defineAsyncComponent
(()
=>
import
(
'./components/dynamics'
)),
TabContent
:
defineAsyncComponent
(()
=>
import
(
'./components/TabContent'
)),
TabContent
:
defineAsyncComponent
(()
=>
import
(
'./components/TabContent'
)),
ServeDialog
,
},
},
data
()
{
data
()
{
return
{
return
{
...
...
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