s-signup-modal.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <!-- 规格弹窗 -->
  3. <su-popup :show="show" @close="colseSignUpModal" type="center" showClose round="10">
  4. <view class="model-box ss-flex-col">
  5. <view class="ss-m-t-56 ss-flex-col ss-col-center">
  6. <text class="cicon-check-round"></text>
  7. <view class="score-title">恭喜!自动签到成功!</view>
  8. <view class="model-title ss-flex ss-col-center ss-m-t-22 ss-m-b-30">
  9. 获得每日签到{{state?.social}}点身价
  10. </view>
  11. <view class="model-title ss-flex ss-col-center ss-m-b-30" v-if="state?.upgradeOrNot ">
  12. 您已升级等级为{{ state?.socialStatusName }}
  13. </view>
  14. </view>
  15. <view class="model-bg ss-flex-col ss-col-center ss-row-right">
  16. <view class="ss-m-b-40">
  17. <button class="ss-reset-button confirm-btn" @tap="colseSignUpModal();sheep.$router.go('/pages/app/sign')">去领得更多福利</button>
  18. </view>
  19. </view>
  20. </view>
  21. </su-popup>
  22. </template>
  23. <script setup>
  24. import {
  25. computed,
  26. reactive,
  27. ref
  28. } from 'vue';
  29. import sheep from '@/sheep';
  30. import {
  31. colseSignUpModal,
  32. showSignUpModal
  33. } from '@/sheep/hooks/useModal';
  34. const headerBg = sheep.$url.css('/static/images/sign.png');
  35. const show = computed(() => sheep.$store('modal').signUp);
  36. const state = computed(() => sheep.$store('modal').signUpInfo)
  37. </script>
  38. <style lang="scss" scoped>
  39. .model-box {
  40. width: 520rpx;
  41. // height: 590rpx;
  42. background: linear-gradient(177deg, #ff6000 0%, #fe832a 100%);
  43. // background: linear-gradient(177deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  44. border-radius: 10rpx;
  45. .cicon-check-round {
  46. font-size: 70rpx;
  47. color: #fff;
  48. }
  49. .score-title {
  50. font-size: 34rpx;
  51. font-family: OPPOSANS;
  52. font-weight: 500;
  53. color: #fcff00;
  54. }
  55. .model-title {
  56. font-size: 28rpx;
  57. font-weight: 500;
  58. color: #ffffff;
  59. }
  60. .model-bg {
  61. width: 520rpx;
  62. height: 6.75rem;
  63. background-size: 100% 100%;
  64. background-image: v-bind(headerBg);
  65. background-repeat: no-repeat;
  66. border-radius: 0 0 10rpx 10rpx;
  67. .title {
  68. font-size: 34rpx;
  69. font-weight: bold;
  70. // color: var(--ui-BG-Main);
  71. color: #ff6000;
  72. }
  73. .subtitle {
  74. font-size: 26rpx;
  75. font-weight: 500;
  76. color: #999999;
  77. }
  78. .cancel-btn {
  79. width: 220rpx;
  80. height: 70rpx;
  81. border: 2rpx solid #ff6000;
  82. border-radius: 35rpx;
  83. font-size: 28rpx;
  84. font-weight: 500;
  85. color: #ff6000;
  86. line-height: normal;
  87. margin-right: 10rpx;
  88. }
  89. .confirm-btn {
  90. width: 300rpx;
  91. height: 70rpx;
  92. background: linear-gradient(90deg, #ff6000, #fe832a);
  93. box-shadow: 0 0.2em 0.5em rgba(#ff6000, 0.4);
  94. border-radius: 35rpx;
  95. font-size: 28rpx;
  96. font-weight: 500;
  97. color: #ffffff;
  98. line-height: normal;
  99. }
  100. }
  101. }
  102. </style>