unopen.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <uni-popup ref="popupRef">
  3. <view class="unopen-box">
  4. <view class="unopen-title">
  5. 提示
  6. </view>
  7. <view class="unopen-content">
  8. <view class="content">
  9. {{ content }}
  10. </view>
  11. <view class="unopen-btn" @click.stop="$refs.popupRef.close()">
  12. 我知道了
  13. </view>
  14. </view>
  15. </view>
  16. </uni-popup>
  17. </template>
  18. <script>
  19. export default {
  20. name: "unopen",
  21. props:{
  22. content:{
  23. type:String,
  24. default:'暂未开放'
  25. }
  26. },
  27. data() {
  28. return {
  29. };
  30. },
  31. mounted() {
  32. // this.$refs.popupRef.open()
  33. },
  34. methods: {
  35. open() {
  36. this.$nextTick(() => {
  37. this.$refs.popupRef.open();
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .unopen-box {
  45. width: 520rpx;
  46. background-color: #fff;
  47. border-radius: 20rpx;
  48. overflow: hidden;
  49. .unopen-title {
  50. height: 90rpx;
  51. font-size: 32rpx;
  52. font-family: PingFang SC, PingFang SC-Bold;
  53. font-weight: 700;
  54. text-align: center;
  55. color: #1a1a1a;
  56. line-height: 90rpx;
  57. letter-spacing: 0.64rpx;
  58. border-bottom: 1rpx solid $border-color4;
  59. }
  60. .unopen-content {
  61. padding: 0 36rpx;
  62. min-height: 140rpx;
  63. .content{
  64. padding:40rpx 0;
  65. font-size: 24rpx;
  66. font-family: PingFang SC, PingFang SC-Regular;
  67. font-weight: 400;
  68. color: #1a1a1a;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. }
  74. .unopen-btn{
  75. width: 100%;
  76. height: 80rpx;
  77. line-height:80rpx;
  78. background-color: $Theme-Color;
  79. margin-bottom: 40rpx;
  80. color: #fff;
  81. text-align: center;
  82. font-size: 30rpx;
  83. letter-spacing: 1px;
  84. border-radius: 6rpx;
  85. }
  86. }
  87. </style>