completion.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view class="order_completion_box">
  3. <view class="order_completion_title">
  4. <view class="completion_icon">
  5. <uni-icons class="icon" type="checkmarkempty" size="40" color="#eeeeee"></uni-icons>
  6. </view>
  7. <view class="product_title">
  8. 支付成功 ¥{{this.price}}
  9. </view>
  10. </view>
  11. <view class="nav_button">
  12. <view class="nav_order" @click="navOrder()">
  13. <text>查看订单</text>
  14. </view>
  15. <view class="nav_home" @click="navHome()">
  16. <text>返回首页</text>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. //报单成功的商品信息
  26. productTitleInfo:[],
  27. price:''
  28. }
  29. },
  30. onLoad(option) {
  31. console.log(option);
  32. //接受参数
  33. this.price = option.price;
  34. },
  35. onShow() {
  36. },
  37. methods: {
  38. navOrder(){
  39. uni.redirectTo({
  40. url:"/pagesA/orders/userorder"
  41. })
  42. },
  43. navHome(){
  44. uni.switchTab({
  45. url:"/pages/index/index"
  46. })
  47. },
  48. }
  49. }
  50. </script>
  51. <style lang="less">
  52. .order_completion_box{
  53. display:block;
  54. padding-bottom: 60rpx;
  55. .order_completion_title{
  56. display: block;
  57. width: 630rpx;
  58. // height: 300rpx;
  59. margin: 30rpx auto;
  60. line-height: 2.0;
  61. .completion_icon{
  62. width:150rpx;
  63. height: 150rpx;
  64. margin: 30rpx auto;
  65. border-radius: 50%;
  66. display: flex;
  67. justify-content: center;
  68. align-items: center;
  69. background-color: #00bba5;
  70. }
  71. .product_title{
  72. text-align: center;
  73. font-size: 24rpx;
  74. }
  75. }
  76. .nav_button{
  77. width: 630rpx;
  78. height: 300rpx;
  79. margin: 80rpx auto;
  80. display: block;
  81. line-height: 100rpx;
  82. .nav_order{
  83. text-align: center;
  84. margin: 30rpx 0rpx;
  85. border-radius: 60rpx;
  86. background-color: #00bba5;
  87. text{
  88. color: #eeeeee;
  89. }
  90. }
  91. .nav_home{
  92. text-align: center;
  93. border: 2rpx solid #00bba5;
  94. margin: 30rpx 0rpx;
  95. border-radius: 60rpx;
  96. }
  97. }
  98. }
  99. </style>