/* 优惠券开始 */
.history .quan {
position: relative;
width: 94%;
height: 240rpx;
margin: 20rpx auto;
box-sizing: border-box;
/* background-color: #fff; */
color: #fff;
/*左边的波浪*/
background-image: radial-gradient(rgb(248, 247, 247) 35%, #fff 35%);
background-size: 17px 17px;
background-position: -9px 0;
background-repeat: repeat-y;
}
/* 左上角和左下角的缺口 */
.quan .left-top {
position: absolute;
top: 0;
left: 0;
width: 30rpx;
height: 30rpx;
border-radius: 0 0 30rpx 0;
background-color: #f2f2f2;
}
.quan .left-bottom {
position: absolute;
top: 211rpx;
left: 0;
width: 30rpx;
height: 30rpx;
border-radius: 0 30rpx 0 0;
background-color: #fafafa;
}
/* 右上角和右下角 */
.quanRight {
background-color: #fff;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.quanRight .icon {
font-size: 50rpx;
color: #ccc;
}
.quanRight .downArrow {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.quanRight .right-top {
position: absolute;
top: 0;
right: 0;
width: 30rpx;
height: 30rpx;
border-radius: 0 0 0 30rpx;
background-color: #f2f2f2;
}
.quanRight .right-bottom {
position: absolute;
top: 211rpx;
right: 0;
width: 30rpx;
height: 30rpx;
border-radius: 30rpx 0 0 0;
background-color: #f2f2f2;
}
/* 右上角和右下角结束 */
.quanRight {
position: absolute;
top: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
width: 75%;
padding-left: 20rpx;
background-image: radial-gradient(#fbfbfb 35%, #fff 35%);
background-size: 17px 17px;
background-position: calc(100% + 9px) 0;
background-repeat: repeat-y;
}
.quanRight .content {
display: flex;
flex-direction: column;
}
/* 用过的礼券开始 */
.quanRights {
background-color: #fff;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
transform: rotate(8deg);
position: relative;
transform-origin: left bottom;
}
.quanRights .icon {
font-size: 50rpx;
color: #ccc;
}
.quanRights .downArrow {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.quanRights .right-top {
position: absolute;
top: 0;
right: 0;
width: 30rpx;
height: 30rpx;
border-radius: 0 0 0 30rpx;
background-color: #f2f2f2;
}
.quanRights .right-bottom {
position: absolute;
top: 211rpx;
right: 0;
width: 30rpx;
height: 30rpx;
border-radius: 30rpx 0 0 0;
background-color: #f2f2f2;
}
.quanRights {
position: absolute;
top: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
width: 75%;
padding-left: 20rpx;
background-image: radial-gradient(#fbfbfb 35%, #fff 35%);
background-size: 17px 17px;
background-position: calc(100% + 9px) 0;
background-repeat: repeat-y;
}
.quanRights .content {
display: flex;
flex-direction: column;
}
/* 用过的礼券结束 */
.downArrow .spot {
color: #ccc;
margin-bottom: -35rpx;
}
.downArrow .spots {
margin-bottom: -10rpx;
color: #ccc;
}
.clear::after {
content: "";
display: block;
clear: both;
}
.quan .quanleft {
width: 25%;
height: 100%;
box-sizing: border-box;
border-right: 1rpx solid rgb(245, 241, 241);
padding-left: 20rpx;
background-color: #fff;
}
.quanleft image {
width: 120rpx;
height: 120rpx;
margin: 50rpx 5%;
}
.company {
font-size: 24rpx;
color: #999;
line-height: 40rpx;
padding-top: 20rpx;
}
.name {
font-size: 36rpx;
color: #111;
line-height: 52rpx;
}
.desc {
font-size: 20rpx;
color: #444;
line-height: 32rpx;
}
.date {
font-size: 24rpx;
color: #999;
padding-top: 35rpx;
}
.ft {
display: inline-block;
margin: 40px;
}
/* 优惠券结束 */
.swiper-box .record {
background-color: #fff;
width: 90%;
display: flex;
border-radius: 10rpx;
flex-direction: column;
justify-content: center;
margin: 30rpx auto;
}
<swiper current="{{currentTab}}" class="swiper-box" duration="300" bindchange="bindChange">
<!-- 优惠券 -->
<swiper-item>
<view class='history'>
<!-- 优惠券开始 -->
<view class="quan clear">
<view class="quanleft">
<image src='.././common/image/logo.png'></image>
</view>
<view class='left-top'></view>
<view class='left-bottom'></view>
<view class="quanRight">
<view class='content'>
<text class="company">Melissa</text>
<text class="name">满1000减300优惠券</text>
<text class="desc">限上海长宁来福士/上海久光/上海市百一点使用</text>
<text class="date">有效期至:2018-10-18</text>
</view>
<view class='downArrow'>
<view class='spot'>.</view>
<view class='spots'>.</view>
<view class='iconfont icon-jiantou_xiangxia_o icon'></view>
</view>
<view class='right-top'></view>
<view class='right-bottom'></view>
</view>
</view>
<view class="quan clear">
<view class="quanleft">
<image src='.././common/image/logo.png'></image>
</view>
<view class='left-top'></view>
<view class='left-bottom'></view>
<view class="quanRights">
<view class='content'>
<text class="company">Melissa</text>
<text class="name">满1000减300优惠券</text>
<text class="desc">限上海长宁来福士/上海久光/上海市百一点使用</text>
<text class="date">有效期至:2018-10-18</text>
</view>
<view class='downArrow'>
<view class='spot'>.</view>
<view class='spots'>.</view>
<view class='iconfont icon-jiantou_xiangxia_o icon'></view>
</view>
<view class='right-top'></view>
<view class='right-bottom'></view>
</view>
</view>
<!-- 优惠券结束 -->
</view>
</swiper-item>
<!-- 过期 -->
<swiper-item>
<view class='record'>
<text>45454</text>
</view>
</swiper-item>
</swiper>