You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
huitong/components/alert/index.vue

94 lines
2.2 KiB

9 months ago
<template>
<view class="alert-wrapper" :style="viewColor">
<view class="alert-box">
6 months ago
<!-- <image :src="basePicPath1+'/static/images/success.png'" mode=""></image> -->
9 months ago
<!-- <image :src="domain+'/static/diy/success'+keyColor+'.png'" mode=""></image> -->
9 months ago
<view class="txt">{{msg}}</view>
6 months ago
<view class="btn" @click="close">我知道了</view>
9 months ago
</view>
</view>
</template>
<script>
// +----------------------------------------------------------------------
6 months ago
// | CRMEB [ CRMEB<EFBFBD><EFBFBD><EFBFBD>ܿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD>չ ]
9 months ago
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
6 months ago
// | Licensed CRMEB<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD>CRMEB<EFBFBD><EFBFBD><EFBFBD>ذ<EFBFBD>Ȩ
9 months ago
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import { mapGetters } from "vuex";
import { HTTP_REQUEST_URL } from '@/config/app';
export default{
data() {
return {
domain: HTTP_REQUEST_URL,
9 months ago
basePicPath1:''
9 months ago
}
},
props:{
msg:{
type:String,
default:''
},
},
computed: mapGetters(['viewColor','keyColor']),
methods:{
close(){
this.$emit('bindClose');
}
9 months ago
},
onLoad() {
this.basePicPath1 = this.basePicPath
9 months ago
}
}
</script>
<style lang="scss">
.alert-wrapper{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,.5);
z-index: 10;
.alert-box{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 500rpx;
6 months ago
height: 340rpx;
9 months ago
background-color: #fff;
border-radius: 10rpx;
font-size: 34rpx;
image{
9 months ago
width: 130rpx;
height: 130rpx;
9 months ago
}
.txt{
9 months ago
margin-bottom: 57rpx;
margin-top:29rpx;
font-size: 36rpx;
color: #333333;
9 months ago
}
.btn{
9 months ago
width:300rpx;
9 months ago
height:90rpx;
line-height: 90rpx;
text-align: center;
9 months ago
background: $btn-color;
9 months ago
border-radius:45rpx;
color: #fff;
}
}
}
</style>