s-wallet-modal.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <!-- 规格弹窗 -->
  3. <!-- showClose -->
  4. <su-popup :show="show" @close="colseWalletModal" type="center" round="10">
  5. <view class="model-box ss-flex-col">
  6. <view class="ss-m-t-56 ss-flex-col ss-col-center">
  7. <text class="cicon-check-round"></text>
  8. <view class="score-title">恭喜</view>
  9. <view class="model-title ss-flex ss-col-center ss-m-t-15 ss-font-35" v-if="state.points">
  10. 获得数字权益:{{state.points}}
  11. </view>
  12. <view class="model-title ss-flex ss-col-center ss-m-t-15 ss-font-35" v-if="state.socialStatus">
  13. 获得身价:{{state.socialStatus}}
  14. </view>
  15. <view class="model-title ss-flex ss-col-center ss-m-y-15 ">
  16. 【待确权】
  17. </view>
  18. </view>
  19. <view class="model-bg ss-flex-col ss-col-center ss-row-right">
  20. <view class="ss-m-b-40">
  21. <button class="ss-reset-button confirm-btn" @tap="colseWalletModal();">确认</button>
  22. </view>
  23. </view>
  24. </view>
  25. </su-popup>
  26. </template>
  27. <script setup>
  28. import {
  29. computed,
  30. reactive,
  31. ref,
  32. watch
  33. } from 'vue';
  34. import sheep from '@/sheep';
  35. import {
  36. showWalletModal,
  37. colseWalletModal
  38. } from '@/sheep/hooks/useModal';
  39. const headerBg = sheep.$url.css('/static/images/sign.png');
  40. const show = computed(() => sheep.$store('modal').getWallet);
  41. const state = computed(() => sheep.$store('modal').getWalletInfo)
  42. // 监听签到成功 3s之后自动关闭
  43. // watch(() => show.value, (newValue) => {
  44. // if(newValue){
  45. // setTimeout(colseSignUpModal,3000)
  46. // }
  47. // })
  48. </script>
  49. <style lang="scss" scoped>
  50. .model-box {
  51. width: 520rpx;
  52. // height: 590rpx;
  53. background: linear-gradient(177deg, #ff6000 0%, #fe832a 100%);
  54. // background: linear-gradient(177deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  55. border-radius: 10rpx;
  56. .cicon-check-round {
  57. // font-size: 70rpx;
  58. color: #fff;
  59. }
  60. .score-title {
  61. font-size: 34rpx;
  62. font-family: OPPOSANS;
  63. font-weight: 500;
  64. color: #fcff00;
  65. }
  66. .model-title {
  67. // font-size: 28rpx;
  68. font-weight: 500;
  69. color: #ffffff;
  70. }
  71. .model-bg {
  72. width: 520rpx;
  73. height: 6.75rem;
  74. background-size: 100% 100%;
  75. background-image: v-bind(headerBg);
  76. background-repeat: no-repeat;
  77. border-radius: 0 0 10rpx 10rpx;
  78. .title {
  79. font-size: 34rpx;
  80. font-weight: bold;
  81. // color: var(--ui-BG-Main);
  82. color: #ff6000;
  83. }
  84. .subtitle {
  85. font-size: 26rpx;
  86. font-weight: 500;
  87. color: #999999;
  88. }
  89. .cancel-btn {
  90. width: 220rpx;
  91. height: 70rpx;
  92. border: 2rpx solid #ff6000;
  93. border-radius: 35rpx;
  94. font-size: 28rpx;
  95. font-weight: 500;
  96. color: #ff6000;
  97. line-height: normal;
  98. margin-right: 10rpx;
  99. }
  100. .confirm-btn {
  101. width: 300rpx;
  102. height: 70rpx;
  103. background: linear-gradient(90deg, #ff6000, #fe832a);
  104. box-shadow: 0 0.2em 0.5em rgba(#ff6000, 0.4);
  105. border-radius: 35rpx;
  106. font-size: 28rpx;
  107. font-weight: 500;
  108. color: #ffffff;
  109. line-height: normal;
  110. }
  111. }
  112. }
  113. </style>