ok.vue 819 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view>
  3. <view class="okView">
  4. <u-icon name="checkbox-mark" color="#00b859" size="170"></u-icon>
  5. <u--text text="支付成功" size="26"></u--text>
  6. </view>
  7. <view style="height: 150px;"></view>
  8. <view style="width: 120px; color: #000000; border-radius: 5px; margin:0 auto">
  9. <u-button color="#e1e1e1"
  10. @click="toHomePage()" text="返回主页"></u-button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. }
  19. },
  20. methods: {
  21. toHomePage() {
  22. uni.reLaunch({
  23. url: '../home/index'
  24. })
  25. }
  26. }
  27. }
  28. </script>
  29. <style>
  30. .okView {
  31. background-color: #f0f0f0;
  32. border-radius: 20px;
  33. padding: 40px;
  34. height: 190px;
  35. width: 50%;
  36. margin: 0 auto;
  37. margin-top: 50%;
  38. display: flex;
  39. flex-direction: column;
  40. align-items: center;
  41. }
  42. </style>