gaoluyang
3 天以前 5f5486731922637d9522b41dc54d932fdd29ebc4
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
  <view class="upload">
    <view class="imagebox">
      <view class="imageborder">
        <view class="main">
          <slot></slot>
        </view>
      </view>
    </view>
    <view class="text">
      <text>{{ text }}</text>
    </view>
  </view>
</template>
 
<script setup>
import { ref } from 'vue';
 
const text = ref("")
</script>
 
<style scoped lang="scss">
.upload {
  height: 400rpx;
  width: 90%;
  border-radius: 20rpx;
  overflow: hidden;
 
  .imagebox {
    height: 80%;
    background-color: #eff8ff;
    align-items: center;
    justify-content: center;
    display: flex;
 
    .imageborder {
      border: 5px #319fea solid;
      position: relative;
      width: 70%;
      height: 80%;
      border-radius: 30rpx;
 
      &::after {
        position: absolute;
        content: ' ';
        background-color: #eff8ff;
        height: 80%;
        width: 120%;
        top: 10%;
        left: -10%;
      }
 
      &::before {
        position: absolute;
        content: ' ';
        background-color: #eff8ff;
        top: -10%;
        left: 10%;
        height: 120%;
        width: 80%;
      }
 
      .main {
        position: absolute;
        background-color: #eff8ff;
        top: 5%;
        left: 5%;
        height: 90%;
        width: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
      }
    }
  }
 
  .text {
    height: 20%;
    background-color: #319fea;
    display: flex;
    justify-content: center;
    align-items: center;
 
    text {
      color: #ffffff;
    }
  }
}
</style>