zoukankan      html  css  js  c++  java
  • 微信小程序中礼券效果4

    
    
    /* 优惠券开始 */
    
    .history .quan {
        position: relative;
         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;
         30rpx;
        height: 30rpx;
        border-radius: 0 0 30rpx 0;
        background-color: #f2f2f2;
    }
    
    .quan .left-bottom {
        position: absolute;
        top: 211rpx;
        left: 0;
         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;
         30rpx;
        height: 30rpx;
        border-radius: 0 0 0 30rpx;
        background-color: #f2f2f2;
    }
    
    .quanRight .right-bottom {
        position: absolute;
        top: 211rpx;
        right: 0;
         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;
         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;
         30rpx;
        height: 30rpx;
        border-radius: 0 0 0 30rpx;
        background-color: #f2f2f2;
    }
    
    .quanRights .right-bottom {
        position: absolute;
        top: 211rpx;
        right: 0;
         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;
         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 {
         25%;
        height: 100%;
        box-sizing: border-box;
        border-right: 1rpx solid rgb(245, 241, 241);
        padding-left: 20rpx;
        background-color: #fff;
    }
    
    .quanleft image {
         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;
         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>
  • 相关阅读:
    高阶函数 练习
    斐波那契数列(Fibonacci sequence)递归函数
    顺序循环队列的基本操作(二)
    顺序循环队列基本操作(一)
    顺序栈的基本操作
    双链表的插入删除
    头插法实现链表逆置
    带头结点单链表的基本操作
    顺序表基本操作
    实现原数组列变成行,再将每一行首尾倒置
  • 原文地址:https://www.cnblogs.com/huanhuan55/p/10805491.html
Copyright © 2011-2022 走看看