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

93 lines
2.2 KiB

<template>
<view class="alert-wrapper" :style="viewColor">
<view class="alert-box">
<!-- <image :src="basePicPath1+'/static/images/success.png'" mode=""></image> -->
<!-- <image :src="domain+'/static/diy/success'+keyColor+'.png'" mode=""></image> -->
<view class="txt">{{msg}}</view>
<view class="btn" @click="close">我知道了</view>
</view>
</view>
</template>
<script>
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB<EFBFBD><EFBFBD><EFBFBD>ܿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD>չ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | 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>Ȩ
// +----------------------------------------------------------------------
// | 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,
basePicPath1:''
}
},
props:{
msg:{
type:String,
default:''
},
},
computed: mapGetters(['viewColor','keyColor']),
methods:{
close(){
this.$emit('bindClose');
}
},
onLoad() {
this.basePicPath1 = this.basePicPath
}
}
</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;
height: 340rpx;
background-color: #fff;
border-radius: 10rpx;
font-size: 34rpx;
image{
width: 130rpx;
height: 130rpx;
}
.txt{
margin-bottom: 57rpx;
margin-top:29rpx;
font-size: 36rpx;
color: #333333;
}
.btn{
width:300rpx;
height:90rpx;
line-height: 90rpx;
text-align: center;
background: $btn-color;
border-radius:45rpx;
color: #fff;
}
}
}
</style>