123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <template>
- <view class="modal">
-
- <view class="dialog-border">
- <image class="top-icon"
- src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/aDrawbTdSWjg1742dea71dd1c645b6b398a619bfc9fe.png/1.png"
- mode=""></image>
- <view class="dialog-content">
- <image class="title-icon"
- :src="titleIcon"
- mode=""></image>
-
- <slot></slot>
- </view>
- <view class="btn-box">
- <view class="btn" @click="submit">
- {{btnText}}
- </view>
- </view>
- <image class="close" src="@/static/close.png" mode="" @click="handleClose('show')"></image>
- </view>
- </view>
-
-
- </template>
- <script>
- export default {
- props: {
- titleIcon: {
- type: String,
- default: 'https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/ApX9kwEUYgE84e54016e951eaab20c5a504e8c5df6f2.png/1.png'
- },
- btnText: {
- type: String,
- default: '确认'
- },
- },
- data() {
- return {
-
- }
- },
- methods: {
- submit(){
- this.$emit('submit')
- },
- handleClose() {
- this.$emit('close')
- }
- },
-
- }
- </script>
- <style lang="scss" scoped>
-
- .modal {
- position: fixed;
- top: 0%;
- left: 0;
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- background: rgba(0, 0, 0, .4);
-
- }
-
- .dialog-border {
- width: 590rpx;
- height: 672rpx;
- background: #FF5642;
- box-shadow: inset 0rpx 6rpx 12rpx 2rpx #FFFFFF;
- border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 1rpx solid #FFFFFF;
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- .close{
- width: 40rpx;
- height: 40rpx;
- position: absolute;
- bottom: -70rpx;
- left: calc(50% - 20rpx);
- }
-
- .top-icon {
- width: 332rpx;
- height: 142rpx;
- position: absolute;
- top: -130rpx;
- left: calc(50% - 166rpx);
- vertical-align: bottom;
- }
-
- .btn-box {
- position: absolute;
- left: 0%;
- bottom: 0%;
- z-index: 2;
- width: 590rpx;
- height: 134rpx;
- background: linear-gradient(180deg, #FFF3E2 0%, #F4AF9E 100%);
- border-radius: 0rpx 0rpx 24rpx 24rpx;
- display: flex;
- align-items: center;
- justify-content: center;
-
- .btn {
- width: 258rpx;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- background: #FF4D3A;
- box-shadow: 0rpx 6rpx 12rpx 2rpx #FF4D3A, inset 0rpx 16rpx 4rpx 2rpx #E8422F;
- border-radius: 72rpx 72rpx 72rpx 72rpx;
- border: 2rpx solid #FFFFFF;
- font-weight: bold;
- font-size: 32rpx;
- color: #FFFFFF;
-
- }
- }
-
- .dialog-content {
- width: 542rpx;
- height: 612rpx;
- overflow: auto;
- background: linear-gradient(151deg, #FFFFFF 0%, #FFFFFF 0%, #FFD9BF 100%);
- border-radius: 24rpx 24rpx 24rpx 24rpx;
-
- .title-icon {
- width: 430rpx;
- height: 84rpx;
- margin-left: 84rpx;
- margin-top: 30rpx;
- }
- }
- }
- </style>
|