index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="alert-wrapper" :style="viewColor">
  3. <view class="alert-box">
  4. <image :src="domain+'/static/diy/success'+keyColor+'.png'" mode=""></image>
  5. <view class="txt">{{msg}}</view>
  6. <view class="btn" @click="close">鎴戠煡閬撲簡</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. // +----------------------------------------------------------------------
  12. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  13. // +----------------------------------------------------------------------
  14. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  15. // +----------------------------------------------------------------------
  16. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  17. // +----------------------------------------------------------------------
  18. // | Author: CRMEB Team <admin@crmeb.com>
  19. // +----------------------------------------------------------------------
  20. import { mapGetters } from "vuex";
  21. import { HTTP_REQUEST_URL } from '@/config/app';
  22. export default{
  23. data() {
  24. return {
  25. domain: HTTP_REQUEST_URL,
  26. }
  27. },
  28. props:{
  29. msg:{
  30. type:String,
  31. default:''
  32. },
  33. },
  34. computed: mapGetters(['viewColor','keyColor']),
  35. methods:{
  36. close(){
  37. this.$emit('bindClose');
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss">
  43. .alert-wrapper{
  44. position: fixed;
  45. left: 0;
  46. top: 0;
  47. width: 100%;
  48. height: 100%;
  49. background-color: rgba(0,0,0,.5);
  50. .alert-box{
  51. position: absolute;
  52. left: 50%;
  53. top: 50%;
  54. transform: translate(-50%,-50%);
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. justify-content: center;
  59. width: 500rpx;
  60. height: 540rpx;
  61. background-color: #fff;
  62. border-radius: 10rpx;
  63. font-size: 34rpx;
  64. image{
  65. width: 149rpx;
  66. height: 230rpx;
  67. }
  68. .txt{
  69. margin-bottom: 20rpx;
  70. }
  71. .btn{
  72. width:340rpx;
  73. height:90rpx;
  74. line-height: 90rpx;
  75. text-align: center;
  76. background-image:linear-gradient(-90deg,var(--view-bntColor21) 0%,var(--view-bntColor22) 100%);
  77. border-radius:45rpx;
  78. color: #fff;
  79. }
  80. }
  81. }
  82. </style>