Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 c8c25374
authored
Nov 18, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整样式
1 parent
7c5c35f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
18 deletions
src/assets/css/public.scss
src/views/memberCenter/serviceAddUpdateLook.vue
src/assets/css/public.scss
View file @
c8c2537
...
@@ -19,6 +19,39 @@ body,html {
...
@@ -19,6 +19,39 @@ body,html {
padding
:
15px
20px
;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
}
}
// 单行省略
.ellipsis-1
{
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
/* for Opera */
}
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2
{
overflow
:
hidden
;
height
:
40px
;
line-height
:
20px
;
position
:
relative
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
/*显示的行数*/
}
.ellipsis-2-text
:after
{
content
:
"..."
;
position
:
absolute
;
bottom
:
0
;
right
:
15px
;
padding-left
:
20px
;
background
:
-webkit-linear-gradient
(
left
,
transparent
,
#fff
55%
);
/*我在Safari上测试时发现透明到白色中间会有一个黑色的过渡后来我就写成-webkit-linear-gradient(left,rgba(255,255,255,0),rgba(255,255,255,1) 55%)*/
background
:
-o-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
}
.marketing
.wechat-container
{
.marketing
.wechat-container
{
width
:
375px
;
width
:
375px
;
margin-right
:
45px
;
margin-right
:
45px
;
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
c8c2537
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
>
<el-form-item
size=
"small"
label=
"服务名称"
prop=
"couponName"
style=
"width: 420px"
>
<el-form-item
size=
"small"
label=
"服务名称"
prop=
"couponName"
style=
"width: 420px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
v-model=
"ruleForm.couponName"
placeholder=
"请输入服务名称,如“精洗轿车”"
></el-input>
<el-input
size=
"small"
:disabled=
"disabledContent"
v-model=
"ruleForm.couponName"
maxlength=
"20"
placeholder=
"请输入服务名称,如“精洗轿车”"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"有效期"
prop=
"effectiveType"
>
<el-form-item
size=
"small"
label=
"有效期"
prop=
"effectiveType"
>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</el-radio>
</el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio
:label=
"2"
>
<el-radio
:label=
"2"
>
<el-date-picker
:size=
"small"
:disabled=
"disabledContent"
style=
"width: 2
15
px"
v-model=
"ruleForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
<el-date-picker
:size=
"small"
:disabled=
"disabledContent"
style=
"width: 2
30
px"
v-model=
"ruleForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
...
@@ -93,15 +93,14 @@
...
@@ -93,15 +93,14 @@
<div
class=
"serviceCard"
>
<div
class=
"serviceCard"
>
<div
class=
"cardtop"
>
<div
class=
"cardtop"
>
<img
src=
"@/assets/serviceMemberCard.png"
alt=
""
/>
<img
src=
"@/assets/serviceMemberCard.png"
alt=
""
/>
<span
class=
"serviceName"
>
{{ ruleForm.couponName || '-' }}
</span>
<span
class=
"serviceName
ellipsis-1"
:title=
"couponName
"
>
{{ ruleForm.couponName || '-' }}
</span>
<span
class=
"effectiveRange"
>
{{ limitText }}
</span>
<span
class=
"effectiveRange"
>
{{ limitText }}
</span>
<span
class=
"timeRange"
>
{{ effectiveRangeText }}
</span>
<span
class=
"timeRange"
>
{{ effectiveRangeText }}
</span>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
</div>
<div
class=
"desc"
>
使用说明:
</div>
<div
class=
"cardbottom"
>
<div
class=
"desc"
>
使用说明:
</div>
<span
class=
"detailDesc"
>
{{ ruleForm.useDescription }}
</span>
<span
class=
"detailDesc"
>
{{ ruleForm.useDescription }}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -165,7 +164,7 @@ export default {
...
@@ -165,7 +164,7 @@ export default {
limitDays
:
'30'
,
limitDays
:
'30'
,
limitTime2
:
5
,
limitTime2
:
5
,
rules
:
{
rules
:
{
couponName
:
[{
required
:
true
,
message
:
'请输入
活动
名称'
,
trigger
:
'blur'
}],
couponName
:
[{
required
:
true
,
message
:
'请输入
服务
名称'
,
trigger
:
'blur'
}],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
...
@@ -477,6 +476,7 @@ export default {
...
@@ -477,6 +476,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
padding
:
10px
;
padding
:
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
top
:
136px
;
top
:
136px
;
right
:
78px
;
right
:
78px
;
width
:
343px
;
width
:
343px
;
...
@@ -492,13 +492,12 @@ export default {
...
@@ -492,13 +492,12 @@ export default {
color
:
#999999
;
color
:
#999999
;
}
}
.cardtop
{
.cardtop
{
padding-bottom
:
10px
;
//
border-bottom
:
1px
solid
#979797
;
position
:
relative
;
position
:
relative
;
.serviceName
{
.serviceName
{
position
:
absolute
;
position
:
absolute
;
left
:
88px
;
left
:
88px
;
top
:
5px
;
top
:
5px
;
width
:
230px
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -523,19 +522,17 @@ export default {
...
@@ -523,19 +522,17 @@ export default {
opacity
:
0.14
;
opacity
:
0.14
;
background-color
:
#979797
;
background-color
:
#979797
;
}
}
}
.cardbottom
{
position
:
relative
;
.desc
{
.desc
{
position
:
absolute
;
margin-top
:
20px
;
top
:
10px
;
margin-left
:
88px
;
left
:
88px
;
color
:
#333
;
color
:
#333
;
}
}
.detailDesc
{
.detailDesc
{
position
:
absolute
;
display
:
inline-block
;
left
:
88px
;
margin-left
:
88px
;
top
:
35px
;
margin-top
:
10px
;
width
:
230px
;
word-wrap
:
break-word
;
}
}
}
}
}
}
...
...
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