#
whycq
2023-10-30 00a6062e335ee063a32d8127bfca6f3903ec0885
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template>
    <view>
        <view class="card"></view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        methods: {
            
        }
    }
</script>
 
<style>
    .card{
      width: 700rpx;
      height: 250rpx;
      margin: 0 auto 20rpx;
      border-radius: 20rpx;
      position: relative;
      background: #ff6810;
      position: relative;
      filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .3));
    }
    
    .card::before,
    .card::after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      background: #fff;
      /* top: calc(50% - 20rpx); */
    }
    .card::before {
      /* border-radius: 0 20rpx 20rpx 0; */
      border-top: 20px solid #fff;
      border-left: 20px solid #ff6810;
      border-right: 20px solid #ff6810;
      border-bottom: 20px solid #ff6810;
      left: calc(50% - 20rpx);
    }
    .card::after {
      border-radius: 20rpx 0 0 20rpx;
      right: 0;
    }
</style>