s-wallet-modal.vue 3.4 KB

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