popup-hint.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <uni-popup ref="popupRef" :isMaskClick="false">
  3. <!-- @change="popupChange" -->
  4. <view class="hint-box">
  5. <view class="hint-title">{{ title }}</view>
  6. <view class="hint-content">
  7. <slot name="hintContent"></slot>
  8. </view>
  9. </view>
  10. </uni-popup>
  11. </template>
  12. <script>
  13. export default {
  14. props:{
  15. title:{
  16. type:String,
  17. default:''
  18. }
  19. },
  20. data() {
  21. return {
  22. };
  23. },
  24. watch: {
  25. },
  26. mounted() {
  27. },
  28. methods: {
  29. open() {
  30. this.$nextTick(() => {
  31. this.$refs.popupRef.open()
  32. })
  33. },
  34. close(){
  35. this.$refs.popupRef.close()
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .hint-box {
  42. width: 650rpx;
  43. background-color: #fff;
  44. .hint-title {
  45. width: 100%;
  46. height: 80rpx;
  47. line-height: 80rpx;
  48. text-align: center;
  49. border-bottom: 1rpx solid $border-color;
  50. }
  51. .hint-content {
  52. width: 100%;
  53. padding: 80rpx 60rpx;
  54. font-size: 28rpx;
  55. ::v-deep .content-list {
  56. text {
  57. display: block;
  58. }
  59. }
  60. ::v-deep .explain {
  61. color: $Theme-Color;
  62. }
  63. // <view class="hite-box">
  64. // <text class="box"></text>
  65. // <text>不在提示</text>
  66. // </view>
  67. ::v-deep .hite-box {
  68. display: flex;
  69. align-items: center;
  70. padding-top: 20rpx;
  71. .box {
  72. border: 1rpx solid #ccc;
  73. width: 30rpx;
  74. height: 30rpx;
  75. margin-right: 10rpx;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. .iconfont{
  80. font-size: 32rpx;
  81. color: $Theme-Color;
  82. }
  83. }
  84. }
  85. ::v-deep .confirm-btn{
  86. width: 100%;
  87. height: 80rpx;
  88. text-align: center;
  89. line-height: 80rpx;
  90. background-color: $Theme-Color;
  91. margin-top: 50rpx;
  92. color: #fff;
  93. font-size: 28rpx;
  94. }
  95. }
  96. }
  97. </style>