unopen.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. 暂未开放
  9. </view>
  10. </view>
  11. </uni-popup>
  12. </template>
  13. <script>
  14. export default {
  15. name: "unopen",
  16. data() {
  17. return {
  18. };
  19. },
  20. mounted() {
  21. // this.$refs.popupRef.open()
  22. },
  23. methods: {
  24. open() {
  25. this.$nextTick(() => {
  26. this.$refs.popupRef.open();
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .unopen-box {
  34. width: 587rpx;
  35. background-color: #fff;
  36. border-radius: 12rpx;
  37. overflow: hidden;
  38. .unopen-title {
  39. height: 90rpx;
  40. font-size: 32rpx;
  41. font-family: PingFang SC, PingFang SC-Bold;
  42. font-weight: 700;
  43. text-align: center;
  44. color: #1a1a1a;
  45. line-height: 90rpx;
  46. letter-spacing: 0.64rpx;
  47. border-bottom: 1rpx solid #e6e6e6;
  48. }
  49. .unopen-content {
  50. padding: 20rpx 30rpx;
  51. min-height: 140rpx;
  52. font-size: 28rpx;
  53. font-family: PingFang SC, PingFang SC-Regular;
  54. font-weight: 400;
  55. text-align: left;
  56. color: #1a1a1a;
  57. line-height: 42rpx;
  58. text-align: center;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. }
  63. }
  64. </style>