Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

tips.vue 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="bg-tips" v-if="props.showTips">
  3. <view class="tips">
  4. <view class="top-content">
  5. <image class="tips-image" :src="`${$imgUrl}common/tips.png`" mode=""></image>
  6. <text class="tishi">提示</text>
  7. </view>
  8. <view class="title">服务开通中,敬请期待!</view>
  9. <view>
  10. <text class="cancle" @click="emits('cancle', false)">取消</text>
  11. <text class="sure" @click="emits('cancle', false)">确定</text>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script setup lang="ts">
  17. const emits = defineEmits(["cancle"]);
  18. const props = defineProps({
  19. showTips: {
  20. type: Boolean,
  21. default: false
  22. }
  23. })
  24. </script>
  25. <style scoped lang="scss">
  26. .bg-tips{
  27. width: 100%;
  28. height: 100vh;
  29. background: rgba(0,0,0,0.5);
  30. position: fixed;
  31. left: 0;
  32. top:0;
  33. z-index: 99999;
  34. .tips{
  35. width: 60%;
  36. height: 360rpx;
  37. background: #FFFFFF;
  38. border-radius: 12rpx;
  39. position: absolute;
  40. left: 50%;
  41. top: 50%;
  42. transform: translate(-50%, -50%);
  43. padding: 70rpx;
  44. display: flex;
  45. flex-direction: column;
  46. justify-content: space-between;
  47. align-items: center;
  48. .top-content{
  49. display: flex;
  50. align-items: center;
  51. }
  52. .tips-image{
  53. width: 40rpx;
  54. height: 40rpx;
  55. }
  56. .tishi{
  57. font-weight: 500;
  58. font-size: 36rpx;
  59. color: #01243A;
  60. margin-left: 10rpx;
  61. }
  62. .title{
  63. font-weight: 400;
  64. font-size: 30rpx;
  65. color: #222222;
  66. }
  67. .cancle{
  68. width: 200rpx;
  69. height: 80rpx;
  70. background: #FFFFFF;
  71. border-radius: 12rpx 12rpx 12rpx 12rpx;
  72. color: black;
  73. display: inline-block;
  74. border: 1rpx solid #004576;
  75. border-radius: 40rpx;
  76. text-align: center;
  77. line-height: 80rpx;
  78. font-size: 30rpx;
  79. margin-right: 20rpx;
  80. }
  81. .sure{
  82. width: 200rpx;
  83. height: 80rpx;
  84. background: linear-gradient( to right, #01243A, #004576);
  85. border-radius: 40rpx;
  86. display: inline-block;
  87. color: white;
  88. text-align: center;
  89. line-height: 80rpx;
  90. font-size: 30rpx;
  91. }
  92. }
  93. }
  94. </style>