裂变星小程序-25.03.04
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.7 KiB

  1. <template>
  2. <uv-popup
  3. ref="popup"
  4. :overlayOpacity="0.8"
  5. :customStyle="{
  6. backgroundColor: 'transparent',
  7. }"
  8. >
  9. <view class="popup">
  10. <image class="popup-bg" src="@/static/image/home/bg-audit-pass.png"></image>
  11. <view class="popup-content flex">
  12. <text class="value">{{ count }}</text>
  13. <image class="unit" src="@/static/image/home/text-share.png"></image>
  14. </view>
  15. <view class="flex popup-btns">
  16. <button plain class="btn-simple" @click="close">
  17. <image class="popup-btn" src="@/static/image/home/cancel.png"></image>
  18. </button>
  19. <button plain class="btn-simple" @click="go">
  20. <image class="popup-btn" src="@/static/image/home/go.png"></image>
  21. </button>
  22. </view>
  23. </view>
  24. </uv-popup>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. count: {
  30. type: Number,
  31. default: 15
  32. }
  33. },
  34. data() {
  35. return {
  36. }
  37. },
  38. methods: {
  39. open() {
  40. this.$refs.popup.open();
  41. },
  42. close() {
  43. this.$refs.popup.close();
  44. },
  45. go() {
  46. uni.navigateTo({
  47. url: `/pages/index/record`
  48. })
  49. },
  50. },
  51. }
  52. </script>
  53. <style scoped lang="scss">
  54. .popup {
  55. position: relative;
  56. width: 578rpx;
  57. &-bg {
  58. width: 578rpx; height: 317rpx;
  59. }
  60. &-content {
  61. position: absolute;
  62. top: 123rpx;
  63. left: 50%;
  64. transform: translateX(-50%);
  65. .value {
  66. color: #FF2323;
  67. font-size: 102rpx;
  68. font-weight: 700;
  69. line-height: 125rpx;
  70. }
  71. .unit {
  72. width: 299rpx;
  73. height: 77rpx;
  74. margin-left: 9rpx;
  75. }
  76. }
  77. &-btns {
  78. justify-content: space-between;
  79. margin-top: 56rpx;
  80. }
  81. &-btn {
  82. width: 265rpx;
  83. height: 84rpx;
  84. }
  85. }
  86. </style>