notarize.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <uni-popup ref="popupRef" :isMaskClick="false">
  3. <view class="popup-box">
  4. <view class="popup-title">
  5. 下单确认
  6. </view>
  7. <view class="popup-content">
  8. 确定要下单吗?
  9. </view>
  10. <view class="popup-btns">
  11. <view class="popup-btn" @click.stop="closePopup">
  12. 取消
  13. </view>
  14. <view class="popup-btn">
  15. 确定
  16. </view>
  17. </view>
  18. </view>
  19. </uni-popup>
  20. </template>
  21. <script>
  22. export default {
  23. name: "unopen",
  24. data() {
  25. return {
  26. };
  27. },
  28. mounted() {
  29. // this.$refs.popupRef.open()
  30. },
  31. methods: {
  32. open() {
  33. this.$nextTick(() => {
  34. this.$refs.popupRef.open();
  35. })
  36. },
  37. closePopup(){
  38. this.$nextTick(() => {
  39. this.$refs.popupRef.close();
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .popup-box {
  47. width: 587rpx;
  48. background-color: #fff;
  49. border-radius: 12rpx;
  50. overflow: hidden;
  51. .popup-title {
  52. height: 90rpx;
  53. font-size: 32rpx;
  54. font-family: PingFang SC, PingFang SC-Bold;
  55. font-weight: 700;
  56. text-align: center;
  57. color: #1a1a1a;
  58. line-height: 90rpx;
  59. letter-spacing: 0.64rpx;
  60. border-bottom: 1rpx solid #e6e6e6;
  61. }
  62. .popup-content {
  63. padding: 34rpx 30rpx;
  64. min-height: 100rpx;
  65. font-size: 28rpx;
  66. font-family: PingFang SC, PingFang SC-Regular;
  67. font-weight: 400;
  68. color: #1a1a1a;
  69. text-align: center;
  70. }
  71. .popup-btns {
  72. padding: 0 30rpx 64rpx;
  73. display: flex;
  74. align-items: center;
  75. justify-content: space-between;
  76. .popup-btn {
  77. width: 245rpx;
  78. height: 75rpx;
  79. background: #ffffff;
  80. border: 1rpx solid #05c175;
  81. border-radius: 8px;
  82. text-align: center;
  83. line-height: 73rpx;
  84. font-size: 32rpx;
  85. font-family: PingFang SC, PingFang SC-Regular;
  86. font-weight: 400;
  87. color: #05c175;
  88. letter-spacing: 0.64rpx;
  89. &+.popup-btn {
  90. color: #ffffff;
  91. background-color: #05C175;
  92. }
  93. }
  94. }
  95. }
  96. </style>