paySuccess.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="wh-full">
  3. <topNavBar title="支付成功" :leftIcon="false" />
  4. <view class="pay-sucess">
  5. <view class="pay-sucess-text">
  6. <u-icon name="checkmark-circle-fill" color="#06A103"></u-icon>支付成功
  7. </view>
  8. <!-- <uni-icons type="checkbox-filled" size="90" color="#27B148"></uni-icons> -->
  9. <view class="pay-price">
  10. ¥<text>{{price}}</text>
  11. </view>
  12. <view class="go-btn" @click="jump">确认</view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. price:0
  21. }
  22. },
  23. onLoad(e) {
  24. if(e.price){
  25. this.price = e.price
  26. }
  27. },
  28. methods: {
  29. jump(){
  30. uni.redirectTo({
  31. url: '/pages/order/myOrder/myOrder?type=3'
  32. });
  33. // uni.redirectTo({
  34. // url: '/pages/order/myOrder/myOrder?type=0'
  35. // });
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .pay-sucess{
  42. width: 100%;
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. align-items: center;
  47. .pay-sucess-text{
  48. font-size: 16px;
  49. padding-top: 130upx;
  50. padding-bottom: 90upx;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. color: #06A103;
  55. }
  56. .pay-price{
  57. font-size: 24px;
  58. text-align: center;
  59. >text{
  60. font-size: 44px;
  61. }
  62. }
  63. .go-btn{
  64. height: 76upx;
  65. border-radius: 38px;
  66. background-image: $base-bg-gradient-color;
  67. text-align: center;
  68. line-height: 76upx;
  69. color: #FFF;
  70. font-size: 14px;
  71. width: 50%;
  72. margin: 100upx auto 0;
  73. }
  74. }
  75. </style>