• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

微信小程序中礼券效果4

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

/* 优惠券开始 */

.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>

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
微信小程序——微信卡券的领取和查看 - 逍遥云天发布时间:2022-07-18
下一篇:
uni-app 小程序 领取卡券和领取会员卡发布时间:2022-07-18
热门推荐
    热门话题
    阅读排行榜

    扫描微信二维码

    查看手机版网站

    随时了解更新最新资讯

    139-2527-9053

    在线客服(服务时间 9:00~18:00)

    在线QQ客服
    地址:深圳市南山区西丽大学城创智工业园
    电邮:jeky_zhao#qq.com
    移动电话:139-2527-9053

    Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap