Commit c8c25374 by 李长胜

调整样式

1 parent 7c5c35f7
......@@ -19,6 +19,39 @@ body,html {
padding: 15px 20px;
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 {
width: 375px;
margin-right: 45px;
......
......@@ -7,7 +7,7 @@
<div class="live-room container">
<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-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 size="small" label="有效期" prop="effectiveType">
......@@ -33,7 +33,7 @@
</el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio :label="2">
<el-date-picker :size="small" :disabled="disabledContent" style="width: 215px" 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: 230px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-radio>
</el-radio-group>
</div>
......@@ -93,15 +93,14 @@
<div class="serviceCard">
<div class="cardtop">
<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="timeRange">{{ effectiveRangeText }}</span>
<div class="grayLine"></div>
</div>
<div class="cardbottom">
<div class="desc">使用说明:</div>
<div class="desc">使用说明:</div>
<span class="detailDesc">{{ ruleForm.useDescription }}</span>
</div>
</div>
</div>
<div
......@@ -165,7 +164,7 @@ export default {
limitDays: '30',
limitTime2: 5,
rules: {
couponName: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
couponName: [{ required: true, message: '请输入服务名称', trigger: 'blur' }],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
......@@ -477,6 +476,7 @@ export default {
position: absolute;
padding: 10px;
box-sizing: border-box;
top: 136px;
right: 78px;
width: 343px;
......@@ -492,13 +492,12 @@ export default {
color: #999999;
}
.cardtop {
padding-bottom: 10px;
// border-bottom: 1px solid #979797;
position: relative;
.serviceName {
position: absolute;
left: 88px;
top: 5px;
width: 230px;
font-size: 14px;
font-weight: 600;
......@@ -523,19 +522,17 @@ export default {
opacity: 0.14;
background-color: #979797;
}
}
.cardbottom {
position: relative;
.desc {
position: absolute;
top: 10px;
left: 88px;
margin-top: 20px;
margin-left: 88px;
color: #333;
}
.detailDesc {
position: absolute;
left: 88px;
top: 35px;
display: inline-block;
margin-left: 88px;
margin-top: 10px;
width: 230px;
word-wrap: break-word;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!