金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.0 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="true" :showIcon="true" bgColor="#fff" title="支付结果"></lf-nav>
  4. <view class="lf-p-30" style="margin: 0 auto;">
  5. <view class="confirm-card">
  6. <view class="state-btn" v-if="payState">
  7. <u-icon name="checkbox-mark" style="font-size: 100rpx;" class="lf-color-white"></u-icon>
  8. </view>
  9. <view class="state-btn1" v-else>
  10. <u-icon name="close" style="font-size: 100rpx;" class="lf-color-white"></u-icon>
  11. </view>
  12. <view>
  13. <text class="lf-font-32 lf-color-777 lf-m-r-10">到账</text>
  14. <text style="font-size: 72rpx;color: #0D2E9A;" v-if="payState">¥{{ amount }}</text>
  15. <text style="font-size: 72rpx;color: #0D2E9A;" v-else>失败</text>
  16. </view>
  17. <view>
  18. <button class="confirmcash-btn" @click="backHome">返回主页</button>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. payState: 1,
  29. amount: 0
  30. }
  31. },
  32. onLoad(options){
  33. this.payState = Boolean(Number(options.payState));
  34. this.amount = options.amount;
  35. },
  36. methods: {
  37. backHome(){
  38. this.$url('/pages/business/center/center', {type: 'launch'});
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. .state-btn {
  45. width: 220rpx;
  46. height: 220rpx;
  47. background: #0D2E9A;
  48. margin-bottom: 30rpx;
  49. border-radius: 50%;
  50. display: flex;
  51. align-items: center;
  52. justify-content: center;
  53. }
  54. .state-btn1 {
  55. width: 220rpx;
  56. height: 220rpx;
  57. background: #777777;
  58. margin-bottom: 30rpx;
  59. border-radius: 50%;
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. }
  64. .confirmcash-btn {
  65. width: 550rpx;
  66. height: 100rpx;
  67. background: white;
  68. border-radius: 50rpx;
  69. display: flex;
  70. justify-content: center;
  71. font-size: 32rpx;
  72. color: #0D2E9A;
  73. align-items: center;
  74. border: 1px solid #0D2E9A;
  75. margin-top: 100rpx;
  76. }
  77. .confirm-card {
  78. padding: 30rpx 0;
  79. width: 686rpx;
  80. height: max-content;
  81. background: #FFFFFF;
  82. border-radius: 20rpx;
  83. display: flex;
  84. justify-content: space-around;
  85. align-items: center;
  86. flex-direction: column;
  87. }
  88. </style>