success.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="container">
  3. <view class="tui-bg"></view>
  4. <view class="tui-content">
  5. <view class="tui-form">
  6. <image src="/static/images/mall/img_recharge_success.png" class="tui-icon"></image>
  7. <view class="tui-title">订单提交成功</view>
  8. <view class="tui-sub-title">非常感谢您对我们的支持</view>
  9. <view class="tui-btn-box">
  10. <tui-button type="danger" width="240rpx" height="70rpx" :size="28" plain shape="circle" @click="go(1)">返回首页</tui-button>
  11. <tui-button type="danger" shadow width="240rpx" height="70rpx" :size="28" shape="circle" @click="go(2)">查看订单</tui-button>
  12. </view>
  13. </view>
  14. </view>
  15. <!--<view class="tui-tips">
  16. <view class="tui-grey">温馨提示:</view>
  17. <view class="tui-light-grey">
  18. 付款成功后,我们不会以付款异常、卡单、系统升级为由联系您。请勿泄露银行卡号、手机验证码,否则会造成钱款损失!谨防电话诈骗!
  19. </view>
  20. </view>-->
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. ptype:1,
  28. }
  29. },
  30. onLoad: function(e) {
  31. if(e.ptype){
  32. this.ptype = e.ptype;
  33. }
  34. },
  35. methods: {
  36. go(page) {
  37. if (page == 1) {
  38. this.tui.href("/pages/index/index")
  39. } else {
  40. this.tui.href("/pagesA/my/myOrder/myOrder?ptype="+this.ptype)
  41. }
  42. }
  43. },
  44. /**
  45. * 页面相关事件处理函数--监听用户下拉动作
  46. */
  47. onPullDownRefresh: function() {
  48. setTimeout(() => {
  49. uni.stopPullDownRefresh()
  50. }, 200);
  51. },
  52. }
  53. </script>
  54. <style>
  55. .tui-bg {
  56. width: 100%;
  57. height: 260rpx;
  58. background: linear-gradient(20deg, #E41F19, #F34B0B);
  59. border-bottom-left-radius: 42rpx;
  60. }
  61. .tui-content {
  62. padding: 0 35rpx;
  63. box-sizing: border-box;
  64. }
  65. .tui-form {
  66. background: #fff;
  67. height: 500rpx;
  68. box-shadow: 0 10rpx 14rpx 0 rgba(0, 0, 0, 0.08);
  69. border-radius: 10rpx;
  70. margin-top: -160rpx;
  71. position: relative;
  72. z-index: 10;
  73. display: flex;
  74. align-items: center;
  75. flex-direction: column;
  76. }
  77. .tui-icon {
  78. width: 100rpx;
  79. height: 100rpx;
  80. display: block;
  81. margin-top: 60rpx;
  82. }
  83. .tui-title {
  84. font-size: 42rpx;
  85. line-height: 42rpx;
  86. padding-top: 28rpx;
  87. }
  88. .tui-sub-title {
  89. color: #666666;
  90. font-size: 28rpx;
  91. line-height: 28rpx;
  92. padding-top: 20rpx;
  93. }
  94. .tui-btn-box {
  95. width: 580rpx;
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. padding-top: 88rpx;
  100. }
  101. .tui-tips {
  102. font-size: 26rpx;
  103. padding: 48rpx 90rpx;
  104. box-sizing: border-box;
  105. text-align: justify;
  106. line-height: 48rpx;
  107. }
  108. .tui-grey {
  109. color: #555;
  110. padding-bottom: 8rpx;
  111. }
  112. .tui-light-grey {
  113. color: #888;
  114. line-height: 40rpx;
  115. }
  116. </style>