s-wallet-modal.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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">{{ t('pop.congratulations') }}</view>
  9. <view class="model-title ss-flex ss-col-center ss-m-y-15 ">
  10. {{ t('pop.order_success') }}
  11. </view>
  12. </view>
  13. <view class="model-bg ss-flex-col ss-col-center ss-row-right">
  14. <view class="ss-m-b-40 ss-flex ss-row-center " style="gap: 10rpx;">
  15. <button class="ss-reset-button confirm-btn"
  16. @tap="colseWalletModal(); sheep.$router.redirect('/pages/index/index')">返回首页</button>
  17. <button class="ss-reset-button confirm-btn "
  18. @tap="colseWalletModal(); sheep.$router.redirect('/pages/order/list', { type: 2 })">查看订单</button>
  19. </view>
  20. </view>
  21. </view>
  22. </su-popup>
  23. </template>
  24. <script setup>
  25. import {
  26. computed,
  27. reactive,
  28. ref,
  29. watch
  30. } from 'vue';
  31. import sheep from '@/sheep';
  32. import {
  33. showWalletModal,
  34. colseWalletModal
  35. } from '@/sheep/hooks/useModal';
  36. import {
  37. points2point
  38. } from '@/sheep/hooks/useGoods';
  39. import { t } from '@/locale'
  40. const headerBg = sheep.$url.css('/static/images/sign.png');
  41. const show = computed(() => sheep.$store('modal').getWallet);
  42. const state = computed(() => sheep.$store('modal').getWalletInfo)
  43. // 监听签到成功 3s之后自动关闭
  44. // watch(() => show.value, (newValue) => {
  45. // if(newValue){
  46. // setTimeout(colseSignUpModal,3000)
  47. // }
  48. // })
  49. </script>
  50. <style lang="scss" scoped>
  51. .model-box {
  52. width: 520rpx;
  53. // height: 590rpx;
  54. background: linear-gradient(177deg, #ff6000 0%, #fe832a 100%);
  55. // background: linear-gradient(177deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
  56. border-radius: 10rpx;
  57. .cicon-check-round {
  58. // font-size: 70rpx;
  59. color: #fff;
  60. }
  61. .score-title {
  62. font-size: 34rpx;
  63. font-family: OPPOSANS;
  64. font-weight: 500;
  65. color: #fcff00;
  66. }
  67. .model-title {
  68. // font-size: 28rpx;
  69. font-weight: 500;
  70. color: #ffffff;
  71. }
  72. .model-bg {
  73. width: 520rpx;
  74. height: 6.75rem;
  75. background-size: 100% 100%;
  76. background-image: v-bind(headerBg);
  77. background-repeat: no-repeat;
  78. border-radius: 0 0 10rpx 10rpx;
  79. .title {
  80. font-size: 34rpx;
  81. font-weight: bold;
  82. // color: var(--ui-BG-Main);
  83. color: #ff6000;
  84. }
  85. .confirm-btn {
  86. width: 200rpx;
  87. height: 70rpx;
  88. background: linear-gradient(90deg, #ff6000, #fe832a);
  89. box-shadow: 0 0.2em 0.5em rgba(#ff6000, 0.4);
  90. border-radius: 35rpx;
  91. font-size: 28rpx;
  92. font-weight: 500;
  93. color: #ffffff;
  94. line-height: normal;
  95. }
  96. }
  97. }
  98. </style>