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 defbf35c
authored
Apr 21, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pc 手机预览手机背景统一,滚动条统一为hover显示等
1 parent
0d7a373f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
79 deletions
linkwe-pc/src/components/PhoneDialog.vue
linkwe-pc/src/components/PhoneTemplate.vue
linkwe-pc/src/styles/index.scss
linkwe-pc/src/views/drainageCode/smartForms/add.vue
linkwe-pc/src/components/PhoneDialog.vue
View file @
defbf35
...
@@ -31,83 +31,53 @@ export default {
...
@@ -31,83 +31,53 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"preview ac"
>
<PhoneTemplate>
<div
class=
"top"
>
小微
</div>
<div
class=
"time"
>
13:14
</div>
<div
class=
"small"
>
{{
lwConfig
.
COMPANY_NAME
||
'仟微科技'
}}
-企微
</div>
<div
class=
"time"
>
凌晨2:20
</div>
<ul
class=
"msg-ul"
>
<ul
class=
"msg-ul"
>
<li
class=
"flex msg-li"
>
<li
class=
"flex msg-li"
>
<el-avatar
<el-avatar
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
<div
class=
"msg"
>
{{
message
}}
</div>
<div
class=
"msg"
>
{{
message
}}
</div>
</li>
</li>
<li
class=
"flex msg-li"
v-if=
"isOther"
>
<li
class=
"flex msg-li"
v-if=
"isOther"
>
<el-avatar
<el-avatar
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
<div
class=
"msg"
style=
"line-height: 0; padding: 5px"
>
<div
class=
"msg"
style=
"line-height: 0; padding: 5px"
>
<slot></slot>
<slot></slot>
</div>
</div>
</li>
</li>
<li
class=
"flex msg-li"
v-for=
"message in messageList"
:key=
"message"
>
<li
class=
"flex msg-li"
v-for=
"message in messageList"
:key=
"message"
>
<el-avatar
<el-avatar
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
<div
class=
"msg"
>
<div
class=
"msg"
>
<slot
name=
"text"
v-bind:text=
"message"
></slot>
<slot
name=
"text"
v-bind:text=
"message"
></slot>
</div>
</div>
</li>
</li>
<li
class=
"flex msg-li"
v-for=
"image in imageList"
:key=
"image"
>
<li
class=
"flex msg-li"
v-for=
"image in imageList"
:key=
"image"
>
<el-avatar
<el-avatar
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
<div
class=
"msg"
style=
"line-height: 0; padding: 5px"
>
<div
class=
"msg"
style=
"line-height: 0; padding: 5px"
>
<slot
name=
"image"
v-bind:image=
"image"
></slot>
<slot
name=
"image"
v-bind:image=
"image"
></slot>
</div>
</div>
</li>
</li>
</ul>
</ul>
</
div
>
</
PhoneTemplate
>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.preview
{
.time
{
width
:
219px
;
height
:
361px
;
background
:
#f5f5f5
;
border-radius
:
4px
;
padding
:
15px
10px
;
line-height
:
1.25
;
.top
{
font-weight
:
600
;
}
.small
{
font-size
:
10px
;
}
.time
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#aaa
;
color
:
#aaa
;
transform
:
scale
(
0.8
);
padding
:
10px
0
5px
;
padding
:
10px
0
5px
;
}
text-align
:
center
;
.msg-ul
{
}
.msg-ul
{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
max-height
:
80%
;
max-height
:
80%
;
overflow
:
auto
;
overflow
:
auto
;
}
padding
:
0
10px
;
.msg-li
{
}
.msg-li
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.msg
{
.msg
{
min-height
:
28px
;
min-height
:
28px
;
background-color
:
#fff
;
background-color
:
#fff
;
border
:
1px
solid
#e4e6e9
;
border
:
1px
solid
#e4e6e9
;
...
@@ -138,7 +108,6 @@ export default {
...
@@ -138,7 +108,6 @@ export default {
top
:
10px
;
top
:
10px
;
z-index
:
888
;
z-index
:
888
;
}
}
}
}
}
.el-avatar
{
.el-avatar
{
flex
:
none
;
flex
:
none
;
...
...
linkwe-pc/src/components/PhoneTemplate.vue
View file @
defbf35
// 手机端背景框组件
<
template
>
<
template
>
<div
class=
"preview"
>
<div
class=
"preview"
>
<div
class=
"preview-title"
>
{{
title
}}
</div>
<div
class=
"line"
></div>
<div
class=
"preview-content"
>
<div
class=
"preview-bar"
v-if=
"isTab"
>
<slot
/>
<i
class=
"el-icon-arrow-left"
></i>
{{
title
}}
<i
class=
"el-icon-more"
></i>
</div>
</div>
<el-scrollbar
class=
"preview-content"
wrap-class=
"scrollbar-wrapper"
>
<template>
<slot
/>
<!--
<div
class=
"bottom"
>
看到底啦~
</div>
-->
</
template
>
</el-scrollbar>
<div
class=
"line2"
></div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
components
:
{},
components
:
{},
props
:
{
props
:
{
isTab
:
{
type
:
Boolean
,
default
:
true
,
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'
小微
'
,
default
:
'
LinkWeChat
'
,
},
},
},
},
data
()
{
data
()
{
...
@@ -26,32 +40,84 @@ export default {
...
@@ -26,32 +40,84 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.preview
{
.preview
{
display
:
flex
;
flex-direction
:
column
;
margin
:
0
auto
;
margin
:
0
auto
;
padding
:
0
10px
;
position
:
relative
;
position
:
relative
;
width
:
375px
;
width
:
var
(
--phone-width
);
height
:
800px
;
max-width
:
375px
;
background
:
url(../assets/drainageCode/preview-bg.png)
;
min-width
:
320px
;
background-repeat
:
no-repeat
;
height
:
820px
;
background-size
:
100%
100%
;
border
:
15px
solid
#ddd
;
border-radius
:
40px
;
.preview-title
{
box-sizing
:
content-box
;
overflow
:
hidden
;
background
:
#fff
;
.line
{
flex
:
none
;
width
:
65px
;
height
:
6px
;
margin
:
0
auto
6px
;
border-radius
:
0
0
50px
50px
;
background
:
#eee
;
border
:
10px
solid
#333
;
box-sizing
:
content-box
;
border-width
:
13px
62px
;
}
.line2
{
position
:
absolute
;
position
:
absolute
;
top
:
55px
;
width
:
120px
;
height
:
5px
;
bottom
:
0
;
left
:
50%
;
left
:
50%
;
margin
:
15px
auto
;
border-radius
:
10px
;
background
:
#bbb
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
z-index
:
10
;
}
.preview-bar
{
//
position
:
absolute
;
//
top
:
40px
;
//
left
:
50%
;
//
transform
:
translateX
(
-50%
);
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
0
10px
;
height
:
40px
;
width
:
100%
;
flex
:
none
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
4
00
;
font-weight
:
5
00
;
color
:
#333333
;
color
:
#333333
;
}
}
.preview-content
{
.preview-content
{
position
:
relative
;
position
:
relative
;
height
:
calc
(
100%
-
120px
);
flex
:
auto
;
overflow-y
:
auto
;
overflow
:
hidden
;
top
:
88px
;
top
:
0
;
border-bottom-left-radius
:
20px
;
//
left
:
50%
;
border-bottom-right-radius
:
20px
;
//
transform
:
translateX
(
-50%
);
border-radius
:
0
0
20px
20px
;
background
:
#f8f8f8
;
}
::v-deep
{
.el-scrollbar__wrap
{
overflow-x
:
hidden
;
}
.el-scrollbar__bar
{
transform
:
scale
(
1
);
}
}
.bottom
{
padding
:
15px
0
20px
;
line-height
:
1
;
color
:
#999
;
text-align
:
center
;
}
}
}
}
</
style
>
</
style
>
linkwe-pc/src/styles/index.scss
View file @
defbf35
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
}
}
::-webkit-scrollbar-thumb
{
::-webkit-scrollbar-thumb
{
visibility
:
hidden
;
/*滚动条里面小方块*/
/*滚动条里面小方块*/
border-radius
:
5px
;
border-radius
:
5px
;
/*深色模式*/
/*深色模式*/
...
@@ -25,6 +26,10 @@
...
@@ -25,6 +26,10 @@
border-bottom-width: 2px;*/
border-bottom-width: 2px;*/
}
}
:hover::-webkit-scrollbar-thumb
{
visibility
:
visible
;
}
// ::-webkit-scrollbar-track {
// ::-webkit-scrollbar-track {
// /*滚动条里面轨道*/
// /*滚动条里面轨道*/
// -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
// -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
...
...
linkwe-pc/src/views/drainageCode/smartForms/add.vue
View file @
defbf35
...
@@ -9,9 +9,14 @@
...
@@ -9,9 +9,14 @@
</el-steps>
</el-steps>
</div>
</div>
<div
class=
"g-card tab-content form1"
v-show=
"currentActive === 1"
>
<div
class=
"g-card tab-content form1"
v-show=
"currentActive === 1"
>
<el-row>
<div
class=
"fxbw"
>
<el-col
:span=
"10"
>
<el-form
<el-form
ref=
"baseForm"
:rules=
"baseRules"
:model=
"baseForm"
label-position=
"left"
label-width=
"150px"
>
style=
"width: 30%"
ref=
"baseForm"
:rules=
"baseRules"
:model=
"baseForm"
label-position=
"left"
label-width=
"80px"
>
<el-form-item
label=
"表单名称"
prop=
"surveyName"
>
<el-form-item
label=
"表单名称"
prop=
"surveyName"
>
<el-input
v-model=
"baseForm.surveyName"
maxlength=
"15"
show-word-limit
clearable
></el-input>
<el-input
v-model=
"baseForm.surveyName"
maxlength=
"15"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-form-item>
...
@@ -53,8 +58,7 @@
...
@@ -53,8 +58,7 @@
<el-button
type=
"primary"
@
click
.
stop=
"nextStep(2)"
>
下一步
</el-button>
<el-button
type=
"primary"
@
click
.
stop=
"nextStep(2)"
>
下一步
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-col>
<div>
<el-col
:span=
"7"
>
<FormsDetail
<FormsDetail
:type=
"1"
:type=
"1"
:index=
"1"
:index=
"1"
...
@@ -68,8 +72,8 @@
...
@@ -68,8 +72,8 @@
<div
style=
"display: flex; justify-content: center"
>
<div
style=
"display: flex; justify-content: center"
>
<el-radio
v-model=
"visibility"
label=
"0"
>
独立首页
</el-radio>
<el-radio
v-model=
"visibility"
label=
"0"
>
独立首页
</el-radio>
</div>
</div>
</
el-col
>
</
div
>
<
el-col
:span=
"7"
>
<
div
>
<FormsDetail
<FormsDetail
:type=
"1"
:type=
"1"
:index=
"2"
:index=
"2"
...
@@ -84,8 +88,8 @@
...
@@ -84,8 +88,8 @@
<div
style=
"display: flex; justify-content: center"
>
<div
style=
"display: flex; justify-content: center"
>
<el-radio
v-model=
"visibility"
label=
"1"
>
表单首页
</el-radio>
<el-radio
v-model=
"visibility"
label=
"1"
>
表单首页
</el-radio>
</div>
</div>
</
el-col
>
</
div
>
</
el-row
>
</
div
>
</div>
</div>
<div
class=
"g-card tab-content"
style=
"height: calc(100vh - 216px)"
v-show=
"currentActive === 2"
>
<div
class=
"g-card tab-content"
style=
"height: calc(100vh - 216px)"
v-show=
"currentActive === 2"
>
<!--
<el-form
<!--
<el-form
...
@@ -1537,10 +1541,6 @@ export default {
...
@@ -1537,10 +1541,6 @@ export default {
}
}
}
}
.preview-wrap
{
line-height
:
26px
;
}
.tip
{
.tip
{
color
:
#999
;
color
:
#999
;
}
}
...
...
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