裂变星小程序-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.

89 lines
1.6 KiB

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