qq_28472245 2018-10-19 02:27
浏览 2702

微信小程序优惠券锯齿边缘想弄成圆弧状 但是现在是正方形形状 怎么修改

        .stamp{

width:700rpx;
height: 250rpx;
margin-bottom:50rpx;
position:absolute;
overflow:hidden;
border-radius: 10rpx;
}

 .stamp:before, .stamp:after {
content: '.';
width: 0;
height: 200%;
/* 绝对定位进行偏移 */
position: absolute;
top: 20rpx;

} .stamp:before {
/* 圆点型的border /
border-right: 20rpx dotted #eeeeee;
/
偏移一个半径,让圆点的一半覆盖div /
left: -10rpx;
width: 1rpx;
}
.stamp:after {
/
圆点型的border /
border-left: 20rpx dotted #eeeeee;
/
偏移一个半径,让圆点的一半覆盖div */
right: -10rpx;
}

    wxml代码
                                <!-- 左侧 -->
                <view class="float-li t1">
                    <view class="coupon-left">
                      <view style='width:50%;height:70%;float:left'>
                          <view class="t t6">{{item.couponsMoney}}</view>
                          <view class="t t5">Ұ</view>
                      </view>
                      <view style='width:50%;height:70%;float:left'>
                        <view class="t t7" style='margin-left:5%;'>优惠券</view>
                        <view class="t t3" style='margin-left:5%;'>{{item.couponsName}}</view>
                      </view>
                        <view class="t t8" style='width:100%;height:30%;margin-left:3%'>有效期:{{item.useStartDate}} 至 {{item.useEndDate}}</view>
                    </view>
                </view>
                <!-- 右侧 -->
                <view class="float-li-rig">
                    <view class="coupon-rig">
                      <view class="shuli"><text class='clickAndCollectFontColor'>未使用</text></view>
                    </view>
                </view>
            </view>
            <!-- 全部中:状态是1(已使用:设置样式)start-->
            <view wx:elif="{{item.useStatus == '1'}}" class="item stamp stamp10">
                <!-- 左侧 -->
                <view class="float-li t1">
                    <view class="coupon-left">
                      <view style='width:50%;height:70%;float:left'>
                          <view class="t t6">500</view>
                          <view class="t t5">Ұ</view>
                      </view>
                      <view style='width:50%;height:70%;float:left'>
                        <view class="t t7" style='margin-left:5%;'>优惠券</view>
                        <view class="t t3" style='margin-left:5%;'>{{item.couponsName}}</view>
                      </view>
                        <view class="t t8" style='width:100%;height:30%;margin-left:3%'>有效期:{{item.useStartDate}} 至 {{item.useEndDate}}</view>
                    </view>
                </view>
                <!-- 右侧 -->
                <view class="float-li-rig">
                    <view class="coupon-rig">
                      <view class="shuli">已使用</view>
                    </view>
                </view>
            </view>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 thinkphp6配合social login单点登录问题
    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch